Re: [twsocket] Using HTTPCli in threads

2005-10-25 Thread Wilfried Mestdagh
Hello Nick, things at once - do I have to drop 4 HttpCli components on the form or can I create them at run time? If you drop themon a form then they are created and so will operate in main thread context. and you can't use 1 HttpCli to download two things at once No but you can use 4

[twsocket] Bug in SmtpProt.pas

2005-10-25 Thread Bjørnar Nielsen
When using mail-client from ICS, and set the subject property with a string length very long, my exe crashes and goes down and I found the reason here: procedure TCustomSmtpClient.DataNext; var MsgLine : array [0..1023] of char; begin { If we have been disconnected, then do nothing.

Re: [twsocket] Bug in SmtpProt.pas

2005-10-25 Thread Bjørnar Nielsen
The SMTP protocol doesn't allow longer lines in any case, so your application could check for a correct length. Also it important to wrap lines that are longer than 74 cups. Means either a blank or tab in front of a continuation line. I still think there should be check on linelength

Re: [twsocket] Bug in SmtpProt.pas

2005-10-25 Thread DZ-Jay
Bjørnar Nielsen wrote: The SMTP protocol doesn't allow longer lines in any case, so your application could check for a correct length. Also it important to wrap lines that are longer than 74 cups. Means either a blank or tab in front of a continuation line. I still think there should be

Re: [twsocket] Using HTTPCli in threads

2005-10-25 Thread Nick
Great :-) That all made sense except this line HttpCli.CtrlSocket.MessagePump; // will break if WM_QUIT What does that mean / do? Thanks a lot. Regards Nick Hello Nick, things at once - do I have to drop 4 HttpCli components on the form or can I create them at run time? If you drop

Re: [twsocket] Using HTTPCli in threads

2005-10-25 Thread Wilfried Mestdagh
Hello Nick, if you execute a component in thread context taht need a message pump (like TWSocket) then you have to pump messages. TWSocket has this on board, so that's the proposed method. The message pump (you can write your own of course) I proposed will break his loop if a WM_QUIT message