llaffer
10-13-2014, 09:23 PM
I found a small issue that I was trying to go through the source code to try to figure out how to fix, but I'm not very versed in Visual Studio and Windows programming.
The problem is: If I exit the server by doing a right-click on the bottom bar and choose "Close Window", the program ends, but the listening port is not freed, so the second time I try to run the server it fails. I have to reboot to free it.
If I click the "Exit" button, or click the red "X" in the upper-right corner, it gets freed up just fine.
I imagine that I just have to find the right place in the code that gets executed when I choose the "Close Window" and throw in a:
netServer.closeListenerSocket(); in the right place to free up the port before the program ends, but I've not been able to find it.
Any ideas where I might be able to look?
Thanks.
The problem is: If I exit the server by doing a right-click on the bottom bar and choose "Close Window", the program ends, but the listening port is not freed, so the second time I try to run the server it fails. I have to reboot to free it.
If I click the "Exit" button, or click the red "X" in the upper-right corner, it gets freed up just fine.
I imagine that I just have to find the right place in the code that gets executed when I choose the "Close Window" and throw in a:
netServer.closeListenerSocket(); in the right place to free up the port before the program ends, but I've not been able to find it.
Any ideas where I might be able to look?
Thanks.