Win32 C++: When starting the application, an error "project_name.exe has triggered a breakpoint" occurs on ShowWindow(hWnd, nCmdShow) function call.

  • Thread starter Thread starter Purple_Apple
  • Start date Start date
P

Purple_Apple

Guest
Hello. I have the following problem. When my application is starting the following error occurs: "DelaunayWin32.exe has triggered a breakpoint". Where DelaunayWin32 is the name of my project. This error occurs on ShowWindow(hWnd, nCmdShow) function call. But this error does not always appear, but only from time to time, since often my application starts normally. If this error occurs and I click "Retry" button in the error message dialog then I can see the following picture:

1604716.png

I apologize for the Russian-language comments in the source code of the application. Sometimes when I start my application, an error of a slightly different kind appears. Here it is.

1604717.png

But again, I repeat, such things do not always happen. Sometimes, my application starts up normally. In Stackoverflow, MSDN, and other forums, I read several posts on this topic. But the discussions are so specific to each specific application that it is difficult to navigate them. If possible, please direct me in the right direction, that is, in what place of my application should I look for the cause of the error I'm talking about. Of course, I understand that this is not a simple thing, since, figuratively speaking, my application does not consist of ten lines of source code. Sometimes a similar error occurs when processing a WM_CLOSE message on a call to the DestroyWindow (hWnd) function. But again, I repeat, this does not always happen. Sometimes my application closes normally. If possible, please tell me what is the reason for this error. And from what place in the program I should start searching for the causes of this error. Thanks in advance.

Continue reading...
 
Back
Top