CodePudding user response:
Don't set a time when setting time==time to upload, in time to upload, time>CodePudding user response:
Possible mistakes in the process of the task to crash the process, recommended the try (catch {} {} to crawl errorsCodePudding user response:
Thank you for your answer, but I have try and catch in the program, so this may be little!CodePudding user response:
The timer is best not to make together with thread, easy to chaos,Threads need time is gettickcount became,
CodePudding user response:
Program created, setting up a BOOL, such as BOOL BTime=false;Then, the clock arrived after the BTime=true, performed BTime=false;
So we can solve without finish upload is executed a
Upload automatically stop, however, may also be a server side closed your upload, this problem, is to determine your problem or the problem of server
For example you can open an FTP program at the same time with your application, upload at the same time, see the FTP program, will also automatically interrupts