| As long as the handler is being installed properly, which most likely it is since it works on Intel; the handler your looking at shouldn't be causing it if removing your code and just returning eventNotHandledErr doesn't solve it. You might try looking at other handlers you might have installed that are next in line in the hierarchy of handlers. You might also look at how your handlers are being installed to see if they might have bad parameters passed to the installation method.
HTH, David Alger
******************** Ron Paul for President 2008
RESTORE THE REPUBLIC On Oct 23, 2007, at 12:35 PM, John elemans wrote: Okay, another try; This crash log is from a PPC machine (no Rosetta). It crashes in both Rosetta and PPC machines. But the Intel build does not crash. It crashes when the user clicks in the content region of the window.
I modified my own event handler for the window so that it returns without doing anything and it still crashes (meaning, I hope, that my code is not screwing up something in the event chain).
Thanks all.
OS Version: 10.4.10 (Build 8R218) Report Version: 4
Command: MacPacs X Path: /Users/pacsuser/Desktop/MacPacs X.app/Contents/MacOS/MacPacs X Parent: WindowServer [4717]
Version: ??? (2.4b28)
PID: 4767 Thread: 0
Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x000000d4
Thread 0 Crashed: 0 com.apple.HIToolbox 0x932e5ec0 HIView::GetNextTarget(OpaqueEventTargetRef*, OpaqueEventRef*, void*) + 20 1 com.apple.HIToolbox 0x9329652c IsTargetInterestedInEventType + 120 2 com.apple.HIToolbox 0x9329dfe8 GetNextTarget(EventTargetRec*, OpaqueEventRef*) + 328 3 com.apple.HIToolbox 0x93297040 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 296 4 com.apple.HIToolbox 0x9329de90 SendEventToEventTarget + 40 5 com.apple.HIToolbox 0x9332bae4 _HIViewGetClickActivation + 620 6 com.apple.HIToolbox 0x9332b6b0 HandleWindowClick + 240 7 com.apple.HIToolbox 0x9332b254 HandleMouseEvent + 456 8 com.apple.HIToolbox 0x932da2e4 StandardWindowEventHandler + 148 9 com.apple.HIToolbox 0x93297934 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 10 com.apple.HIToolbox 0x9329708c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 11 com.apple.HIToolbox 0x9329de90 SendEventToEventTarget + 40 12 com.apple.HIToolbox 0x9332a224 HandleMouseEventForWindow(OpaqueWindowPtr*, OpaqueEventRef*, unsigned short) + 236 13 com.apple.HIToolbox 0x9348d3dc HandleMouseEvent(OpaqueEventRef*) + 368 14 com.apple.HIToolbox 0x9329e1fc ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 496 15 com.apple.HIToolbox 0x93297b84 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1284 16 com.apple.HIToolbox 0x9329708c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 17 com.apple.HIToolbox 0x9329de90 SendEventToEventTarget + 40 18 com.apple.HIToolbox 0x932dec04 ToolboxEventDispatcher + 92 19 com.apple.HIToolbox 0x932deb90 HLTBEventDispatcher + 16 20 com.apple.HIToolbox 0x932dd148 RunApplicationEventLoop + 148 21 com.macpacs.macpacs 0x000f3430 main + 208 (main.cp:194) 22 com.macpacs.macpacs 0x000026dc _start + 760 23 com.macpacs.macpacs 0x000023e0 start + 48
Thread 1: 0 libSystem.B.dylib 0x9001f88c select + 12 1 com.apple.CoreFoundation 0x907f0434 __CFSocketManager + 472 2 libSystem.B.dylib 0x9002bd08 _pthread_body + 96
Thread 0 crashed with PPC Thread State 64: srr0: 0x00000000932e5ec0 srr1: 0x000000000200f030 vrsave: 0x0000000000000000 cr: 0x24024228 xer: 0x0000000000000004 lr: 0x000000009329dfe8 ctr: 0x00000000932e5eac r0: 0x000000009329dfe8 r1: 0x00000000bffff2a0 r2: 0x0000000000000000 r3: 0x00000000254948e0 r4: 0x0000000001b20030 r5: 0x0000000000000000 r6: 0x0000000000000001 r7: 0x0000000000000000 r8: 0x0000000000000001 r9: 0x0000000061636365 r10: 0x000000000000002c r11: 0x0000000061636365 r12: 0x00000000932e5eac r13: 0x0000000000000002 r14: 0x0000000000000000 r15: 0x00000000a3297698 r16: 0x000000002541eab0 r17: 0x00000000bffff690 r18: 0x000000006d6f7573 r19: 0x0000000000000001 r20: 0x0000000025487fb0 r21: 0x00000000ffffd96e r22: 0x0000000000000000 r23: 0x00000000bffff800 r24: 0x0000000000000001 r25: 0x00000000ffffd96e r26: 0x0000000001b20030 r27: 0x00000000bffff400 r28: 0x00000000254948e0 r29: 0x00000000254948e0 r30: 0x0000000000000000 r31: 0x000000009329deb0
Binary Images Description: 0x1000 - 0x230fff com.macpacs.macpacs ??? (2.4b28) /Users/pacsuser/Desktop/MacPacs X.app/Contents/MacOS/MacPacs X 0x1c05000 - 0x1c6dfff com.DivXInc.DivXDecoder 6.4.0 /Library/QuickTime/DivX Decoder.component/Contents/MacOS/DivX Decoder 0x1c7a000 - 0x1d9efff com.elgato.mpegsupport EyeTV MPEG Support 1.0.4 (build 35) (1.0.4) /Library/QuickTime/EyeTV MPEG Support.component/Contents/MacOS/EyeTV MPEG Support 0x1fcb000 - 0x1fcbfff com.apple.applescript.component 1.10.7 /System/Library/Components/AppleScript.component/Contents/MacOS/AppleScript 0x41410000 - 0x414affff com.apple.QuickTimeImporters.component 7.2 /System/Library/QuickTime/QuickTimeImporters.component/Contents/MacOS/QuickTimeImporters 0x78e00000 - 0x78e07fff libLW8Utils.dylib /System/Library/Printers/Libraries/libLW8Utils.dylib 0x79200000 - 0x7923ffff libLW8Converter.dylib /System/Library/Printers/Libraries/libLW8Converter.dylib 0x8fe00000 - 0x8fe52fff dyld 46.12 /usr/lib/dyld 0x90000000 - 0x901bcfff libSystem.B.dylib /usr/lib/libSystem.B.dylib
On 22-Oct-07, at 1:30 PM, Laurence Harris wrote:
On Oct 22, 2007, at 3:34 PM, John elemans wrote:
Hello,
I have an app which has been running fine in both PPC and Intel
builds for a long time. Suddenly the PPC build fails when the user
clicks in one particular window.
Does this happen on PPC Macs, in Rosetta, or both? Does it matter where in the window the user clicks?
I modified the event handler so that
"The event handler" is vague. Exactly which event is being handled at the time of the crash? What is the current event target when the crash happens?
it returns immediately (ie -does nothing) and the app still crashes when that one window
is touched. If I return anything except eventNotHandled, then everything is
fine (but I can't drag my windows).
That suggests it's crashing in a handler somewhere up the chain. Is that handler yours or one the system installs?
No problems in the Intel build.
Suggestions appreciated!
Always offer as much information as possible.
Larry
_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden
********************
Ron Paul for President 2008
RESTORE THE REPUBLIC |