【发布时间】:2010-08-02 15:15:49
【问题描述】:
大家好,我目前在使用 Visual Studio 2008 开发的 C# Windows 窗体应用程序中的 Windows 7 中遇到了一个非常奇怪的崩溃。
该应用程序 - 在 XP 和 Vista 中运行良好 - 从未真正打开;相反,“此应用程序已导致错误并已停止工作”。我使用以下源代码制作了一个虚拟应用程序:
using System;
using System.Windows.Forms;
using System.Data.Common;
using System.Data.SQLite;
namespace TesteWin7
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
SQLiteConnection.CreateFile("c:\\mydatabasefile.db3");
}
}
}
它仍然崩溃,所以我猜这个问题一定在我的 DLL 上。将源代码放在 try-catch 块中也是没有用的,因为不会输出任何消息。
对此有什么想法吗?我正在使用System.Data.SQLite 版本 1.0.66.0。 干杯!
【问题讨论】:
-
发布此崩溃的 Windows 事件日志条目。
标签: c# windows-7 system.data.sqlite