On 4/20/06, Jonathan Johnson <[EMAIL PROTECTED]> wrote:
>
> On Apr 20, 2006, at 9:38 AM, Alexander Bauza wrote:
>
> > In my app I got a very long process and I use a window with a
> > ProgressBar within it.
> > This very long process retrieve data from an URL and I'm using an
> > HTTPSocket control.
> >
> > Also I got a boolean local property in this window. It turns True
> > when finishes the PageRecieved event.
> >
> > This window fires a thread (it does the very long process) and I do
> > this to refresh it:
> >
> >     MyProgressWindow.MyHTTPSocket.Get(TheURL)
> >
> >     do until MyProgressWindow.Complete
> >       App.DoEvents
> >     loop
> >
> > I do not want to use App.DoEvents anymore but if I delete this
> > line, the window simply doesn't work...
> >
> > I need some help...
>
>
> Two options: First, use MyProgressWindow.MyHTTPSocket.Poll instead
> (although the progress window won't refresh), or second: move the
> call to Get into a separate thread.
>
> HTH,
> Jon
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives of this list here:
> <http://support.realsoftware.com/listarchives/lists.html>
>


I posted this message a few months ago, illustrating how you cannot
get away from App.DoEvents sometimes:

<<<
The problem is there are some circumstances (ie. bugs, don't know if
it's RB's fault, or OS X) where you cannot get away from calling
app.DoEvents: updating a composite window while a loop is running for
example. I posted an example of this a month or so ago. I tried every
officially "sanctioned" approach, but only DoEvents did what should
have happened normally after a w.refresh call.

So unless such anomalies are fixed, we will be forced to use
app.doEvents, and suffer any consequences.
>>>

I don't know if this has been corrected in RB2006r2.  If not, we're
stuck with App.DoEvents (I use it frequently and have never been
bitten, what's the problem with this call anyway?)

P.

--
-------------------------------------------------------------------------------
Peter K. Stys, MD
Professor of Medicine(Neurology), Senior Scientist
Ottawa Health Research Institute, Div. of Neuroscience
Ottawa Hospital / University of Ottawa
Ontario, CANADA
tel:    (613)761-5444
fax:    (613)761-5330
http://www.ohri.ca/profiles/stys.asp
-------------------------------------------------------------------------------
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to