catching segfault using try_ catch
seany
seany at uni-bonn.de
Tue Jul 13 16:52:43 UTC 2021
On Monday, 12 July 2021 at 00:04:05 UTC, Adam D Ruppe wrote:
> On Sunday, 11 July 2021 at 23:34:38 UTC, seany wrote:
>> Is there an example i can use Thank you.
>
> You just call the registerMemoryHandler() function from that
> module at some point in your main function before doing other
> work.
OK
Here, the
[source](https://druntime.dpldocs.info/etc.linux.memoryerror.registerMemoryErrorHandler.html) says that function is undocumented. What will it return to me?
I want to catch the segfault and a segfault has occured, I want
run a different code at that point.
More information about the Digitalmars-d-learn
mailing list