Sorry yes for Android. I was looking at the Basicfor PPC page right before I posted this.
Basic4Android.
I only have 1 bitmap on each of 3 of the 29 screens and they are all 100x100 so not large. I have remmed out all the bitmap code and just left text placeholders for them and still get the same behaviour so I do not believe it has anything to do with the bitmaps.
I have no timers running and the only sensor with a change event is for the orientation sensor and I only initialize and start listening on a certain page that seldom gets used. When I leave that page I stop listening.
What else would Basic4Android have running in the background that would be consuming memory even if the user is not hitting buttons, moving listviews, etc.?
Your statement "Incorrectly working with SQL objects can also cause problems." intrigues me.
I can't upload all my app code but below is typical of how I pull of push data to/from the DB. Loads data from the DB and sticks it in a listView called :
Dim listFields As ListView
' Declared up in Globals section
'further down in code
Dim num As Int
loadScreen("fields")
' Designer Screen containing listFields
listFields.FastScrollEnabled = True
' Tried with and without this
num = sqlCon.ExecQuerySingleResult("SELECT count(*) FROM fields")
Cursor = sqlCon.ExecQuery("SELECT DISTINCT field, state FROM Fields ORDER BY field, state ASC")
listFields.clear
If num = 0 Then
listFields.AddSingleLine("No fields in fields table!")
Else
For i = 0 To Cursor.RowCount - 1
Cursor.Position = i
Try
listFields.AddSingleLine(Cursor.GetString("field").Trim & " - " & Cursor.GetString("state").Trim)
Catch
' Handle error
End Try
Next
End If
Try
Cursor.Close
Catch
End Try
I suspected these were leaving memory hanging but have tried to clear several different ways.
Thanks for your help
Are you asking about Basic4android or Basic4ppc?
Edit: seems like you are asking about Basic4android.
There is nothing inherent in Basic4android that will cause your app to slow down over time. It is really hard to say without seeing your code. Loading many bitmaps (especially without using LoadBitmapSample) can cause memory issues.
Incorrectly working with SQL objects can also cause problems. Can you upload your project?