[twsocket] TWSocket threads

2006-08-28 Thread Robert Chafer
Hi When I use TWSocket based components and they do an async operation, does the operation actually happen on a separate thread and then the results get sent via a message to the calling thread? My reasons for asking is that is how ADO works, if you perform an asynchronous execute, it is done on

Re: [twsocket] TWSocket threads

2006-08-28 Thread Arno Garrels
Robert Chafer wrote: Hi When I use TWSocket based components and they do an async operation, does the operation actually happen on a separate thread and then the results get sent via a message to the calling thread? ICS components do not create threads. The components and events are

[twsocket] SMTPClient

2006-08-28 Thread lalin
Hello, I use SMTPClient for sending a email since a server with default smtp server of IIS. The example program find this smtp server. But in my program, with this code: Smtp1.Host := smtpserver; Smtp1.port := 'smpt'; Smtp1.FromName := name; Smtp1.HdrFrom := mail1; Smtp1.HdrTo

Re: [twsocket] SMTPClient

2006-08-28 Thread Arno Garrels
lalin wrote: Hello, I use SMTPClient for sending a email since a server with default smtp server of IIS. The example program find this smtp server. But in my program, with this code: Smtp1.Host := smtpserver; Smtp1.port := 'smpt'; Smtp1.FromName := name; Smtp1.HdrFrom := mail1;

Re: [twsocket] TWSocket threads

2006-08-28 Thread Robert Chafer
Hi Angus Do you use a different ADO connection for every query (my app does)? On Mon, 28 Aug 2006 14:12 +0100 (BST), you wrote: There is a (very) subtle bug in ADO that means ADO async threads sometimes hang when they are released. This happens about one time in 100,000 calls (by hang

Re: [twsocket] TWSocket threads

2006-08-28 Thread Angus Robertson - Magenta Systems Ltd
Do you use a different ADO connection for every query (my app does)? There is one connection per table, but it's opened to the server once and left open, unless there are SQL errors when it's reopened. This is not a web application. In my experience, ADO connections can remain open for