Vs2005 SP1
XP SP3
When the program is not running during debug debugging, an error occurs: Windows has triggered a breakpoint in xxxxx.exe,
After you click "continue", you can debug it intermittently and run the program (when running, the value m_ftemp is clearly assigned to the constructor, however, when the program is closed, an error is reported.
Comment out the line of the newly added code to see what the problem is,
After finding the line of code, an error occurred while assigning values to a member variable m_ftemp in the class constructor, but according to the syntax, this should not be wrong.
Then rebuild solution will be ready.
Possible cause: This program is decompressed from the backup. If there is no rebuild solution, some other files of the project are still previous files due to environment changes, during debugging, I only press F7, which may be called "incremental compilation". Where I modify the code, I re-compile the code to generate a new file. However, I may still use the old file if there is no change, so it caused some strange errors.