Home > Software engineering > Very strange, why the program appears after the long running "insufficient system resources, un
Very strange, why the program appears after the long running "insufficient system resources, un
Time:10-01
A VC program, the function is continuously to send and receive a USB device command, a long time after the operation, will appear: 1 PC into a large font of that kind of screen display, 2 open at this time, such as online neighbors, task manager, the device manager, etc., will appear the pop-up dialog "insufficient system resources, was unable to complete the requested service"; During the program is running, since task management: look, there is no exception, memory, handles, process is stable now, and computer memory use and found no abnormal; I use a bound check check code, also found no special leak or something! You have met? Or is there any screening ideas? thank you
CodePudding user response:
Check whether specific handle after being used, such as: network communication SOCKET handle, handle to a GDI growing... Such loss of resources caused by And your VC program is written by yourself, have a source? If you have the source code, check if there is any abnormal situation when sending and receiving data processing, such as abnormal data block, properly handle packet data parsing process?
CodePudding user response:
Task manager in a column is "gdi objects", see if it is become large
CodePudding user response:
Task manager check the memory and GDI handle without exception