ol muser
asked on
console application hanging
What are the typical causes that might make a console application hang after the return statement? Below are the last two statements:
I am running this in DEBUG configuration in RADstudio.
cout << "\n lost connection with server, exiting";
return 0;
The cout statement gets printed and it almost like the return statement never gets executed.I am running this in DEBUG configuration in RADstudio.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Did you already do step-by-step execution?
What does the call stack show after execution of "return 0;"?
PS: At least and endl should be put at the end of cout, if not flush as a good coding practice. Though I don't see how it's connected to the problem.
What does the call stack show after execution of "return 0;"?
PS: At least and endl should be put at the end of cout, if not flush as a good coding practice. Though I don't see how it's connected to the problem.
ASKER