Event Based Operations Problem - WeOnlyDo Discussion board

Event Based Operations Problem (wodFTPServer)

by Anyz, Tuesday, August 31, 2004, 08:45 (7414 days ago)

hi,

I am getting problems in dealing with event based operations of wodFTPDlx. My code looks like:

1- mySFTPObj.Connect 'in connected event i store errorcode in local var
2- mySFTPObj.GetStatus 'return code from local var

problem is right after Connect statement i try to get status , at that time component is performing handshake/authenticating etc so Connected event is not fired and local variable is not set. It returns false.

Same is the case for Operations like LisDir when you have to wait otherwise component busy error occured.

I think some delay is to be introduced between operations and getting their status. Is there any recommended solution to deal with this problem?

Thanks for your time.


Complete thread: