SQLite exception

I am using a SQLite database on the chipworkX and sometimes I get the below exception when executing a SQL statement against the database. If I just re-boot the device then it works.

Exception GHIElectronics.NETMF.SQLite.SQLiteException - 0x00000000 (1)

#### Message: database disk image is malformed.

Anyone have any thoughts on what to do to prevent it or has anyone seen it before?

Corrupted database file?

That’s what I thought, but if just reset the ChipworkX it then worked fine.

I could also take the file on the SD card and look at it with a SQLite utility on my PC and it opened fine.

Maybe not enough power causing the media to fail sometimes?