Go Back   Winamp Forums > Developer Center > Winamp Development

Reply
Thread Tools Search this Thread Display Modes
Old 1st October 2006, 18:50   #1
casty
Junior Member
 
Join Date: Oct 2006
Posts: 2
Winamp doesn't allow me to debug my plugin

Hi,

I'm writing a visualization plugin based on the SDK example. I use the standar window to draw the spectrum and some debug data, and I created an independent window for the visualization itself.

The problem is that when I close the plugin and start it again, Winamp reports an exception (In the CreateWindow function I think).

But I cannot see what's going on, because, in some way, when Winamp detects an exception, to protect itself, it unloads the plugin and I cannot debug where it broke.

Is there anyway to ask winamp not to attend exceptions and to crash itself with the plugin?

Thanks!
casty is offline   Reply With Quote
Old 2nd October 2006, 02:34   #2
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,896
Re: Winamp doesn't allow me to debug my plugin

Quote:
Originally posted by casty

Is there anyway to ask winamp not to attend exceptions and to crash itself with the plugin?
I think is there for security reason, yay..I see a lot of crushes on my plugin debuggin...
Maybe you should to use in some point in your code GetLastError or similar to stop the rest of the code executed.


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux w/ xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Debian unstable w/ xfce4.
Joel is offline   Reply With Quote
Old 2nd October 2006, 05:42   #3
shaneh
Major Dude
 
Join Date: Jan 2004
Location: Brisbane, Australia
Posts: 1,193
Doesn't winamp have an option to disable SEH handling? or am i missing something.
shaneh is offline   Reply With Quote
Old 2nd October 2006, 08:31   #4
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,204
there's options on the 'plugins' page in the preferences for disabling SEH

-daz
DrO is offline   Reply With Quote
Old 2nd October 2006, 19:07   #5
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,896
Yes, SEH, but for n00bs like us is good to have it enabled, because we see when the plugin is pure sheat and might make Winamp bimbo in the rest of the process.


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux w/ xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Debian unstable w/ xfce4.
Joel is offline   Reply With Quote
Old 2nd October 2006, 21:45   #6
casty
Junior Member
 
Join Date: Oct 2006
Posts: 2
That's what I needed. I disabled the SEH and now everything crashes as it should. My plugin won't go down alone any more

Thanks!
casty is offline   Reply With Quote
Old 2nd October 2006, 22:27   #7
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,204
but.. but.. crashing is bad now go and fix those bugs now that you can debug things, heh

-daz
DrO is offline   Reply With Quote
Reply
Go Back   Winamp 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