SQL Compact 4.0 crashing
I have application which do multiple accessing to DB (SqlCompact 4.0). And sometimes application crashed with the next record in 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()
P.S. Multiple accessing means that there are N tasks(Task Parallel Library) which add records in DB开发者_如何学编程.
精彩评论