|
|
#1 | ||
|
Major Dude
|
gen_tray should be fixed
i was randomly looking at the gen_tray example in the SDK, and i cam accross this:
Quote:
Quote:
if we delete the window before unloading the plugins, i asumed this could cause other issues, such as a plugin that may save the current state of the player. that, and also, this prevents plugins from being loaded and unloaded on the fly. i can fix the plugin in the local copy, but it would be nice to see the SDK updated as well. -=- Darkain Dragoon -=- -=- RM-X Home Page - Controlling Winamp via RM-900, RM-1000, RM-1500, ATI Remote Wonder, Joysticks, Gamepads, Wheels, Keyboard shortcuts, Multimedia keyboards, across the net, and much more! -=- Defenestration !!! -=- |
||
|
|
|
|
|
#2 | |
|
Major Dude
|
FIX
here is teh fix0r
Quote:
-=- Darkain Dragoon -=- -=- RM-X Home Page - Controlling Winamp via RM-900, RM-1000, RM-1500, ATI Remote Wonder, Joysticks, Gamepads, Wheels, Keyboard shortcuts, Multimedia keyboards, across the net, and much more! -=- Defenestration !!! -=- |
|
|
|
|
|
|
#3 |
|
Major Dude
Join Date: Jan 2004
Location: Brisbane, Australia
Posts: 1,193
|
I remember a sample from the SDK a while back which actually had comments along the lines that it wasn't necessary to unsubclass the window. Or perhaps it wasn't an official sample or I just imagined it?
In any case, this has become a problem with WA5.03. When gen_ff is unloaded, and the winamp windows are desktop docked, naturally it attempts to restore the desktop state. However in doing so, it sends a DISPLAYCHANGE to the various windows. Depending on the order in which gen_ff is unloaded, this can have unfortuanate consequences for any windows that have been subclassed but the module already unloaded (ie crash). (Ive managed to fix it by renaming gen_ff to gen_zff). gen_ml (the media library) actually makes this mistake, it doesnt unsubclass the playlist window. As you mention, the sdk/docs need to be clear that subclassed windows MUST be unsubclassed on quit. Ive made that mistake myself a few times because I didnt realise the importance of it. |
|
|
|
|
|
#4 | |
|
-
Join Date: Sep 2003
Location: UK
Posts: 22,244
|
Quote:
)i guess people can be sloppy (i've done it at times but that's unsubclassing the wrong window )-daz |
|
|
|
|
|
|
#5 |
|
Major Dude
Join Date: Jan 2004
Location: Brisbane, Australia
Posts: 1,193
|
It should be done, if the window is sticking around. I'm sure I saw an gen_ example once that had comments saying it wasnt really necessary - but it could have come from anywhere i guess.
But I think its easy to assume that because the 'quit' API is being called, the message loop may have ended because winamp is about to exit. Obviously this isn't the case however. |
|
|
|
|
|
#6 | |
|
-
Join Date: Sep 2003
Location: UK
Posts: 22,244
|
Quote:
anyway the issue has been reported and should hopefully be fixed in the official version (updating my copy in a bit) -daz |
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|