|
|
Orchid XP v8 wrote:
> make a typo in a C program, the program stops and says "error:
> segmantation fault".
*If* you're lucky. What's worse is when it *doesn't*. :-)
> As far as I'm aware, you cannot catch segfaults.
You can, but not in a portable way, a language-defined way, or in a way
that's useful for debugging or continuing on. You cannot, for example,
catch a segfault and use it to extend the size of the array you just ran off
the end of.
--
Darren New, San Diego CA, USA (PST)
Human nature dictates that toothpaste tubes spend
much longer being almost empty than almost full.
Post a reply to this message
|
|