• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: SIGSEGV/SIGBUS in java cocoa app using NSComboBox and NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: SIGSEGV/SIGBUS in java cocoa app using NSComboBox and NSTableView
      • From: "Nick Emery" <email@hidden>
References: 
 >Re: SIGSEGV/SIGBUS in java cocoa app using NSComboBox and NSTableView (From: "Nick Emery" <email@hidden>)

  • Prev by Date: NSTableView in an utility window
  • Next by Date: Re: Type/Creator Codes
  • Previous by thread: Re: SIGSEGV/SIGBUS in java cocoa app using NSComboBox and NSTableView
  • Next by thread: Re: SIGSEGV/SIGBUS in java cocoa app using NSComboBox and NSTableView
  • Index(es):
    • Date
    • Thread