[omniORB] Memory Leak in Unmarshal (OmniOrb 4.1/VC7)

Dave Vaughan dave.vaughan@thales-is.com
Thu Feb 13 12:20:03 2003


Hi Duncan,
	Many Thanks for the help.
I have read the book and changed my parameters and my code now appears to be
leakproof
Best Regards
Dave Vaughan

On 12 February 2003 11:21 Duncan Grisby wrote
>You should not use the _out types. They are internals helpers that
>application code should never use directly.
>
>Also, you should not make pointers to _var types -- that defeats the
>point of them which is that they release whatever they are holding
>when they go out of scope. Your call should look something like
>
>  SQLStatement_var mysql = ...;
>  ResultSets_var resout;
>  UpdateCounts_var updatecount;
>  CorbaSQLWarnings_var corbawarnout;
>
>  mysql->execute(QueryTemp, resout, updatecount, corbawarnout);
>
>
>Get "Advanced CORBA Programming with C++" and read all the stuff about
>memory management.
>
>Cheers,
>
>Duncan.