Hello Everyone,
To be able to use getobject from vb6 to access a com object managed on a com exe server in c#, I can use the RegisterActiveObject method to give access to this object.
The only problem is when I need to close the com exe server?
In case, the vb6 application is using createobject, I can in the IClassFactory::CreateInstance() call, increase my object reference counter. This will tell me how many references are currently active on this object.
When the vb6 application is invoking: set myobject = nothing,
is there a way in c# to implement the standard IUnknown interface or how to catch the IUnknown::release function of my object to decrease the refence counter ?
Thank you very in advance for your inputs.
Best regards.