Original Post
Hi again, me once again with a possible DirectX problem. I made a program in D3D that makes a simple design, but when I did, it threw a runtime error at me: "Unhandled exception at 0x6d9ee684 in game_prog_2.exe: 0xC0000005: Access violation reading location 0x00000000." Put simply, I have no clue what this means or how to fix it. Here's the code it broke off at when debugging (which also, according to VC++ has the variable [pBackBuffer] which holds the memory address of the error [0x6d9ee684]): ----- mrBool32 D3DWindow::Frame(void) { m_pD3DDevice->Clear(0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(0, 0, 255), 1.0f, 0); LPDIRECT3DSURFACE8 pBackBuffer; m_pD3DDevice->GetBackBuffer(0, D3DBACKBUFFER_TYPE_MONO, &pBackBuffer); m_pD3DDevice->BeginScene(); m_pD3DDevice->CopyRects(m_pD3DSurface, NULL, 0, pBackBuffer, NULL); m_pD3DDevice->EndScene(); pBackBuffer->Release(); m_pD3DDevice->Present(NULL, NULL, NULL, NULL); return mrTrue; } ----- The actual line it points me to is the one containing CopyRects(), but I figured it'd be wise for me to put the whole function in. Any help, please?