postNotificationName random crash
postNotificationName random crash
- Subject: postNotificationName random crash
- From: nick briggs <email@hidden>
- Date: Sat, 16 Sep 2006 15:54:45 +0100
Hello
We're getting a crash, maybe 1 time in 20, when posting a notification
I'm really not sure how to proceed, any ideas on what may cause
postNotificationName to crash in this manner? The code is straight
forward and we use notifications extensively in this app with out
ever having seen this problem.
Code and stack below.
Cheers
Nick
----
#define kBigSequenceItemSelectedNotification
@"BigSequenceItemSelectedNotification"
// in BigSequenceTableView (NSTableView subclass)
- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender
{
NSPoint point = [self convertPoint:[sender draggingLocation]
fromView:nil];
int row = [self rowAtPoint:point];
[[self delegate]tableView:self acceptDrop:sender row:row
dropOperation:NSTableViewDropOn];
return YES;
}
// in BigSequenceController (NSWindowController subclass)
- (BOOL)tableView:(NSTableView*)tv acceptDrop:(id <NSDraggingInfo>)
info row:(int)row dropOperation:(NSTableViewDropOperation)op{
{
...
[[NSNotificationCenter defaultCenter]
postNotificationName:kBigSequenceItemSelectedNotification object:nil];
}
// stack
#0 0x909bd53c in _objc_search_builtins
#1 0x909bd460 in __sel_registerName
#2 0x909c0c48 in fixupSelectorsInMethodList
#3 0x909c0424 in _class_lookupMethodAndLoadCache
#4 0x909c01f4 in objc_msgSend
#5 0x909c0670 in class_initialize
#6 0x909c031c in _class_lookupMethodAndLoadCache
#7 0x909c01f4 in objc_msgSend
#8 0x928d4018 in _nsnote_callback
#9 0x907854c4 in __CFXNotificationPost
#10 0x9077d5a0 in _CFXNotificationPostNotification
#11 0x928be420 in -[NSNotificationCenter
postNotificationName:object:userInfo:]
#12 0x0006f2e4 in -[BigSequenceController
tableView:acceptDrop:row:dropOperation:] at BigSequenceController.m:1194
#13 0x00082798 in -[BigSequenceTableView performDragOperation:] at
BigSequenceTableView.m:65
#14 0x938d8710 in NSCoreDragReceiveProc
#15 0x91814988 in DoDropMessage
#16 0x918148f8 in SendDropMessage
#17 0x91812ff4 in DragInApplication
#18 0x91812958 in DragLoop
#19 0x91811a5c in CoreDragStartDragging
#20 0x938de4d0 in -[NSCoreDragManager _dragUntilMouseUp:accepted:]
#21 0x938ddd4c in -[NSCoreDragManager
dragImage:fromWindow:at:offset:event:pasteboard:source:slideBack:]
#22 0x938dd8d8 in -[NSWindow(NSDrag)
dragImage:at:offset:event:pasteboard:source:slideBack:]
#23 0x938dd83c in -[NSView(NSDrag)
dragImage:at:offset:event:pasteboard:source:slideBack:]
#24 0x938e0b38 in -[NSOutlineView
dragImage:at:offset:event:pasteboard:source:slideBack:]
#25 0x938e00c8 in -[NSTableView
_doImageDragUsingRowsWithIndexes:event:pasteboard:source:slideBack:]
#26 0x93736c14 in -[NSTableView _performDragFromMouseDown:]
#27 0x93735cc0 in -[NSTableView mouseDown:]
#28 0x937f5a30 in -[NSOutlineView mouseDown:]
#29 0x0010c9c4 in -[BigOutlineView mouseDown:] at BigOutlineView.m:42
#30 0x936d5eb0 in -[NSWindow sendEvent:]
#31 0x9367eef4 in -[NSApplication sendEvent:]
#32 0x001037dc in -[BigApplication sendEvent:] at BigApplication.m:66
#33 0x93676330 in -[NSApplication run]
#34 0x93766e68 in NSApplicationMain
#35 0x0000bc80 in main at main.m:31
-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden