Parachute

Could someone explain what the SDL parachute is/does? I’m
developing in WinXP w/ mingw.=====
Dave Brondsema
dave at brondsema.net
http://www.brondsema.net


Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

Could someone explain what the SDL parachute is/does? I’m
developing in WinXP w/ mingw.

It catches crash exceptions (GPFs, segfaults, memory access exceptions,
whatever winXP calls them), and resets input and video modes back to
something sane before terminating the program.

Alternately, you can try to call SDL_Quit() in a crash handler yourself.

The parachute is pretty important in X11; I dunno if win32 is better about
resetting video state when programs terminate.

–ryan.

The parachute is pretty important in X11; I dunno if win32 is better about
resetting video state when programs terminate.

MUCH better.

– Daniel, Epic Games Inc.

It catches crash exceptions (GPFs, segfaults, memory access exceptions,
whatever winXP calls them), and resets input and video modes back to
something sane before terminating the program.

OK, so I dev under windows primarily. How can I get rid of this exception
catching and let through a few good old Seg Faults and get a blooody stack
trace for once…

Or is there some other mystical incantation that I don’t know of to get a
stack trace when the SDL program goes AWOL and quits with Parachute
deployed… ??

Yours,
Andy GordonOn Mon, 21 Jan 2002, Ryan C. Gordon wrote:


QueriX UK
36A London Road		http://www.querix.co.uk
Southampton		
Tel: +44 23 8023 2345	andy at querix.co.uk
Fax: +44 23 8039 9685

The flag is SDL_INIT_NOPARACHUTE when initializing. Refer to
http://sdldoc.csn.ul.ie/ for lots of tasty information.
– Jeff

“Andy Gordon” wrote in message
news:mailman.1011697386.5236.sdl at libsdl.org…> On Mon, 21 Jan 2002, Ryan C. Gordon wrote:

It catches crash exceptions (GPFs, segfaults, memory access exceptions,
whatever winXP calls them), and resets input and video modes back to
something sane before terminating the program.

OK, so I dev under windows primarily. How can I get rid of this exception
catching and let through a few good old Seg Faults and get a blooody stack
trace for once…

Or is there some other mystical incantation that I don’t know of to get a
stack trace when the SDL program goes AWOL and quits with Parachute
deployed… ??

Yours,
Andy Gordon


QueriX UK
36A London Road http://www.querix.co.uk
Southampton
Tel: +44 23 8023 2345 andy at querix.co.uk
Fax: +44 23 8039 9685

The flag is SDL_INIT_NOPARACHUTE when initializing. Refer to
http://sdldoc.csn.ul.ie/ for lots of tasty information.
– Jeff

Cheers, that’ll make debugging the BeOS SDL_net problems I’ve got a whole
lot easier

Yours,
Andy GordonOn Tue, 22 Jan 2002, Jeff Duncan wrote:


QueriX UK
36A London Road		http://www.querix.co.uk
Southampton		
Tel: +44 23 8023 2345	andy at querix.co.uk
Fax: +44 23 8039 9685

Or is there some other mystical incantation that I don’t know of to get a
stack trace when the SDL program goes AWOL and quits with Parachute
deployed… ??

You can do SDL_Init(SDL_INIT_NOPARACHUTE) and catch the exception yourself
as you normally would. In your exception handler, call SDL_Quit() to clean
up (and it might be wise to keep a static flag so that SDL_Quit() is only
called once…in case that is the reason for the segfault…).

Someone with more SDL-on-win32 experience might have a better solution,
though.

–ryan.