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.
1384 Unregistering events doesn't work [#7934]
Moderator: Gurus
1384 Unregistering events doesn't work [#7934]
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).
-
- Posts: 23640
- Joined: Wed Aug 09, 2006 10:20 am
- Location: NJ, USA
- Contact:
Re: 1384 Unregistering events doesn't work
Maybe you didn't install the debug build?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.
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.
Need help? Got a suggestion? Can't find something?
Please no PMs in reply to a post. Just reply in the thread.
Re: 1384 Unregistering events doesn't work
It's the debug version, I double-checked and even re-downloaded/installed.
But I'm more concerned about unregistering the events.
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).
Re: 1384 Unregistering events doesn't work
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
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
Re: 1384 Unregistering events doesn't work
Most probably caused by http://www.ventismedia.com/mantis/view.php?id=7920
Re: 1384 Unregistering events doesn't work [#7934]
Verified: Fixed in build 1385.
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).