List:MySQL++« Previous MessageNext Message »
From:Bill K Date:June 22 2006 1:41am
Subject:Re: Query Object Memory Leak?
View as plain text  
Warren Young wrote:
> Bill K wrote:
>>
>> I am saying that the MS hotfix does not fix the problem I am having 
>> with the query object, like I thought it would.
>
> Okay, thanks for clearing that up.
>
>> MS hotfix fixed the memory leak in basic_iostream (used in fstream 
>> and stringstream, and others) - which I thought may have fixed the 
>> query object since it inherits from ostream. But no.
>
> Okay, but here's another data point for you: I just tried the test 
> program again, and when it crashes it's only using 5 MB.  It can't be 
> a memory leak.
>
> Here, it's crashing when the CRT dereferences a null pointer.  Why the 
> CRT is doing that is the mystery.
>

Crashes, eh? It doesn't crash for me. Adding an "if( !(i%1000) ){ 
std::cout << i << endl;  }" in the loop, I can see it fly through and 
finish all million loops, using over 80MB of memory at the end, 
according to Windows Task Manager.

I'll have a look at it more tomorrow.

Thanks again.

- Bill

Thread
Query Object Memory Leak?Bill K21 Jun
  • Re: Query Object Memory Leak?Warren Young21 Jun
    • Re: Query Object Memory Leak?Bill K21 Jun
      • Re: Query Object Memory Leak?Warren Young21 Jun
        • Re: Query Object Memory Leak?Bill K21 Jun
          • Re: Query Object Memory Leak?Warren Young21 Jun
            • Re: Query Object Memory Leak?Bill K22 Jun
              • RE: Query Object Memory Leak?Matt Dargavel22 Jun
                • Re: Query Object Memory Leak?Bill K22 Jun
                  • Re: Query Object Memory Leak?Jim Langston22 Jun
                • Re: Query Object Memory Leak?Warren Young23 Jun
              • Re: Query Object Memory Leak?Warren Young23 Jun
                • Re: Query Object Memory Leak?Warren Young23 Jun
                  • RE: Query Object Memory Leak?Matt Dargavel23 Jun