[fpc-pascal] Re: does disconnected tLSocket auto destroy in lnet

ZHANG Dao-yuan 1123monkey at gmail.com
Wed Apr 25 15:40:04 CEST 2012


On 04/24/2012 05:01 PM, ZHANG Dao-yuan wrote:
> I'm using tLTcp with tLEventer. I've set tLTcp.eventer to the associated tLEvent object and call tLEvent.callAction to wait for new events. After a socket disconnected, OnDisconnect gets called shipped with an aSocket:tLSocket parameter.
> Should I call aSocket.destroy explicitly to prevent the disconnected aSocket from leaking the memory?

Ok, the problem is resolved. We don't worry about it since thess memory is handled by Lnet.



More information about the fpc-pascal mailing list