Acces Violation: assert with null instance

Sean Kelly sean at f4.ca
Fri Jan 26 08:39:33 PST 2007


Walter Bright wrote:
> Bradley Smith wrote:
>>   } catch (AssertError e) {
> 
> You can catch access errors by catching Exception, at least under 
> Windows, because I haven't figured out how to do it under Linux.

With Unix you have to set up a signal handler for SIGSEGV.  However, I'm 
not entirely sure whether exceptions can be thrown from within signal 
handlers.  If anyone knows I'd love to hear the answer.


Sean


More information about the Digitalmars-d-bugs mailing list