A hotfix for SQL Compact 3.1 and 3.5 is now available. It solves the following issue related to deletion of rows:
You have an application that inserts many rows into a table. The table is in a database in Microsoft SQL Server 2005 Compact Edition or in Microsoft SQL Server Compact 3.5. The application inserts the rows in multiple threads. Additionally, the application inserts more than 10 rows per second. In this scenario, you intermittently receive the following error message when you try to delete the rows from the table in the database:
Major Error 0x80004005, Minor Error 0. Attempted to divide by zero