c# - How to make WinSCP .NET assembly perform faster? -
has come speed performance using winscp .net?
i try c# winscp example in http://winscp.net/eng/docs/library#csharp. note when starts up, takes 30 seconds reach first statement (the initialization of winscp.sessionoptions
).
anyone knows going on? how speed up?
the thing have write c++ program (be c++/cli or plain c++) automate sftp transfers may happen per minute, per x minute, per hour, or per day. speed concern me, transfers happen per minute. if there library can perform better, please let me know. thanks.
i figure out! sorry that. version mismatch. version of winscp.exe different winscpnet.dll (the assembly).
i use source code of latest version of winscp. use dotnet\winscpnet.csproj in source. add project c# example. compile assembly , c# example. example runs immediately, see message saying compiled assembly has version mismatch between dot net assembly , winscp.exe.
once make sure both (assembly , exe) same version (5.5.2), c# example runs (without startup delay).
[edit] actually delay happens in 5.5.1!
i play around version 5.5.1 , 5.5.2. use version 5.5.1 exe , dot net assembly c# example. when program starts up, there delay. switch version 5.5.2. when program starts up, runs immediately.
hope version information helps needs use winscp dot net assmebly.
Comments
Post a Comment