Re: CORBA_string question



Hi Kuang,

On Wed, 2004-01-07 at 03:14, Kuang-Chun Cheng wrote:
> I have a question about CORBA_string storage allocation
> in both client/server side. In "C Language Mapping Specification",
> it has detail description about how to handle CORBA_string in
> client side and also how client stub will take care freeing the
> allocated storage. But I can't find any word about server side.
> Will server skeleton code also automatically allocate/free storage
> for CORBA_string ?

	It will do the sensible thing. eg. if a method returns a CORBA_string,
the skel has to return a newly allocated CORBA_string which will thenn
be freed by the ORB when it has been marshaled.

	A good way to think of it is that - in the in-process case it's
possible to return directly from the skel to the stub without any magic
allocation stuff happening.

	Regards,

		Michael.

-- 
 michael@ximian.com  <><, Pseudo Engineer, itinerant idiot




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