|
|
#1 |
|
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! |
|
|
|
|
|
#2 | |
|
Debian user
(Forum King) Join Date: Jan 2003
Location: Arch land
Posts: 4,896
|
Re: Winamp doesn't allow me to debug my plugin
Quote:
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. |
|
|
|
|
|
|
#3 |
|
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.
|
|
|
|
|
|
#4 |
|
-
Join Date: Sep 2003
Location: UK
Posts: 22,204
|
there's options on the 'plugins' page in the preferences for disabling SEH
-daz |
|
|
|
|
|
#5 |
|
Debian user
(Forum King) 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. |
|
|
|
|
|
#6 |
|
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! |
|
|
|
|
|
#7 |
|
-
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 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|