On Fri, 23 Jan 2015 10:50:50 -0800, Charles Mills <[email protected]> wrote:

>Works like a champ! That is exactly what David Crayford (thank you, David!) 
>suggested off-line. I followed the spirit of this, but did things somewhat 
>differently. In my new handler, I
>
>- Put out a diagnostic message
>- Call CEE3DMP
>- Call my existing clean-up-and-terminate routine.
>

It seems to me that you have to be careful not to do too much in your new 
handler, because, depending on the size of the new() that failed, you might 
have very little HEAP or STACK space to work with. One way around that might be 
to new() a reserve buffer before calling set_new_handler() and then freeing 
that reserve buffer in your new handler.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to