Sign in to follow this  

Release build problems

This topic is 2125 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'm having problems with my directx9 renderer where it it doesn't seem to render anything when the runtime option is set to the retail version. But when you set it to the debug version the program runs fine. I've read that uninitialized variables cause this but I didn't find any. There wasn't any errors in the debug output window either. Eventually I downloaded a sample from CodeSampler.com and both directx versions worked fine for each build. So there is something seriously wrong with my code. What else could be causing this?

PS
I ran the program through Pix and all the status of all the objects was "dead", but when I ran it again with the debug version every the looked ok.

Share this post


Link to post
Share on other sites
Do you have the debug output level set to maximum in the DirectX Control Panel (In Start Menu -> Programs -> DirectX SDK -> Tools)? Do you get any debug output from D3D at all?
I would actually expect things to work with the release runtimes and not with the debug runtimes (Which is what they're for - they're supposed to break).

Does it render anything if you use the reference rasterizer instead (D3DDEVTYPE_REF)? And if so, do you have the latest drivers for your graphics card?

Share this post


Link to post
Share on other sites
I found the bug. It was in fact a uninitialized variable causing this. I commented out some code and not the SetViewport function that was with it.

Share this post


Link to post
Share on other sites

This topic is 2125 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this