Re: [twsocket] FTP Client in a separate thread

2007-10-18 Thread Tobias Giesen
> Do you see similar (strange delays or high CPU use) with IE or any > other internet application as well? Delays, yes. CPU use, no. But that is an interesting idea, I could try the same thing on different PCs. IE has its own problems. Applications that depend on IE can stall each other. For exa

Re: [twsocket] FTP Client in a separate thread

2007-10-18 Thread Arno Garrels
Tobias Giesen wrote: > Hello, > > thanks for the suggestions, Arno and Francois! > > I will try it using ASync calls. I tried ftpWaitUsingSleep but it does > not make any difference. > > But the problem is not a CPU concurrency problem. It is much worse. > The main thread calls PeekMessage (in T

Re: [twsocket] FTP Client in a separate thread

2007-10-17 Thread Tobias Giesen
Hello, thanks for the suggestions, Arno and Francois! I will try it using ASync calls. I tried ftpWaitUsingSleep but it does not make any difference. But the problem is not a CPU concurrency problem. It is much worse. The main thread calls PeekMessage (in TApplication.ProcessMessage) and Windows

Re: [twsocket] FTP Client in a separate thread

2007-10-17 Thread Francois PIETTE
> after some successful years with ICS I am now trying to do some FTP > transfers in a separate thread. Everything happens in the thread, > including the FTPClient component creation. The thread itself uses > the synchronous commands, for example FTPClient.Get. > > I am currently using ICSV6 (Overb

Re: [twsocket] FTP Client in a separate thread

2007-10-17 Thread Arno Garrels
Tobias Giesen wrote: > Everything happens in the thread, Just to clear this up, you have to create the TFtpClient instance method Execute of TThread. Otherwise it won't realy run in the thread. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or c

Re: [twsocket] FTP Client in a separate thread

2007-10-17 Thread Arno Garrels
Tobias Giesen wrote: > > My problem is that this separate thread makes my application very > unresponsive. The main application thread seems to be almost totally > blocked and responds to messages, such as moving or drawing the > main window, only after big delays. How is option ftpWaitUsingSleep

[twsocket] FTP Client in a separate thread

2007-10-17 Thread Tobias Giesen
Hello, after some successful years with ICS I am now trying to do some FTP transfers in a separate thread. Everything happens in the thread, including the FTPClient component creation. The thread itself uses the synchronous commands, for example FTPClient.Get. I am currently using ICSV6 (Overbyt