Not logged in, Join Here! or Log In Below:  
 
News Articles Search    
 

 Home / 3D Theory & Graphics / No error in debug, error in retail build Account Manager
 
Archive Notice: This thread is old and no longer active. It is here for reference purposes. This thread was created on an older version of the flipcode forums, before the site closed in 2005. Please keep that in mind as you view this thread, as many of the topics and opinions may be outdated.
 
BurningCircuit

April 12, 2005, 12:07 AM


I have a bug which causes a general protection fault in my graphics code
when it is running in retail mode, but works fine in debug. Unfortunately
I can therefore not debug it. Any ideas?

 
Crowley9

April 12, 2005, 12:53 AM

I'm assuming you're using VS. You can actually get a stack trace in release mode. Do two things: Under C/C++ general, make sure that the program database is added. Secondly, under linker->debugging, select "Generate debug info". This will tell you where you crashed.

 
Crash

April 18, 2005, 05:25 PM

These kinds of errors are almost always caused by uninitialized data which is usually set to NULL in debug but not in release.

-M

 
fruit

April 18, 2005, 07:27 PM

dont use static variables in inline functions ( functions are inline if they are defined in the class definition )

This happened to me when i tried to do a singleton like...

class MySingleton
{
public:
static MySingleton &GetInstance() { static MySingleton s; return s; }
};

This was a problem for me because in debug mode, functions aren't inlined...

 
This thread contains 4 messages.
 
 
Hosting by Solid Eight Studios, maker of PhotoTangler Collage Maker.