I have created an ActiveX with C# and VS2010 and it works fine.
Start the panel, play with ActiveX, close panel, ActiveX is out of memory.
But when I open this panel from another panel, close the panel with the ActiveX on it,
the ActiveX stays in memory because the parent form stays open.
So a memory leak is born

Can anybody tell me how to destroy/cleanup the ActiveX when the Terminate of the
form is activated so the ActiveX will we out of the memory of the computer?
This is a big problem for me because the ActiveX will be used at our customer.
Thank you in advance,
Marcel Werksma