Re: exception question
- From: <ognen gene pbi nrc ca>
- To: <orbit-list gnome org>
- Subject: Re: exception question
- Date: Tue, 23 Oct 2001 06:27:24 -0600 (CST)
Hello Michael,
thank you for the instructional reply :)
I was wondering - I never ran accross functions such as
CORBA_sequence_octet__allocbuf() or CORBA_string_dup()
Is there any documentation on this or are the sources my best hope or...?
:)
Ognen
> You want to use a string for strings; use return CORBA_string_dup
> (id_local), however assuming you want a sequence:
>
> > DICE2_Basic_CORBA_bytes *retval;
> >
> > /* hmmmmm.... lets see if this works */
> > retval = NULL;
> > retval = malloc(sizeof(struct CORBA_sequence_octet_struct));
>
> This will crash in the skel; you need to use the ORB allocators so
> do:
>
> retval = CORBA_sequence_octet__alloc ();
> retval->_buffer = CORBA_sequence_octet_allocbuf (
> strlen (id_local));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]