Posted 17 July 2007 - 11:15 PM
I'm currently developing a VB6 util that creates an array of FTPConnectionSTA objects, all in Async = true.
The class works liks this:
Init: Create FTPConnectionSTA object (with all info needed)
OnConnect(): Checks the lasterror, call ChangeDir
OnChangeDir: Checks the last error, calls ReadDirectory()
OnReadDirectory(): checks the last error, if ok set bDlOK = True
Now I know that it is a big no, no to call functions in the events, but it did work.
The reason for why I said; did is this: The version 1.5.7 (that I used earlier) worked with the approced above. But failed on a inherited error on the sfFTPLib.FTPFXP object. Therefore I wanted to upgrade, so I downloaded the v22.214.171.124.
Now the sfFTPLib.FTPFXP object error is gone. But now the Busy flag is always set to True in all events. Meaning that I haven't got a method or function that that I can act on, without user interaction. Every command fail with ftpErrorBusy error.
I guess that this is a quick "hack", but I've done this with many other objects. The applications works, because I carfullly checks the feedback before calling new functions, avoiding deadlocks.
Any suggestions on how to accive this in VB6 is appriciated, cheers
Posted 18 July 2007 - 02:11 PM
I'm sorry but your approach is wrong. Do not call any further functions in the events.
Posted 18 July 2007 - 02:16 PM
The only way the Async = true would be usefull in VB6 is to have an extra timer to check the status of each connection That approach is even more lame, so what I read between the lines; SmartFTP library does not support multiple connections in VB6.
Posted 18 July 2007 - 02:19 PM
Posted 18 July 2007 - 03:03 PM
Edit: Thnx for the help...
Suggestion; Create a shareware/freeware license to even spread your object more. At current prices it is pointed at the enterprise market. It is so good it should be used everywhere!
Edited by large, 18 July 2007 - 03:05 PM.
Posted 19 July 2007 - 09:09 AM
Now with the new IPC:// handling in .NET 2.0, I can easly create a webinterface for the FTP client running in the back. This will be great!
Just an advice:
I would sincerly buy a license of this library if the price was right; for a shareware / freeware developer.
I've been using several other libraries that have different price-calculations for their product for example: http://www.rocketdiv...arburn_sdk.html
Edit: I even got a discount for a donate/freeware from the guys at Starburn, that is what I call service!
Edited by large, 19 July 2007 - 09:10 AM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users