[omniORB] Putting a Sequence into an Any and marshalling it

Gert Steenssens gsteenss@eps.agfa.be
Wed, 29 Jul 1998 14:50:23 +0200


Sai-Lai Lo wrote:
 
 
> Could you send me the bit of code you wrote which resulted in an > > > exception?
> I have your IDL from the list already.
 
I've actually been able to locate the problem, 
which was a (ahum) *minor* oversight of myself:

I used a union to put in bools, strings, sequences, and embedded dictionaries
into an any type which were retrieved from my 'normal' 
C++ dictionaries.
Only when I wanted to put an embedded dictionary which contained string
in the any, none of the proper union filling methods like strVal() were called
and so it was still 'empty' when I inserted it in the Any. 
Which went by unnoticed, only when it got marshalled over the network, the
parsing code which copies the data (I'm guessing here, you undoubtably know it
in more detail) noticed this and didn't agree.

Dumb mistake on my behalf,
nevertheless I'd like to thank you guys for the quick response and
suggestions...

-- 

Gert Steenssens (3586)
gsteenss@eps.agfa.be

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

"The drum is the beating of the hart,
 The bass is the rhythm of the mind."

 - Lee 'Scratch' Perry, The Upsetter -