Seems like I'm getting an unhandled exception related to the graphics when working on my project in Visual Studio. I updated the graphics drivers recently, due to Windows 10. It seems like since then these problems happen. It's not on my code, as I've been on and on changing it trying to fix it for full days with no avail. This is a devastating problem. I've eventually downgraded my Intel graphics driver in attempt to fix this issue, but nichts. What am I doing wrong?
This is the code I get:
Unhandled exception at 0x657F994A (igd10iumd32.dll) in Game.exe: 0xC0000005: Access violation reading location 0x00000158.
Apparently I don't have enough reputation to comment, so I'll just post this as an answer.
I'm having the same issue. I also upgraded from Windows 7 to 10. My laptop has both integrated and dedicated graphics cards, but the preferred graphics card is a NVIDIA GeForce 710m. I thought that I only needed to upgrade my drivers, but after upgrading my driver from 340.52 to the latest (353.62), my problem still persisted.
Below is a sample 'hello world' program that reproduces the program on my machine. It's seemly random - it may happen in the 2nd loop, or the 279th.
#include "sdl/SDL.h"
#include "sdl/SDL_syswm.h"
int main( int argc, char*argv[] )
{
if( SDL_Init( SDL_INIT_VIDEO ) < 0 )
return 1;
SDL_GL_SetAttribute( SDL_GL_CONTEXT_MAJOR_VERSION, 4 );
SDL_GL_SetAttribute( SDL_GL_CONTEXT_MINOR_VERSION, 4 );
SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 24 );
SDL_GL_SetAttribute( SDL_GL_FRAMEBUFFER_SRGB_CAPABLE, 0 );
SDL_Window* sdlWindow = SDL_CreateWindow(
"tac",
30, 60,
1366, 768,
SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN );
if( !sdlWindow )
return 1;
SDL_GLContext mainContext = SDL_GL_CreateContext( sdlWindow );
if( !mainContext )
return 1;
while( true )
{
SDL_Event mySDLevent;
while( SDL_PollEvent( &mySDLevent ) )
{
}
SDL_GL_SwapWindow( sdlWindow ); // <-- it crashes here
}
SDL_GL_DeleteContext( mainContext );
SDL_DestroyWindow( sdlWindow );
SDL_Quit();
return 0;
}
First-chance exception at 0x5ECB9958 (igd10iumd32.dll) in MyGame.exe: 0xC0000005: Access violation writing location 0x77007B85. Unhandled exception at 0x5ECB9958 (igd10iumd32.dll) in tacMain.exe: 0xC0000005: Access violation writing location 0x77007B85.
My callstack comes from these dlls
igd10iumd32.dll
nvoglv32.dll
kernel32.dll
ntdll.dll
So I assume it's a driver issue?...
User contributions licensed under CC BY-SA 3.0