繁体   English   中英

Visual Studio 2015 的 C# 和 C++ Redistributable 缺少依赖项

[英]Missing dependencies with C# and C++ Redistributable for Visual Studio 2015

我正在运行一个在 C# .NET 中编程的应用程序,使用 C++/CLI 包装器到 C++ 库。 它在 Windows 7 上运行良好。但是当我在 Windows XP 上运行这个应用程序时它崩溃了。

我已经安装了“C++ Redistributable for Visual Studio 2015”但没有工作。

这是依赖walker的输出:

Starting profile on 21/03/2016 at 16:02:58

Operating System: Microsoft Windows XP Professional (32-bit), version 5.01.2600 Service Pack 3
Program Executable: c:\documents and settings\alejandro\escritorio\release - net\SAMPLE.EXE
Program Arguments: 
Starting Directory: C:\Documents and Settings\Alejandro\Escritorio\Release - NET\
Search Path: C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem

Options Selected:
     Simulate ShellExecute by inserting any App Paths directories into the PATH environment variable.
     Log DllMain calls for process attach and process detach messages.
     Log DllMain calls for all other messages, including thread attach and thread detach.
     Hook the process to gather more detailed dependency information.
     Log LoadLibrary function calls.
     Log GetProcAddress function calls.
     Log first chance exceptions.
     Log debug output messages.
     Automatically open and profile child processes.
--------------------------------------------------------------------------------

Started "SAMPLE.EXE" (process 0x244) at address 0x00400000.  Successfully hooked module.
Loaded "NTDLL.DLL" at address 0x7C910000.  Successfully hooked module.
Loaded "MSCOREE.DLL" at address 0x79000000.  Successfully hooked module.
Loaded "KERNEL32.DLL" at address 0x7C800000.  Successfully hooked module.
DllMain(0x7C910000, DLL_PROCESS_ATTACH, 0x00000000) in "NTDLL.DLL" called.
DllMain(0x7C910000, DLL_PROCESS_ATTACH, 0x00000000) in "NTDLL.DLL" returned 1 (0x1).
DllMain(0x7C800000, DLL_PROCESS_ATTACH, 0x00000000) in "KERNEL32.DLL" called.
DllMain(0x7C800000, DLL_PROCESS_ATTACH, 0x00000000) in "KERNEL32.DLL" returned 1 (0x1).
Injected "DEPENDS.DLL" at address 0x08370000.
DllMain(0x79000000, DLL_PROCESS_ATTACH, 0x00000000) in "MSCOREE.DLL" called.
DllMain(0x08370000, DLL_PROCESS_ATTACH, 0x00000000) in "DEPENDS.DLL" called.
DllMain(0x08370000, DLL_PROCESS_ATTACH, 0x00000000) in "DEPENDS.DLL" returned 1 (0x1).
GetProcAddress(0x7C800000 [KERNEL32.DLL], "FlsAlloc") called from "MSCOREE.DLL" at address 0x79006F3C and returned 0xFFBADD11.
Exited "SAMPLE.EXE" (process 0x244) with code -1073740791 (0xC0000409).

检查平台工具集的设置:调出项目属性,在配置属性/常规下,设置“平台工具集”。 对于 Visual Studio 2012 和 2013,有一个针对 Windows XP 的单独工具集。 我假设 VS 2015 仍然存在此设置,因此请确保您选择了“_xp”变体。

另外,请确保您在 XP 机器上运行的是 Release 版本,而不是 Debug 版本。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM