[orbitcpp-list] I think I found a bug
Status: Beta
Brought to you by:
philipd
From: Kuba <kp...@po...> - 2001-07-18 08:41:50
|
Consider the following function: char* SomeFunction () { CORBA::String_var vString; vString = "Some text, just example"; return vString._retn (); } If you try do something with a CORBA string returned by SomeFunction () you'll get nasty error and program will shut down. The reason for that is call of Properties::free () inside the String_var::_retn () method in orbitcpp_smartptr.hh, which frees the string supposed to be returned. I think there is no sense to create a patch. For I don't have access to CVS, please somebody fix it. -- Czatuj, wyslij sms-y, sprawdz poczte Zainstaluj OnetKomunikatora [ http://ok.onet.pl/ ] |