cannot download in blocking mode - WeOnlyDo Discussion board

cannot download in blocking mode (General questions)

by guest, Friday, October 29, 2004, 20:11 (7120 days ago)

When using wodsftp activex from delphi 7,
we cannot download from the server in blocking mode.
Upload always works.
There are no exception, error results, or whatever.
It simply hangs. No events are fired during download.

Re: cannot download in blocking mode

by wodSupport, Friday, October 29, 2004, 20:46 (7120 days ago) @ guest

Can you send us your EXE and your source for this? I would need to duplicate this error, I cannot be sure how this can happen. Do you trap errors?

BTW does non-blocking mode work?

Kreso

Re: cannot download in blocking mode

by guest, Sunday, October 31, 2004, 16:29 (7119 days ago) @ wodSupport

Non blocking works.
Do you mean trapping exceptions ? sample:
try
wodsftp1.blalba
except
//do nothing
end ?
No we dont trap exceptions, because we need any
error feedbacks. No exceptions are generated, simply
it will never pass the getfile command. And no event handlers are fired. Not even progress, nothing.

Did you ever try this in delphi 7 ? I asked another developer
to download in blocking mode, he also had the same problem. Actually he pointed that setting non-blocking mode solves the problem.


Re: cannot download in blocking mode

by wodSupport, Sunday, October 31, 2004, 23:17 (7118 days ago) @ guest

I have installed D7, imported wodSFTP ActiveX, put it on the form and tried this code: [code] wodSFTP1.Hostname := 'xyz.weonlydo.com';
wodSFTP1.Login := 'kreso';
wodSFTP1.Password := 'xxx';
wodSFTP1.Blocking := true;
wodSFTP1.Connect();
wodSFTP1.GetFile('c:\', '/bin/bash');
wodSFTP1.Disconnect;[/code]
I have run it, and then checked C: root folder - 'bash' file was there. So, this works for me. Can you try above code and tell me how you use it so it fails?

Thanks,
Kreso

Re: cannot download in blocking mode

by guest, Monday, November 01, 2004, 22:19 (7117 days ago) @ wodSupport

The soultion was :
1. deleting the component
2. unistalling the package
3. reinstalling the activex control
4. putting the component back
5. rewiring the event handlers.

The component now works fine. Nice job.
Sorry for wasting your time.

Re: cannot download in blocking mode

by wodSupport, Monday, November 01, 2004, 23:10 (7117 days ago) @ guest

Now it works? Cool! Don't worry about wasting our time - we're here to help!

Regards.