Mail Archives: djgpp/1997/12/10/04:08:10
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.
- Raw text -