my program is crashing on the second run on this line:
char* temp_directive = (char *)malloc(7);
with this error:
Critical error detected c0000374
Windows has triggered a breakpoint in Maman14.exe.
This may be due to a corruption of the heap, which indicates a bug in Maman14.exe or any of the DLLs it has loaded.
This may also be due to the user pressing F12 while Maman14.exe has focus.
I can’t understand why, it always happen on the second run.
I’ve tried to add free(temp_directive), but it didn’t help
anyone famailer with this issue?
http://blogs.msdn.com/b/jiangyue/archive/2010/03/16/windows-heap-overrun-monitoring.aspx
Sounds like you ran off the end of the array earlier in the code, and your memory management isn’t picking it up until you try to malloc that memory space.