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]