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 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 > <[email protected]>wrote: >> 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.StartSync). >> > MonitorWith(OmniEventMonitor). >> > Run; >> >> > The Create constructor makes a copy of the fFileList array and creates >> the >> > TFtpClient object. >> > StartSync does the upload. >> >> > Btw, both ICS and OTL are downloaded from the latest SVN archives from a >> > few days ago. Not directly from the SVN, if that matters. >> >> > Vladimir >> >> >> > On Tue, Sep 17, 2013 at 12:43 PM, Primoz Gabrijelcic < >> [email protected] >> >> wrote: >> >> >> > 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 = class(TOmniWorker)" the client works much slower than >> it >> >> > should. >> >> > Every command like Connect, Cwd, Put, etc takes 1-3 seconds, while >> placed >> >> > in a standard TThread or in the main form the same commands take >> >> > milliseconds. >> >> >> >> > Has anyone used those two libraries together and what could be the >> cause >> >> > for that? >> >> >> >> Are you running your OTL threads with .MsgWait? >> >> >> >> Primož >> >> >> >> -- >> >> To unsubscribe or change your settings for TWSocket mailing list >> >> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket >> >> Visit our website at http://www.overbyte.be >> >> -- >> To unsubscribe or change your settings for TWSocket mailing list >> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket >> Visit our website at http://www.overbyte.be >> -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
