Home > Software engineering >  MFCTEST. Exe of 0 x757b812f in untreated exception: Microsoft C exception: memory location 0 x03a6f2
MFCTEST. Exe of 0 x757b812f in untreated exception: Microsoft C exception: memory location 0 x03a6f2

Time:10-02


As shown, the program debugging and running without error, but after running for a period of time, will quote us as shown in figure error,
This running time is long, sometimes short, sometimes not necessarily error when
Program code is longer, the MFC framework with opencv, real-time playback processed images, involve the color turned gray, checked the program, should not turn color gray, should not leak, runtime resource manager, memory is stable,
Debugging also don't know where is wrong, beg god for help

CodePudding user response:

Int _tmain into int mian

CodePudding user response:

Mark,,, there are many reasons for this problem,,, have met the original poster that mistake many times, and have different reasons for

1, the callback function in this interruption problems with the following statement:
CTestDlg DLG.
The (DLG);
Debugging found DLG is 0, the last into a global variable pointer, will this give it in OnInitDialog function;

2, after the dialog box to add the menu, as long as the point of the menu, to close the dialog, inexplicable interruptions, don't click on the menu to close the dialog will not appear the interrupt;
In "the use of MFC" change "in a static library to use MFC to" in a Shared DLL using MFC, "somehow don't interrupt, as a result,,

The building Lord problem statement, try to confirm and to find a solution to the problem,,,

CodePudding user response:

I also appeared the situation, so I went back to check the create IplImage, CvMat pointer is released, finally found no release, there are several modified no error,

CodePudding user response:

Collapsed in the pop-up dialog box, press the corresponding button to enter debugging press Alt + 7 key to view the Call Stack, namely "the Call Stack" from the inside to the following out of from the inner to outer function Call history, double-click a row to the cursor to the Call of the source code or assembly instruction, don't understand when double click on the next line, until we can read ,
  • Related