[omniORB] Allocation of memory for sequence "vars"
Gary Duzan
gduzan at bbn.com
Tue Sep 21 14:59:24 BST 2004
In Message <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAABHyBg5AUZEKchcDvdvPsn8KAAAAQAAAAzEToqeVh0E+XmL0qCwChhgEAAAAA at silvaco.com> ,
"Frederic Prin" <frederic.prin at silvaco.com> wrote:
=>From: "Green, Wallace J" <wallace.j.green at boeing.com>
=>
=>>I have a very simple sequence that I am allocating and would like to
=>>check that the allocation was successful.
=>>
=>>The IDL is :
=>>
=>> interface SEQ {
=>>
=>> enum ABC { want, more };
=>> typedef sequence<ABC> ABCseq;
=>> };
=>
=>Yes, what about testing
=>
=>if( me == SEQ::ABCseq::_nil() )
=>
=>Or
=>
=>If ( CORBA::is_nil(me) )
Those only work if you are dealing with a CORBA object reference.
Here we are dealing with a pointer to a sequence, so it won't work.
Gary Duzan
BBN Technologies
More information about the omniORB-list
mailing list