I have a thread that crashes fairly often if I post a MessageDialog from within the thread.

2006r3, OSX 10.4.7

Anyone know whether it's legal to show a modal dialog from a thread?

I recall past discussions where Aaron said it was legal and shound't crash, but he couldn't see why you'd use a Modaldialog in a thread. In my case the thread has discovered a potential inconsistency in the data it's processing and wants to know if the user wants to continue or abort. Posting that dialog seems to crash the whole app in a WebKit method called PoolCleaner. Which is VERY odd since my app doesn't explicitly use webkit at all.

Thread 7: Crashed (0xb031eebc, 0xb61ff883)
0x9557d60c: /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit : _PoolCleaner + 0x6c 0x907e2c2c: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : _CFRunLoopRunSpecific + 0xac0 0x93170138: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : _RunCurrentEventLoopInMode + 0x124 0x93265f70: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : _GetNextEventMatchingMask + 0x170 0x93265c6c: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : _WNEInternal + 0x98 0x93265bb0: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : _WaitNextEvent + 0x4c 0x932d012c: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : _ModalDialog + 0x2d4 0x932cfdc4: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : _RunStandardAlert + 0x258 0x8556be70: /Users/joehuber/Data Files/RB projects/TalaPhoto í/TalaPhoto.app.debug [CFM] : + 0x8fbe70 0x8556dd88: /Users/joehuber/Data Files/RB projects/TalaPhoto í/TalaPhoto.app.debug [CFM] : + 0x8fdd88 0x85010ddc: /Users/joehuber/Data Files/RB projects/TalaPhoto í/TalaPhoto.app.debug [CFM] : + 0x3a0ddc 0x84e19658: /Users/joehuber/Data Files/RB projects/TalaPhoto í/TalaPhoto.app.debug [CFM] : + 0x1a9658 0x84efadd0: /Users/joehuber/Data Files/RB projects/TalaPhoto í/TalaPhoto.app.debug [CFM] : + 0x28add0 0x84efa5f8: /Users/joehuber/Data Files/RB projects/TalaPhoto í/TalaPhoto.app.debug [CFM] : + 0x28a5f8 0x84ee018c: /Users/joehuber/Data Files/RB projects/TalaPhoto í/TalaPhoto.app.debug [CFM] : + 0x27018c 0x85566c74: /Users/joehuber/Data Files/RB projects/TalaPhoto í/TalaPhoto.app.debug [CFM] : + 0x8f6c74 0x90cdcfb8: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore : _InvokeThreadEntryUPP + 0x18 0x90cdcd38: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore : _CooperativeThread + 0x138
0x9002bea8: /usr/lib/libSystem.B.dylib : __pthread_body + 0x60
0x00000000: /System/Library/Frameworks/Carbon.framework/Versions/A/Support/LaunchCFMApp : + 0x0

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to