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>
|