On May 17, 6:28 pm, JanakiRam <[EMAIL PROTECTED]> wrote: > The following Code is used in onload event of StartupWindow.
your problem is here. DOM Windows are not threadsafe, in fact, none of gecko ui is. You need to use a component (js components are threadsafe by default). > The problem i'm facing is my application is blocking at the > startup. I doubt whether i'm using nsIThread properly or not. > > Is there any way to handle this type of problem > efficiently ?. > > Regarding this i googled , most blogs were saying JSEngine > Can't Perform Multi-Threaded Operations ? that's almost certainly confused, although it's hard to tell if you're confused or they are. The engine is threadsafe and can be used threadsafe, dom isn't and can't use things threadsafe (it's a design choice). > var th = new ThreadIfc(runable, 0, > nsIThread.PRIORITY_HIGH, > nsIThread.SCOPE_GLOBAL, > nsIThread.STATE_UNJOINABLE); DON'T use UNJOINABLE with a JavaScript object (we should teach xpconnect to magically drop this flag, but we haven't). Fix these two problems and get back to us. Please respect the followup-to header. _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
