I got this Memory crash in iphone 3g and 1 gen ipod. i dont understand, it works until 7th level and crashed. i using same scene just releasing by destroy and initiating gameobject at each level.
Please any one came across. I know iam bottom neck of memory. but it should not crash, since i using same memory again and again.
If you have the Pro version of Unity, use it’s profiler to see what is going on with your memory management. If you have Unity iPhone Basic (like me) the other option is to enable internal profiling in the generated Xcode AppDelegate.mm – and from there watch the Xcode debug console while your game is running. I imagine if you do that you’ll see your heap memory slowly climb, hit the max memory point, and then crash / exit with a Status 10 message.
If that is the case, you have a verified allocation problem and can start digging into your code, making small adjustments, and then repeating the profiling exercise to see the changes to the memory allocation.
Things you’ll want to look for are places where you a frequently newing up new objects and creating string references with things like the FindBy methods (tags, names, etc)…especially in the run loops.