Name:
Anonymous
2010-10-13 22:41
int i;
char **x = malloc(sizeof(char *) *600);
for(i=0;i<600;i++)
x[i] = malloc(sizeof(char) * 500);
//do some work
for(i=0;i<600;i++)
free(Counter[i]); //error
free(Counter);
what did i do wrong?
Name:
Anonymous
2010-10-13 23:31
>>3
HEAP[aids.exe]: Invalid address specified to RtlFreeHeap( 00470000, 00473E58 )
Windows has triggered a breakpoint in aids.exe.
This may be due to a corruption of the heap, which indicates a bug in aids.exe or any of the DLLs it has loaded.
@ free(x[i]); //i==0 triggers it
run time
and no, Counter has nothing to do with it. I just wrote down the wrong name when posting.