I got the folowwing error
HEAP CORRUPTION DETECTED : after Normal block (#15840889)
CRT detected that the application wrote to memory after end of
What can I do ?
It is probable that at some point not long before the error was reported, your program did something silly, like store a value to an array element whose subscript was out of bounds. If you are not already running with /check:all, then do so.
There are C runtime (_CrtCheckMemory) and system API (HeapValidate) procedures that you can call to do a check of the state of the heap. If /check:all doesn't identify something, then you can put these checks in at strategic places in your code, and try and narrow down the statements that are causing the corruption. These functions are only applicable to debug builds, the appropriate one to use may depend on other settings such as the variety of runtime library that you are using. (I cannot remember details - if /check:all doesn't help you then post back and I'll see if I can find my sample code.)