odd crash on makeKeyAndOrderFront:
odd crash on makeKeyAndOrderFront:
- Subject: odd crash on makeKeyAndOrderFront:
- From: Josh Anon <email@hidden>
- Date: Mon, 20 Jan 2003 23:48:17 -0600
I've got an app with a main view, and when I double-click on some
icons, I want new windows w/ an image view to open up. To do so, I
have a controller that loads the nib in its init method, shows the
window when -showWindow is called (by calling makeKeyAndOrderFront),
and everything seems fine. It mostly works without a problem, but
sometimes it crashes with in the -makeKeyAndOrderFront: method (crash
log included below). However, when I make an empty subclass of
NSImageView and change my image view's type, it crashes nearly every
time when I try to show the window.
Has anyone seen this before or does someone have any idea what I'm
doing wrong?
Thanks!
Josh
Date/Time: 2003-01-20 23:37:28 -0600
OS Version: 10.2.3 (Build 6G30)
Host: dhcp087233.res-hall.northwestern.edu
Command: Lightbox
PID: 7484
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x746c6500
Thread 0 Crashed:
#0 0x9068ba54 in objc_msgSend
#1 0x907e2e14 in -[NSArray makeObjectsPerformSelector:withObject:]
#2 0x930b7808 in -[NSView _windowChangedKeyState]
#3 0x907e2e14 in -[NSArray makeObjectsPerformSelector:withObject:]
#4 0x930b7808 in -[NSView _windowChangedKeyState]
#5 0x907e2e14 in -[NSArray makeObjectsPerformSelector:withObject:]
#6 0x930b7808 in -[NSView _windowChangedKeyState]
#7 0x907e2e14 in -[NSArray makeObjectsPerformSelector:withObject:]
#8 0x930b7808 in -[NSView _windowChangedKeyState]
#9 0x9313e780 in -[NSFrameView _windowChangedKeyState]
#10 0x9316842c in -[NSWindow _setFrameNeedsDisplay:]
#11 0x93167f04 in -[NSWindow makeKeyAndOrderFront:]
#12 0x0003ce20 in -[LBPreviewController showWindow:]
(LBPreviewController.m:201)
#13 0x00030300 in -[LBThumbnailView mouseDown:]
(LBThumbnailView.m:486)
#14 0x930c0888 in -[NSWindow sendEvent:]
#15 0x930a8788 in -[NSApplication sendEvent:]
#16 0x930b1608 in -[NSApplication run]
#17 0x9315f6b8 in NSApplicationMain
#18 0x00004288 in main (main.m:13)
#19 0x0000400c in _start (crt.c:267)
#20 0x00003e8c in start
Thread 1:
#0 0x9003eaa8 in semaphore_wait_signal_trap
#1 0x9003e8c4 in _pthread_cond_wait
#2 0x9182d53c in pthreadSemaphoreWait(t_pthreadSemaphore*)
#3 0x9182d22c in CMMConvTask(void*)
#4 0x90020d48 in _pthread_body
PPC Thread State:
srr0: 0x9068ba54 srr1: 0x0000f030 vrsave: 0x00000000
xer: 0x00000000 lr: 0x907e2e14 ctr: 0x9068ba3c mq: 0x00000000
r0: 0x907e2e14 r1: 0xbfffe4a0 r2: 0x907e1dec r3: 0x01dbdfc0
r4: 0x906a3f1c r5: 0x00000000 r6: 0x01dbdfc0 r7: 0x00000001
r8: 0x00000000 r9: 0xbfffe4e0 r10: 0x00282e80 r11: 0xa07e0c90
r12: 0x746c6500 r13: 0x00000000 r14: 0x00000000 r15: 0xa309f6ec
r16: 0xa309f6ec r17: 0xa309f6ec r18: 0xa306f6ec r19: 0x00000000
r20: 0xa306f6ec r21: 0xa306f6ec r22: 0xa306f6ec r23: 0xa309f6ec
r24: 0x00000000 r25: 0x906a3f1c r26: 0x01da98f0 r27: 0x00000001
r28: 0x00000000 r29: 0x00000001 r30: 0x00000001 r31: 0x907e2d14
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.