Post a reply

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


Re: OverallProgress mostly 0 for PutFiles

Works for me.

Can you show us your code and session log file (Session.SessionLogPath)?

OverallProgress mostly 0 for PutFiles

I'm using a
ThreadPool.QueueUserWorkItem(new WaitCallback(DownloadFile), this );

Most of the time FileProgress moves from 0.0 to 1.0 but OverallProgress seems to be 0 most of the time for PutFiles method.

private void SessionFileTransferProgress(object sender, FileTransferProgressEventArgs e)

            // Print transfer progress
            OverallTransferProgress = e.OverallProgress * 100.0;
            Console.Write("\r{0} {1} ({2} / {3})",e.Side.ToString(), e.FileName, e.FileProgress, OverallTransferProgress);

I'm using WinSCP 5.7.5 NuGet.