Re: How to catch segfaults?
SEGFAULT is not an exception, but a signal, so you can't catch it with try-catch statement.
Re: How to catch segfaults?
You can provide a signal handler for SIGSEGV although catching it has a very limited use and you have to know what you are doing.
Re: How to catch segfaults?
Quote:
Originally Posted by
wysota
You can provide a signal handler for SIGSEGV although catching it has a very limited use and you have to know what you are doing.
An example, please?
Re: How to catch segfaults?