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: "Nick Emery" <email@hidden>
- Date: Thu, 17 May 2001 09:29:39 +0100
- Organization: Peramon technology Ltd
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.
only thing i can think of is that the database lookup code (all written in java)
uses the java.net.* classes to access the data across the network. is this ok
in an appkit application?
i'm really stuck on how to proceed to find out what the problem is. anyone
have any ideas?
--nikki
--------------------------- Attachement------------------------------------
getting row = 3 col = 2
Caching...
returning java.lang.String:29 new articles found by agent Elise160
getting row = 3 col = 3
Caching...
returning java.lang.String:07/03/01 12:33
getting row = 3 col = 4
Caching...
returning java.lang.String:6144
getting row = 4 col = 0
Caching...
returning com.apple.cocoa.application.NSImage:NSImage 0x1d960b0 Name=mail_flags_0 Size={23, 12} Reps=(
NSBitmapImageRep 0x1cd5560 Size={23, 12} ColorSpace=NSCalibratedRGBColorSpace BPS=8 Pixels=23x12 Alpha=YES
)
getting row = 4 col = 1
Caching...
returning java.lang.String:Nick Emery
May 17 09:19:54 Test[288] java/lang/NullPointerException
Stack Trace:
java.lang.NullPointerException
Test.app has exited due to signal 6 (SIGABRT).