标准win32 wndproc中的第一次机会异常 [英] first chance exception in standard win32 wndproc

查看:64
本文介绍了标准win32 wndproc中的第一次机会异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用C ++学习DirectX.作为标准Win32编程基础知识的示例,我引用了 Microsoft开发人员网络-创建Win32应用程序(C ++).

I am learning DirectX with C++. As example for standard Win32 programming basics I referenced the Microsoft Developer Network - Creating Win32 Applications (C++).

该示例显示如何设置单个窗口并设置WndProc.关闭应用程序时,我最多收到6条错误消息:

The example shows how to setup a single window and set the WndProc. When closing the application I get up to 6 error messages:

"Exception (first chance) at xy in myapp.exe: access violation reading location yz"

在Google先生的帮助下,我找到了

With the help of Mr. Google I found this (DestroyWindow(HWND) gives me exceptions) question in social.msdn. It is nearly what I was searching for, but I do not understand it completely.

  1. 为什么关闭应用程序时会引发异常(第一次机会)?
  2. 有没有办法防止应用程序抛出这些异常(不仅在VS中关闭这些异常,而是击败它们)?
  3. 当忽略这些异常时,它们将来会导致我的应用程序崩溃吗?

希望您能得到我想说的话,并且有人可以帮助我,并为我清楚地解释.

I hope you get what I am trying to say and someone can help me and explain it clearly for me.

非常感谢.

问候

推荐答案

更新图形驱动程序并卸载Hydravision可删除异常.但是,在重新安装整个系统之后,完全没有任何错误.

Updating graphics driver and uninstalling Hydravision works to remove the exceptions. However, after clean reinstall of complete system there isn't any error at all.

这篇关于标准win32 wndproc中的第一次机会异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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