Home > Software engineering >  Seek guidance about 0 xc0000005 vs2015 runtime: while reading position 0 x00000004 access conflict
Seek guidance about 0 xc0000005 vs2015 runtime: while reading position 0 x00000004 access conflict

Time:10-05

Help you a great god, and I am a novice vs, want to do a basic minesweeping game do the link, but the program is running appeared the following interface:
After clicking the interrupt return to this page:
Out of the question seems to be a pointer, but I don't quite understand in this respect, please everyone a great god taught (I was in accordance with the vc + + game development examples of the book)
Added that oneself just looked at it and found that the problem should be out in the code

CodePudding user response:

The couple don't sink ah ~ ~ ~ ~ ~

CodePudding user response:

Everyone a great god, online, wait for ~ ~ ~ ~ ~

CodePudding user response:

CodePudding user response:

The menu items that add Update_COMMAND_UI command, the state changes

CodePudding user response:

You return the returned pMenu pointer is NULL,
If you want to check the MenuItem, can add ON_UPDATE_COMMAND_UI () pCmdUI - & gt; Check (TRUE/FALSE);

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 ,

CodePudding user response:

See you corresponding lines pMain, pMenu pointer is null

CodePudding user response:

PMain pMenu pointer to use before you need to determine whether effective
If (pMain)
{
}
If (pMenu)
{
}

CodePudding user response:

PMain or pMenu is null, the handle is invalid
  • Related