What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Unloading VB Plugin DLL - MsgPlus! Bug?

Unloading VB Plugin DLL - MsgPlus! Bug?
Author: Message:
RicarDog
Full Member
***

Avatar
File Transfer Plus developer

Posts: 118
Reputation: 7
– / Male / –
Joined: May 2004
O.P. Unloading VB Plugin DLL - MsgPlus! Bug?
When I try to unload my VB plugin with the PostMessage method (MessengerPlus_PluginChange), I'm not allowed to replace the DLL file because it says 'Access Denied'. MsgPlus! actually unloads it (the Uninitilalize and Class_Terminate functions are called in the plugin) but it still cannot be replaced.

I've tried a call to CoFreeUnusedLibraries() API after the PostMessage, but it has no effects on the problem. Also, I've tried CoUninitialize() in the Uninitialize function, but then MSN won't even start. When used in Class_Terminate of the Main class, it has no effects at all.

EDIT: I've tried OleUninitialize instead of CoUninitialize, it unlocks the DLL but also closes MSN.

There were some discussion on this subject here, but no solutions were pointed out.

Since it seems to happen with VB DLLs only, it may be a MsgPlus! bug. The workaround is to close MSN, replace the DLL and restart it, but it's not user-friendly.

Any ideas?

This post was edited on 10-03-2004 at 07:40 PM by RicarDog.
Latest File Transfer Plus: 1.1 RELEASE (1.1.14)
In development: 2.0
10-03-2004 07:29 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Unloading VB Plugin DLL - MsgPlus! Bug? - by RicarDog on 10-03-2004 at 07:29 PM
RE: Unloading VB Plugin DLL - MsgPlus! Bug? - by Mnjul on 10-04-2004 at 01:20 PM
RE: Unloading VB Plugin DLL - MsgPlus! Bug? - by RicarDog on 10-04-2004 at 02:44 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On