mIRC Home    About    Download    Register    News    Help

Print Thread
Deleting a *.dll. #186306 20/09/07 05:15 PM
Joined: Nov 2004
Posts: 804
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 804
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?


What do you do at the end of the world? Are you busy? Will you save us?
Re: Deleting a *.dll. [Re: Jigsy] #186308 20/09/07 05:41 PM
Joined: Dec 2002
Posts: 2,021
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,021

Re: Deleting a *.dll. [Re: RoCk] #186313 20/09/07 08:31 PM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
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.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: Deleting a *.dll. [Re: Jigsy] #186331 20/09/07 11:44 PM
Joined: Jun 2006
Posts: 508
D
deegee Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
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.