[omniORB] RE: Caught a CORBA:: UNKNOWN error (IDL sequence type)

Jason Etheridge jason at etheridge.org
Mon Oct 8 06:36:49 BST 2007


janarbek <canarbekmatay at yahoo.com> wrote:
>  seqShort* shortSeqTestServer_i::returnType()
> {
>  return &data;
> }

The ORB takes ownership of the pointer returned, and will attempt to
deallocate it on the server side once it's marshalled the result for
sending to your client.

To fix:

seqShort* shortSeqTestServer_i::returnType()
{
 return new seqShort(data);
}

-- 
Jason Etheridge                                     mailto:jason at etheridge.org



More information about the omniORB-list mailing list