Event handling weirdness
Event handling weirdness
- Subject: Event handling weirdness
- From: Raymond Fischer <email@hidden>
- Date: Mon, 2 Dec 2002 19:20:08 -0800
Alright, folks, I've got a crashing bug and I've run out of ideas.
Here's the scoop:
I get an accessibility event. Get child under point, as it happens,
although that doesn't seem to be relevant since it happens with other
accessibility events.
I find my ControlRef and put it into an AXUIElementRef.
The control's a scroll bar.
Then the AXUIElementRef gets put into the event and I return noErr
from the event handler.
Easy so far.
However what's happening is that CarbonLib barfs shortly thereafter.
Might be an assert. What makes this one really nasty is that when
I set a breakpoint in the debugger (Metrowerks) it doesn't crash.
Somethign gets cleaned up.
Everything seems to be a good value. It's really a control ref,
the refcounts are good.
Does anyone have _any_ ideas? This is what (part of) the stack trace
looks like. It seems that it's trying to get something from the event,
but what? And why isn't it finding it?
Suggestions are welcome.
#0 0x901b33c4 in __HALT
#1 0x90131cf8 in CFDictionaryGetValue
#2 0x90166470 in CFBundleCopyLocalizedString
#3 0x92d66efc in GetNamedAccessibleAttributeSelf(ScrollBarGlobals*,
OpaqueEventHandlerCallRef*, OpaqueEventRef*, unsigned long long,
__CFString const*, unsigned long, OpaqueEventRef*)
#4 0x92bc916c in ScrollBarEventHandler(OpaqueEventHandlerCallRef*,
OpaqueEventRef*, void*)
#5 0x92ba25b4 in DispatchEventToHandlers
#6 0x92ba291c in SendEventToEventTargetInternal
#7 0x92ba5d28 in SendEventToEventTargetWithOptions
#8 0x92d70208 in Accessible::GetNamedAttributeData(__CFString
const*, void const**, unsigned char*)
#9 0x92d67a24 in CarbonCopyAttributeValueCallback(__CFData const*,
unsigned long, __CFString const*, void const**, void*)
#10 0x9302ff2c in _axServerMessageHandler
#11 0x9016f8ac in __CFMessagePortPerform
#12 0x9015c250 in __CFRunLoopDoSource1
#13 0x90149354 in __CFRunLoopRun
#14 0x9018157c in CFRunLoopRunSpecific
#15 0x92ba34cc in RunCurrentEventLoopInMode
----
Ray Fischer
Adobe Systems
_______________________________________________
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.