Re: [twsocket] bug in smtpprot.pas

2007-02-13 Thread Veit Zimmermann
Marcello Vezzelli wrote: Hi all, there is a bug in SmtpProt.pas (latest ics version just downloaded), function Rfc822DateTime, line 2892 and 2907, FormatDateTime function. Result := FormatDateTime('ddd, d mmm hh:mm:ss', t) + ' ' + TimeZoneBias The time

Re: [twsocket] bug in smtpprot.pas

2007-02-13 Thread Arnaldo Braun
Hi A small typo in hh:mm:ss must be corrected to hh:nn:ss or hh:nn:ss MM is month and NN is minute Veit Zimmermann wrote: Marcello Vezzelli wrote: Hi all, there is a bug in SmtpProt.pas (latest ics version just downloaded), function Rfc822DateTime, line 2892 and 2907, FormatDateTime

Re: [twsocket] TSmtpClient Exception handling

2007-02-13 Thread Veit Zimmermann
Hello The problem seems to be solved (more or less). It only occurs if the application is started from a network drive and the connection to that drive is cut. I'm not sure where the problem is exactly but all other accesses to the network do not result in this kind of desaster. Anyway: Not a

[twsocket] Memory Leak in SmtpProt

2007-02-13 Thread Veit Zimmermann
Hi It seems that there is a memory leak in SmtpProt: When sending an email and using MailMessage for including the text of the mail, the text is compared with an empty string with the GetText method of TStrings. This method creates a copy of the MailMessage TStrings which is not freed again: