I'am have exception in this code:

Qt Code:
  1. void CSSocket::incomingData()
  2. {
  3.  
  4. char szData[4097];
  5.  
  6. qint16 nRead = this->read(szData, 4096);
  7.  
  8. if(nRead == 0)
  9. {
  10. this->disconnectFromHost(); // <-------- Exception !
  11. this->close();
  12. return;
  13. }
  14. .....
  15. .....
  16. .....
  17. }
To copy to clipboard, switch view to plain text mode 

why ???