Greetings, I'm reporting a crash I'm getting in my application. I'm using a NavigationDialogMBS object to allow selecting anything and want to show it in a sheet. I'm providing the code and the crash. Do you see something obviously wrong in my code, that I'd not have caught? (BTW: I want to show it as a sheet because, otherwise, dragging folders/files from the Finder doesn't work (drag not allowed over the dialog)).
Here's the code: dim f As FolderItem dim n As NavigationDialogMBS dim p As NavigationDialogOptionsMBS dim r As NavigationDialogResultMBS n=new NavigationDialogMBS p=new NavigationDialogOptionsMBS p.ActionButtonLabel="Choisir" p.ClientName=app.ExecutableFile.DisplayName p.Flags=256+512+4096*4+4096 p.Message="Choisir l'élément à archiver:" p.PreferenceKey=10 p.WindowTitle="Archiver" p.Modality=3 p.Parent=self 'Is in a window, of course n.Options=p n.ShowChooseObjectDialog r=n.Result if r=nil then Return f=r.File and here's the crash log: Code Type: X86 (Native) OS Version: Mac OS X 10.6.8 (10K549) Report Version: 6 Interval Since Last Report: 7974215 sec Crashes Since Last Report: 209 Per-App Interval Since Last Report: 4959 sec Per-App Crashes Since Last Report: 1 Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x000000000000003b Crashed Thread: 0 Dispatch queue: com.apple.main-thread Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 rbframework.dylib 0x0031820e FindObjectCode(RuntimeObject*, ObjectHook*) + 20 1 rbframework.dylib 0x00301a0a GetEventInstance + 32 2 ... MacOSX Plugin.rbx_15.dylib 0x145aa914 REALGetEventInstance(REALcontrolInstanceStruct*, REALevent*) + 68 3 ... MacOSX Plugin.rbx_15.dylib 0x145a7574 MyNavObjectFilterProc(AEDesc*, void*, void*, short) + 36 4 com.apple.AppKit 0x9944c4ff -[NSNavOpenPanel _shouldShowNodeRef:] + 2087 5 com.apple.AppKit 0x9944de6b -[NSNavOpenPanel _delegateShouldEnableNode:] + 296 6 com.apple.AppKit 0x991d39a7 -[NSNavDataSource displayStateForNode:] + 81 7 com.apple.AppKit 0x991eda6c -[NSNavOutlineView drawRow:clipRect:] + 165 8 com.apple.AppKit 0x98e45162 -[NSTableView drawRowIndexes:clipRect:] + 360 9 com.apple.AppKit 0x98e44fef -[NSOutlineView drawRowIndexes:clipRect:] + 125 10 com.apple.AppKit 0x98e43b3b -[NSTableView drawRect:] + 1144 11 com.apple.AppKit 0x98e3961e -[NSView _drawRect:clip:] + 3510 12 com.apple.AppKit 0x98e382bc -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1600 13 com.apple.AppKit 0x98e385f1 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2421 14 com.apple.AppKit 0x98e385f1 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2421 15 com.apple.AppKit 0x98e367db -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 711 16 com.apple.AppKit 0x98e37750 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4668 17 com.apple.AppKit 0x98e37750 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4668 18 com.apple.AppKit 0x98e37750 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4668 19 com.apple.AppKit 0x98e37750 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4668 20 com.apple.AppKit 0x98e37750 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4668 21 com.apple.AppKit 0x98e37750 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4668 22 com.apple.AppKit 0x98e37750 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4668 23 com.apple.AppKit 0x98e3634f -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 265 24 com.apple.AppKit 0x98e32c96 -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 3309 25 com.apple.AppKit 0x98d9384b -[NSView displayIfNeeded] + 818 26 com.apple.AppKit 0x98d5cb64 -[NSWindow displayIfNeeded] + 204 27 com.apple.AppKit 0x98d8e07e _handleWindowNeedsDisplay + 696 28 com.apple.CoreFoundation 0x98233dd2 __CFRunLoopDoObservers + 1186 29 com.apple.CoreFoundation 0x981efced __CFRunLoopRun + 557 30 com.apple.CoreFoundation 0x981ef3c4 CFRunLoopRunSpecific + 452 31 com.apple.CoreFoundation 0x981ef1f1 CFRunLoopRunInMode + 97 32 com.apple.HIToolbox 0x99b17e04 RunCurrentEventLoopInMode + 392 33 com.apple.HIToolbox 0x99b17af5 ReceiveNextEventCommon + 158 34 com.apple.HIToolbox 0x99b17a3e BlockUntilNextEventMatchingListInMode + 81 35 com.apple.AppKit 0x98d64595 _DPSNextEvent + 847 36 com.apple.AppKit 0x98d63dd6 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156 37 rbframework.dylib 0x003f18da CocoaMenu::AddChild(RunMenuItem*) + 928 38 rbframework.dylib 0x003f1654 CocoaMenu::AddChild(RunMenuItem*) + 282 39 Gestionnaire d'archives.debug 0x00002d0e Delegate.Invoke%% + 34 40 Gestionnaire d'archives.debug 0x0009594f Application._CallFunctionWithExceptionHandling%%o<Application>p + 248 41 rbframework.dylib 0x00327534 CallFunctionWithExceptionHandling(void (*)()) + 316 42 rbframework.dylib 0x003f186c CocoaMenu::AddChild(RunMenuItem*) + 818 43 com.apple.AppKit 0x98d261f3 -[NSApplication run] + 821 44 rbframework.dylib 0x003f1aac CocoaMenu::AddChild(RunMenuItem*) + 1394 45 rbframework.dylib 0x003275ff mainloop() + 155 46 rbframework.dylib 0x002d8104 RuntimeRun + 48 47 Gestionnaire d'archives.debug 0x0018a4cf REALbasic._RuntimeRun + 34 48 Gestionnaire d'archives.debug 0x00002bfa _Main + 245 49 Gestionnaire d'archives.debug 0x000025c4 % main + 36 50 Gestionnaire d'archives.debug 0x001ed3fe _start + 116 51 Gestionnaire d'archives.debug 0x001ed354 start + 43 Thread 1: Dispatch queue: com.apple.libdispatch-manager 0 libSystem.B.dylib 0x91892382 kevent + 10 1 libSystem.B.dylib 0x91892a9c _dispatch_mgr_invoke + 215 2 libSystem.B.dylib 0x91891f59 _dispatch_queue_invoke + 163 3 libSystem.B.dylib 0x91891cfe _dispatch_worker_thread2 + 240 4 libSystem.B.dylib 0x91891781 _pthread_wqthread + 390 5 libSystem.B.dylib 0x918915c6 start_wqthread + 30 Thread 2: 0 libSystem.B.dylib 0x91891412 __workq_kernreturn + 10 1 libSystem.B.dylib 0x918919a8 _pthread_wqthread + 941 2 libSystem.B.dylib 0x918915c6 start_wqthread + 30 Thread 3: 0 libSystem.B.dylib 0x9186bafa mach_msg_trap + 10 1 libSystem.B.dylib 0x9186c267 mach_msg + 68 2 com.unsanity.ape 0x006d6725 __ape_agent + 255 3 libSystem.B.dylib 0x91899259 _pthread_start + 345 4 libSystem.B.dylib 0x918990de thread_start + 34 Thread 4: 0 libSystem.B.dylib 0x91891412 __workq_kernreturn + 10 1 libSystem.B.dylib 0x918919a8 _pthread_wqthread + 941 2 libSystem.B.dylib 0x918915c6 start_wqthread + 30 Thread 5: 0 libSystem.B.dylib 0x91891412 __workq_kernreturn + 10 1 libSystem.B.dylib 0x918919a8 _pthread_wqthread + 941 2 libSystem.B.dylib 0x918915c6 start_wqthread + 30 Thread 6: 0 libSystem.B.dylib 0x91891412 __workq_kernreturn + 10 1 libSystem.B.dylib 0x918919a8 _pthread_wqthread + 941 2 libSystem.B.dylib 0x918915c6 start_wqthread + 30 Thread 7: 0 libSystem.B.dylib 0x91899aa2 __semwait_signal + 10 1 libSystem.B.dylib 0x918c59c5 nanosleep$UNIX2003 + 188 2 libSystem.B.dylib 0x918c5903 usleep$UNIX2003 + 61 3 com.apple.AppKit 0x98ecde2d -[NSUIHeartBeat _heartBeatThread:] + 2039 4 com.apple.Foundation 0x970a14c4 -[NSThread main] + 45 5 com.apple.Foundation 0x970a1474 __NSThread__main__ + 1499 6 libSystem.B.dylib 0x91899259 _pthread_start + 345 7 libSystem.B.dylib 0x918990de thread_start + 34 Thread 8: 0 libSystem.B.dylib 0x9186bafa mach_msg_trap + 10 1 libSystem.B.dylib 0x9186c267 mach_msg + 68 2 com.apple.CoreFoundation 0x981f02df __CFRunLoopRun + 2079 3 com.apple.CoreFoundation 0x981ef3c4 CFRunLoopRunSpecific + 452 4 com.apple.CoreFoundation 0x981f5304 CFRunLoopRun + 84 5 com.apple.DesktopServices 0x980cdb3d TSystemNotificationTask::SystemNotificationTaskProc(void*) + 643 6 ...ple.CoreServices.CarbonCore 0x9963c54a PrivateMPEntryPoint + 68 7 libSystem.B.dylib 0x91899259 _pthread_start + 345 8 libSystem.B.dylib 0x918990de thread_start + 34 Thread 9: 0 libSystem.B.dylib 0x91891412 __workq_kernreturn + 10 1 libSystem.B.dylib 0x918919a8 _pthread_wqthread + 941 2 libSystem.B.dylib 0x918915c6 start_wqthread + 30 Thread 10: 0 libSystem.B.dylib 0x91891412 __workq_kernreturn + 10 1 libSystem.B.dylib 0x918919a8 _pthread_wqthread + 941 2 libSystem.B.dylib 0x918915c6 start_wqthread + 30 Thread 11: com.apple.CFSocket.private 0 libSystem.B.dylib 0x9188aac6 select$DARWIN_EXTSN + 10 1 com.apple.CoreFoundation 0x9822fc53 __CFSocketManager + 1091 2 libSystem.B.dylib 0x91899259 _pthread_start + 345 3 libSystem.B.dylib 0x918990de thread_start + 34 Thread 12: 0 libSystem.B.dylib 0x91891412 __workq_kernreturn + 10 1 libSystem.B.dylib 0x918919a8 _pthread_wqthread + 941 2 libSystem.B.dylib 0x918915c6 start_wqthread + 30 Thread 0 crashed with X86 Thread State (32-bit): eax: 0x0000000b ebx: 0x9944bce9 ecx: 0x003019ea edx: 0x0204d8c8 edi: 0xbfffbdcc esi: 0x145aa8dc ebp: 0xbfffbcb8 esp: 0xbfffbcb8 ss: 0x0000001f efl: 0x00010202 eip: 0x0031820e cs: 0x00000017 ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037 cr2: 0x0000003b _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
