• 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: NSApplication and UIApplication
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSApplication and UIApplication


  • Subject: Re: NSApplication and UIApplication
  • From: DKJ <email@hidden>
  • Date: Mon, 6 Jul 2009 13:25:08 -0700

On 6-Jul-09, at 11:48 , DKJ wrote:
I'm getting an intermittent infinite loop in the simulator that I can't seem to reproduce.

Both on the simulator and the device, the problem unfolds like this: The app goes into its loop and begins filling up all available memory with something or other. I press the Home button to terminate. Then afterwards the application refuses to restart: I have to recompile and put it back on the simulator or device.


I did a sample with Activity Monitor while the app was doing its infinite loop in the simulator. If I understand the output, it happens in a method that's parsing a string. So of course I'm looking at that part of the code closely. But the infinite loop occurs only infrequently, and I can't reproduce it, even with exactly the same string input.

Any idea why the app is refusing to restart? This is what I get in the Apple report:

   Exception Type:  EXC_BREAKPOINT (SIGTRAP)
   Exception Codes: 0x0000000000000002, 0x0000000000000000
   Crashed Thread:  0

Application Specific Information:
iPhone Simulator 3.0 (138), iPhone OS 2.2.1 (5H11)
*** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '*** -[UITableViewCell initWithStyle:reuseIdentifier:]: unrecognized selector sent to instance 0x530f10'


Does this mean that the message listed is being sent to something that isn't a UITableViewCell? Is there away I can use that instance number to track down that something?

There are two small XML files that store data in the Documents directory. I've had a look at them, and they've not been corrupted. In any case, I've coded the app to reset itself if it can't load those data files. (My understanding is that arrayWithContentsOfFile: won't load the data if the XML can't be parsed properly.)

As always, any help is much appreciated.

dkj

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSApplication and UIApplication
      • From: Luke the Hiesterman <email@hidden>
    • Re: NSApplication and UIApplication
      • From: David Duncan <email@hidden>
References: 
 >NSApplication and UIApplication (From: DKJ <email@hidden>)
 >Re: NSApplication and UIApplication (From: Luke the Hiesterman <email@hidden>)
 >Re: NSApplication and UIApplication (From: DKJ <email@hidden>)

  • Prev by Date: Re: TableView displaying a zillion empty rows
  • Next by Date: Re: NSApplication and UIApplication
  • Previous by thread: Re: NSApplication and UIApplication
  • Next by thread: Re: NSApplication and UIApplication
  • Index(es):
    • Date
    • Thread