realbasic-nug
[Top] [All Lists]

Re: Looking for server in a thread

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Looking for server in a thread
From: "Eric M. Williams" <eric@oxalyn.com>
Date: Wed, 11 Nov 2009 07:39:27 -0800
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <3EC33BC6-01E7-4CC3-8F01-1647FBD54237@classonesoftware.com>
References: <3EC33BC6-01E7-4CC3-8F01-1647FBD54237@classonesoftware.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com

On Nov 11, 2009, at 6:58 AM, Roger Clary wrote:

Users of my app can set a server location for storing data. When the app opens, I look for the server's availability in a simple method:

 dim f As FolderItem = parseGSI(prAltLocation)

 Return (f <> Nil)

Exception
 Return False

If the server is not available, this method ties up the system for about 30 secs. looking for it. I wanted to offer the user the opportunity to cancel this action if the user knows the server is offline. I tried putting the above method in a thread, hoping to allow for continued user interaction while the system looks for this server. I cannot seem to free the system during this approx. 30 secs. Even though this action is in a thread, any user interaction, even just moving the mouse, produces the Mac's SPOD (Spinning Pizza of Death) Is there something else I need to do to allow the system to search for the server while permitting my user to cancel this action?

You'll have to show us what the parseGSI function does - the pausing must be in that code.

Eric M. Williams
Oxalyn

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>