title: How resolve Delphi Out Of Memory Error?
body: <p>I am having one Delphi XE2 project to handle large numbers of calculations.<br>
  In my project i am having total 1290 Numbers of <code>Edit</code>, 340 Numbers of <code>Label</code>, 330 Numbers of <code>Panel</code>, 16 Numbers of <code>TabSheet</code>. For each and every <code>Edit</code>, there is <code>OnChange</code>, <code>OnDblClick</code>, <code>OnEnter</code> and <code>OnExit</code> events.</p>
  
  <p>I have to handle total 1034 Numbers of <code>Variable</code>. I have just designed the <code>Form</code> and not added those calculation logic. Now my <code>.pas file</code> becomes <code>62.5MB</code> having <strong>1815057 Lines</strong> and <code>.dfm file</code> becomes <code>1.98 MB</code> having <strong>65540 Lines</strong>.</p>
  
  <p>I am trying to compile the project using <code>Delphi XE2</code> under <code>Windows XP Professional SP3 32Bit</code>, but I am getting error as <code>**[DCC Fatal Error] Unit1.pas(1815058): F2046 Out of memory**</code>.  </p>
  
  <p>I have also tried to compile it using <code>Delphi XE5</code> under <code>Windows 8 Enterprise 64Bit</code>, here is also, I am getting the same problem.</p>
  
  <p>I have not added the complete calculation logic using 1034 Numbers of variables, if I add them , at least <strong>4200 Lines</strong> will be added to the <code>.pas file</code>.</p>