What are the typical causes that might make a console application hang after the return statement? Below are the last two statements:
cout << "\n lost connection with server, exiting";
The cout statement gets printed and it almost like the return statement never gets executed.
I am running this in DEBUG configuration in RADstudio.