Posting many files in loop issue - WeOnlyDo Discussion board

Posting many files in loop issue (wodHttpDLX)

by Zeeshan Alam, Tuesday, October 09, 2007, 23:15 (6053 days ago)

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

by wodDamir, Tuesday, October 09, 2007, 23:46 (6053 days ago) @ Zeeshan Alam

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

by Zeeshan Alam, Wednesday, October 10, 2007, 15:28 (6052 days ago) @ wodDamir

Zeeshan,

Why don't you try using the component in Blocking mode?

Thanks this will solve the issue.

Zeeshan