Skip to main content
Participating Frequently
July 18, 2012
Question

iOS application dies - suspect a memory issue

  • July 18, 2012
  • 6 replies
  • 1150 views

Hi,

I have a reasonably large AIR application developed in CS6 using AIR 3.3 (I tried 3.2 as well). Works fine on my computer but when I upload it to an iPhone the application tries to start but then dies and returns to the apple home screen.

The application contains about 12 screens each of which contain many (50+) variables / movie clips etc. Tried to debug it using the external debugger but no errors appear in CS6. When I limit the number of screens I create to e.g. 9 screens only it starts to work again. Which 3 I disable is totally irrelevant (first  or last 3 screens) - when I get down to 9 screens all is well.

I don't really know where to start looking for a solution to this. Anyone has any suggestions?

Thanks

Leon

This topic has been closed for replies.

6 replies

Inspiring
July 18, 2012

Using any ANEs? The number of slides could be a red herring.

Have you looked at the Console pane in the iPhone Config Utility while running the app?

Inspiring
July 19, 2012

9 or less works, 10 or more does not... show us your code.

it could be a problem with a number of things, but is probably an easy fix:

[for loops, naming conventions, missing objects, declaration of an object, etc...]

Participating Frequently
July 19, 2012

Thanks for your replies - in answer to your questions:

  • "Using ANE's?": yes about 7 of them....
  • "Looked a the console pane?" That was a very interesting one. I never knew I could do that and it seems like a great tool. I just posted another question about this as it would safe me weeks of works if I could actually put my own stuff (from my application) on this console. Is there a way of doing that?
  • "Show us your code". - It really is too big to post here but I refactored my code so it uses less screens and it seems to be working now so for the time being - I'm OK

Leon

Adobe Employee
July 18, 2012

Does closing all the background apps make any difference?

Participating Frequently
July 18, 2012

Unfortunately not. Tried rebooting the phone frequently and makes no difference.