[omniORB] Memory Leak in Unmarshal (OmniOrb 4.1/VC7)
Duncan Grisby
duncan@grisby.org
Mon Feb 17 12:40:01 2003
On Thursday 13 February, "Hautesserres, Thomas" wrote:
> > mysql->execute(QueryTemp, resout, updatecount, corbawarnout);
>
> Just a comment about Duncan's code: if the last three parameters are OUT
> parameters, shouldn't the execute() method be called as :
>
> mysql->execute(QueryTemp.in(), resout.out(), updatecount.out(),
> corbawarnout.out());
To be completely safe according to the C++ mapping, yes. In omniORB,
the plain _var types get it right on their own. The in(), out() and
inout() functions were added to accommodate people who weren't as
clever as Sai-Lai in implementing the _var mapping... :-)
Cheers,
Duncan.
--
-- Duncan Grisby --
-- duncan@grisby.org --
-- http://www.grisby.org --