Re: strint <--> octect problem



Hey Samuele,

On Sun, 9 Dec 2001, Samuele Gallazzi wrote:

>   //Insert the strings in the octet sequences
>    msg = DispatcherDataQueue_mem__alloc();
>    msg->_length = strlen(message)+1;
>    msg->_maximum = msg->_length;

	you need to set msg->_release to FALSE here to let the ORB
know not to free the data (since you have it statically allocated).
The correct way to do this is using CORBA_sequence_set_release.

Good Luck,
Mark.




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