Welcome! Log In Create A New Profile


[WM23] Modifying database from secondary thread

Posted by Paco 

I'm trying to run a process in another thread to avoid blocking the UI, but i'm having a problem with the database.

In this thread, I do some updates in a table of a local SQLite database. Everything seems to work as expected, but when I access that table again from the main thread (after the another one was finished), the changes are lost. If I check the database just after the changes have been made, I can even see them, they are applied on the database. But for some reason, when i try to do something with this table on the main Thread, the changes are gone.

I would like to know if I'm missing something and if there's something I could do to accomplish this.

Your Email:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.