Home > Software engineering >  MFC "start but not error budgeting" did not respond, but detection mistake is normal
MFC "start but not error budgeting" did not respond, but detection mistake is normal

Time:10-04

I built a simple MFC dialog box application, after pressing a Button to perform an infinite circle back
Every five seconds will open the specified text file to read (file) at any time, on the basis of inside information to perform an action
To generate the image file, and then on the dialog box window to print out some information, performs the removal of this text file,
(that is, the back ring will always Listen to see if there is similar this text file)

Question, run in fault detection mode, the dialog box window shows information all have no problem,
But running under "start but no error budgeting", the dialog box window shows will be unable to update, and will show "no response"
But not even when you are in show no response Windows update, expected the program is still carried out smoothly to generate
After image file deleted text file, smooth functioning,


What is likely to be out of the question?
Repeat, USES the error budgeting model gradually run Windows normally displayed information, then I is to use Visual Studio 2013,

People of god, please feel free to advice! Thank you very much!

CodePudding user response:

You can simply add some log information or directly MessageBox output and see some information, from the source to find, see first read documents if there is something wrong? The data is correct?

CodePudding user response:

It is recommended to use a timer or thread, don't block the message loop
  • Related