Strange reopening Ssh connection + Ports by devenv.exe

Dec 20, 2012 at 6:55 AM
Edited Dec 20, 2012 at 7:23 AM


in my program im connecting to a ssh server and forwarding two ports. When I'm debugging it with Visual Studio and run/stop the program first the connection will be established by my program and then the two ports are fowarded correctly. Then when I stop the program the connection and Ports are closed properly. Then after a time the connection and ports are connected automatically, but by the devenv.exe Process (Visual Studio). So when I want to start my program again i got a "Only one usage of each socket address" exception.

The main question here is why is Visual Studio doing that?

Regards Markus

Dec 20, 2012 at 9:15 AM
Edited Dec 20, 2012 at 9:16 AM

Got the answer: