Main Site Documentation

SQLite exception


#1

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?


#2

Corrupted database file?


#3

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.


#4

Maybe not enough power causing the media to fail sometimes?