Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

java the hut

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:37

>>4
[code]
First-chance exception at 0x7762dc9b in aids.exe: 0xC0000374: A heap has been corrupted.
Unhandled exception at 0x7762dc9b in aids.exe: 0xC0000374: A heap has been corrupted.
[code]

that worked till it got to about x[80-70] range then it error'd again

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List