[omniORB] Why inout, out parameter and return value has to be dynamicly allocated

Stefan Seefeld seefeld@sympatico.ca
Tue, 08 May 2001 22:51:48 -0500


kexin li wrote:
> 
> I have a basic question.
> Why inout, out parameter and return value has to be
> dynamicly allocated? I am using omniORB with c++
> mapping.

Have a look into the CORBA bible: "Advanced CORBA Programming
with C++" by Henning and Vinoski. Specifically, the chapter
7.14.6 "Memory Management for Variable-Length Parameters"
is a very detailed description of the motivation and the actual
mechanism.

Regards,	Stefan