Throw exception on segmentation fault in GNU/Linux

ilya-stromberg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Apr 22 08:47:36 PDT 2014


On Tuesday, 22 April 2014 at 14:49:58 UTC, Dicebot wrote:
> On Tuesday, 22 April 2014 at 09:58:45 UTC, ilya-stromberg wrote:
>> What should I add in the D program in GNU/Linux to throw 
>> exception if I have segmentation fault error? I read somewhere 
>> that it's possible, but I don't know how to do it.
>
> etc.linux.memoryerror
>
> Just remember that it is more of hack than reliable 
> production-ready solution ;)

Thanks. How shall I use the module? Should I just import it or 
call any init function?


More information about the Digitalmars-d-learn mailing list