My app closes without warning

Caravelle

Active Member
Licensed User
Longtime User
I know an answer to this is to attach my program for examination, but it's long and complicated and relies on a large multi-table sqlite database.

My program simply closes down when I am inputting data, after the data has been filed in the database (a 3rd party sqlite viewer shows it is there). It is supposed to let me type in more data, but... It displays the same behaviour on two different devices, Asus TF101 Transformer and Samsung Galaxy Tab 7 Mk2.

My real question at this stage is general. What can cause a program to close without warning ? What sort of error should I be looking for ? There are no error messages in the IDE and the only thing in the log apart from messages my program tells it to give me is "** Activity (main) Pause, UserClosed = false **" and I have no idea at what point that appeared or if it is related to the problem. The Asus gave me an "Unfortunately Log has stopped working" screen pop-up message but I don't even get that from the Samsung.

I've been working on this program for some time now and while every part has been exhaustively tested in isolation I think I might be getting to the point where some parts are having unintended effects on others.

Thanks

Caravelle
 

Caravelle

Active Member
Licensed User
Longtime User
The Filter check box IS unchecked. There is NO check to remove.
==================================================
==================================================
Edited: Very interesting, I tried checking and unchecking this check box to no avail, I shut down and restarted the B4A IDE, no difference - my program kept dying and there were no relevant messages in the Log, tickbox checked or not.

So I moved over from my laptop to my desktop PC (the program code etc is on a USB stick) and tried that. On the desktop I can't (yet) replicate the fault with my program and the log does contain the expected varieties of message depending on the state of the checkbox. I then checked the "About" in the IDE to see if I was running the same versions of the IDE: 2.71 on the desktop, 2.70 on the laptop. Maybe that makes a difference ? Both machines are Vista. On the other hand I've been using the laptop for the last couple of weeks, often late into the night, and while I've had the usual run of frustrating programming errors to sort out I've never had the sort of problems I encountered today. Weird. I think I shall install version 2.71 on the laptop and try again. I have a sneaking suspicion that something like System Mechanic has "tidied up" the B4A IDE software and broken it.

Caravelle
 
Last edited:
Upvote 0
Top