bonami Messages: 186 Registered: June 2007 Location: Beijing
Experienced Member
SOCKET problem solved. i did not initialize socketStatus. since it is enum type, i supposed class initialization would set it to 0 for me but it does not. thus relate() returns at the beginning.
but still, if i do not initialize socketStatus, and change its check from return; to throw ...; in relate(), program crashes instead of doing the exception procedure.