mIRC Homepage
Posted By: Jigsy Deleting a *.dll. - 20/09/07 05:15 PM
I'm trying to delete a *.dll I just wrote in VB from my mIRC folder.

But I'm not 100% sure if I've managed to unregister it from COM.

Quote:
...
* Unregistered Com 'Prototype'
* Unregistered Com 'Prototype.dll'
* Unregistered Com 'Prototype.dll'
* Unregistered Com 'Prototype.dll'
* Unregistered Com 'Prototype'
* Unregistered Com 'Prototype.dll'
* Unregistered Com 'Prototype'
* Unregistered Com 'Prototype.dll'
* Unregistered Com 'Prototype.dll'
...


And everytime I try and delete the file Windows is like: "Whoa, you can't do that!"

Is there any way to fix this without having to restart mIRC constantly?
Posted By: RoCk Re: Deleting a *.dll. - 20/09/07 05:41 PM
http://ccollomb.free.fr/unlocker/
Posted By: argv0 Re: Deleting a *.dll. - 20/09/07 08:31 PM
The above link is a workaround, not a solution. Using that program should not be necessary.

I also vaguely recall noticing this when making a COM DLL some time ago as well, but since I have limited experience with Windows' COM DLL registration, I didn't think much of it. The fact that the file cannot be deleted leads me to believe that mIRC is not properly unloading or unregistering the COM DLL from Windows. I'm not sure which is the case.

I say all of this, because, assuming nothing else has an open handle to the file, this may even be a bug in mIRC. I'd personally expect that unregistering a COM DLL would not hold onto the file any longer in memory, Windows or otherwise.. And considering you can delete it when mIRC exits, I'm guessing Windows isn't the culprit.

Can you verify that nothing else is making use of your DLL at that time (make sure visual studio is closed) and show some steps to reproduce this? This may be useful to file a bug report and get this solved the *right* way. Also, if anyone knows why this may occur, please chime in.
Posted By: deegee Re: Deleting a *.dll. - 20/09/07 11:44 PM
Yeah it's an old issue with COM objects I've run into it a few times myself.

It has been mentioned in the Bug reports section before too.

Not much you can do I'm afraid, as far as I know, except to restart mIRC.
© mIRC Discussion Forums