05-18-2010 12:33 PM
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.
05-20-2010 04:31 AM
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,