title: C++: Where to start when my application crashes at random places?
body: <p>I'm developing a game and when I do a specific action in the game, it crashes.
  So I went debugging and I saw my application crashed at simple C++ statements like <code>if</code>, <code>return</code>, ... Each time when I re-run, it crashes randomly at one of 3 lines and it never succeeds.</p>
  
  <p>line 1:</p>
  
  <pre><code>if (dynamic) { ... } // dynamic is a bool member of my class
  </code></pre>
  
  <p>line 2:</p>
  
  <pre><code>return m_Fixture; // a line of the Box2D physical engine. m_Fixture is a pointer.
  </code></pre>
  
  <p>line 3:</p>
  
  <pre><code>return m_Density; // The body of a simple getter for an integer.
  </code></pre>
  
  <p>I get no errors from the app nor the OS...</p>
  
  <p>Are there hints, tips or tricks to debug more efficient and get known what is going on?</p>
  
  <p><sub>That's why I love Java...</sub></p>
  
  <p>Thanks</p>