Hi,

I have a Carbon based application, in which platform Open/save dialogs are 
based on NSOpenPanel and NSSavePanel.
Since, am accessing Cocoa stuff inside Carbon app, I did NSApplicationLoad() as 
suggested in one of Apple's document.

Whenever another dialog window is launched after the Open/Save dialog, 
application crashes.

Following is the crash log -
Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000ffc6c6c6
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Application Specific Information:
objc_msgSend() selector name: respondsToSelector:

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib                              0x92dd3eec objc_msgSend + 44
1   com.apple.Foundation             0x918ab3bf _nsnote_callback + 176
2   com.apple.CoreFoundation                   0x93c4e793 __CFXNotificationPost 
+ 947
3   com.apple.CoreFoundation                   0x93c4e19a 
_CFXNotificationPostNotification + 186
4   com.apple.Foundation             0x918a025c -[NSNotificationCenter 
postNotificationName:object:userInfo:] + 128
5   com.apple.Foundation             0x918ad669 -[NSNotificationCenter 
postNotificationName:object:] + 56
6   com.apple.AppKit                      0x94297afb -[NSNavView 
_handleSelectionChanged] + 73
7   com.apple.Foundation             0x918ab3bf _nsnote_callback + 176
8   com.apple.CoreFoundation                   0x93c4e793 __CFXNotificationPost 
+ 947
9   com.apple.CoreFoundation                   0x93c4e19a 
_CFXNotificationPostNotification + 186
10  com.apple.Foundation          0x918a025c -[NSNotificationCenter 
postNotificationName:object:userInfo:] + 128
11  com.apple.Foundation          0x918ad669 -[NSNotificationCenter 
postNotificationName:object:] + 56
12  com.apple.AppKit                     0x93ea151a -[NSTableView 
_enableSelectionPostingAndPost] + 509
13  com.apple.AppKit                     0x93eacc17 -[NSTableView 
selectRowIndexes:byExtendingSelection:] + 168
14  com.apple.AppKit                     0x9428f104 -[NSNavOutlineDelegate 
_setHighlightedRowsFromNodes:maintainFirstVisibleRow:] + 252
15  com.apple.AppKit                     0x9428e07c -[NSNavOutlineDelegate 
reloadChildrenForNode:] + 160
16  com.apple.AppKit                     0x94276279 -[NSNavDataSource 
_reloadChildrenForNode:] + 67
17  com.apple.AppKit                     0x9427467e -[NSNavDataSource 
_handleAddedChildNode:toExpandedNode:] + 144
18  com.apple.AppKit                     0x9427af5c -[NSNavDataSource 
observeValueForKeyPath:ofObject:change:context:] + 845
19  com.apple.AppKit                     0x9427dea4 -[NSNavFBENode 
_sendChildrenChangedWithDictionary:] + 501
20  com.apple.AppKit                     0x9428261e NSNavNodeEventHandler + 1433
21  com.apple.CoreFoundation                  0x93c32361 __CFRunLoopDoSources0 
+ 1201
22  com.apple.CoreFoundation                  0x93c2ff8f __CFRunLoopRun + 1071
23  com.apple.CoreFoundation                  0x93c2f464 CFRunLoopRunSpecific + 
452
24  com.apple.CoreFoundation                  0x93c2f291 CFRunLoopRunInMode + 97
25  com.apple.HIToolbox              0x938f8e04 RunCurrentEventLoopInMode + 392
26  com.apple.HIToolbox              0x938f8bb9 ReceiveNextEventCommon + 354
27  com.apple.HIToolbox              0x93a81137 ReceiveNextEvent + 83


Are there other pre-configuration steps before calling Cocoa calls from Carbon 
app?
Please provide your suggestions on the possible cause of crash.

- Sanyam

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to