Why null reference not showing crash.
Andy Valencia
dont at spam.me
Sat Aug 2 23:20:38 UTC 2025
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
More information about the Digitalmars-d-learn
mailing list