On Saturday, 2 August 2025 at 20:29:22 UTC, Brother Bill wrote:
Why does this run, but not display expected null reference exception?

Death by signal (SIGSEGV in this case) is not an Exception. I had a program dying from a SIGPIPE--same deal, you can't catch it with an exception handler.

Fortunately for me, SIG_IGN the SIGPIPE was the right thing. In your case, SIG_IGN is out of the question. I guess you could arm a SIGSEGV handler, but I doubt this is useful in any but the most uniquely manageable scenarios.

Andy

Reply via email to