Newsgroups : Microsoft : microsoft.public.inetsdk.programming.wininet : 2006 Jun : ERROR_INTERNET_OPERATION_CANCELLED in multi-thread application
| Subject: | ERROR_INTERNET_OPERATION_CANCELLED in multi-thread application |
| Posted by: | "Sruli" (srul..@hotmail.com) |
| Date: | 27 Jun 2006 09:45:24 |
Hi,
I have a batch application that uploads data to a server. It runs with
no problem, but if it opens many threads to do multiple uploads
concurrently, some of the threads fail when calling
InternetCloseHandle(). The error is 12017 :
"The operation was canceled, usually because the handle on which the
request
was operating was closed before the operation completed".
Note: I have an ActiveX control with the same WinInet code that runs
under IE. It had the same problem when multiple controls ran
concurrently, but I fixed it by increasing the Internet connection
limit in the registry. Unfortunately this does not fix the problem for
the batch application.
Any ideas?
Thanks in advance
Sruli Ganor