Jump to content
  • Advertisement
Sign in to follow this  
IndigoStallion

Access Violation On Device Reset

This topic is 4908 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!