• 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: NSTimer discarding exception 'NSInternalInconsistencyException'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTimer discarding exception 'NSInternalInconsistencyException'


  • Subject: Re: NSTimer discarding exception 'NSInternalInconsistencyException'
  • From: j o a r <email@hidden>
  • Date: Sun, 14 Mar 2004 10:54:50 +0100

On 2004-03-14, at 10.29, Fabio Genoese wrote:

> Anyway, I just checked my code. There are no NSRunAlertPanels in use
> (or going to be used) when the app crashes. Nor am I passing nil (null
> in Java) to any Object.

But you crash indicates that you do (not use an alert panel of course,
but that you try to assign a nil string value to a cell).
Add a check that looks something like this (one for every string
assignment in your updateUI method), and set a breakpoint inside the
if-statement:

if (myString == nil)
{
// Set breakpoint here
NSLog(@"myString == nil");
}

> What I am doing is:
> a) create a new NSTimer that invokes a method named updateUI every few
> milliseconds

"every few milliseconds"? Ouch... I hope you at least check for changed
values before you update the controls?

Are there no inter-thread communication tools for Java? What about DO,
does it work for Cocoa-Java projects?

j o a r

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: NSTimer discarding exception 'NSInternalInconsistencyException' (From: Fabio Genoese <email@hidden>)

  • Prev by Date: Re: Cocoa/Foundation and CoreFoundation
  • Next by Date: I build warnings
  • Previous by thread: Re: NSTimer discarding exception 'NSInternalInconsistencyException'
  • Next by thread: I build warnings
  • Index(es):
    • Date
    • Thread