Well as many already know theres a bug in the login and some days is very annoying it crashes, the debug dosen't help mush
but since we dont know what is the cause of this nor how to fix it im just making plublic what the debug has tell us.
just avoid to make post with non sense, any irrelevant post is going to be delete.
well first we have the common message from windows.
First-chance exception at 0x0044cee2 in login_server.exe: 0xC0000005: Access violation writing location 0x04e04000.
Unhandled exception at 0x0044cee2 in login_server.exe: 0xC0000005: Access violation writing location 0x04e04000.
First-chance exception at 0x0044cee2 in login_server.exe: 0xC0000005: Access violation writing location 0x04e04000.
Unhandled exception at 0x0044cee2 in login_server.exe: 0xC0000005: Access violation writing location 0x04e04000..
and doesn't tell us mush.
the next is what visual has tell running the login in debug.
-------------------------------------------------
CAll Stack
> login_server.exe!RleDecode(unsigned char * src=0x04be27c4, unsigned char * dest=0x04e04000, unsigned int src_size=10692) Line 6952 + 0x6 bytes C
login_server.exe!decompressShipPacket(st_orange * ship=0x04be0040, unsigned char * dest=0x04befa6c, unsigned char * src=0x04be0068) Line 7081 + 0x17 bytes C
login_server.exe!main(int argc=1, char * * argv=0x00393710) Line 6308 + 0x22 bytes C
login_server.exe!__tmainCRTStartup() Line 266 + 0x19 bytes C
login_server.exe!mainCRTStartup() Line 182 C
kernel32.dll!77e6f23b()
[Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]
---------------------------------------------------------
LOCAL
- src 0x04be27c4 "W¼ÞìöBÊd8~ÿÿœ%¾" unsigned char *
87 'W' unsigned char
- dest 0x04e04000 <Bad Ptr> unsigned char *
CXX0030: Error: expression cannot be evaluated
src_size 10692 unsigned int
src_end 79571504 unsigned int
prevChar 107 'k' unsigned char
currChar 107 'k' unsigned char
count 40219 unsigned short
---------------------------------------------
AUTO
count 40219 unsigned short
currChar 107 'k' unsigned char
- dest 0x04e04000 <Bad Ptr> unsigned char *
CXX0030: Error: expression cannot be evaluated
and the part of the code.
*(dest++) = currChar; <--------THIS IS THE LINE DEBUG IS SHOWING
void RleDecode(unsigned char *src, unsigned char *dest, unsigned src_size)
{
unsigned char currChar, prevChar; /* current and previous characters */
unsigned short count; /* number of characters in a run */
unsigned src_end;
src_end = (unsigned) src + src_size;
/* decode */
prevChar = 0xFF - *src; /* force next char to be different */
/* read input until there's nothing left */
while ((unsigned) src < src_end)
{
currChar = *(src++);
*(dest++) = currChar; <--------THIS IS THE LINE DEBUG IS SHOWING
/* check for run */
if (currChar == prevChar)
{
/* we have a run. write it out. */
count = *(unsigned short*) src;
src += 2;
while (count > 0)
{
*(dest++) = currChar;
count--;
}
prevChar = 0xFF - *src; /* force next char to be different */
}
else
{
/* no run */
prevChar = currChar;
}
}
}
/* expand a key (makes a rc4_key) */
if any one has a good idea please say so , at the moment no know has a clue on how to fix this.
thanks.
and the login code is clean with out modifications so don't start blaming any custom modification.