Here is a link to the demo app.
https://www.dropbox.com/s/wws5nze20xyy3rd/ICSFTP.zip
On Tue, Sep 17, 2013 at 1:49 PM, Primoz Gabrijelcic
wrote:
> MsgWait enables Windows message processing in the internal
> TOmniWorker loop.
>
> I have never used ICS in synchronous mode. I think th
Here is a stripped down version, which shows it.
The FTP code and commands are exactly the same in the thread and in the
main forms Button2Click event, but the one in the thread takes a few
seconds and the one in the main form about 50-100ms.
On Tue, Sep 17, 2013 at 1:49 PM, Primoz Gabrijelcic
w
On Tue, Sep 17, 2013 at 1:42 PM, Angus Robertson - Magenta Systems Ltd <
an...@magsys.co.uk> wrote:
> he only thing that should matter is that you set MultiThreaded=true and use
> TIcsWndControl.MessagePump instead of Application.ProcessMessages.
>
I did set MultiThreaded to True and checked on
MsgWait enables Windows message processing in the internal
TOmniWorker loop.
I have never used ICS in synchronous mode. I think that could indeed
be the reason for the slowness.
Can you put together a small demo which exhibits that behaviour?
Primož
> Thanks. I tried that, but it
Thanks. I tried that, but it didn't change anything.
Actually I am using ICS in synchronous mode, so what should MsgWait do? I
admit I am not very familiar with it.
Could the synch mode be the cause?
On Tue, Sep 17, 2013 at 1:34 PM, Primoz Gabrijelcic
wrote:
> That should work fine once you inse
> The Create constructor makes a copy of the fFileList array and
> creates the TFtpClient object.
> StartSync does the upload.
The only thing that should matter is that you set MultiThreaded=true and use
TIcsWndControl.MessagePump instead of Application.ProcessMessages.
My TMagFtp component has
That should work fine once you insert .MsgWait before .Run. I am using
ICS in such way and it works fine.
Primož
> No, I didn't use MsgWait. I run it like this:
> fSync: IOmniTaskControl;
>
> fSync := CreateTask(TSyncThread.Create(fFileList), 'PollTask').
> Invoke(@TSyncThread
No, I didn't use MsgWait. I run it like this:
fSync: IOmniTaskControl;
fSync := CreateTask(TSyncThread.Create(fFileList), 'PollTask').
Invoke(@TSyncThread.StartSync).
MonitorWith(OmniEventMonitor).
Run;
The Create constructor makes a copy of the fFil
> I am working on a project that uses OmniThreadLibrary (http://
> http://otl.17slon.com) and one of the threads uploads files to an FTP
> server.
> For this one I decided to try ICS, but there is one strange issue.
> When the FTP client (with SSL or not) is placed inside a thread of the type
> "T
I am working on a project that uses OmniThreadLibrary (http://
http://otl.17slon.com) and one of the threads uploads files to an FTP
server.
For this one I decided to try ICS, but there is one strange issue.
When the FTP client (with SSL or not) is placed inside a thread of the type
"TSyncThread =
10 matches
Mail list logo