应用程序启动后消失 - C++链接托管代码 dll

发布于 2024-09-06 01:39:10 字数 472 浏览 4 评论 0原文

我们的应用程序有问题。我们最近将我们的工具链升级到了 Visual Studio 2010 和其他版本,它在 Windows Vista + Windows 7 开发人员计算机和 Windows 7 客户计算机上运行良好。 (所有 x86)

今天,我们对运行 Windows XP SP2 x86 的客户端 PC 进行了首次安装,所有链接托管代码 dll 的应用程序都无法工作。启动 .exe 后似乎没有任何反应,没有弹出窗口,没有内存被占用,任务管理器中没有任务显示,什么也没有,什么也没有。事件日志是空的,一切就像应用程序在启动后立即返回到操作系统一样。

我对此感到茫然,我真的不知道应该如何开始调试这个问题。我不想将 VS2010 和所有内容安装到 Windows XP 机器上,我想先尝试一些耗时较少的东西。

这一切仅发生在链接托管 C++ DLL 的本机 C++ 应用程序中。纯托管 C# 应用程序确实有效。纯本机 C++ 应用程序确实可以工作。

we have a problem with our applications. We have recently upgraded our toolchain to Visual Studio 2010 and friends, it all works fine on Windows Vista + Windows 7 developer machines and Windows 7 customer machines. (all x86)

Today we did a first installation to a client PC running Windows XP SP2 x86, and all applications linking managed code dll do not work. After starting the .exe seemingly nothing happens, no window pops up, no memory gets eaten, no task shows in task manager, nothing, nada. Event log is empty, everything is just as if the application returned to the OS right after the start.

I am at loss about this, I really don't know how should I start even debugging this problem. I don't want to install VS2010 and everything onto a Windows XP box, I'd like to try something less time intensive first.

This all is happening just to native C++ apps that link managed c++ DLL. Pure managed C# apps do work. Pure native C++ apps do work.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

与酒说心事 2024-09-13 01:39:10

查看 drwtsn32 是否配置为客户端 PC 上的应用程序调试器。检查“C:\Documents and Settings\All Users\Application Data\Microsoft\Dr Watson”。如果您已登录该位置,请搜索“故障 ->”您将在导致访问冲突的进程中找到地址。从那里,您可以追溯到代码行。

See if drwtsn32 is configured as the application debugger on the client pc. Check for "C:\Documents and Settings\All Users\Application Data\Microsoft\Dr Watson". If you have a log in that location, search for "fault ->" and you will find the address within the process that caused the access violation. From there, you can trace it back to a line in code.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文