Shoutbox

Unloading VB Plugin DLL - MsgPlus! Bug? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: Unloading VB Plugin DLL - MsgPlus! Bug? (/showthread.php?tid=32468)

Unloading VB Plugin DLL - MsgPlus! Bug? by RicarDog on 10-03-2004 at 07:29 PM

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?


RE: Unloading VB Plugin DLL - MsgPlus! Bug? by Mnjul on 10-04-2004 at 01:20 PM

This is how MSN Messenger (not exactly Plus!) deals with hooked VB DLLs and currently there is no workaround, so sorry :)


RE: Unloading VB Plugin DLL - MsgPlus! Bug? by RicarDog on 10-04-2004 at 02:44 PM

I'll have to restart MSN then :(

Anyway thanks for the reply!