More info:

This happens when the client receives my "SMSG_CharEnum" packet (wich contains the characters that are registerred to the account).

When the client receives an "Login OK" flag, it requests the CharEnum. and when it comes, it crashed the listening thread.

I made the client respond to a "Login OK" by sending a login packet insted, and it didnt crash.

Conclusion: The content of the CharEnum packet causes the error. I guess that somewhere in the CharEnum Packet, there is a byte(or bytes) that match the newline-command. wich causes the ReadLn command to flip.

Any ideas?

I manually deleted the accounts character, and it did not crash when receiving the packet.