[twsocket] Loosing memory in TWSocketClient.TriggerSessionClosed

2011-09-21 Thread Henk van der Meer
Hello, I have an application that uses fastmm4 to track memory. It informed me of an memory leak that I traced down to: TWSocketClient.TriggerSessionClosed This procedure does a New(PIdRec); This record is only disposed of when the postmessage returns true. In my program this isn't the case.

[twsocket] Hdr From and To cutting off

2011-09-21 Thread Neal Barnett
Hi - I am setting HdrFrom and HdrTo parameters during an Email Send, like this: SslSmtpCli1.HdrFrom:='This Is From Me'; SslSmtpCli1.HdrTo:='All Of My Recipients'; However, when receiving the email, I only see the first word of each parameter, so it would look like this: From: This To: All I

Re: [twsocket] Hdr From and To cutting off

2011-09-21 Thread Arno Garrels
Neal Barnett wrote: Hi - I am setting HdrFrom and HdrTo parameters during an Email Send, like this: SslSmtpCli1.HdrFrom:='This Is From Me'; SslSmtpCli1.HdrTo:='All Of My Recipients'; Huh? Both strings above should contain at least one email address like: SslSmtpCli1.HdrFrom := 'Arno

Re: [twsocket] Loosing memory in TWSocketClient.TriggerSessionClosed

2011-09-21 Thread Henk van der Meer
Hello Arno, Thank you for responding. I see what you are saying. And as you assumed this is happening while closing down. And indeed windows will free the memory the application did not free explicitly. The thing is that if you leave the freeing up to windows you have no means of checking for

Re: [twsocket] Loosing memory in TWSocketClient.TriggerSessionClosed

2011-09-21 Thread Arno Garrels
Henk van der Meer wrote: The thing is that if you leave the freeing up to windows you have no means of checking for memory leaks. So I like my programs to free all their memory so I'm sure I haven't forgotten anything. If the client still lives then the owner, the server, must be alive

Re: [twsocket] Hdr From and To cutting off

2011-09-21 Thread Wilfried Mestdagh
Hi, I would like to instead use the first option and not have it cut off on the first word. Is that possible? The result is depending on the email reader of the recipient and not predicable if you don't follow the rules. See the RFC's for header lines in emails therefore. You must build a