The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: hutch-- on July 27, 2008, 12:54:39 PM

Title: Has anyone done any work on SEH recently ?
Post by: hutch-- on July 27, 2008, 12:54:39 PM
I did a forum search but found little that was useful, by scanning the little I could find it appears that ESP is stored in the FS register but I don't yet have a good overview on how it works. I found Matt Peitrek's article dated 1997 but is a bit more complex that what I have in mind. Has anyone done any work in this area lately ?
Title: Re: Has anyone done any work on SEH recently ?
Post by: Tedd on July 27, 2008, 02:57:35 PM
http://www.jorgon.freeserve.co.uk/Except/Except.htm


I plan on writing an SEH library and macros at some point - along the lines of try/catch/finally - but who knows when that will get done :bdg
Title: Re: Has anyone done any work on SEH recently ?
Post by: hutch-- on July 27, 2008, 07:22:13 PM
gratsie.  :bg
Title: Re: Has anyone done any work on SEH recently ?
Post by: zooba on July 27, 2008, 11:18:00 PM
There is a VB style OnErrorGoto macro and other helpers in my ASMRT library (here (http://web.aanet.com.au/zooba/projects.html)) which I honestly haven't touched in 18 months, but it worked fine, as well as supporting custom exceptions.

The documentation is not included in the source zip file, but is browsable at http://web.aanet.com.au/zooba/ASMRTDoc/ (http://web.aanet.com.au/zooba/ASMRTDoc/).

Feel free to pick and take what you like, though be warned that the macros may not work straight away if removed from the rest of the library (they depend on the prologue macro to set a variable with the name of the current procedure, for instance).

Cheers,

Zooba :U