program BassCalc;

{$mode objfpc}{$H+}

uses
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  Interfaces, // this includes the LCL widgetset
  Forms, u_main, u_complex, u_loggraph;

{$R *.res}

begin
  RequireDerivedFormResource := True;
  Application.Initialize;
  // The first CreateForm(...) will be the start-up form.
  Application.CreateForm(TFrm_BassCalc, Frm_BassCalc);
  // When a new Form is created in a project automatically a line
  // "Application.CreateForm (<type>, <instance>)" is written here.
  // It appeared that in Linux this produced SIGSEG and / or access denied errors.
  // I moved the line "Application.CreateForm(TFrmLogGraph, FrmLogGraph);" to the
  // procedure FormCreate in the main unit, which resolved the problem.
  Application.Run;
end.

