I
Iain
I've got a (VC++ 6.0) com object which does something asynchronously (writes
a DVD image, actually).
It rasies COM events to indicate progress, including completion.
I've got this running in a c# application, with the events coming up and
being caught (The idea is to use this to Set a ManualResetEvent which will
alow the rest of the processign to happen).
However, when I put an event after the call to start the async process off,
the events seem never to be caught.
When the WaitOne times out, I get a whole swathe of debug prints from the
COM dll, but the Debug.WriteLine from the (COM) event handler are never
called.
Clearly it's some threading / synchronisation issue, but I've not found
anything obviously relevant in the docs or through google.
Can any one help, please?
Iain
a DVD image, actually).
It rasies COM events to indicate progress, including completion.
I've got this running in a c# application, with the events coming up and
being caught (The idea is to use this to Set a ManualResetEvent which will
alow the rest of the processign to happen).
However, when I put an event after the call to start the async process off,
the events seem never to be caught.
When the WaitOne times out, I get a whole swathe of debug prints from the
COM dll, but the Debug.WriteLine from the (COM) event handler are never
called.
Clearly it's some threading / synchronisation issue, but I've not found
anything obviously relevant in the docs or through google.
Can any one help, please?
Iain