I am learning DirectX with C++. As example for standard Win32 programming basics I referenced the Microsoft Developer Network - Creating Win32 Applications (C++).
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"
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.
- Why the exceptions (first chance) are thrown when closing the application?
- Is there no way to prevent the application of throwing these exceptions (not only switch off these exceptions in VS, instead defeat them)?
- When ignoring these exceptions, will they cause a crash of my application in the future?
I hope you get what I am trying to say and someone can help me and explain it clearly for me.
Many thanks in advance.
Greetings