title: VisualC++ 2010 Is there a way to find out more details surrounding unhandled exception error
body: <p>A windows application I am working on contains the following code:</p>
  
  <pre><code>if (_camStar-&gt;GetSortedContainersFromOpsView("CAD", false, containers, errorMessage)) {
      error = "";
      if (!containers.empty())
      {
          desc = QString::fromStdString(containers[0]-&gt;masterProductDescription);
          prodname = QString::fromStdString(containers[0]-&gt;productName).trimmed();
          res = QString::fromStdString(containers[0]-&gt;ctnrName);
      }
  }
  else
  {
      error = QString::fromStdString(errorMessage);
  }
  </code></pre>
  
  <p><code>_camStar</code> is a variable from an external header file to which I am initializing here via:</p>
  
  <p><code>_camStar = new CamstarInterface(host, port, username, password, workstation);</code></p>
  
  <p>CamstarInterface is an interface that's declared in that same header file.  When I run the program in Debug mode, I am presented with:</p>
  
  <pre><code>Unhandled Exception at 0xx5c84337d (msvcp100d.dll) in initializer.exe: 0xC0000005: Access violation reading location 0xffffffffffffffff.
  </code></pre>
  
  <p>and it breaks in xutility (I believe its used by Qt) in the function <code>Orphan_all()</code>.  When I run the program in Release mode, everything works fine.
  How would I go about digging into the exception to see what exactly it doesn't like?</p>
  
  <p>EDIT: The xutility file is shown when I have a try/catch surrounding the code above and is opened when I return the QString res variable.  Otherwise I see the following unhandled exception on the <code>GetSortedContainersFromOpsView</code> line:</p>
  
  <pre><code>Unhandled Exception at 0x000007fefce7a06d in initializer.exe: 0xC0000005: Access violation writing location 0x00000000004ffff8.
  </code></pre>
  
  <p>No other file is opened.  The stack trace looks like so:</p>
  
  <pre><code>initializer!initializer::GetNextImplant(QString&amp; error) Line 347 + 0x5e bytes
  initializer!initializer::Process() Line 298 + 0x17 bytes
  initializer!initializer::Start() Line 169
  initializer!main(int argc, char**argv) Line 18
  initializer!WinMain() line 131 + 0x16 bytes
  initializer!__tmainCRTStartup() line 547 + 0x42 bytes
  initializer!WinMainCRTStartup() Line 371
  </code></pre>
  
  <p>At line 347 is the <code>GetSortedContainersFromOpsView</code> call.  What should I do?  It doesn't really seem to give me much.</p>