with the same standard SessionOptions configuration, I am getting the following
Error: System.OverflowException: Arithmetic operation resulted in an overflow.
at WinSCP.ConsoleCommStruct..ctor(Session session, SafeFileHandle fileMapping)
at WinSCP.Session.Open(SessionOptions sessionOptions)
at ConsoleApplication1.Program.Main(String args) in ...\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs
This basic attempt was made in a console application in VS 2012, targeting .NET 4 and using the latest dll and exe of WinSCP 5.0.7 beta.
Does anything obvious come to mind?