Re: [twsocket] OnSessionClosed

2007-02-14 Thread Wilfried Mestdagh
Hello Markus, This is how TCP works. OnSessionClosed is fired when the other end say "Goodbye", or when you try to send something and the other end is not their anymore. There is no traffic if there is no data send, so TCP layer cannot know if for example cable is plugged out. So you have to do s

Re: [twsocket] OnSessionClosed

2007-02-14 Thread Kochendoerfer, Michael
Markus, why not implementing some kind of NOOP over the protocol? Means that your client's sending some special small data packets over the line which the server simply drops, only if transfer is idle and possibly timer based? Michael > -Original Message- > From: [EMAIL PROTECTED] > [

[twsocket] OnSessionClosed

2007-02-14 Thread Markus . Humm
Hello, strange problem here: - two PCs connected via normal LAN - one runs my server app (simple TWSocket since the server only has to handle one connection) - the other one runs my client app (twsocket as well) - the connection is a TCP connection Normal communication is fine. I've assigned On

Re: [twsocket] Memory Leak in SmtpProt

2007-02-14 Thread Arno Garrels
Veit Zimmermann wrote: > Arno, > > That might be true. By the way: Wouldn't the following be sufficient? > It should be much faster: > > if FMailMessage.Count > 0 then Yes, please have a look at latest SmtpProt.pas, FMailMsg.Text is now copied once to a string variable named FMailMsgText. M

Re: [twsocket] bug in smtpprot.pas

2007-02-14 Thread Veit Zimmermann
Hi Arnaldo If you look at the source of FormatDateTime M is replaced by N if the preceding formatting character is H. I'm not quite sure if this works correctly, it won't hurt to change it to "nn" anyway. All: I checked FormatDateTime routines and they are all the same (regarding speed). So a c

Re: [twsocket] Memory Leak in SmtpProt

2007-02-14 Thread Veit Zimmermann
Arno, That might be true. By the way: Wouldn't the following be sufficient? It should be much faster: if FMailMessage.Count > 0 then When will the next beta come out? Is there a time line? I know Francois is busy. Is he controlling releases alone or are others (like you) helping him on this

Re: [twsocket] Memory Leak in SmtpProt

2007-02-14 Thread Arno Garrels
Veit, You are not using latest Beta downloads. --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html Veit Zimmermann wrote: > 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 t