简体   繁体   English

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

[英]Application disappears after starting - C++ linking managed code dll

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. 我们最近将工具链升级到了Visual Studio 2010和朋友,它们都可以在Windows Vista + Windows 7开发人员计算机和Windows 7客户计算机上正常运行。 (all x86) (所有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. 今天,我们首次安装了运行Windows XP SP2 x86的客户端PC,链接托管代码dll的所有应用程序均无法正常运行。 After starting the .exe seemingly nothing happens, no window pops up, no memory gets eaten, no task shows in task manager, nothing, nada. 启动.exe之后,似乎什么也没发生,没有窗口弹出,没有内存被占用,任务管理器中没有任务显示,没事,nada。 Event log is empty, everything is just as if the application returned to the OS right after the start. 事件日志为空,一切就像启动后应用程序立即returned操作系统一样。

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. 我不想将VS2010和所有内容安装到Windows XP机器上,我想先尝试一些省时的方法。

This all is happening just to native C++ apps that link managed c++ DLL. 这一切仅发生在链接托管c ++ DLL的本机C ++应用程序上。 Pure managed C# apps do work. 纯托管的C#应用​​程序可以正常工作。 Pure native C++ apps do work. 纯本机C ++应用程序可以正常工作。

See if drwtsn32 is configured as the application debugger on the client pc. 查看drwtsn32是否在客户端PC上配置为应用程序调试器。 Check for "C:\\Documents and Settings\\All Users\\Application Data\\Microsoft\\Dr Watson". 检查“ 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. 如果在该位置有日志,请搜索“ fault->”,然后在导致访问冲突的进程中找到该地址。 From there, you can trace it back to a line in code. 从那里,您可以将其追溯到代码中的一行。

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

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