Link to home
Start Free TrialLog in
Avatar of Moriah
Moriah

asked on

Microsoft Internet Transfer Control

Hi All, I need to ftp a file inside the program, so I am using Microsoft Internet Transfer Control. While trying to use getchunk method in statechanged event I am getting an error 35764 "Still executing last request". the code is very simple and I don't understand what is wrong. If anyone has a suggestion, please let me know.

ASKER CERTIFIED SOLUTION
Avatar of AtulGupta
AtulGupta

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bhat_santosh071200
bhat_santosh071200

The 'Execute' command works asynchronously. After a line which uses this command, you have to wait for the execute command to be fully executed.
This will be solution for your problem.
Note:
But, if you have used a ftp command like 'DIR' and result is empty directory/list, then state_changed event is not executed.So, stillexecuting property is always true. this will result in everlasting loop or if you are not checking for still executing property, you will get error 35764. Then you will have to use 'SIZE' ftp command and check for the size before executing the 'DIR' statement.
Rejecting bhat_santosh' comment, accepting AtulGupta's comment.