SQL Compact 4.0 Error

I have an application that performs multiple access to DB (SqlCompact 4.0). And sometimes the application crashed with the next entry in the event viewer.

Application: MyApp.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.AccessViolationException Stack: at System.Data.SqlServerCe.NativeMethodsHelper.SafeRelease(IntPtr ByRef) at System.Data.SqlServerCe.NativeMethods.SafeRelease(IntPtr ByRef) at System.Data.SqlServerCe.SqlCeCommand.ReleaseNativeInterfaces() at System.Data.SqlServerCe.SqlCeCommand.Dispose(Boolean) at System.Data.SqlServerCe.SqlCeCommand.Finalize() 

PS Multiple access means that there are N tasks (Task Parallel Library) that add records to the database.

+4
source share

Source: https://habr.com/ru/post/1340758/


All Articles