Exception on connect - WeOnlyDo Discussion board

Exception on connect (General questions)

by carl, Tuesday, October 11, 2005, 12:53 (6982 days ago)

Hi,

I get an exception when I call the connect method. The blocking property is set to true. When blocking is deactivated the exception does not arise.

This is the code:

m_Ftp.put_Blocking(TRUE);
m_Ftp.put_Hostname(host);
m_Ftp.put_Login(user);
m_Ftp.put_Password(passwd);
m_Ftp.put_Protocol(PROTOCOL_FTP);

VARIANT var;
var.vt = VT_ERROR;
m_Ftp.Connect(var,var,var);


The exception that arise just after calling Connect is the following:

Unhandled exception at 0x7c81eb33 in ScriptFTP.exe: Microsoft C++ exception: COleDispatchException @ 0x010bf598.


Complete thread: