title: C++: Getting the c3859 error code while compiling in a mix of C++/CLI and C++
body: <p>After I have done as suggested by Hans Passant in  <a href="https://stackoverflow.com/q/4594640">C++: Getting the &quot;error C2065: &#39;pst&#39; : undeclared identifier&quot; while using pstsdk?</a> (which works), my code now looks like this:</p>
  <pre><code>private:
      System::Void readPstFileButton_Click(System::Object^  sender, System::EventArgs^  e) {
           pstsdk::pst myfile(marshal_as&lt;std::wstring&gt;(fileNameTextBox-&gt;Text));
      }
  </code></pre>
  <p>And I now get the following errors:</p>
  <blockquote>
  <p>error C3859: virtual memory range for PCH exceeded; please recompile with a command line option of '-Zm111' or greater</p>
  <p>error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit</p>
  </blockquote>
  <p>I definitely didn't expect these to occur, and neither do I know how to solve them.</p>