RE: [GD-Windows] Beep error on exit
Brought to you by:
vexxed72
From: Jon W. <hp...@mi...> - 2002-03-05 02:43:39
|
I do something like this in my assert-like code, just to avoid the problems with windows contexts and threads and message handlers. #define ENSURE(x) ((x) || *(volatile char *)0) Cheers, / h+ > -----Original Message----- > From: gam...@li... > [mailto:gam...@li...]On Behalf Of > Brian Hook > Sent: Monday, March 04, 2002 1:13 PM > To: gam...@li... > Subject: RE: [GD-Windows] Beep error on exit > > > I figured out what was causing the beep, sort of. It was, in fact, > because of static object destructors. Specifically, it was some debug > code that basically did this: > > Sprite::~Sprite() > { > VERIFY( m_pData == 0 ); //make sure we've freed up our memory > } > > The VERIFY was failing (because the memory wasn't freed up), but instead > of throwing up a messagebox like it should have, it just beeped and > died. I had to walk the exit handler chain and step through the > disassembly to find this -- for some reason setting breakpoints in the > destructors wasn't working. > > Brian > > > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=555 > |