LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Ftp InetFTPChangeDir returning Error -11

Hi,

 I am seeing a strange behaviour in FTP InetFTPChangeDir comand.While i am running my code in Debug mode its working fine.Buts as soon as i am converting it to exe or running _dbg file im am geeting Error -11 for InetFTPChangeDir.I am able to Login succussfully and also setting the mode to passive as i am running my application behind the firewall.

0 Kudos
Message 1 of 2
(3,163 Views)

Hi,

 

Generally such behaviour brings to my mind a timing error.

In debug mode, while single stepping, you add some delay between function calls.

 

But when the exe runs by itself there is possibly much less delay between those lines of code.

 

So I suggest adding plenty of delays between the functions, if you cannot point where is the delay needed exavtly.

After you get rid of the error, you can remove all but the required one.

 

Hope this helps, 

S. Eren BALCI
IMESTEK
0 Kudos
Message 2 of 2
(3,142 Views)