Hello,
I have created a COM DLL which has one functionality exposed through
interface.
Now in my Web Application I made the reference to that DLL.
I created the object and called the funtion.
But after calling the function i assigned the object to null.
Problem is refence is not getting destroyed... After closing the application
also i will not be able to move the DLL... since it has the reference to the
object..
One more interesting thing is that if I restart the IIS the reference gets
destroyed (Only in .Net 2003, not in VS .Net 2005)
Can any body help me in this regard? (on how to make the reference null?)
Regards,
Mahesh H P
PMH - 21 Sep 2006 07:22 GMT
One thing i forgot to mention.. the COM DLL was created using VC++ .
Mahesh H P
Dmytro Lapshyn [MVP] - 22 Sep 2006 08:18 GMT
Hi,
Try calling Marshal.ReleaseComObject on the reference before setting it to
null. Note that this call will invalidate ALL references to this instance of
the COM object.

Signature
Regards,
Dmytro Lapshyn [MVP]
http://blogs.vbcity.com/DmytroL
> Hello,
> I have created a COM DLL which has one functionality exposed through
[quoted text clipped - 17 lines]
> Regards,
> Mahesh H P