Sign in to follow this  

Access Violation On Device Reset

This topic is 4691 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

My Problem: When the DirectX 8 Device is lost(Easiest way is to lock then unlock windows 2000), it will not reset. The next time it is accessed, it will give an access violation. Could someone give me an overview on how exactly I should reset the device? Build Output: Loaded 'F:\WINNT\system32\ntdll.dll', no matching symbolic information found. Loaded 'F:\WINNT\system32\kernel32.dll', no matching symbolic information found. Loaded 'F:\WINNT\system32\user32.dll', no matching symbolic information found. Loaded 'F:\WINNT\system32\gdi32.dll', no matching symbolic information found. Loaded 'F:\WINNT\system32\d3d8.dll', no matching symbolic information found. Loaded 'F:\WINNT\system32\d3d8thk.dll', no matching symbolic information found. Loaded 'F:\WINNT\system32\msvcrt.dll', no matching symbolic information found. Loaded 'F:\WINNT\system32\advapi32.dll', no matching symbolic information found. Loaded 'F:\WINNT\system32\rpcrt4.dll', no matching symbolic information found. Loaded 'F:\WINNT\system32\version.dll', no matching symbolic information found. Loaded 'F:\WINNT\system32\lz32.dll', no matching symbolic information found. Loaded 'F:\WINNT\system32\winmm.dll', no matching symbolic information found. Loaded 'F:\WINNT\system32\mmdrv.dll', no matching symbolic information found. >->Water Created<-< >->Rain Created<-< >->SkyBox Created<-< >->SplashScreen Created<-< >->Landscape Created<-< >->Simple Font Created<-< >->Running Windowed<-< First-chance exception in Morrovind.exe (D3D8.DLL): 0xC0000005: Access Violation. The program 'N:\Programming\Morrovind\Debug\Morrovind.exe' has exited with code 0 (0x0). Last Lines of InitD3d() Code. if(FAILED(e_pD3D->CreateDevice(dcp.AdapterOrdinal, dcp.DeviceType, dcp.hFocusWindow, dcp.BehaviorFlags, &e_d3dpp, &e_pD3DDevice))) return FALSE; if( FAILED( e_pD3DDevice->Reset( &e_d3dpp ) ) ) { return false; } return true; } ResetSubroutine: HRESULT AStarEngine::DeviceReset() { if( FAILED( e_pD3DDevice->Reset( &e_d3dpp ) ) ) { return false; } return true; } My System-> OS: Windows 2000 Professional System Memory: 2G Storage: 1.3TB Processor: Intel Pentium 4 3.00Ghz DirectX 9.0c with DirectX 8.1SDK

Share this post


Link to post
Share on other sites

This topic is 4691 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this