P
prashantkhoje
hi ppl,
i am developing an C application in Microsoft visual C++ 6.0. i get
following error while running it in debug mode:
/* here's the error message */
program: my_application.exe
DAMAGE: after Block number (#41) at 0x002F51C0
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
the number in brackets varies every time i run the program.
the program is somewhat like this:
/* here's the code */
int main(void)
{
char *ptr=NULL;
..
..
..
ptr = (char*)calloc(ResReq.max_context_memory_use, sizeof(char));
// then i do my stuff here using memory from ptr, that works pretty
fine
// time to free the memory
free(ptr); /* HERE APPEARS THE ERROR
*/
return 0;
}
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
please let me know why the error occurs and most importantly how to get
rid of it.
thank you in advance.
prashant
i am developing an C application in Microsoft visual C++ 6.0. i get
following error while running it in debug mode:
/* here's the error message */
program: my_application.exe
DAMAGE: after Block number (#41) at 0x002F51C0
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
the number in brackets varies every time i run the program.
the program is somewhat like this:
/* here's the code */
int main(void)
{
char *ptr=NULL;
..
..
..
ptr = (char*)calloc(ResReq.max_context_memory_use, sizeof(char));
// then i do my stuff here using memory from ptr, that works pretty
fine
// time to free the memory
free(ptr); /* HERE APPEARS THE ERROR
return 0;
}
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
please let me know why the error occurs and most importantly how to get
rid of it.
thank you in advance.
prashant