This project is read-only.

Strange reopening Ssh connection + Ports by devenv.exe

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

Hi,

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 10:15 AM
Edited Dec 20, 2012 at 10:16 AM

Got the answer:

http://stackoverflow.com/questions/13968905/code-is-running-when-debugger-stop