Hello,

I'm trying to bring webclient up to the most recent milestone, 0.8.1,
and I notice that I get thread safety assertions on the logging service.
This is because the logging service is instantiated way way early in the
sequence, before I even call NS_InitEmbedding.  The logging service
seems to be created as a result of loading the XPCOM dll, which happens
unbeknownst to me.  Here's a stack trace:

EnsureLoggingService() line 243
NS_GetLog(const char * 0x051012a4, unsigned int 2) line 308 + 5 bytes
$E1() line 43 + 15 bytes
$E2() + 8 bytes
_initterm(void (void)* * 0x050ff104 $S3, void (void)* * 0x050ff214 ___xc_z) line 525
_CRT_INIT(void * 0x05030000, unsigned long 1, void * 0x00000000) line 184 + 15 bytes
_DllMainCRTStartup(void * 0x05030000, unsigned long 1, void * 0x00000000) line 267 + 
17 bytes
NTDLL! 77f6350f()
NTDLL! 77f6b592()
NTDLL! 77f63aea()
KERNEL32! 77f13b1f()
KERNEL32! 77f13895()
KERNEL32! 77f13827()
JVM! 503f1bba()
JAVA! 502516ed()
JVM! 503dbf9e()
JVM! 504051c8()
015c5ae8()
0077fb20()
008016b8()

This happens before even a single line of my embedding code gets
executed so of course I'm going to get thread safety assertions.  

Any idea how to avoid these logging safety assertions without turning
off the logging service?

-- 
Remove REMOVE_THIS from email address before replying.

Reply via email to