Menu

I had wrote a simple chat system

Hunter Liu
2002-05-03
2002-05-04
  • Hunter Liu

    Hunter Liu - 2002-05-03

    But it has some problem,when the client close the connection, some time the server will be crash.
    I don't know why,please check my code,and tell me the bug I had,thanks
    source code:
    http://hunter.gnuchina.org/mt_chat.tgz

    My linux box is slackware 8.0

     
    • Frediano Ziglio

      Frediano Ziglio - 2002-05-03

      I note a code like (user.cpp)
        delete this;
        m_bDisconnecting = true;

      This can be the problem. What version of cc++ do you use?

      freddy77

       
    • Hunter Liu

      Hunter Liu - 2002-05-04

      g++ -v
      Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/specs
      gcc version 2.95.3 20010315 (release)

      ok,I had removed that line,I think it will more
      stably now :)

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.