Re: KB 839136 is wrong -- bug not fixed in VC6SP6
- From: Barry Schwarz <schwarzb@xxxxxxxxx>
- Date: Sun, 30 Apr 2006 10:13:43 -0700
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
.
- Follow-Ups:
- Re: KB 839136 is wrong -- bug not fixed in VC6SP6
- From: Igor Tandetnik
- Re: KB 839136 is wrong -- bug not fixed in VC6SP6
- Prev by Date: Re: DLL Base Address VTABLEs and COM
- Next by Date: Re: KB 839136 is wrong -- bug not fixed in VC6SP6
- Previous by thread: DLL Base Address VTABLEs and COM
- Next by thread: Re: KB 839136 is wrong -- bug not fixed in VC6SP6
- Index(es):
Relevant Pages
|