Hi all, I have the following implementation - class Evaluator { public: Evaluator(); void AddFunction();
private: v8::Isolate *isolate_; }; Evaluator::Evaluator() { v8::V8::InitializeICUDefaultLocation(""); auto platform = v8::platform::CreateDefaultPlatform(); v8::V8::InitializePlatform(platform); v8::V8::Initialize(); v8::Isolate::CreateParams create_params; create_params.array_buffer_allocator = v8::ArrayBuffer::Allocator::NewDefaultAllocator(); isolate_ = v8::Isolate::New(create_params); } Info Evaluator::AddFunction() { v8::Isolate::Scope isolate_scope(isolate_); v8::HandleScope handle_scope(isolate_); auto context = v8::Context::New(isolate_); // Segmentation fault here v8::Context::Scope context_scope(context); } When AddFunction() is called, it gives a segmentation fault in the line v8::Context::New(isolate_); However, if I move v8::Isolate::New() to AddFunction(), there is no segmentation fault. Is it necessary that I have v8::Isolate::New() and v8::Context::New(isolate) in the same scope? Thanks, --Gautham -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.