Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / app crashing on tablet but ok in windows

Author
Message
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 7th Feb 2013 18:44
hmmm.. seems when i use deleteallsprites() it is fine in windows but crashes on the tablet





any known reason why this is? i would expect whatever works on windows should do on the tablet!

Hail to the king, baby!
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 7th Feb 2013 19:29
What version of AppGameKit (v1076 or v1088)?

What kind of tablet (Android or iOS)?

Are you using a Player?

If so, where did you get the Player?

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
AgentSam
12
Years of Service
User Offline
Joined: 14th Mar 2012
Location: Virtual Space
Posted: 7th Feb 2013 19:43 Edited at: 7th Feb 2013 19:47
@Shadey:

Also, you should propably change "next n" to "next p", because the "n" is not defined anywhere in your sample. You could also omit the variable name completely from the "next" statement (the previous for statement is automatically implied).

Whether this has anything to do with your crash, is another matter. But still worth fixing.

And also, since you're apparently initializing a few globals within the function, make sure you've actually declared them as globals before calling the function. So.. are you sure it's the call to "deleteallsprites" that actually causes the crash...?

Cheers,
AgentSam
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 7th Feb 2013 20:21
I missed that one AgentSam, good catch. That is probably the main issue.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 8th Feb 2013 11:13 Edited at: 8th Feb 2013 11:16
ooops,yeh sorry i did change some code but missed changing that n, it is amazing how agk tries to run regardless isnt it, that wasnt the main reason though, found out that previous code given to me on another post had different vars to mine for the sprite creations, it is too easy to miss this stuff though when you are busy trying to work out other sections that aint working, i had too many for-next n's for my own good,i dont even like using for next loops!

Hail to the king, baby!

Login to post a reply

Server time is: 2024-11-24 08:22:51
Your offset time is: 2024-11-24 08:22:51