Hi all,
I've upgraded an old V8 to an updated version and encountered the following problem:
I'm creating Isolates several times in the code, and then calling the Locker.
_isolate = Isolate::New();
_isolate->Enter();
Locker lock(_isolate);
Isolate::Scope isolateScope(_isolate);
However I sometimes get an access violation exception in the Locker constructor, which doesn't make any sense, since I've just created the isolate...
My questions are:
1. Why am I getting these exceptions?
2. Do I really need to use Enter() after creating the isolate? Is that the way to control which Isolate is returned when calling Isolate::GetCurrent()?
3. Generally, what are the precautions to be taken when using the same Isolate in different threads?
Thanks.