Wulf: As a test to see what is happening, you could add an database integrity check to the code. Running either "PRAGMA integrity_check" or "PRAGMA quick_check" and writing the output to the log will give you an idea of what is happening. It isn't something you would want to do all the time, but it might help debug things.
And as the plugin is copying the database from the device, it might be that Marvin still has it open. In that case, a file copy of the database file is likely to produce be corrupt database. I managed to do that with my Kobo Utilities plugin.
|