SIGSEGV/SIGBUS in java cocoa app using NSComboBox and NSTableView
SIGSEGV/SIGBUS in java cocoa app using NSComboBox and NSTableView
- Subject: SIGSEGV/SIGBUS in java cocoa app using NSComboBox and NSTableView
- From: "Nick Emery" <email@hidden>
- Date: Mon, 14 May 2001 21:54:58 +0100
- Organization: Peramon technology Ltd
hi,
i'm building a java cocoa application using project builder and interface
builder and seem to be getting a crash that i can't explain. any help would
be much appreciated.
here are the details:
the app consists of a single window which contains an NSComboBox and an
NSTableView. the combo box is set up with some strings. the idea is that
you can select one of these strings, or type in some other text and the app
uses this text to lookup information in a database. the database lookup
results are then displayed in the NSTableView.
i've assigned the NSComboBox action to a method which does the search and
then sets the results in the NSTableView's associated data source class.
once the data is set, it then calls NSTableView.reloadData to get the table
displayed correctly.
this all works fine the first time the NSComboBox's action is taken, but on
subsequent calls, the entire app crashes sometimes with a SIGSEGV and
sometimes with a SIGBUS. as i've not written any c/c++/obj-c code, i'm at a
bit of a loss as to how to proceed to find out what is causing the problem.
any help...
--nikki