Hi,

I'm desperately trying to get working the XMLHttpRequest in the non-main thread of my XulRunner/XPCOM extension.
Please, is it possible at all?


The code that works in the MainThread, seems to block on the
'do_CreateInstance(NS_XMLHTTPREQUEST_CONTRACTID, ...)' when placed into the child thread.
At this moment the following log appears:
424[46aea10]: ###!!! ASSERTION: trying to suspect from non-main thread: 'NS_IsMainThread()', file c:/SCM-temp/mozilla/xpcom/base/nsCycleCollector.cpp, line 2121

The child thread is started with the command:
PR_CreateThread(PR_USER_THREAD, ..., ..., PR_PRIORITY_HIGH, PR_LOCAL_THREAD, PR_JOINABLE_THREAD, 0);


Kind wishes,
Viktor Tarasov.

--
Viktor Tarasov  <[email protected]>

--
dev-tech-crypto mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to