Jump to content
  • Advertisement
Sign in to follow this  
Roof Top Pew Wee

Can't get MDX/C# full screen apps to alt tab. Any samples?

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

I've googled about 4 or 5 tutorials on building full screen apps, but they all throw exceptions when alt tabbing. The only tutorial I've found that does it properly is in the DirectX SDK called EmptyProject, but it's hardly an "empty" project, consisting of quite a few files and considerable code for switching devices, the GUI controls, etc. So, rather than posting my code and asking what's wrong with it (which I've tried unsuccessfully), does anyone have a link to a fullscreen tutorial using MDX and C#, or perhaps a template or project that makes a stable full screen app? Thanks, --Vic--

Share this post


Link to post
Share on other sites
Advertisement
This should be helpful:
http://pluralsight.com/wiki/default.aspx/Craig.DirectX/DeviceRecoveryTutorial.html

Share this post


Link to post
Share on other sites
The funny thing is his code has problems when running in fullscreen mode as well. I'm currently talking with him on email to see if we can figure out the problem. Any others?

--Vic--

Share this post


Link to post
Share on other sites
Well, i can give you my reset code if you want but it crashes after alt tabbing twice if you have a vertex buffer created on the default pool.
Though I think that might be a bug in managed directX.

Share this post


Link to post
Share on other sites
Exactly! Mine does the exact same thing, and it seems almost everyone else's code does as well. So perhaps I should ask, has anyone been able to alt tab fullscreen apps with Pool.Default VBs? I can get alt tab to work all day long when the VBs are made in the Pool.Managed space. I've tried it without touching the VB on reset, as well as with Disposing on OnDeviceLost and recreating it on OnDeviceReset. Both don't work. But if there are no Default VBs, everything works beautifully.

I'm really surprised this isn't a bigger issue, unless I've missed tons of posts on it. Fullscreen apps and Dynamic VBs (which must be on Default space) are how almost all games work, for speed purposes, so it would seem natural that this is how the release version of most software is made.

--Vic--

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!