As you noticed, when you turn off LineMode in your code, it will not re-enter OnDataAvailable. I'm not sure why the distinction at this point.
Abort call InternalAbort which do not clear the buffer where TCustomLineWSocket store received data to break it into lines. I suspect that TCustomLineWSocket should override InternalAbort to cleanup the buffer. This would probably avoid reentering the event handler.
-- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be