Xojo Conferences
MBSOct2019CologneDE

Yielding time to other apps and windows (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Telnet vs HTTP?
Next thread: 3DMF files (was Re: REALbasic-NUG Digest #6111)


Re: Serializable ... kind of   -   Jan Erik Moström <
  Yielding time to other apps and windows   -   Karl Smith
   Re: Yielding time to other apps and windows   -   Totte Alm
   Re: Yielding time to other apps and windows   -   Thomas Reed
   Re: Yielding time to other apps and windows   -   Mike Benonis
    FileMaker via ODBC - anyone doing this ??   -   Tracy

Yielding time to other apps and windows
Date: 06.05.02 19:50 (Mon, 06 May 2002 11:50:13 -0700)
From: Karl Smith
While importing and parsing a large XML file, I display a progress window
for the user. But I am not able to click on the stop button in the progress
window, or click out to the finder, or on any other window in any app. I
have checked, and there are no #pragma statements anywhere in the project.

How do I yield time in my app so that other apps and window can be clicked?

Re: Yielding time to other apps and windows
Date: 06.05.02 19:57 (Mon, 6 May 2002 20:57:33 +0200)
From: Totte Alm

On måndag, maj 6, 2002, at 08:50 , Karl Smith wrote:

> While importing and parsing a large XML file, I display a progress
> window
> for the user. But I am not able to click on the stop button in the
> progress
> window, or click out to the finder, or on any other window in any app. I
> have checked, and there are no #pragma statements anywhere in the
> project.
>

This is a one-line answer:

Do it in a thread.

// Totte

--------------------------------------------------------------------------------------------------
!YET the successor of .NET

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Yielding time to other apps and windows
Date: 06.05.02 20:29 (Mon, 6 May 2002 14:29:17 -0500)
From: Thomas Reed
>How do I yield time in my app so that other apps and window can be clicked?

Take your code out of the nasty, time-sucking loop it's in now (I assume)
and put it in a thread. The thread can cruise along without affecting
the use of other apps or parts of your app's interface that the user is
still allowed to interact with (such as the frontmost modal window, in
this case).

-Thomas

Personal web page: http://home.earthlink.net/~thomasareed/
My shareware: http://home.earthlink.net/~thomasareed/shareware/
REALbasic page: http://home.earthlink.net/~thomasareed/realbasic/
Pixel Pen web pub. guide: http://home.earthlink.net/~thomasareed/pixelpen/

Save the whales -- collect the whole set.

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Yielding time to other apps and windows
Date: 06.05.02 21:19 (Mon, 06 May 2002 16:19:43 -0400)
From: Mike Benonis
Use a thread.

-Mike

on 5/6/02 2:50 PM, Karl Smith at <email address removed> wrote:

> While importing and parsing a large XML file, I display a progress window
> for the user. But I am not able to click on the stop button in the progress
> window, or click out to the finder, or on any other window in any app. I
> have checked, and there are no #pragma statements anywhere in the project.
>
> How do I yield time in my app so that other apps and window can be clicked?

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>