P
Peter Larsen []
Hi,
I have a problem using a ManuelResetEvent in the GUI thread while receiving
events from the Shell (new folders, rename etc).
This is what i do:
Receiving an event from the Shell.
Running some code - setting ManauelResetEvent.Reset().
The code continue - and somewhere else i test the handle
"ManuelResetEvent.WaitOne(100, true)" - still in the GUI thread.
While waiting (in WaitOne), the application receive yet another event from
the Shell - also in the main thread.
How is it possible to receive the second event while blocking the GUI thread
??
Thank you in advance
BR
Peter
I have a problem using a ManuelResetEvent in the GUI thread while receiving
events from the Shell (new folders, rename etc).
This is what i do:
Receiving an event from the Shell.
Running some code - setting ManauelResetEvent.Reset().
The code continue - and somewhere else i test the handle
"ManuelResetEvent.WaitOne(100, true)" - still in the GUI thread.
While waiting (in WaitOne), the application receive yet another event from
the Shell - also in the main thread.
How is it possible to receive the second event while blocking the GUI thread
??
Thank you in advance
BR
Peter