Re: KB 839136 is wrong -- bug not fixed in VC6SP6



On Mon, 24 Apr 2006 12:24:04 -0700, Adam923
<Adam923@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Take a look at Knowledge Base article 839136. It claims this issue was FIXed
in VC6 SP6, however running a simple test program shows that it is not fixed.

int main(int argc, char* argv[])
{
unsigned long counter = 0;
while(1) {
int* p = new int;
delete p;
if(++counter == 0xFFFFFFFF) {
printf("OK\n");
return 0;
}
if(counter % 10000000 == 0) printf ("%u\n", counter);

Since this invokes undefined behavior, it doesn't seem fair to blame
MS.

}
return 0;
}

This will break in the debugger after about four billion times through the
loop when using the debug DLL CRT. I don't mind if MS doesn't fix this bug
since the product is so old, but please don't post incorrect info the KB. It
has cost us a lot of time and money.



Remove del for email
.



Relevant Pages


Quantcast