Original Post
ive writen a filehandler for loading file containig game data (maps, scripts, configs...who knows what else...) in ascii and binary using fstream.h after prototyping with the code i finally put everything in an class and made it working and everything wents just fine until the CloseFile(); is called, but the debugger shows that all code in there is succesfully executed and after that an big bad window shows saying "DEBUG ERROR Programm: ...Maps.exe DAMAGE after Block #52 at 0x...." if i press the Ignore button from this window the programm does its stuff as if nothing happend here is the code from CloseFile() void CFile::CloseFile() { if ((filemode & FILE_WRITE) != 0) file_out.close(); file_in.close(); filemode = FILE_NOTHING; pos = 0; } somebody know how to get rid of this evil error, already tried everything maybe its a problem of the debuger (cause "DEBUG ERROR...") from the IDE (im using vc++ 6.0) thx in advance 4 every good suggestion