Path: csiph.com!news.uzoreto.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: DataWindow frozen when consuming webservice Date: Fri, 1 May 2020 17:02:59 +0200 Lines: 35 Message-ID: References: <07757019-6f9c-4d92-98dc-aa13a8b468da@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net mWtREvnw6hUw77DTB/oPJg3KMn3rSF6PRpOqszbNxcaaW6OSQ= Cancel-Lock: sha1:iG76OuJWjjiAXPHkYkkQ6/vIu8E= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:12967 Hi Sebastiàn, I'm sorry, but without threads that cannot work. The only alternative would to spawn a separate exe that writes to a file and your program reads that file when it is present (in fact, this is a sort of poor mans multithreading). Wolfgang ccyasa.sbassano@gmail.com wrote: > Hi, i have a simple DataWindow with a ProgressBar and a PushButton. > When the button is pressed a webservice is consumed. That operation > takes between 1 and 10 seconds, depending on internet speed. During > that time the window is frozen. I need that while the operation take > places the progressbar show progress. When the button is pressed i > start progress, consume the webservice, and stop progress. This isn't > noticeable because all freeze until the service is consumed. I try > setting a timer on the object that consume the webservice and then in > the dispatch method of the datawindow add the lines: > oProgressBar:Advance(1) ApplicationExec(ExecWhileEvent) > > with no luck, i log data to test if the lines are reached an yes, > they are. Also try the same but instead of the datawindow use the > progressbar, same that above. The object that consumes a webservice > is a COM object. There is an easy way to achieve this? I prefer not > to use threads. Thanks in advance. > > Sebastián --