System.OverflowException in WinSCP.ConsoleCommStruct..ctor
Following the C# example given at https://winscp.net/eng/docs/library#csharp
with the same standard SessionOptions configuration, I am getting the following
Error: System.OverflowException: Arithmetic operation resulted in an overflow.
at System.IntPtr.ToInt32()
at WinSCP.ConsoleCommStruct..ctor(Session session, SafeFileHandle fileMapping)
at WinSCP.ExeSessionProcess.AcquireCommStruct()
at WinSCP.ExeSessionProcess.InitializeConsole()
at WinSCP.ExeSessionProcess.Start()
at WinSCP.Session.Open(SessionOptions sessionOptions)
at ConsoleApplication1.Program.Main(String[] args) in ...\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs
:line 28
on session.Open(sessionOptions);
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?
with the same standard SessionOptions configuration, I am getting the following
Error: System.OverflowException: Arithmetic operation resulted in an overflow.
at System.IntPtr.ToInt32()
at WinSCP.ConsoleCommStruct..ctor(Session session, SafeFileHandle fileMapping)
at WinSCP.ExeSessionProcess.AcquireCommStruct()
at WinSCP.ExeSessionProcess.InitializeConsole()
at WinSCP.ExeSessionProcess.Start()
at WinSCP.Session.Open(SessionOptions sessionOptions)
at ConsoleApplication1.Program.Main(String[] args) in ...\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs
:line 28
on session.Open(sessionOptions);
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?