VC 2015 U3-ASSERT使应用程序崩溃 [英] VC 2015 U3 - ASSERT crashes the application

查看:121
本文介绍了VC 2015 U3-ASSERT使应用程序崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

VS 14.0.25431.01更新3

VS 14.0.25431.01 Update 3

Windows 10-10.0.10240 Build 10240

Windows 10 - 10.0.10240 Build 10240

步骤:

  1. 创建一个新的MFC应用程序.
  2. 例如在CAboutDlg::CAboutDlg中添加ASSERT( 0 ).
  3. 构建调试版本.
  4. 无需调试即可运行( Ctrl + F5 ).
  5. 单击关于"->程序被静默地中止
  6. 开始调试( F5 )
  7. 点击关于-> 断点对话框.
  1. Create a new MFC application.
  2. Add ASSERT( 0 ), in CAboutDlg::CAboutDlg, for instance.
  3. Build debug version.
  4. Run without debugging (Ctrl + F5).
  5. Click About -> The program is silently ABORTED
  6. Start debugging (F5)
  7. Click About -> Breakpoint dialog.

Microsoft已通过按设计"关闭该错误:基于对所提供信息的审查,我们已将此问题解决为按设计".在此我们无法识别出任何意外行为."

Microsoft has closed the bug as "by design": "Based upon review of the information provided, we have resolved this issue as "By Design". We cannot identify anything here that is unexpected behavior."

在Win7上工作正常.

Works fine with Win7.

我正在寻找解决方法.

我发现__acrt_get_developer_information_policy()返回的是developer_information_policy_none而不是预期的developer_information_policy_ui(请参阅crtmbox.cpp中的common_show_message_box),但是我不知道如何更改它.

I've found that __acrt_get_developer_information_policy() is returning developer_information_policy_none instead of expected developer_information_policy_ui (see common_show_message_box in crtmbox.cpp), but I have no clue on how to change it.

参见此链接和此一个,位于Microsoft Connect.

See this link and this one, at Microsoft Connect.

最新的 Windows 10 SDK 解决了我的计算机上的问题.所有功劳归于cubee_72(MS帐户).

The latest Windows 10 SDK has fixed the problem on my machines. All credit goes to cubee_72 (MS account).

最新的SDK仅解决了 Ctrl + F5 的问题.如果存在调试器,则仍然显示断点对话框而不是断言对话框.

The latest SDK solved the problem for Ctrl+F5, only. If the debugger is present, still the breakpoint dialog, instead of the assert dialog, is displayed.

MS删除了我的错误报告.

MS has deleted my bug reports.


谢谢.

推荐答案

我遇到了同样的问题,发现它已在Windows 10 SDK(版本10.0.15063.0)的最新版本中得到修复. https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk

I had the same issue and found out it has been fixed in the latest version of the Windows 10 SDK (version 10.0.15063.0) which can be downloaded from https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk

这篇关于VC 2015 U3-ASSERT使应用程序崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆