|
Modifying database from secondary thread (ThreadExecute) |
Iniciado por p.maravilla, mar., 02 2020 4:13 PM - Sem resposta |
| |
| | | |
|
| |
Publicado em março, 02 2020 - 4:13 PM |
Hello,
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. |
| |
| |
| | | |
|
| | | | |
| | |
|