[omniORB] omni::omniCodeSet::TCS_C_8bit::unmarshalString () : 'CORBA::MARSHAL'

Duncan Grisby duncan at grisby.org
Tue Jun 6 18:44:17 BST 2006


On Tuesday 6 June, JiangWei wrote:

[...]
> * stream.setByteSwapFlag(0);*

[...]
> terminate called after throwing an instance of 'CORBA::MARSHAL'

Thanks for the bug report. The problem was that the fast case of string
marshalling was failing to byte-swap the length field, so when you came
to read it again, the data was invalid. I've fixed it in CVS. It's quite
an obscure problem, since nothing in omniORB marshals with byte-swapping
by default. It's always the unmarshalling side that does the
byte-swapping.

Having fixed this issue, your other program works fine for me too.

Cheers,

Duncan.

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



More information about the omniORB-list mailing list