Access Vialotation

downs default_357-line at yahoo.de
Sat Feb 28 02:32:17 PST 2009


BCS wrote:
> Reply to Jarrett,
> 
>> On Fri, Feb 27, 2009 at 9:01 AM, Qian Xu <quian.xu at stud.tu-ilmenau.de>
>> wrote:
>>
>>> Hi All,
>>>
>>> Is there any way to keep program alive, when an AV takes place?
>>>
>> It's possible on Windows in D, but that's because Windows reports
>> segfaults with the same mechanism that D uses for exceptions.  Since
>> Linux (and many other Posix systems) uses signals, it's probably very
>> tricky to implement in a cross-platform manner.
>>
> 
> you can have a posix signal handler throw an exception (I have done it
> and had it work) but I have no idea if it is supported.
> 
> 
In my experience, that works exactly once.


More information about the Digitalmars-d-learn mailing list