Re: thread safety question

Doug Turner <[email protected]> Sun, 27 Oct 2002 21:16:56 -0800
Newsgroups gmane.comp.mozilla.devel.xpcom
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
The error indicates that whatever object you are trying to use via 
javascript doesn't have the right flag set.  Can you figure out which 
interface or class you are using when this happens?  Is it a class that 
is part of mozilla, or is it your component?

If it is the former, file a bug in bugzilla.  If not, you should do what 
the error suggests: ensure that your class implementation is threadsafe 
and set the correct flag for your nsIClassInfo implementation.

Doug Turner
[email protected]

mark kaplun wrote:
> Hi,
> 
>   Can anyone explain to me the cuase for the following console message
> 
> !!!!! XPConnect wrapper thread use error...
>   XPConnect WrappedNative is being accessed on multiple threads but the
> underlying native xpcom object does not have a nsIClassInfo with the
> 'THREADSAFE' flag set
> 
>   I'm having a thread listening to network messages, which suppose to open
> an alert window, by using an XPCOM object implemented in JS.
> 
>   Any clue will be appriciated,
> 
>   Mark.
> 
>