Click here to Skip to main content
15,893,564 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I try the C# example in WinSCP .NET Assembly[^]. I find out it takes about 30 seconds before the first statement.

I comment out everything inside the Main() function. I put back a WriteLine('Done') in. Even with the using WinSCP statement, the program returns immediately.

I then uncomment the initialization of SessionOptions() object. The program returns after 30 seconds or so.

Why is that? Can the waiting time be reduced?

I have already asked the WinSCP forum, but no response yet.
Posted
Updated 23-Mar-14 15:08pm
v2
Comments
Richard MacCutchan 21-Mar-14 5:12am    
Try asking at the WinSCP forum.
[no name] 23-Mar-14 21:41pm    
Why are you expecting everything to happen instantaneously? How long does it take google earth to load? Why not in 1 second? Comment out SessionOptions() and its quick! You're surprised? Have a look at what it does. Could possibly be firewall or antivirus but likely not. You probably need to look into it yourself a bit more. You have the source. Find out where it is taking time and see if you can live with it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900