| To: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
|---|---|
| Subject: | Re: Looking for server in a thread |
| From: | Dennis Birch <dennisbirch@gmail.com> |
| Date: | Wed, 11 Nov 2009 07:31:04 -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; dkim=neutral (body hash did not verify) header.i=@gmail.com |
| Delivered-to: | listarchive@realsoftware.com |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=V1/cj279d8726OvJ8YVzjln/6kCwqfejJXU8HziNCPo=; b=BYAER4zFH2GMK4ntrYW7YPYvl9WrmM+iO7CfkIdg5ATRqfOnX7DKP7HsE3udFIKk41 kFt1EYTQ2iQeqFqg6Cozh5NLdednj6UEx45Q6voR8ew9J1BC/WJg9pIs+mHZ73GVHcsu +M9agN7y7qIr7eYP4x72wMaOJm6J75Y0jBHIM= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=gS3i3n+1fKGX5yAdl0ounoiKqNg+KR3r4KSeF+VhKRty2HJUY3+rVJ9jX+y9r1yuJa OoHCi/We5zUPwId9OH4/p5pT6f6br9aYqbKt8gFX+6vQDeCczACVcypcaMVy7rIF3mzs cZuz+vdCBAFo0F5sDT8HWgKUIG3+xpIzxJOu8= |
| 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 Wed, Nov 11, 2009 at 6:58 AM, Roger Clary <roger@classonesoftware.com> 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 parseGSI looking for a server on the network? In my limited experience in this area, trying to connect to a database that is down ties up the system (on a Mac at least) for some time -- I thought it was more like two minutes -- whether called from the main thread or a new thread. Just to be clear, I am referring to attempting to connect to a server with one of the database plugins. It isn't clear that that's what you're doing, but your use of the term server suggests that might be what's going on in your parseGSI function. _______________________________________________ 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> |
|---|---|---|
| ||
| Previous by Date: | Looking for server in a thread, Roger Clary |
|---|---|
| Next by Date: | OS X 10.6.2 causes hangs in Shell set to Mode 2, Dennis Birch |
| Previous by Thread: | Looking for server in a thread, Roger Clary |
| Next by Thread: | Re: Looking for server in a thread, Eric M. Williams |
| Indexes: | [Date] [Thread] [Top] [All Lists] |