C++ Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 3mice
    New Member
    • Apr 2008
    • 2

    C++ Error

    I have a game server.
    Im not running my server in debug mode. but it seems like whenever too many people log into my server it crashes. i get some microsoft library c++ error 242.
    something about 'iter' -.-

    This is the Message i got:

    Debug Assertion Failed!

    Program: ...ts and Settings\Owner\ Desktop\Run Server\MapleSto ryServer.exe
    File: c:\program files\microsoft visual studio 9.0\vc\include\ list
    Line:242

    Expression: list iterator not incrementable


    : I went to that line of that file and this was in that section...
    #if _HAS_ITERATOR_D EBUGGING
    if (this->_Mycont == 0
    || _Ptr == 0
    || _Ptr == ((_Myt *)this->_Mycont)->_Myhead)
    {
    _DEBUG_ERROR("l ist iterator not incrementable") ; // <-- This is line 242...
    _SCL_SECURE_TRA ITS_OUT_OF_RANG E;
    }

    Can someone help me with whats going on?
  • gpraghuram
    Recognized Expert Top Contributor
    • Mar 2007
    • 1275

    #2
    Originally posted by 3mice
    I have a game server.
    Im not running my server in debug mode. but it seems like whenever too many people log into my server it crashes. i get some microsoft library c++ error 242.
    something about 'iter' -.-

    This is the Message i got:

    Debug Assertion Failed!

    Program: ...ts and Settings\Owner\ Desktop\Run Server\MapleSto ryServer.exe
    File: c:\program files\microsoft visual studio 9.0\vc\include\ list
    Line:242

    Expression: list iterator not incrementable


    : I went to that line of that file and this was in that section...
    #if _HAS_ITERATOR_D EBUGGING
    if (this->_Mycont == 0
    || _Ptr == 0
    || _Ptr == ((_Myt *)this->_Mycont)->_Myhead)
    {
    _DEBUG_ERROR("l ist iterator not incrementable") ; // <-- This is line 242...
    _SCL_SECURE_TRA ITS_OUT_OF_RANG E;
    }

    Can someone help me with whats going on?
    Somewhere the debug is enabled otherwise u wont be getting the error in assert.
    Can you preprocess the file and see whether the debug is enabled?

    Raghuram

    Comment

    • 3mice
      New Member
      • Apr 2008
      • 2

      #3
      Originally posted by gpraghuram
      Somewhere the debug is enabled otherwise u wont be getting the error in assert.
      Can you preprocess the file and see whether the debug is enabled?

      Raghuram
      What do you mean by preprocess?

      Comment

      • oler1s
        Recognized Expert Contributor
        • Aug 2007
        • 671

        #4
        This is a programming forum. If you want to figure out how to run your game server properly, ask on an appropriate forum with people who run the game server too (or play the game).

        Comment

        • gpraghuram
          Recognized Expert Top Contributor
          • Mar 2007
          • 1275

          #5
          Originally posted by 3mice
          What do you mean by preprocess?
          preprocess is a step before compiliation of the program done by the compiler.
          If u are using microsoft compiler then try to use cl -E or cl -P(i am not very sure)

          raghuram

          Comment

          • weaknessforcats
            Recognized Expert Expert
            • Mar 2007
            • 9214

            #6
            You might check your list iterators. One of them may be null and you are trying top increment it, or, you are trying to increment an interator that has not been initialized, or trying to increment an iterator that has been deleted.

            Comment

            Working...