I have this inside my constructor:
Code:ippFile = NULL; fileName = (char*) malloc(strlen(name)); strcpy(fileName,name);
And this in my destructor:
Code:free(fileName);
When that destructor is called I get the following message:
Code:Microsoft Visual C++ Debug Library -------------------------------------------- Debug Error! Program: xxxxxxx.exe DAMAGE: after Normal block (#41) at 0x003F0860 (Press Retry to debug the aplication)
Now. If I don't do that free, everything runs smoothly... What is going on?



LinkBack URL
About LinkBacks



