making the stack bigger on the device?

Hello,

I am having some issues with my app running on the actual device.

My app runs fine in the corona simulator, but once i move it to an apk to my testing tablet, it crashes. An overview of what i am doing is as follows:

I have a large XML file sitting on my server. I get this file through an http request, use the lua only XML parser function “collect” by roberto, then using this resulting table i create different display objects and different textObjects from the wrap library. These display objects and text objects all have at least 5 different attributes i give them, according to the xml document.

I have changed the size of the file. It works fine with smaller files, but once it gets to a certain size, it no longer works.

Using different combinations, i have found that no matter the size, the http request works, the xml parser works, but once it starts to create the different objects, this is where the problem arises.

The function i created is recursive, so I am thinking this may have to do with the size of the stack or heap being too small-everything cannot fit on it once the xml tree gets too large. I am not sure what else may be causing this.

So my main question is: If this is indeed the case, how can i go about changing the stack size? I looked at the config files different permissions, but none of them seemed appropriate. Is there some kind of lua command/function/call for this, or is it possibly something i should set on the tablet?
thanks for your help,
Amanda [import]uid: 29997 topic_id: 11286 reply_id: 311286[/import]

I guess another related question would be, how many display objects would be considered too many? Before starting the game, i will have created at least 100…probably more… [import]uid: 29997 topic_id: 11286 reply_id: 41059[/import]

OK…so i read up and somewhere in the docs it mentioned if your main.lua file takes too long to load, some devices will kick you out of the application.

So i split the large file that made the app crash earlier in half, loaded half of it in main and parsed it, then set a timer and loaded the other half and parsed it after 10 seconds. I set the timer to do this every 10 seconds and the app never crashed.

Now it seems that this is not a low memory issue, it is either the time issue with the main.lua, or stack issue.

Can anyone shed some light on this for me, please? [import]uid: 29997 topic_id: 11286 reply_id: 41073[/import]