T
TimKnoll
I need to unload and load a COM DLL for multiple calls. The VC6 DLL's
are using static fileds which is causing me problems. I'm currently
implementing IDisposable using this as my Dispose method:
public void Dispose()
{
int referenceCount = 0;
do
{
referenceCount = Marshal.ReleaseComObject(obj);
}
while (referenceCount > 0);
obj = null;
}
I confirmed that the method is being called. But I can still see the
COM DLL in memory after Dispose is run. The next time the COM DLL is
called, its still in memory which causes problems. Changing the
legicy VC6 is not an option.
Any ideas? Thanks in advance for your help.
Tim.
are using static fileds which is causing me problems. I'm currently
implementing IDisposable using this as my Dispose method:
public void Dispose()
{
int referenceCount = 0;
do
{
referenceCount = Marshal.ReleaseComObject(obj);
}
while (referenceCount > 0);
obj = null;
}
I confirmed that the method is being called. But I can still see the
COM DLL in memory after Dispose is run. The next time the COM DLL is
called, its still in memory which causes problems. Changing the
legicy VC6 is not an option.
Any ideas? Thanks in advance for your help.
Tim.