Can Anyone Help Me Debugging An Error?

All helbreath developer topics and releases
Post Reply
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Hello everyone,

I'm posting cause mostly need some help debugging a copy of 2.24b Sources that seems to crash after a few hours.

Last time it crashed gave some error about "memory could not be read... 0x0000000C" and I debugged it...here's information I could get...

It toke me this function in XSocket.cpp
int XSocket::iSendMsg(char * cData, DWORD dwSize, char cKey)
{
WORD * wp;
int    i, iRet;

if (dwSize > m_dwBufferSize) return DEF_XSOCKEVENT_MSGSIZETOOLARGE; // Here's where the debug redirct me to

if (m_cType != DEF_XSOCK_NORMALSOCK) return DEF_XSOCKEVENT_SOCKETMISMATCH;
if (m_cType == NULL) return DEF_XSOCKEVENT_NOTINITIALIZED;

m_pSndBuffer[0] = cKey;

wp  = (WORD *)(m_pSndBuffer + 1);
*wp = dwSize + 3;

memcpy((char *)(m_pSndBuffer + 3), cData, dwSize);
if (cKey != NULL) {//Encryption
  for (i = 0; i < dwSize; i++) {
  m_pSndBuffer[3+i] += (i ^ cKey);
  m_pSndBuffer[3+i]  = m_pSndBuffer[3+i] ^ (cKey ^ (dwSize - i));
  }
}

iRet = _iSend(m_pSndBuffer, dwSize + 3, TRUE);

if (iRet < 0) return iRet;
else return (iRet - 3);
}
Here's some information that I could get too...
cData 0x0012ee68
-48

cKey 0 ''
dwSize 16
i 1
iRet 1240656

this 0x00000004
  __vfptr  CXX0030: Error: expression cannot be evaluated
  mWSAErr  CXX0030: Error: expression cannot be evaluated
  m_bIsAvailable  CXX0030: Error: expression cannot be evaluated
  m_cType  CXX0030: Error: expression cannot be evaluated
  m_pRcvBuffer  CXX0030: Error: expression cannot be evaluated
  m_pSndBuffer  CXX0030: Error: expression cannot be evaluated
  m_dwBufferSize  CXX0030: Error: expression cannot be evaluated
  m_Sock  CXX0030: Error: expression cannot be evaluated
  m_cStatus  CXX0030: Error: expression cannot be evaluated
  m_dwReadSize  CXX0030: Error: expression cannot be evaluated
  m_dwTotlaReadSize  CXX0030: Error: expression cannot be evaluated

  m_pAddr 0x00000030 ""
    [1]  CXX0030: Error: expression cannot be evaluated
    [2]  CXX0030: Error: expression cannot be evaluated
    [3]  CXX0030: Error: expression cannot be evaluated
    [4]  CXX0030: Error: expression cannot be evaluated
    [5]  CXX0030: Error: expression cannot be evaluated
    [6]  CXX0030: Error: expression cannot be evaluated
    [7]  CXX0030: Error: expression cannot be evaluated
    [8]  CXX0030: Error: expression cannot be evaluated
    [9]  CXX0030: Error: expression cannot be evaluated
    [10]  CXX0030: Error: expression cannot be evaluated
    [11]  CXX0030: Error: expression cannot be evaluated
    [12]  CXX0030: Error: expression cannot be evaluated
    [13]  CXX0030: Error: expression cannot be evaluated
    [14]  CXX0030: Error: expression cannot be evaluated
    [15]  CXX0030: Error: expression cannot be evaluated
    [16]  CXX0030: Error: expression cannot be evaluated
    [17]  CXX0030: Error: expression cannot be evaluated
    [18]  CXX0030: Error: expression cannot be evaluated
    [19]  CXX0030: Error: expression cannot be evaluated
    [20]  CXX0030: Error: expression cannot be evaluated
    [21]  CXX0030: Error: expression cannot be evaluated
    [22]  CXX0030: Error: expression cannot be evaluated
    [23]  CXX0030: Error: expression cannot be evaluated
    [24]  CXX0030: Error: expression cannot be evaluated
    [25]  CXX0030: Error: expression cannot be evaluated
    [26]  CXX0030: Error: expression cannot be evaluated
    [27]  CXX0030: Error: expression cannot be evaluated
    [28]  CXX0030: Error: expression cannot be evaluated
    [29]  CXX0030: Error: expression cannot be evaluated

  m_iPortNum  CXX0030: Error: expression cannot be evaluated
  m_pUnsentDataList 0x00000054
    [1]  CXX0030: Error: expression cannot be evaluated
    [2]  CXX0030: Error: expression cannot be evaluated
    [3]  CXX0030: Error: expression cannot be evaluated
    [4]  CXX0030: Error: expression cannot be evaluated
    [5]  CXX0030: Error: expression cannot be evaluated
    [6]  CXX0030: Error: expression cannot be evaluated
    [7]  CXX0030: Error: expression cannot be evaluated
    [8]  CXX0030: Error: expression cannot be evaluated
    [9]  CXX0030: Error: expression cannot be evaluated
    [10]  CXX0030: Error: expression cannot be evaluated
    [11]  CXX0030: Error: expression cannot be evaluated
    [12]  CXX0030: Error: expression cannot be evaluated
    [13]  CXX0030: Error: expression cannot be evaluated
    [14]  CXX0030: Error: expression cannot be evaluated
    [15]  CXX0030: Error: expression cannot be evaluated
    [16]  CXX0030: Error: expression cannot be evaluated
    [17]  CXX0030: Error: expression cannot be evaluated
    [18]  CXX0030: Error: expression cannot be evaluated
    [19]  CXX0030: Error: expression cannot be evaluated
    [20]  CXX0030: Error: expression cannot be evaluated
    [21]  CXX0030: Error: expression cannot be evaluated
    [22]  CXX0030: Error: expression cannot be evaluated
    [23]  CXX0030: Error: expression cannot be evaluated
    [24]  CXX0030: Error: expression cannot be evaluated
    [25]  CXX0030: Error: expression cannot be evaluated
    [26]  CXX0030: Error: expression cannot be evaluated
    [27]  CXX0030: Error: expression cannot be evaluated
    [28]  CXX0030: Error: expression cannot be evaluated
    [29]  CXX0030: Error: expression cannot be evaluated
    And keep going till [299]

  m_iUnsentDataSize 0x00000504
  m_sHead  CXX0030: Error: expression cannot be evaluated
  m_sTail  CXX0030: Error: expression cannot be evaluated
  m_uiMsg  CXX0030: Error: expression cannot be evaluated
  m_hWnd  CXX0017: Error: symbol "" not found
  m_iBlockLimit  CXX0030: Error: expression cannot be evaluated

wp  0x00000000
CXX0030: Error: expression cannot be evaluated
Here's the HGserver.exe - <a href='http://hb-celestial.be/HGServer.rar' target='_blank'>Download</a>
Here's the HGServer.opt - <a href='http://hb-celestial.be/HGserver.opt' target='_blank'>Download</a>

Any help will be appreciated...since I'm a bit loss here.
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
snoopy81
Loyal fan
Posts: 338
Joined: Mon Jul 12, 2004 7:13 pm

Post by snoopy81 »

I had this kind of error when a pointer pointed to a wrong object.
And the seaminlly related debug function were absolutelly unrelated.

I had too this kind of error when some object overflown.
(calling ellement n°5 of a table of 3elelments.)
_\_ _<br> / , \__/ . \ Admin of Equilibrium Project<br> II\ \___ . O<br> III \_/ \ _ / <a href='http://www.equiprojet.com' target='_blank'>http://www.equiprojet.com</a><br> II I¯I
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

snoopy81 wrote: I had this kind of error when a pointer pointed to a wrong object.
And the seaminlly related debug function were absolutelly unrelated.

I had too this kind of error when some object overflown.
(calling ellement n°5 of a table of 3elelments.)
Thanks for the reply snoopy...
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
Post Reply