Home > Mobile >  QT connectToHost use too many lead to abnormal program exit
QT connectToHost use too many lead to abnormal program exit

Time:10-06

I worked in a multi-threaded download server, their writing single-threaded client and the server even, I had a baidu say it's probably because I called many times the connectToHost, so click connection program will be abnormal exit, but how to solve this problem? Because I now is in the port are not on,
And in the process of program debugging, avoid the repeated calls to this function, is very desperate now...

CodePudding user response:

refer to the original poster Woniu snail reply:
I was running after a multi-threaded download server, their writing single-threaded client and the server can't even, I had a baidu said it was probably because I called many times connectToHost, so click connection program will be abnormal exit, but how to solve this problem? Because I now is in the port are not on,
And in the process of program debugging, avoid the repeated calls to this function, is very desperate now...


Didn't release good resources, port has been accounted for,,,
  •  Tags:  
  • Qt
  • Related