[omniORB] Problem inserting an array of structs containing strings into an any

Duncan Grisby duncan at grisby.org
Thu Jan 5 23:52:29 GMT 2006


On Thursday 5 January, Brian Neal wrote:

[...]
> I get a segfault when I insert the forany into the any at the line
> marked ****

[...]
> I have changed the struct member b from a string to a long, an any,
> and a sequence of longs, and when I do, I don't get a seqfault.

The problem is that you have not initialised the ORB. Inserting a string
into an Any involves checking the code set conversions, and they aren't
initialised until ORB_init() is called.

Cheers,

Duncan.

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



More information about the omniORB-list mailing list