Win7 上没有 qtcore4.dll 时 Winform 崩溃
我正在编写一个 Windows 窗体应用程序,它广泛使用 datagridview 和其他 .net 组件。当我在 Win 7 上运行该应用程序时,它总是崩溃,说缺少 qtcore4.dll 库。 我的问题是:这是正常行为吗?而且这种事只发生在我身上?那个图书馆是做什么的?
I'm writing a Windows Form Application, that makes extensive use of datagridview and others .net components. When I run the application on a Win 7, it always crashes, saying the qtcore4.dll library is missing.
My question is: is this a normal behaviour? and this is happening only to me? and what does that library do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
运行 Process Monitor 并查看它尝试在磁盘上的哪个位置加载
qtcore4。 dll
。然后确保您在磁盘上的该位置安装了该 .dll 的副本。
否则,您可能需要开始将其与应用程序一起发送到与运行时可执行文件相同的目录中。
Run Process Monitor and see where on disk it's trying to load
qtcore4.dll
.Then make sure you have a copy of that .dll installed on disk in that location.
Otherwise, you may need to start shipping it with your application in the same directory as the run-time executable.
将应用程序加载到 Dependency Walker 中,它将显示哪个其他 dll 正在尝试使用它 - 假设它没有通过
LoadLibrary()
加载,在这种情况下,Mike 建议使用 Process Monitor 会更有用Load the application into Dependency Walker which will show you which other dll is trying to use it -- assuming it is not loaded via
LoadLibrary()
, in which case Mike's suggestion of using Process Monitor will be more useful