PDA

View Full Version : VC++6.0SP4: Release = perfect, Debug = black screen



12-02-2000, 09:30 AM
I've been working on a program over the past few weeks in debug mode and it has worked fine.
As I got closer to freeze time I went into release mode and continued to work from there. Now, 2 weeks later, I'm done with the freeze and going back into debug mode to add additional features. The problem is that when VC++'s config is set to debug mode, I get a black screen. When VC++'s config is set to Release mode, I get the program rendering perfectly. Any ideas?


The compiler is VC++ 6.0, with SP 4 applied. I'm using glut 3.7.3 as well.
I've tested this on an 2 SGI machines running NT 4.0 and an unbranded Intel PIII system running NT 4.0 and get consistently bad results across all 3 systems.

Thank you for your time.

12-02-2000, 10:44 AM
Most random errors is because of pointers and dynamic memory.

Faluf Aire
12-02-2000, 05:20 PM
Make sure that the OpenGL Libs are set to link under all configurations, not just under Debug or Release!

Michael Steinberg
12-03-2000, 09:29 AM
If they weren't included, the program wouldn't even run.

Deiussum
12-03-2000, 12:41 PM
Try and do a "Rebuild all." Might be something weird hanging around that isn't getting rebuilt becuase the compiler thinks it's up-to-date.

Glossifah
12-04-2000, 04:01 PM
Dear StrangeProblem,

Are you using the Cornflake Zone tutorial to create your framework? If so, you may want to comment out the reference to:
SetProjection();
within the InitGL() function. Why is that, you ask? Well, it seems that SetProjection would be great, if m_width and m_height actually had a value when they were passed to the glViewport() function. Unfortunately, they are not, as that they do not recieve a value until OnSize() is called.

But, if you aren't using the above mentioned tutorial, disregard this altogether.

Glossifah

[This message has been edited by Glossifah (edited 12-04-2000).]