Author Topic: iPad app keeps crashing  (Read 4585 times)

Offline AlienMenace

  • Mr. Polyvector
  • ***
  • Posts: 149
    • View Profile
Re: iPad app keeps crashing
« Reply #15 on: 2011-Apr-05 »
My version is 9.040. I just installed the 9.052 beta. I'll give that a whirl. Log files sound like a great idea but I'm not sure how to implement log files for an iPad app. Thanks all for your suggestions!
Apps published: 3

Offline AlienMenace

  • Mr. Polyvector
  • ***
  • Posts: 149
    • View Profile
Re: iPad app keeps crashing
« Reply #16 on: 2011-Apr-05 »
Still crashes on the beta. I'll go now and start trying to add some debugging crap into the code. What I don't understand is why it works without issue on Windows? If it was a problem with how I have coded something then it seems that the issue should have popped up in Windows at some point... Oh well,  I will remove the collision detection stuff first.
Apps published: 3

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2702
    • View Profile
Re: iPad app keeps crashing
« Reply #17 on: 2011-Apr-05 »
Ipad 1 has only 256meg of memory, of which almost of 50% is used by the system. Memory leaks simply run out of memory quicker on the iPad than a desktop.
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline AlienMenace

  • Mr. Polyvector
  • ***
  • Posts: 149
    • View Profile
Re: iPad app keeps crashing
« Reply #18 on: 2011-Apr-05 »
I have an iPad1 and an iPad2 also and it crashes on both. I don't *think* it is a memory leak.
Apps published: 3

Offline blackway

  • Mr. Polyvector
  • ***
  • Posts: 186
    • View Profile
Re: iPad app keeps crashing
« Reply #19 on: 2011-Apr-05 »
Are you loading and unloading sounds?
If yes just try to load all of your sounds at the beginning and forget about to unload it...
Hope it helps!
Cheers


Offline AlienMenace

  • Mr. Polyvector
  • ***
  • Posts: 149
    • View Profile
Re: iPad app keeps crashing
« Reply #20 on: 2011-Apr-05 »
Loading all sounds at the beginning.
Apps published: 3

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10762
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: iPad app keeps crashing
« Reply #21 on: 2011-Apr-05 »
Yes, it seems to crash in the collision routine.
So, now every time you do a SPRCOLL or ANIMCOLL, (write a wrapper function: mySPRCOLL), please STDOUT the parameters you pass. Then with these parameters make a small program that loads the 2 sprites/animations and does only this one ANIMCOLL call. It will surely crash as well. Please post me the code and the 2 files then.
I'm so sorry.

Offline AlienMenace

  • Mr. Polyvector
  • ***
  • Posts: 149
    • View Profile
Re: iPad app keeps crashing
« Reply #22 on: 2011-Apr-05 »
Thanks very much for the reply. I'll have to work on that tomorrow night. Really appreciate the help on this one. :)
« Last Edit: 2011-Apr-05 by AlienMenace »
Apps published: 3