[shell-coding] Re: exception handling
- From: Kevin Schaffer <kschaffe@xxxxxxxx>
- To: shell-coding@xxxxxxxxxxxxx
- Date: Sat, 27 Jul 2002 12:51:08 -0400
SEH is specific to Win32; so I don't think you're going to
be able to do it in a completely ANSI C way. You could
always use #defines such that the exception handler code
is only used when compiled under VC. Not an ideal solution
but at least that way it will compile under other compilers.
Alternatively you might wanna look at the
SetUnhandledExceptionFilter API.
--
Maduin
Anyway, I'm wondering if anyone else has some good pointers on exception
handling that will not be compiler specific, and will hopefully allow me to
recover from a .dll causing access violations. My hope is that I would be
able to catch the exception in the thread, terminate and clean up the thread
as gracefully as possible, hopefully identifying the .dll that caused the
crash then restarting the thread.
__________________________________________________
Subscription options and archive:
http://www.freelists.org/list/shell-coding
- References:
- [shell-coding] Re: howto talk to lsapi.dll (or any other dll)?
- From: Nexistenz
- [shell-coding] Re: howto talk to lsapi.dll (or any other dll)?
- From: Nexistenz
- [shell-coding] Re: howto talk to lsapi.dll (or any other dll)?
- From: Chris
- [shell-coding] exception handling
- From: Chris
Other related posts:
- » [shell-coding] exception handling
- » [shell-coding] Re: exception handling
- » [shell-coding] Re: exception handling
- » [shell-coding] Re: exception handling
handling that will not be compiler specific, and will hopefully allow me to
recover from a .dll causing access violations. My hope is that I would be
able to catch the exception in the thread, terminate and clean up the thread
as gracefully as possible, hopefully identifying the .dll that caused the
crash then restarting the thread.
__________________________________________________ Subscription options and archive: http://www.freelists.org/list/shell-coding
- [shell-coding] Re: howto talk to lsapi.dll (or any other dll)?
- From: Nexistenz
- [shell-coding] Re: howto talk to lsapi.dll (or any other dll)?
- From: Nexistenz
- [shell-coding] Re: howto talk to lsapi.dll (or any other dll)?
- From: Chris
- [shell-coding] exception handling
- From: Chris