2. But sometimes shut down when the server is not off, also in LISTENING, this time I'll be there to open the program socket repeat mistake,
3. In my own computer test is not the fault of others computer shut out occasionally,
4. I have been in the FormDestroy () function and destructors are closed, but still not successful,
5. What is the cause of this? Because I exit in the right way? Exit is to call the Close () method,
6. I find TClientSocket also have such problems,
The following is a closed code:
If (ServerSocket1 - & gt; The Active)
{
ServerSocket1 - & gt; Active=false;
ServerSocket1 - & gt; Close ();
}
If (ClientSocket1 - & gt; The Active)
{
ClientSocket1 - & gt; Active=false;
ClientSocket1 - & gt; Close ();
}
CodePudding user response:
Active=false, and the Close, a snake,The Close method will be the Active set to false, the Open method is to Active set to true,
CodePudding user response:
Is, but I'm afraid it shut down is not successful, both tried, there will be not shut down the BUG,CodePudding user response: