Re: Question about UIElementRefs
Re: Question about UIElementRefs
- Subject: Re: Question about UIElementRefs
- From: John Louch <email@hidden>
- Date: Wed, 26 Nov 2003 08:05:38 -0800
This almost certainly means you are passing a released object to CFEqual.
There is almost no way for the api to determine if this is a valid object or
not. You have to find out where you CFRelease these objects. Another
possibility is that you have a memory stomper, but I do not think that this
is the case.
Thanks,
jl
>
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.
--------------------------------------------------
John Louch Internet #: email@hidden
(805) 546 0216
_______________________________________________
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.