Hi Luis,
One possible solution is to make sure all connections using winsock are closed, not just on the client form, but on the server form/app as well. If the form closing has an open connection call the oWinsockObject.OBJECT.Close() method, and on the Close Event of all winsock objects make sure you call the same method. You must call the Close() method on the OBJECT property otherwise foxpro will call the close event code, and not actually close the connection.
HTH,
Michael Henstock
AWS
A fish this fine deserves to be a fish nugget styled chunklet.
- Fry