Posted: Wed Sep 03, 2003 10:50 pm Post subject: Calling cniDeleteMessage after CCI_EXCEPTION
Newbie
Joined: 28 Aug 2003 Posts: 8 Location: Israel
Is it safe calling cniDeleteMessage after CCI_EXCEPTION ... before calling the cciRethrowLastException ...
It says in the documnet ....
"... If an exception occurs and is caught by a user-defined extension, the extension must not call any utility functions except cciGetLastExceptionData or cciRethrowLastException. An attempt to call other utility functions will result in unpredictable behavior which might compromise the integrity of the broker. .."
so what heppend to the messages ceatated by calling cniCreateMessage() ... are they become unrecoverable memory leeks ....
Hi Oron
In U487642.TXT comming with U487642 patch I've found following:
Quote:
Note that the copy of the input message created by the cniCreateMessage function must be deleted by a matching call to the cniDeleteMessage function after the message has been propagated, or during cleanup processing after an exception has been thrown. This will ensure resources allocated by cniCreateMessage are returned.
We have also found that before instaling mentioned patch for MQSI some memory leaks occured (we use Java and C plugin nodes, HP-UX MQSI 2.1). Patch at least reduced these leaks.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum