Raimund
The GetFileSize Event fires not after the GetFileSize Command.
Any idea what's going on and how to fix this?
Regards,
Raimund
Any idea what's going on and how to fix this?
// 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)
Raimund