I have a VB6 app that processes for a very, very long time. Killing it directly is not feasible, so I would like to set some sort of flag in the VB6 app. If in my C# app I d
When you create the ActiveX Object keep a reference stored in the application or the thread. COM will handle the marshaling across threads. With a reference in hand you can call a method on it and kill it. If you keep the reference in the thread then you will need to use the interprocess messaging mechanism of .NET to pass to the .NET thread that you want to set the kill flag on the ActiveX EXE.