COM object access error
Posted on 2005-04-19
I have pulled in a dotnet dll via a COM type library into VB6. The problem that ive come across is when an error occurs and i shut down the vb6 app and restart it somehow the OLD COM object seem to be living in memory! I do create a new COM object on restart and call its methods but the object consistently remains in the previous unfunctional state and i cant get the com methods to execute properly. I set the COM object to NOTHING upon app shutdown and even put in a clean up routine in the dotnet dll to free all used resources within the dll, but nothing seems to de-reference the old COM object in memory.
The weird part is when this problem occurs if i shutdown the IDE and re-open the vb6 project and run it, then it seems to work properly again. Even if i refresh the COM reference it works again. Can someone explain as to why this is occuring?