Sign in to follow this  
Guest Patrick_Waugh

bool in a .cpp file causing FS crash

Recommended Posts

In an Object header (.h) I have: private: bool m_isBoxed; // Display with boxand in the related .cpp file: m_isBoxed = false;or m_isBoxed = FALSE;or m_isBoxed = 0;each of which results in FS crashing on load.Anyone have a similar experience and find the solution, or understand why this is happening?FYI, the header has the following includes:#include #include #include

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Turns out, it wasn't the code line at all, but rather a namespace conflict with an encapsulating objects function name "ClearLine()", which apparently was not kosher. Changing that method name to "ClearLinePair()" fixed things.Weird, that the only symptom was that I couldn't right click and go to the definition from the header declaration.

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