I wrote TCP/ IP engine using Active objects in a similar way as it was done in SDK example Echo Engine. Now, sometimes when using WriteSocket I get ""ESOCK Panic 14"". What can be the reason for this?
It can result from a too short send buffer. I was experiencing similar problems when sending large file across TCP/IP. I solved the problem by extending the buffer as follows. (Hardcoding the buffer to a big size is not maybe the optimal solution but if works...):
// Set Send Buffer
err = iSocket.SetOpt(KSOSendBuf,KSOLSocket,100000);