Date: Wed, 10 Dec 1997 11:07:05 +0200 (IST) From: Eli Zaretskii To: Joshua James Turpen <44699 AT ef DOT gc DOT maricopa DOT edu> cc: djgpp AT delorie DOT com Subject: Re: Win95 and ___djgpp_hw_exception... In-Reply-To: <9712091620.AA06288@gcef.gc.maricopa.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Tue, 9 Dec 1997, Joshua James Turpen wrote: > Ok, I've rewritten the program to use > _crt0_startup_flags =_CRT0_FLAG_LOCK_MEMORY; > > It still crashes. Try playing with the way you return from your handler. I don't really understand why did you elect to go to such lengths instead of just chaining to the old handler (as in "ljmp %cs:_old" or something). That's the only non-trivial part of your handler, so probably the bug is there. I still don't get why are you sticking to roll your own code instead of using the existing facilities of setitimer and SIGALRM.