includeh10 wrote:...anyway, it is bad design of CSocket.
Are you implying that the problem could not be in your code?
includeh10 wrote:Do you have any comments to avoid the exception?
Yes. Fix the code that is causing the exception. Now before you get your undies all in a bunch and whine that my suggestion is not helpful and ban me from commenting further, think about the question you've asked and if you really think you've provided enough information for us to be helpful.
includeh10 wrote:BTW: do raw socekt functions have the problem?
Have you tried using them to narrow the problem down?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons