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
Location: Belgium
Contact:

1384 Unregistering events doesn't work [#7934]

Post by Steegy » Sun Jun 05, 2011 2:54 pm

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 » Sun Jun 05, 2011 4:07 pm

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
Location: Belgium
Contact:

Re: 1384 Unregistering events doesn't work

Post by Steegy » Mon Jun 06, 2011 4:03 pm

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 » Mon Jun 06, 2011 7:10 pm

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: 2999
Joined: Fri Mar 09, 2007 9:00 am

Re: 1384 Unregistering events doesn't work

Post by Ludek » Tue Jun 07, 2011 5:15 am


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

Re: 1384 Unregistering events doesn't work

Post by Ludek » Tue Jun 07, 2011 9:24 am


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

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

Post by Steegy » Wed Jun 08, 2011 1:34 pm

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