I use a thread to wait until an event occurs.
I create and lauunch the thread, than wait until the threads ends or a timeout is reached.
The problem is (I think), that during Thread.Join(myTimeout) there is no messages pumping, and so no event can be catched !
How could I pump messages ?
Or should I use anything else that Thread.Join method ?
Thank you very much,
Thread WaitUntilEventThread = new Thread(new ThreadStart(WaitEventService));
private void WaitEventService()
private void Pathway_MacroComplete(object sender, MyLib.MyEvent eventArgs)
isMacroComplete = true;