CFM-based AXObserver Callback causing grief
CFM-based AXObserver Callback causing grief
- Subject: CFM-based AXObserver Callback causing grief
- From: Matt Gough <email@hidden>
- Date: Mon, 24 Mar 2003 15:58:37 +0000
In one of the builds of my app, I still use CFM (in CodeWarrior) as it has
certain advantages during debugging/profiling that the MACH-O version
doesn't have.
I have gone to the trouble of using CFBundleGetFunctionPointerForName and
CFBundleGetDataPointerForName diligently and all of the AX functions I am
using work correctly.
However, whenever my app is about to receive an observer notification it
crashes.
I am guessing that this is because the CFRunLoop stuff is expecting the
Observer to use Mach-O calling conventions, by obviously my function is CFM.
Am I correct in my assumption, or could I have done something else wrong?
(I have checked all my CFBundleGetFunctionPointerForName usage and can see
no problems).
Is there a solution?
Matt Gough
My Crash log follows:
**********
Date/Time: 2003-03-24 15:51:58 +0000
OS Version: 10.2.4 (Build 6I32)
Host: host180.softchaos.com
Command: XXX
PID: 3703
Exception: EXC_BAD_INSTRUCTION (0x0002)
Code[0]: 0x00000002Code[1]: 0x0033b9b0
Thread 0 Crashed:
#0 0x0033b9b0 in 0x33b9b0
#1 0x9016f314 in __CFMessagePortPerform
#2 0x9015bcb8 in __CFRunLoopDoSource1
#3 0x90148dbc in __CFRunLoopRun
#4 0x90180fe4 in CFRunLoopRunSpecific
#5 0x969a3160 in RunCurrentEventLoopInMode
#6 0x969b3118 in ReceiveNextEventCommon
#7 0x969f2074 in _AcquireNextEvent
#8 0x96ab3ff4 in RunApplicationEventLoop
#9 0x0019dfc0 in CWorkStripApp::Run(void)
#10 0x0019f144 in main
Thread 1:
#0 0x9000514c in syscall
#1 0x90515d6c in BSD_waitevent
#2 0x9051573c in CarbonSelectThreadFunc
#3 0x90020d48 in _pthread_body
Thread 2:
#0 0x900257ac in select
#1 0x90559e7c in nbp_send
#2 0x9055a278 in OT_nbp_lookup
#3 0x9055a66c in nbp_reg_lookup
#4 0x9055a310 in OT_nbp_register_address
#5 0x9055c048 in AsyncRegisterNameRequest
#6 0x9051de18 in CarbonOperationThreadFunc
#7 0x90020d48 in _pthread_body
PPC Thread State:
srr0: 0x0033b9b0 srr1: 0x0208f030 vrsave: 0x00000000
xer: 0x00000000 lr: 0x930310a0 ctr: 0x0033b9b0 mq: 0x00000000
r0: 0x93031080 r1: 0xbffff100 r2: 0x44004280 r3: 0x023d0950
r4: 0x02beef20 r5: 0x024eaa10 r6: 0x023d07c0 r7: 0x00000010
r8: 0x0000078c r9: 0xa0001048 r10: 0x0000078c r11: 0xa3000c7c
r12: 0x0033b9b0 r13: 0x00000000 r14: 0x00000000 r15: 0x00000001
r16: 0x00000000 r17: 0x00000001 r18: 0x24004280 r19: 0x00000000
r20: 0x00000000 r21: 0x023d07c0 r22: 0xa3000e84 r23: 0xa3000e84
r24: 0x02beef20 r25: 0xa3000e84 r26: 0x024ea9e0 r27: 0x023d0950
r28: 0x024eaa10 r29: 0x00000003 r30: 0x00000000 r31: 0x93030e84
_______________________________________________
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.