I tried the following:
Query(Connection *c ,bool te = true):
printf("Enter Query(connection * c,bool
success_ = true;
Ok what I see now is that when the applications stops
no leak occurs when using purify. However, the
application is still growing during runtime when each
query action is made. This worries me. It still looks
like its not freeing up the memory after the query has
completed only when the application is torn down.
Any insight would of course be appreciated.
--- Matt Dargavel <matt@stripped> wrote:
> Hi Gary,
> This sounds like the leak Alex and myself
> looked at a while ago
> (see thread at http://lists.mysql.com/plusplus/5767
> ). Warren
> implemented a patch for it (see thread at
> http://lists.mysql.com/plusplus/6012 ). I'm not
> sure it's been released
> yet, but it's available from svn.
> gary clark wrote:
> > Hello,
> > Not sure what is going on but I think I have found
> > memory leak when running on windows using the
> > tool from IBM.
> > I see Memory leak when calling the below code.
> > new(UINT)
> > *,bool)
> > Ok this is why the leak occurred. I was using the
> > below statement.
> > mysqlpp::Query query = con.query();
> > The query is being created every time which inturn
> > creates an ostream which results in a leak. The
> > object I now pass as a reference and then reset
> > blighter which avoids the leak since only
> > once.
> > Thanks,
> > Garyc
> MySQL++ Mailing List
> For list archives: http://lists.mysql.com/plusplus
> To unsubscribe: