Re: Sequence question



Kuang-Chun Cheng wrote:

>
>Here is my question:
>1) Will Sample_SeqTest_get_array() will allocate memory automatically ?
>Or I need to allocate myself for seq_out before invoke the "seq_out =
>Sample...." ?
>
Client invokes stub, the stub will allocate memory automaticly.

>2) Do I need to call
>CORBA_free(seq_out); or
>CORBA_free(seq_out->_buffer);
>
>to free the allocated memory area.
>  
>
yes, CORBA_free (seq_out);

There is a sample as source that demonstrates sequence handling:
http://www.gnome.org/projects/ORBit2/orbit-docs.tar.gz

Best regards, Frank






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]