Wow!  Do you mean you get an error of this type when trying to look up
a key in a Dictionary?  Is the key a Window-Eyes object model object
of some sort, or can it be something simpler, like a string?

On Thu, Feb 17, 2011 at 04:59:00PM -0700, Jeff Bishop wrote:
Doug,

This is a great question.  Most of my issues with this have been when
accessing dictionary objects so it is interesting that you are seeing it in
other areas.


-----Original Message-----
From: Doug Lee [mailto:[email protected]] 
Sent: Thursday, February 17, 2011 4:42 PM
To: [email protected]
Subject: Best way to handle "Object is not connected to server" errors?

I have seen this error in two projects this week.  In one, it was
fired by me trying to access properties of an Accessible object I
saved in a class from an OnObjectFocus event.  In the other, it was
fired by trying to get .Handle from a Window object that was a global
var populated by an OnObjectFocus event (set globalVar =
accObj.Window).  The error is random, meaning it may happen one in
twenty or less times a person does the same thing.  In the first
project, I just abort the operation.  In the second, I don't yet know
if I should do that or queue a repeat of that operation.

Does this error mean the saved object is temporarily bereft of its
properties somehow, or that it will never get them back until it is
set again?


-- 
Doug Lee, Senior Accessibility Programmer
SSB BART Group - Accessibility-on-Demand
mailto:[email protected]  http://www.ssbbartgroup.com
"While they were saying among themselves it cannot be done,
it was done." --Helen Keller

-- 
Doug Lee, Senior Accessibility Programmer
SSB BART Group - Accessibility-on-Demand
mailto:[email protected]  http://www.ssbbartgroup.com
"While they were saying among themselves it cannot be done,
it was done." --Helen Keller

Reply via email to