[Lesson 1] Heap Corruption [Solved]
I've been trying to work through the NeHe tutorials, but I have been having a problem while running the tutorial 1 code in debug mode.
On my call to DestroyWindow after exiting from the window, I receive a heap corruption error:
"Windows has triggered a breakpoint in lesson1.exe.
This may be due to a corruption of the heap, which indicates a bug in lesson1.exe or any of the DLLs it has loaded.
This may also be due to the user pressing F12 while lesson1.exe has focus.
The output window may have more diagnostic information."
The output window yields the following information:
"HEAP[lesson1.exe]: HEAP: Free Heap block 1f1478 modified at 1f15f8 after it was freed"
This seems to happen in other applications as well when I call the DestroyWindow method. If anyone could help I would be extremely grateful.
Note:
Using Visual Studio C++ 2008
In order to compile I removed "#include "glaux.h" and "glaux.lib," from the source and project file respectively.
[Edited by - klee1 on July 28, 2009 7:18:52 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement