Posting many files in loop issue (wodHttpDLX)
Hello,
top:
wodHttp1.url = validurl.com/valid.php
wodHttp1.Request.FormUpload.Add Username , ssUsername
wodHttp1.Request.FormUpload.AddFile file , sFile
wodHttp1.Post
Do
DoEvents
Loop Until wodHttp1.State <> StateNotConnected
sFile = <next file>
Go To top
Problem is in the Do... Loop, it causes the program to take like 50 + CPU, any suggestion?
Thanks,
Zeeshan Alam
Re: Posting many files in loop issue
Zeeshan,
Why don't you try using the component in Blocking mode?
In that case you wouldn't need the Do...Loop statement. In this scenario this occurs since the loop doesn't really do anything, but taking up procesor.
When you use Blocking mode, we will ensure that each line of the code (wodHttpDLX method) is executed, before continuing to the next one. In that case you can issue multiple consecutive Post Calls one after another.
Can you try that?
Regards,
Damba
Re: Posting many files in loop issue
Zeeshan,
Why don't you try using the component in Blocking mode?
Thanks this will solve the issue.
Zeeshan