OneLoneCoder/Javidx9

Exception Thrown During Debug

HiCharity opened this issue · 4 comments

Exception thrown: write access violation.
this->m_bufScreen was 0x1110112. occurred

^^I assume something is wrong with the parameters of drawing the screen but I do not know. Any help is appreciated.

You're trying to construct a console that is too large for your screen. Try to lower the number of rows/columns or the scaling factor

This is correct.

I had the same problem, lowering number of rows/cols helped. That's weird because I copied the values from olc's video (3:48)...

I had the same problem, lowering number of rows/cols helped. That's weird because I copied the values from olc's video (3:48)...

I guess it depends on your own screen resolution. With: game.ContructConsole(160, 100, 8, 8) you're trying to construct a 1280x800 console, but I don't think that's including the window borders and decorations. The task bar will also take up space on your screen, so there might not be enough real estate left to create the requested console.