Home > OS >  Windows did not respond
Windows did not respond

Time:03-19

Application due to query the database for a long time or perform other operations for a long time, the user will point screen with the mouse, the pending response will pop-up Windows, hope don't pop up this box, consistent program wait forever, until the seas run dry and the rocks crumble

CodePudding user response:

This is you write a program, or you are a pure users? If you write applications, may need to get this function as a separate thread to realize, in the main thread receives function request, throwing the function to the appropriate child thread, his idle for a variety of other processing, processing threads are to be given appropriate tip and schedule information. Needed, of course, must have the reentrant mutex mechanism, if it is purely a user, this may be the feeling, this dialog doesn't know can be retrieved by a general program and close it,

CodePudding user response:

Is needed, thank you

CodePudding user response:

This is a question of program design, should consider to optimize the SQL query, why such a long time, is a network problem or bad database design, etc. Or increase the connection timeout time value; Should give the user some hints when waiting for the other, if can't do anything for such a long time, who will be impatient,
  • Related