64 位 exe 在 Visual Studio 外崩溃,但在 Visual Studio 内工作 [英] 64 bit exe crashing outside visual studio but working inside visual studio

查看:33
本文介绍了64 位 exe 在 Visual Studio 外崩溃,但在 Visual Studio 内工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 freeglut、optix、cuda 和其他库(其中一些是动态加载的)编译了一个程序.它在 Visual Studio 中编译和运行没有问题,但如果我在 Visual Studio 外执行它,它会崩溃.发布和调试版本都在 VS 中工作,如果我尝试直接执行它们,它们都会在 Windows 8 上没有任何信息的情况下崩溃.

I compiled a program using freeglut, optix, cuda and other libraries (some of them dinamically loaded). It compiles and runs without problems in Visual Studio but it crashes if I execute it outside Visual Studio. Both release and debug versions work within VS, they both crash without any information on Windows 8 if I try to execute them directly.

我已经包含了所有必需的 DLL,但没有用.

I already included all the necessary DLLs, that didn't work.

可能是什么问题?

推荐答案

您可以尝试比较 Visual Studio 和默认环境之间的环境.

You can try comparing the environments between visual studio and the default environment.

Dependency walker 应识别任何缺失的 DLL.

Dependency walker should identify any missing DLLs.

这篇关于64 位 exe 在 Visual Studio 外崩溃,但在 Visual Studio 内工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆