500pts: Not all events are arriving in my thread, please help
Posted on 2006-10-31
I wonder if anyone can help..
I have a thread which i start like this..
_workerThread = new Thread(new ThreadStart(threadMarket.ProcessMarket));
_workerThread.Name = market;
_threads.Add( market, _workerThread );
_workerThread.IsBackground = true;
But once in my thread i subscribe to some events on an object, generally what happens is the event arrives with some arguments saying "LOADING" and then later "LOADED" but i am finding that the event "LOADED" never arrives unless i do a Thread.Sleep (500) and even then not all the events are arriving... This doesn't happen if i subscribe to the events in the gui....
I can't do a InvokeRequired because ThreadMarket is a class...
I am really stuck ... does _workerThread not have enough threads or something....
I look forward to any inspiration or help
Thanks in advance