title: "exe has encountered a problem and needs to close" message when exe is run. Runs OK on Dev machine
body: <p>This is occurring on 2 machines that are both running Windows XP Pro SP3, yet it runs OK on my development machine within in or outside the Delphi IDE.</p>
  
  <p>Running Windows XP Pro. Exe compiled under Delphi 2010.</p>
  
  <p>When I run the exe I get the Windows Reporting error "Neopos.exe has encountered a problem and needs to close. We are sorry for the inconvenience"</p>
  
  <p>I know it is happening somewhere in the form create of the main form.</p>
  
  <pre><code>Application.Initialize; //Runs this
  Application.CreateForm(TfmMain, fmMain); //FAILS HERE
  </code></pre>
  
  <p>It does not get to: procedure <code>TfmMain.FormCreate(Sender: TObject);</code> in the Main Form and I don't know how to track down this error and debug it.</p>
  
  <p>What happens between: <code>Application.CreateForm(TfmUDF, fmUDF);</code> AND <code>procedure TfmMain.FormCreate(Sender: TObject)</code> in my main form.</p>
  
  <p>How can I trace this to find out what the hell is causing the Windows Error.</p>
  
  <p>Of course the Windows Error report contains a long listing of information. Where can I look in that to find the cause or at least a clue on the cause of the error.</p>
  
  <p>This error has now stopped all development work (and ruined my weekend) so I urgently need to fix this.</p>