Original Post
I'm trying to get my DirectX device to reset. Whenever I release the LPDIRECT3DSURFACE9 I use for my backbuffer my program ends, but if I don't release it the program stays running but never resets. The error it says it because I still have SURFACES that need to be released(this is when I don't release the backbuffer). Now, I'm confused since I'm currently only playing with two total surfaces(after alot of frustation over a 2 month period) the backbuffer and a image surface so I'm very sure of what I'm releasing. Since releasing the backbuffer ends the program with no errors it makes me think I'm not supposed to do that, but if I don't it claims I still have surfaces to release. Post Condensed: What I need is a good way of simulating the Alt+Tab situation in Windowed Mode other than using the screen saver because I can't get to my debugger until I end the program. Also, am I supposed to use LPDIRECT3DSURFACE9->Release(); on the LPDIRECT3DSURFACE I use for the backbuffer(reason for this question in long version)?