Sign in to follow this  
SHanghaiARTs

Gfx dont render when run outside IDE, but does when run inside.

Recommended Posts

Ok, I've been trying to figure this out for a long time. I'm using MSVC++2005 and my Dx9 app renders all my objects just fine in debug and release... but only when I press F5 to run it inside the IDE. The debug build renders just fine inside and out, but the release build renders only when I run with F5, otherwise all I get is the clear color. I haven't detected any failures, errors, or warnings with the DX debug runtimes either. I'm really stumped. What could be happening (or not happening) when I run it outside the IDE? Please help!!

Share this post


Link to post
Share on other sites
Hi,

What exactly are you drawing? Can you provide more information.

One example I can think of is if you are trying to access images files etc. from the current working directory it can be different when run in the IDE than from Windows Explorer or the command prompt.

And if you attempt to load assets like this but do not generate errors when files are not found you may not notice anything.

Cheers,
dhm

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Yeah, make sure you use complete filenames, ie c:\blah\blah\file.abc
And/or programically get the current working directory (from an .ini, or api call)

The IDE automatically does this for you, so when running from the actual directory, it doesn't always give you the right file path.

That's the main problem, just make sure your assets are infact getting loaded.

Share this post


Link to post
Share on other sites
I'm pretty certain I've got the right directory. If it was wrong, all my files would have failed to load, and I am checking the return values on all my load calls. If any of them returned with anything other than success, the app should terminate. Another strike against that is the fact that the debug build works fine outside the IDE, it's only the release build that doesn't render. Thanks for your input anyway, though.

As for what I'm drawing: at this point, just some textured quads.

Share this post


Link to post
Share on other sites

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