I'm using multiple threads to abort a spawned process. I implemented
the examples in MSDN and everything works fine.
Problem starts when I create and run a GUI in the process. The thread
abort is ignored. However if I press the mouse anywhere on the
desktop, the thread aborts. I figure the GUI is in some wait for event
loop running interop or unmanaged code. The mouse event causes it to
get out of that portion of code, at which point the abort command kicks
in.
I'm sure I'm not the first or last person to try to abort a thread with
a windows GUI application running in it. What's the word on
this? How can it be done? Or is that something that just cannot
be done, no use trying?
I'm using C#.NET Visual Studio 2003