为什么 vshost 可以工作而我的应用程序却不能工作?
我试图在加载 x64 应用程序时调试错误,但在 main() 中的第一行代码之前收到“MyAPP 已停止工作”。
我想知道为什么当我在 Visual Studio 2010 中使用调试器(myapp.vshost.exe 进程)时,我可以很好地单步执行代码,并且一切似乎都在运行。
I am attempting to debug an error while loading my x64 application and am receiving an "MyAPP has stopped working" immediately before the first line of code in main().
What I am wondering is why when I use the debugger in Visual Studio 2010 (myapp.vshost.exe process) I can step through the code just fine and everything appears to run.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
想通了 - 回答我自己的问题以供将来参考。
应用程序验证器 (x64) 正在分析主应用程序,这导致了堆栈溢出。由于被测试的应用程序是在注册表中设置的,我完全忘记了它仍然在要测试的进程列表中设置。由于 vshost 进程正在使用它自己的 .exe,所以它没有被分析......没有崩溃!
Figured it out - ansering my own question for future reference.
The main application was being profiled by Application Verifier (x64) which was causing a stack overflow. As applications under test is set in the registry, I had completely forgotten that this was still set in the list of processes to test. Since the vshost process is using it's own .exe it was not being profiled... no crash!