Hi,
I am trying to use a server socket but this time not in the main thread. When I do it in the main thread, everything is OK. But when I create another thread (nsIThread) and then, in it, create and initialize a server socket, I get an error with the asynclisten() call. It returns: 0x80040111 (NS_ERROR_NOT_AVAILABLE: unavailable resource). I looked at the source code and I think it deals with an event queue problem (but not sure). So I created an event queue with CreateThreadEventQueue but nothing changed. I still have the same error code. (I also tried CreateMonitoredThreadEventQueue). So my question is, did I something wrong, or is it just impossible to use a server socket not in the main thread ? I found a previous thread maybe dealing with this problem but I was not sure about the response... Also, I don't use xpcom compiled in debug mode. Thank's in advance. _______________________________________________ Mozilla-netlib mailing list Mozilla-netlib@mozilla.org http://mail.mozilla.org/listinfo/mozilla-netlib