C++ 应用程序在Visual Studio之外启动时崩溃
我在尝试启动我的应用程序时遇到问题C++ 应用程序在Visual Studio之外启动时崩溃,c++,visual-studio-2012,dll,C++,Visual Studio 2012,Dll,我在尝试启动我的应用程序时遇到问题 应用程序在Windows 8.1 RTM和Visual Studio 2012上使用C++和SFML(2.1)开发。 我从使用VS的Begging开始就启动了该应用程序,但是现在我尝试在它之外启动它,我得到了一个错误: Application.exe已停止工作 我已经检查了调用堆栈,但得到的结果如下: ntdll.dll_RtlReportCriticalFailure@8()因科努 ntdll.dll_RtlpHeapHandleError@4()因科努 n
应用程序在Windows 8.1 RTM和Visual Studio 2012上使用C++和SFML(2.1)开发。 我从使用VS的Begging开始就启动了该应用程序,但是现在我尝试在它之外启动它,我得到了一个错误:
Application.exe已停止工作 我已经检查了调用堆栈,但得到的结果如下: ntdll.dll_RtlReportCriticalFailure@8()因科努 ntdll.dll_RtlpHeapHandleError@4()因科努 ntdll.dll_RtlpLogHeapFailure@24()因科努 ntdll.dll!RtlpAllocateHeap()在菜单中 ntdll.dll!RtlAllocateHeap()inconu ntdll.dll!菜单中的RtlDosPathNameToRelativeNtPathName() ntdll.dll_RTLDospathname至相关的tPathname\U_WithStatus@16()因科努 KernelBase.dll_CreateFileInternal@24()因科努 KernelBase.dll!CreateFileW@28()因科努 msvcr110.dll_createFile(常量wchar\u t*path、无符号长文件访问、无符号长文件共享、无符号安全属性*lpSecurityAttributes、无符号长文件创建、无符号长文件属性、无符号长文件标志)aligne 272 C msvcr110.dll_wsopen_nolock(int*punlock_标志、int*pfh、const wchar_t*path、int of lag、int shflag、int pmode、int bSecure)对齐495 C msvcr110.dll_sopen_nolock(int*punlock_标志、int*pfh、const char*path、int oflag、int shflag、int pmode、int bSecure)对齐216 C msvcr110.dll_sopen_helper(const char*path、int of lag、int shflag、int pmode、int*pfh、int bSecure)对齐172 C msvcr110.dll_sopen_s(int*pfh,const char*path,int of lag,int shflag,int pmode)对齐999 C msvcr110.dll_openfile(常量字符*文件名,常量字符*模式,int-shflag,_-iobuf*str)Ligne 272 C msvcr110.dll_fsopen(常量字符*文件,常量字符*模式,int-shflag)Ligne 86 C msvcr110.dll!fopen(常量字符*文件,常量字符*模式)对齐125 C sfml-graphics-2.dll!61afa02e()inconu [Les frames ci dessous sont peut-tre incorrects et/ou manquants,aucun symbole chargépour sfml-graphics-2.dll]msvcr110.dll_解锁(内部锁定编号)校准366 C msvcr110.dll_解除锁定()对齐802 C 请注意,应用程序有时会随机启动,我不知道为什么。。。它经常在从sfml调用LoadFromFile()方法后崩溃 有人有过这个问题吗
谢谢。哦,很抱歉,我在选择标记时没有单击“当前目录”。在调试器之外运行应用程序时,“当前目录”是不同的。因此,如果您使用的文件名没有完全指定的文件路径,您会得到这样的惊喜