仅在调试模式下文件夹对话框崩溃 VSD2008
我的应用程序中有一个文件夹浏览对话框。已经工作一个月了。最近,当我从 VS 2008 运行该项目时,我单击一个按钮打开命令 ShowDialog() 运行的框。浏览器框显示一秒钟,然后我收到“Windows 遇到问题框”。
现在有趣的是,如果我编译项目,无论是在调试还是发布配置文件中,并导航到 exe,一切都会运行良好。
以前有人遇到过这个问题吗?
如果有帮助的话,我可以发布错误报告的详细信息。
麦克风
I have a folderBrowseDialog box in an application. It has been working for a month. Lately when I run the project from VS 2008 and I click on a button that opens the box the command ShowDialog() runs. The browser box shows up for a second and then I get "Windows encountered a problem box".
Now here is the interest thing, if I compile the project, whether it be in the Debug or Release profile, and navigate to the exe, everything runs fine.
Has anyone have this issue before?
I can post the details of the error report if it helps.
Mike
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个 shell 对话框,您将把 shell 扩展注入到您的进程中。您可能遇到了导致崩溃的糟糕情况。您可以看到它们通过“项目+属性”、“调试”选项卡加载,勾选“启用非托管代码调试”。打开对话框时请注意“输出”窗口,您将看到每个 DLL 都被加载的一行。
除了卸载麻烦制造者之外,SysInterals 的 AutoRuns 实用程序是禁用 shell 扩展的好方法。
It is a shell dialog, you'll get the shell extensions injected into your process. You probably got a lousy one that is causing the crash. You can see them getting loaded with Project + Properties, Debug tab, tick Enabled unmanaged code debugging. Pay attention to the Output window when you open the dialog, you'll see a line for each DLL getting loaded.
Short from uninstalling the trouble-maker, SysInterals' AutoRuns utility is a good way to disable shell extensions.