TransferEventArgs. It was apparently triggered by the following line in my code:
$session.PutFileToDirectory($fileName, $folder, $remove, $options)
[WinSCP.TransferEventArgs]$resultobject elsewhere, prepended it to the above code line, and voila! The problem disappeared.
Bothersome that I don't understand why such a seemingly innocent line of code would cause that kind of problem. Ah well…
When I transfer, extraneous output is written to the console, and is interfering with my progress bar. I can't figure out where this output is coming from. It looks like this, written for each file:
Side : Local Destination : /bib\w/wright.htm Length : 571 Touch : WinSCP.TouchEventArgs Chmod : Removal : FileName : C:\Users\John\Documents\tch\ssh\client\bib\w\wright.htm Error :