[omniORB] Pliiiz help me with my callback-problem
Nick Murtagh
murtaghn@tcd.ie
Fri, 5 Apr 2002 18:52:51 +0100
On Friday 05 April 2002 18:22, charlotte1@pedersen.ms wrote:
> Yepp, I am a java programmer that's for sure. Because I only made a quick
> test implementation of the call-back servant I made a new string for everey
> call trigger:
>
> virtual char* getStatus() {
> CORBA::String_var ret = (const char*) "getStatus";
> cerr << "getStatus() is triggered from server" << endl;
> cerr << "Value: \"" << (char*)ret <<"\"." << endl;
> return ret;
> }
Shouldn't that be
return ret._retn();
otherwise the String_var will deallocate the string itself when
it is destructed at the end of getStatus() ?
Nick