Re: SIGSEGV/SIGBUS in java cocoa app using NSComboBox and NSTableView
Re: SIGSEGV/SIGBUS in java cocoa app using NSComboBox and NSTableView
- Subject: Re: SIGSEGV/SIGBUS in java cocoa app using NSComboBox and NSTableView
- From: Stéphane Sudre <email@hidden>
- Date: Thu, 17 May 2001 12:23:09 +0200
On jeudi, mai 17, 2001, at 10:29 , Nick Emery wrote:
ok, i've moved the code around a bit. in particular i've made my main
controller
class also be the data source for the table; i've also properly cached
the data
returned to the table in the data source methods (something i wanted to
do
anyway because some of these items are computed on the fly).
now, the app does not even display the first table full of data before
crashing.
however, it also now gets a NullPointerException just prior to the crash
but there is no stack backtrace, and the java debugger does not trap
this
exception. attached at the bottom of this email is sample println
output just
prior to the crash. you also notice that i now get a SIGABRT.
clearly i'm doing something very wrong to upset the appkit framework in
this
way, but i've no idea how to find out what is wrong.
If it was some Objective-C code I would have said it was due to a lack
of a retain in the object returned by the:
- (id) tableView:(NSTableView *) inTableView
objectValueForTableColumn:(NSTableColumn *) inColumn row: (int) inRow;
method.