1384 Unregistering events doesn't work [#7934]

Beta Testing for Windows Products and plugins

Moderator: Gurus

Steegy
Posts: 3452
Joined: Sat Nov 05, 2005 7:17 pm

1384 Unregistering events doesn't work [#7934]

Post by Steegy »

During uninstallation of the script LinkedTracks, ScriptControl's method UnRegisterAllEvents is called, but this has no effect. The OnPlay event handler that was registered in the running script is still called, even when it is explicitly unregistered using ScriptControl's UnRegisterHandler method.
On MM3 the methods work fine (but this is on 32 bit Windows XP).

Sorry, for some reason DebugView is logging nothing at all.

I'm using MM 4.0 build 1384, on 64 bit Windows 7 all normal setup.
Last edited by Steegy on Wed Jun 08, 2011 1:34 pm, edited 1 time in total.
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).
nohitter151
Posts: 23640
Joined: Wed Aug 09, 2006 10:20 am
Location: NJ, USA
Contact:

Re: 1384 Unregistering events doesn't work

Post by nohitter151 »

Steegy wrote:During uninstallation of the script LinkedTracks, ScriptControl's method UnRegisterAllEvents is called, but this has no effect. The OnPlay event handler that was registered in the running script is still called, even when it is explicitly unregistered using ScriptControl's UnRegisterHandler method.
On MM3 the methods work fine (but this is on 32 bit Windows XP).

Sorry, for some reason DebugView is logging nothing at all.
Maybe you didn't install the debug build?
MediaMonkey user since 2006
Need help? Got a suggestion? Can't find something?

Please no PMs in reply to a post. Just reply in the thread.
Steegy
Posts: 3452
Joined: Sat Nov 05, 2005 7:17 pm

Re: 1384 Unregistering events doesn't work

Post by Steegy »

It's the debug version, I double-checked and even re-downloaded/installed.
But I'm more concerned about unregistering the events.
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Re: 1384 Unregistering events doesn't work

Post by Bex »

I'm not sure it'll help but what if you create a separate Uninstall.vbs containing the stuff you want to happen on an uninstall, which you then reference from the uninstall.ini?
Advanced Duplicate Find & Fix Find More From Same - Custom Search. | Transfer PlayStat & Copy-Paste Tags/AlbumArt between any tracks.
Tagging Inconsistencies Do you think you have your tags in order? Think again...
Play History & Stats Node Like having your Last-FM account stored locally, but more advanced.
Case & Leading Zero Fixer Works on filenames too!

All My Scripts
Ludek
Posts: 4947
Joined: Fri Mar 09, 2007 9:00 am

Re: 1384 Unregistering events doesn't work

Post by Ludek »

Ludek
Posts: 4947
Joined: Fri Mar 09, 2007 9:00 am

Re: 1384 Unregistering events doesn't work

Post by Ludek »

Steegy
Posts: 3452
Joined: Sat Nov 05, 2005 7:17 pm

Re: 1384 Unregistering events doesn't work [#7934]

Post by Steegy »

Verified: Fixed in build 1385.
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).
Post Reply