SQL Compact 4.0 崩溃
我有对数据库进行多次访问的应用程序(SqlCompact 4.0)。 有时应用程序会因事件查看器中的下一条记录而崩溃。
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 多重访问意味着有N个任务(任务并行库)在DB中添加记录。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论