Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #12967
| Path | csiph.com!news.uzoreto.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
| 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 | <hh2s14FabdoU1@mid.individual.net> (permalink) |
| 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 |
Show key headers only | View raw
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 --
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
DataWindow frozen when consuming webservice ccyasa.sbassano@gmail.com - 2020-04-30 11:20 -0700
Re: DataWindow frozen when consuming webservice "Wolfgang Riedmann" <wriedmann@gmail.com> - 2020-05-01 17:02 +0200
Re: DataWindow frozen when consuming webservice ccyasa.sbassano@gmail.com - 2020-05-04 04:43 -0700
csiph-web