Hi Experts,
we have several ActiveX controls which are used as glue code between our Win32 application and newer .NET controls.
Lately I analyzed a GDI leak and stumbled over still rooted .NET controls which are hosted by CWinFormsControl instances.
My Question: The CWinFormsControl has no destructor nor does the MSDN contain detail information about what actions have to be performed when a CWinFormsControl instance should be correctly freed (no GDI, User-Object) leaks.
(Note: Currently I dispose the control that is encapsulated by CWinFormsControl. The CWinFormsControl instance is a member of an object so my initial expectation was that cleanup tasks would be performed in the destructor of CWinFormsControl. As mentioned before CWinFormsControl has no dtor... so what are the correct cleanup tasks: Call Dispose, DestroyHandle and release the reference with Detach ?!)
Thanks!