This is my set up
C# application - Sample.exe
C# control exposed for com which hosts the C# application
PowerBuilder instantiates C# control
PowerBuilder destroys C# control which in turn gets to the Dispose method of the c# control
The dispose method uses Process class to destroy the C# application or it should. This is where I have an issue. The C# application is still running when I look in task manager.
When i close my POwerBuilder application, my c# application no longer appears in TaskManager which makes me to believe that my PowerBuilder app still is holding on to a reference of my C# control.
any ideas on how i can avoid situation 5?