
My testApp working fine most of time. It does not crashes during using it but 1 out of 10 whenever I close app, it crashes at the point of closing. android platform answers "Unfortunately, testApp has stopped."
1. open the testApp with android mobile
2. In the app, I save data into stack tDataStackPath in specialFolderPath("documents") (set the cText of stack tDataStackPath to field "saved" then save stack tDataStackPath.)
3. I press backKey to close app
4. the android platform answers "Unfortunately, testApp has stopped."<--happens 1~2 out 10 times of closing
5. closed
testApp consist of
1.main stack ( it works as if splash screen and it directs one of substacks.)
2.two substacks
3.one separate stack tDataStackPath created by main stack in document file path. ( it's about little less than 300KB, stack tdataStackPath is not the part of the standalone.)
Here is the code for closing testApp
Code: Select all
-----the handler placed in the one of substacks---
on backKey
send "closeAllStacks" to stack "main"
end backKey
----the handler placed in the main stack---
on closeAllStacks
close stack "one"
close stack "two"
close stack tDataStackPath
close this stack
end closeAllStacks
Anyone has clue with this problem?
Cheers,
Louis