On 1/10/2010 2:00 PM, Pete Brunet wrote:
> If an accessible whose backing control has been destroyed still has a
> ref count is still greater than one due to an AT and/or oleacc still
> holding references what response should the server provide to the AT?
IAccessible2::states should return IA2_STATE_DEFUNCT.

>what failure code should be returned when any of
> the IAccessible methods are called? S_FALSE? E_FAIL, CO_E_DISCONNECTED?
I believe Firefox returns E_FAIL. Not sure about other implementations. 
In some ways, some sort of disconnected message makes sense, though it's 
a bit obscure because the object still *exists*, even though it doesn't 
provide useful info. E_FAIL should be fine.

Btw, although MSDN does mention CO_E_DISCONNECTED, I can't seem to find 
it defined anywhere in the Windows SDK. The closest I can find is 
RPC_E_DISCONNECTED, which says:
The object invoked has disconnected from its clients.
This doesn't seem quite right to me here, as generally, clients refers 
to the users of that object.

Jamie

-- 
James Teh
Vice President
NV Access Inc, ABN 61773362390
Email: [email protected]
Web site: http://www.nvaccess.org/
_______________________________________________
Accessibility-ia2 mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/accessibility-ia2

Reply via email to