Jump to content


Photo

GetFilesize Event fires not


  • Please log in to reply
2 replies to this topic

#1 Raimund

Raimund
  • Members
  • 14 posts

Posted 16 May 2006 - 07:55 AM

The GetFileSize Event fires not after the GetFileSize Command.
Any idea what's going on and how to fix this? :unsure:

// read Remote Filesize
try
{
	_ftp.GetFileSize(RemoteFilename);
}
catch (Exception e)
{
	ShowError(e.Message);
	return;
}
// The event is fired after the GetFileSize method completed.
private void OnGetFileSizeEvent(string Name)
{
	BeginInvoke(m_Form.m_DelegateFilesizeSession);
}

_ftp.OnGetFileSize += new sfFTPLib.IFTPConnectionEvents_OnGetFileSizeEventHandler(OnGetFileSizeEvent)
Regards,
Raimund

#2 mb

mb

    Developer

  • Administrators
  • 11521 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 16 May 2006 - 02:03 PM

You are right. The wrong event was fired. Fixed in the latest version:
http://www.smartfp.com/ftplib/download

Regards,
-Mat

#3 Raimund

Raimund
  • Members
  • 14 posts

Posted 19 May 2006 - 04:45 AM

You are right. The wrong event was fired. Fixed in the latest version:


Thanky you! Now works. :unsure:

Regards,
Raimund :rolleyes:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users