In debug mode, if I malloc something, open and close a file, and then try to free the memory of the previous malloc, it gives me a debug assertation error saying that "damage after block..." I realize that I could run it in release mode or just not free the memory, but I want to know how to fix this. What could be causing this and how could I fix it?

Thanks.

Dave2001,
[email protected]