[omniORB] Need help.....

Duncan Grisby duncan@grisby.org
Fri Oct 4 11:28:00 2002


On Thursday 26 September, Sharon_Lin@amat.com wrote:

Please do not send HTML email to the omniORB list.

> Here some code i wrote that transfer a struct to java client.
> alarmsClient is a member of IPService_i class;
> When the java client invoke this function it suceedded only in the first 
> time and
> then it raised unknow exception(Not a corba exception according the corba 
> messages in traceLevel 25)?
> Any suggestion?

Whatever type ALARMARAY is (it's not an array; probably a sequence),
the memory management rules for it is that the caller frees the
returned value. After the first call, you are returning freed data, so
your language runtime (probably Visual C++) throws an exception. You
must allocate fresh data for each call.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan@grisby.org     --
   -- http://www.grisby.org --