From: Yair Kurzion (yair++at++polygon.engr.sgi.com)
Date: 02/07/2001 15:37:04
Mark,
> You said that I could just return normally from the handler and the
> result would be a NULL pointer returned from pfMalloc. This is actually what
> I'd like to do. I would like to give my application the chance to recover
> rather than just exit. For all other resource errors, I'd just let Performer
> process them normally. It possible to do this?
Not without comparing the error string (and hoping that it won't change in
future Performer releases).
I would write a handler that never exits on FATAL errors. This way, you can
intercept out-of-memory errors. A FATAL error is serious enough that if you
don't exit, your program will crash anyway. Can you live with this ?
-yair
--
\_________ \_____ \__ \__ \_____ Yair Kurzion
\_________ \_____ \__ \__ \_____ yair++at++sgi.com
\__ \__ \____\__ \__ http://reality.sgi.com/yair
\__ \__ \__ Work: (650) 933-6502
\__ \__ \__ Home: (408) 226-9771
\__ \__ \__
This archive was generated by hypermail 2b29 : Wed Feb 07 2001 - 15:37:12 PST