Recent

Author Topic: Error 1407 (again)  (Read 4693 times)

garydale

  • New Member
  • *
  • Posts: 17
Error 1407 (again)
« on: July 30, 2011, 06:45:51 pm »
When I search for Error 1407, I get posts about Application.Initialize needing to be executed ahead of CreateForm. However, in my case it is.

Code: [Select]
begin
  {$I OpenLobby.lrs}
  Application.Initialize;
  Application.CreateForm(TMainForm, MainForm);
  MainForm.ProgressBar1.Visible := False;
  Application.Run;
end.

My code runs under Linux (at least so far as it starts up, displays the main form and some parts function). However, currently when I run it under Wine or in a Windows XP virtual machine, it fails to launch.

Any ideas?

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Error 1407 (again)
« Reply #1 on: July 30, 2011, 10:19:18 pm »
What is in the file OpenLobby.lrs ?

Any of your units is creating forms in their Initialization section?

 

TinyPortal © 2005-2018