Fresh install Windows 10 64bit, Lazarus v2.0.10r63526
File new Application.
File new form (unit2 below)
file new datamodule (unit3 below)
then save.
Result:
program project1;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Interfaces, // this includes the LCL widgetset
Forms, Unit1, Unit2, Unit3
{ you can add units after this };
{$R *.res}
begin
RequireDerivedFormResource:=True;
Application.Scaled:=True;
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.CreateForm(TForm2, Form2);
Application.Run;
end.
Problem: the datamodule form is not created. (Application.CreateForm)
Tested on 2 PC's result the same, what I doing wrong? (I did it manual and then everything is OK)
best regards
WimS