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