If you are using Visual Studio, the problem is some kind of memory leak
having to do with the query object. I haven't narrowed it down, yet. I
hope I have some time to look into deeper.
Look at this thread for more info on it:
Has anyone else had time to look into this memory leak? I barely have
time to read these emails, these days. =)
BTW, Warren, you are doing a great job.
Alex Burton wrote:
> I have a simple logging application that needs to be able to run unattended and
> reliably for as long as possible.
> The memory that it uses is increasing as it runs.
> Here is an simplified example that reproduces the problem.
> int main()
> while (true)
> Connection c;
> Query q = c.query();
> q << "INSERT INTO table_name (field_1 , field_2) VALUES ( 1 , 2 ) ;";
> This memory usage of this program gradually rises over time, and has reached tens of
> It makes no difference if I move the connection out of the loop.
> I don't think that it is a memory 'leak' as leak detectors can't find any leaks.
> Is this normal ?