Fischer, Clemens
2007-08-13 13:48:37 UTC
Hi,
you should use the out() method of type A_var like this:
A_var a;
server->f(a.out());
A_var does the memory management...
Clemens
-----Urspr?ngliche Nachricht-----
Von: omniorb-list-***@omniorb-support.com [mailto:omniorb-list-***@omniorb-support.com] Im Auftrag von Bj?rn Kristian Larsen
Gesendet: Sonntag, 12. August 2007 17:00
An: omniorb-***@omniorb-support.com
Betreff: [omniORB] Usage of _out objects
Say you are calling this function from the client (c++):
void Server::f(A_out a){
...
}
How do you set the A_out (variable length) object?
My book says it's a "reference to a pointer". I'm not sure what that is
and not how to handle them.
And if I understand my book correct, I don't need to free/release the
object on the server (callee) side. Is this correct?
Sorry for the stupid question, but I'm new to CORBA...
you should use the out() method of type A_var like this:
A_var a;
server->f(a.out());
A_var does the memory management...
Clemens
-----Urspr?ngliche Nachricht-----
Von: omniorb-list-***@omniorb-support.com [mailto:omniorb-list-***@omniorb-support.com] Im Auftrag von Bj?rn Kristian Larsen
Gesendet: Sonntag, 12. August 2007 17:00
An: omniorb-***@omniorb-support.com
Betreff: [omniORB] Usage of _out objects
Say you are calling this function from the client (c++):
void Server::f(A_out a){
...
}
How do you set the A_out (variable length) object?
My book says it's a "reference to a pointer". I'm not sure what that is
and not how to handle them.
And if I understand my book correct, I don't need to free/release the
object on the server (callee) side. Is this correct?
Sorry for the stupid question, but I'm new to CORBA...