Have the code executing on the thread execute a callback when execution
finishes (event). Or you could use an .NET Event class (eg ManualResetEvent)
and set it to signaled when the thread finishes.
IIRC, you can catch an abort event around any blocking operation (i.e. wait,
lock, etc) But no event when you just return from your method unless you
signal one yourself. You could use a .net event object for this and have
your control thread wait on this (or other) events.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.