In my MFC application, I have a CParagraph class which has the following member:
CTake is a structure that has no pointers, just integers and booleans.
When CParagraph is destroyed, I am getting an error:
Book.exe has triggered a breakpoint
The thread 'Win32 Thread' (0x12e8) has exited with code 0 (0x0).
HEAP[Book.exe]: Invalid Address specified to RtlValidateHeap( 01170000, 016428F8 )
Windows has triggered a breakpoint in Book.exe.
This may be due to a corruption of the heap, which indicates a bug in Book.exe or any of the DLLs it has loaded.
This may also be due to the user pressing F12 while Book.exe has focus.
The output window may have more diagnostic information.
The call stack shows that the problem happened in the vector destructor, but I don't know what could cause it.