Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


BeginScene() Unknown error

This topic is 5812 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

hi, This is my first attempt at using direct3d7 and all seems to be going well until i issue lpD3Ddevice->BeginScene(). it fails with hr = D3DERR_UNKNOWN 887601c2. Heres the output from my console... GDI Window created OK DirectDraw Object Created Acquired interface to DirectDraw7 Set initial Cooperative Level OK SetDisplayMode OK Primary surface created OK BackBuffer surface created OK Offscreen surface created OK Direct3D7 query OK Enumerating... RGB Emulation Enumerating... Direct3D HAL 3D Hardware found OK lpD3D->CreateDevice OK lpD3Ddevice->SetViewport() OK lpD3Ddevice->BeginScene() failed D3DERR_UNKNOWN 887601c2 not being able to debug fullscreen DX apps properly sucks. can anyone help please? thanks in advance

Share this post

Link to post
Share on other sites
1) Use the DEBUG DirectX runtimes and D3D will log the errors to the standard debug output stream for you, you can then look at what was written after your app has finished (if it''s fullscreen).

2) I just typed that error code into the DirectX error lookup tool (comes with the SDK) and got:

Description: Access to this surface is being refused because the surface is gone. The DIRECTDRAWSURFACE object representing this surface should have Restore called on it."

3) why are you debugging in fullscreen ?. The only real reason to do that is for when you''re testing lost surface/device code. For all other reasons I''ve ever come across, windowed mode is fine.

4) if you really must debug in fullscreen, then get yourself a cheap PCI VGA card and second monitor - multimonitor (or multi PC) debugging is much easier. As long as you can see the debugger and code on the second monitor that''s enough so you should be able to get a second hand 14" one and sucky old gfx card for not much more than the price of a box of branded CDRs!

Simon O''Connor
Creative Asylum Ltd

Share this post

Link to post
Share on other sites
Just set up a secondary monitor, SWEET! that is so much easier!

Havent tried the debug runtimes yet... ill look into it.

Im used to DJGPP & VESAbios, its a bit of a steep learning curve switching to VC# & DirectX

Thanks a lot for the help, should be able to figure it out now.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!