Hi All,

I'm been trying to create a new context in a new thread using JSGlobalContextCreateInGroup but I can't seem to get around an "access violation exception while writing to...", is this not the correct way to setup mutlithreading? I assumed that for each thread created a separate context should be used. I am passing in the same group that was created from the main thread each time I try to create a new global context.

Some code:

// Main thread
mMainGroup = JSContextGroupCreate();
mMainContext = JSGlobalContextCreateInGroup(mMainGroup, NULL);

// Secondary thread
mOtherContext = JSGlobalContextCreateInGroup(mMainGroup, NULL); // <- fails here

When looking through it is failing at the assertion in /RefCounted.h:53/, ASSERT(m_verifier.isSafeToUse()), which looks like the verifier is set to SingleThreadVerificationMode, I'm thinking it's pretty obvious that needs to be changed, but not sure how to go about setting a new verification mode?

I'm using the latest webkit built on my windows box.

Thanks,
 -JT

_______________________________________________
webkit-help mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help

Reply via email to