Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!snorkelwacker.mit.edu!bu.edu!polygen!jerry From: jerry@polygen.uucp (Jerry Shekhel) Newsgroups: comp.windows.ms.programmer Subject: Re: question regarding catch/throw Keywords: catch throw setjump longjump Message-ID: <1023@stewart.UUCP> Date: 1 Apr 91 16:27:39 GMT References: <1991Mar27.182820.17579@cuff.uucp> Reply-To: jerry@stewart.UUCP (Jerry Shekhel) Organization: Polygen Corporation, Waltham, MA Lines: 22 boag@cuff.uucp (Scott Boag) writes: > >We are about to implement a generalized error handling scheme that uses >catch/throw (i.e. setjump/longjump). I am a bit worried about the >behavior of these functions in the MS Windows environment. Has anyone >had prior experience with using these? Thanks in advance. > I use the Catch() and Throw() functions in a Windows game that I'm about to release. They work great, as long as you remember, of course, that you can't Throw() into a deeper stack level than where you're at. In other words, you can always Throw() to WinMain(), but if you're in WinMain(), you can't Throw() to any other function. -- +-------------------+----------------------+---------------------------------+ | JERRY J. SHEKHEL | POLYGEN CORPORATION | When I was young, I had to walk | | Drummers do it... | Waltham, MA USA | to school and back every day -- | | ... In rhythm! | (617) 890-2175 | 20 miles, uphill both ways. | +-------------------+----------------------+---------------------------------+ | ...! [ princeton mit-eddie bu sunne ] !polygen!jerry | | jerry@polygen.com | +----------------------------------------------------------------------------+