Re: [twsocket] Memory leak in ICS Client socket
I am using TSSLWSocket and I would like to know why I get memory leak error while using the following at the “OnFormCreate”, RecStream := TMemoryStream.Create; Any ideas about what am I doin wrong? At first, this is not related to ICS: If you create a memory stream or any other object, then you must destroy it at some later point calling his Free method or preferably using FreeAndNil(RecStream). -- 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
Re: [twsocket] Memory leak in ICS Client socket
Hi RecStream := TMemoryStream.Create; If you have a memory leak in this code fragment then you probably forgot to free the stream. -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be http://www.expertsoftware.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
Re: [twsocket] Memory leak in ICS Client socket
Thanks :) I will check it out. -daniel -Original Message- From: Francois PIETTE Sent: Friday, July 01, 2011 11:47 AM To: ICS support mailing Subject: Re: [twsocket] Memory leak in ICS Client socket I am using TSSLWSocket and I would like to know why I get memory leak error while using the following at the “OnFormCreate”, RecStream := TMemoryStream.Create; Any ideas about what am I doin wrong? At first, this is not related to ICS: If you create a memory stream or any other object, then you must destroy it at some later point calling his Free method or preferably using FreeAndNil(RecStream). -- 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 -- 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