What do you mean by "normal winscp session"? WinSCP GUI? Or your code in a normal interactive Windows session?
Can you post a session log (not debug log) file from both your code and the working session?
yes, it works in a normal winscp session
Does the upload work in WinSCP GUI?
Does the upload work, if you run your code in a normal interactive Windows session?
I am getting bad results trying to put files with some C# code.
The file is started and stopped over and over again.
I am attaching a debug log, and the code.
What can I do to improve this performance?
I've seen similar posts, but I have not seen any clear answers.
Are there parameters that can be adjusted?