I am pretty sure that new throws bad_alloc if the allocation fails, so
try
{
SomeFunc();
}
catch( bad_alloc )
{
// die gracefully.
}
catch( ... )
{
// This will catch anything else thrown out of SomeFunc.
// Also, die gracefully, but for some unknown reason!
}
would work.Brad -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
