Old 22nd February 2007, 15:48   #1
SinePi
Junior Member
 
Join Date: Feb 2007
Posts: 2
Using ShowWindow causes Winamp crash at exit

My plugin uses its own window (RegisterClass, ShowWindow, etc.) to display some data. When I close WinAmp, there's a GPF somewhere in its code (not in mine). If I as much as remove the ShowWindow line, there's no error at all. Is there something that I should pay extra attention to take care of?
SinePi is offline   Reply With Quote
Old 22nd February 2007, 19:07   #2
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
Re: Using ShowWindow causes Winamp crash at exit

Quote:
Originally posted by SinePi
Is there something that I should pay extra attention to take care of?
Hell yeah! Like our search engine?


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 22nd February 2007, 19:19   #3
DrO
 
Join Date: Sep 2003
Posts: 27,873
are you subclassing winamp? if so are you gracefully handling that? are you making sure you destroy the window you've created when you get your quit(..) called? are all threads/anything else which could leave itself as a reference point in winamp been closed and correctly cleaned up?

-daz
DrO is offline   Reply With Quote
Old 23rd February 2007, 16:23   #4
dspdeveloper
Junior Member
 
Join Date: Jan 2007
Posts: 40
Re: Using ShowWindow causes Winamp crash at exit

Quote:
Originally posted by SinePi
My plugin uses its own window (RegisterClass, ShowWindow, etc.) to display some data. When I close WinAmp, there's a GPF somewhere in its code (not in mine). If I as much as remove the ShowWindow line, there's no error at all. Is there something that I should pay extra attention to take care of?
Most crashes when exit winamp is because something on your plugin is crashing on quit.
Did you test what happends if you only deselect your plugin in the preferences window of winamp? Crashes the same?
dspdeveloper is offline   Reply With Quote
Old 23rd February 2007, 23:25   #5
SinePi
Junior Member
 
Join Date: Feb 2007
Posts: 2
Re: Re: Using ShowWindow causes Winamp crash at exit

... I don't know what I did, but the crashes stopped. However, they were happening after my quit() code, and by looking at the disassembled code - when WinAmp was trying to call quit() on another plugin (the same code point, a call, that sent the instruction pointer into my quit(), crashed on another turn of what seemed to be the shutdown-all-plugins loop).
Thanks for the swift response, however.
SinePi is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump