大家好,我目前在使用 Visual Studio 2008 开发的 C# Windows Forms 应用程序中的 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。干杯!