Re: Sending a struct to a bonobo object

Andrew Sobala <[email protected]> 25 Jul 2003 19:29:28 +0100
Newsgroups gmane.comp.gnome.components
Message-ID <1059157768.7093.3.camel@Gondor>
On Fri, 2003-07-25 at 12:01, Martin Kretzschmar wrote:
> Hi Andrew,
> 
> answering the easy part
> 
> Am Mon, 2003-07-21 um 21.05 schrieb Andrew Sobala:
> > I've implemented my first bonobo object that accepts an argument in the
> > form of a struct defined in the IDL file. How do I pass that to the
> > bonobo control I obtained from bonobo_get_object ? If I g_malloc the
> > struct, and pass a pointer to the stub of the method, it crashes.
> > Presumably I'm doing something wrong :-)
> 
> You want to use T *T__alloc () where T is the type of your struct (its
> name in C) and CORBA_free to free it.
> 
> You can get the CORBA C Language Mapping Spec at
> http://www.omg.org/technology/documents/formal/c_language_mapping.htm

Thanks, Martin. I'm learning slowly :-)

-- 
Andrew Sobala <[email protected]>

The lighting designer is expected to be a master of art, science,
history, psychology, communications, politics and sometimes even
mind reading. -- Stage Lighting Design 101