program project1; {$mode objfpc}{$H+} uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Interfaces, // this includes the LCL widgetset Forms { add your units here }, Unit1, UniqueInstanceRaw; begin if not InstanceRunning('project1ver3') then begin Application.Initialize; Application.CreateForm(TForm1, Form1); Application.Run; end; end.