64 位 exe 在 Visual Studio 外崩溃,但在 Visual Studio 内工作

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.