login about faq

I have a program that uses chilkatftp2 to upload files to an ftp server. When i call the program in vb6 using Shell the program hangs up for 10 sec or so and then seems to fail to connect , the hangup seems to happen at anytime the chilkatftp2 object is being referenced. It works fine if you just run the EXE normally, and seems to work fine on XP 32bit when i use the Shell command, but on Win7 64bit it doesn't seem to work. Anyone have any ideas of whats going on?

asked Jul 31 '12 at 11:05

dmak's gravatar image


To get more information, examine the contents of the ftp2.LastErrorText property after the method call that fails or behaves unexpectedly.


answered Jul 31 '12 at 16:25

chilkat's gravatar image

chilkat ♦♦

The message i am getting is socket is not ready for writing Connect function failed SocketError: WSAEWOULDBLOCK The socket would block For more information see http://www.chilkatsoft.com/p/p_172.asp ConnectFailReason: 7 Failed to connect to ftp server

(Jul 31 '12 at 17:50) dmak

This problem has nothing to do with the fact that it's on a 64-bit computer. It's a network connectivity problem. Something is blocking the connection. Also, to give a better response, I would need to see the full contents of the LastErrorText. In any case, the answer is the same -- something is blocking the connection, or there is nothing listening at that remote host:port. It's not a problem with the Chilkat component, and it has nothing to do with the shell, the version of the Windows OS, or the fact that it's 64-bit.

(Jul 31 '12 at 18:59) chilkat ♦♦

As i said in my initial post, it works fine if i just double click on it, it connects to the server without any issues. Also doing it through the Shell command in windows XP 32 bit works fine as well. It seems like some kind of issue related to using the the chilkatftp2 with Shell command and 64bit or just windows7 itself as i was only able to test this on Win XP 32bit and Windows7 64 bit.

(Aug 01 '12 at 10:20) dmak

I agree with chilkat that it is not likely to be a 64-bit problem. It sounds to me like either a UAC issue, or a firewall issue - when being shelled on the Win7 system, is the process running under a different user account? Does your code work if you run it under an Administrator account? Or maybe your firewall is blocking the call when run under shell.

Two things - Can you post your VB6 code where the call fails, and can you post the results of ftp2.LastErrorText?

(Aug 02 '12 at 08:19) jpbro ♦

Looks like the Norton Firewall was blocking it when it was run under the Shell command which is odd as I never had Norton give me a problem before. I guess I'll need to mess around with the firewall settings. Thanks for the info.

(Aug 02 '12 at 12:22) dmak
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jul 31 '12 at 11:05

Seen: 1,860 times

Last updated: Aug 02 '12 at 12:22

powered by OSQA