Question about UIElementRefs
Question about UIElementRefs
- Subject: Question about UIElementRefs
- From: Andrew Taylor <email@hidden>
- Date: Wed, 26 Nov 2003 09:09:15 -0500
Hi,
This is more a CoreFoundation question than specifically an
Accessibility API question, but it stems from using Acc. API and
using core foundation objects that are generated by Acc. API.
My program caches UIElementRefs for windows that it has notifiers
for. Upon occasion, the program will do a CFEqual to determine if two
UIElementRefs are equal, and it will crash inside CFEqual. I think
this typically occurs after a window has closed and my program does
not know it yet (once it does, cached values are zeroed). I know that
the UIElementRefs are NOT zero, the program checks the arguments for
nonzero before calling CFEqual. Since CFEqual is not able to survive
bad arguments what call do I make to determine that a UIElementRef is
still referring to a valid object and therefore can be passed to such
calls?
The snippet of stack where the crash occurs:
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x03000000
#0 0x90831234 in objc_msgSend (objc_msgSend + 20)
#1 0x90191588 in CFEqual (CFEqual + 288)
thanks.
_______________________________________________
accessibility-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
Do not post admin requests to the list. They will be ignored.