We have a .Net application from which a C++ COM component is being instantiated. We load the COM component from a child form window. There is a common resource that is being edited by the .Net application, which inturn is being used by the COM dll to start up.
When the following sequence of steps are performed:
1. Instantiate COM component in the new child window
The COM component is instantiated, and is used by the child form , and after being used, it is being set to NULL , hoping that the COM component would be unloaded.
2. Keep child window open, and then edit the resource
3. Now, go and "refresh" the form, to create a new COM instance, to see the refelection of the changed resource - but the resource is not refreshed.
We also used Marshal.ReleaseComObject method, but to no success. Please advice.