> From: Brian Hook [mailto:bri...@py...]
> Sent: Thursday, February 21, 2002 9:43 PM
> To: gam...@li...
> Subject: RE: [GD-Windows] Beep error on exit
>=20
> At 09:40 PM 2/21/2002 -0800, Brian Sharon wrote:
> >Who/what is firing the beep off? Just wondering...
>=20
> No clue. When I run in Debug Mode under MSVC and quit the app, I get
the
> beep. If I run in Release Mode, no beep. I've seen this before,
usually
> something "Bad" is happening somewhere and the message beep is telling
me
> about it, but there's no way to trap it.
Maybe you have static object destructors doing something bogus? Don't
forget you can keep stepping for quite awhile past the end of main(),
there's a bunch of code still left to execute at that point.
In this case I'm not sure SetUnhandledExceptionFilter is going to help
you, it doesn't sound like you have an actual exception/access violation
going on - or you'd already be dropping into the debugger. Sorry :(.
You could try setting a breakpoint on MessageBeep(), assuming that's
what triggers the sound.
Good luck,
--b.
|