Ive been getting a automation error with a bit of DirectX8 code dealing with rendering graphics to the screen, it occurs randomly at times, but almost always when you hit Ctrl+alt+delete and open task manager, then go back to the screen, which it then returns the error. Here is the code that the error occurs in...
It highlights:
Thank you for your time in advance.
- Código:
If D3DDevice8.TestCooperativeLevel <> D3D_OK Then
If D3DDevice8.TestCooperativeLevel = D3DERR_DEVICELOST Then
Exit Sub
End If
Call D3DDevice8.Clear(0, ByVal 0, D3DCLEAR_TARGET, 0, 1#, 0)
Call D3DDevice8.Reset(D3DWindow)
Call EngineInitRenderStates
End If
It highlights:
- Código:
Call D3DDevice8.Reset(D3DWindow)
Thank you for your time in advance.