Codea quits, how to investigate?

I have a project which sometimes quits codea when I run it. I suspect it’s a memory thing, but I’m not sure how to go about investigating this.

The project makes use of a number of classes.

How long does it run before it quits. Do you use a lot of tables, are you using Craft, are you doing a lot of graphics. Without seeing any code or knowing what the code is doing, it’s hard to say what to look for

@Kirl - what system (iPad) and iOS version are you? What memory size?

There are a few tricks that you can use to check for exceeding memory levels, we’ll check those out and post. As @dave1707 has mentioned, showing us some of the code will also help. Is your code extensive, if so can you rem out sections to try to identify the routines which are causing the problem. The time to Codea dropout may give us a hint - but we need to see some code!

@Kirl - to check for continual memory loss use the following two lines at the end of your draw() function:


Search on the forum for an FPS routine which will check for processor usage, best running at 60 FPS (frames per second).

Gives you a good start to monitoring problems.