cannot download in blocking mode (General questions)
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
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
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
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
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
Now it works? Cool! Don't worry about wasting our time - we're here to help!
Regards.