delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/29/19:44:13

Date: Wed, 1 Mar 2000 05:51:22 +0600 (LKT)
From: Kalum Somaratna aka Grendel <kalum AT crosswinds DOT net>
X-Sender: root AT darkstar DOT grendel DOT net
To: djgpp AT delorie DOT com
Subject: Re: Prevent crash on free()
In-Reply-To: <89gd09$f0k$1@cubacola.tninet.se>
Message-ID: <Pine.LNX.4.10.10003010543010.1363-100000@darkstar.grendel.net>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 29 Feb 2000, Marcus wrote:

> 
> Maybe you can answer this. Is it possible to do a catch a crash? :)
> I mean, prevent the program from crashing. Instead raise an exception or
> something like that.

I think the SIGNAL handling mechanism would help you a lot here. Infact
the crash dump that you see sometimes is printed by a handler which
catches the SIGSEGV etc and handles it.

The libc reference (info libc) has a large section called signal
functions. 

The signal function itself contains a lot of info and I think it would be
nice if you could check out the signal funcion in the djgpp libc
reference. It most probably is what you are looking for.

Grendel

> 
> Hi, I'm a signature virus. plz set me as your signature and help me spread
> :)

This virus certainly seems very popular :-) only ~80 bytes too

Hi, I'm a signature virus. plz set me as your signature and help me spread
:)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019