I have a question related to the setting of Multi-threaded Debug DLL (/MDd) and Multi-threaded Debug (/MTd). The difference between them is obvious: one is using dynamic library and the other is using static library. When I compile my program using /MDd, everything goes on very well. However, when I change the setting to /MTd and run the program, Visual Studio will trigger a breakpoint in the program with a pop-up message box. The message is as follows:
Windows has triggered a breakpoint in application.exe.
This may be due to a corruption of the heap, which indicates a bug in application.exe or any of the DLLs it has loaded.
This may also be due to the user pressing F12 while application.exe has focus.
The output window may have more diagnostic information.
I was wondering in this case what I can do next. Thanks!