RE: [GD-Linux] signals and exceptions
Brought to you by:
vexxed72
From: Daniel V. <vo...@ep...> - 2001-11-14 19:46:51
|
> The problem is not the printf. The problem is that memory violations do > not generate exceptions, they generate a signal. Check man -a signal; > trap SIGSEGV. Yes, I'm painfully aware of that fact and am wondering whether there were a way to make that work cleanly. I thought about throwing an exception in a signal handler but doubt that'll work fine and I guess it's going to create weird side effects. At the moment we use setjmp/longjmp from within signal handlers to emulate exceptions and it's a considerable performance impact (I took it out for the UT Linux versions I worked on) whereof the exception equivalent is virtually free on Windows. BTW, I get a lot of email sent to me privately and I simply assume it's meant to be for the list in my replies so add a <private reply> or whatever somewhere to your replies if you don't want me to reply to your message to the list :) - Daniel Vogel, Programmer, Epic Games Inc. |