Message-ID: <004201bf1ed0$ae67c3d0$293f8589@gv015029.bgo.nera.no> From: "Gisle Vanem" To: Subject: Re: exception handling. Date: Mon, 25 Oct 1999 12:06:54 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com Wynand Van Staden said: >this might be a stoopid Q, but is there any way to do exception >handling in DJGPP? been trying to get it to work but to no avail. You should install a handler for signal SIGSEGV (and SIGILL etc.). e.g.: signal (handler,SIGSEGV); .. void handler (int sig) { if (sig == SIGSEGV) { /* do you exception handling here */ } raise (SIGABRT); } Gisle V.