mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 19:59:14 +02:00
startlazarus: moved showing splash screen out of lazarusmanager constructor to get better backtrace for bug #7966
git-svn-id: trunk@10333 -
This commit is contained in:
parent
3a1836c830
commit
ec287d82c2
@ -118,22 +118,14 @@ type
|
||||
procedure LazarusProcessStart(Sender: TObject);
|
||||
procedure WaitForLazarus;
|
||||
public
|
||||
constructor Create; reintroduce;
|
||||
destructor Destroy; override;
|
||||
procedure Initialize;
|
||||
procedure Run;
|
||||
procedure ShowSplash;
|
||||
end;
|
||||
|
||||
implementation
|
||||
|
||||
constructor TLazarusManager.Create;
|
||||
begin
|
||||
inherited Create(nil);
|
||||
SplashForm := nil;
|
||||
ShowSplash;
|
||||
ParseCommandLine;
|
||||
end;
|
||||
|
||||
destructor TLazarusManager.Destroy;
|
||||
begin
|
||||
FreeAndNil(FCmdLineParams);
|
||||
@ -260,6 +252,13 @@ begin
|
||||
WaitForPID(FLazarusPID);
|
||||
end;
|
||||
|
||||
procedure TLazarusManager.Initialize;
|
||||
begin
|
||||
SplashForm := nil;
|
||||
ShowSplash;
|
||||
ParseCommandLine;
|
||||
end;
|
||||
|
||||
procedure TLazarusManager.Run;
|
||||
var
|
||||
Restart: boolean;
|
||||
|
@ -44,7 +44,8 @@ var
|
||||
|
||||
begin
|
||||
Application.Initialize;
|
||||
ALazarusManager := TLazarusManager.Create;
|
||||
ALazarusManager := TLazarusManager.Create(nil);
|
||||
ALazarusManager.Initialize;
|
||||
ALazarusManager.Run;
|
||||
FreeAndNil(ALazarusManager);
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user