PoChecker: don't autocreate the GraphStat form (fixes crash when run as tool from IDE).

git-svn-id: trunk@46236 -
This commit is contained in:
bart 2014-09-14 17:46:26 +00:00
parent 679d20a26e
commit 4145473e3d
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,6 @@ begin
RequireDerivedFormResource := True;
Application.Initialize;
Application.CreateForm(TPoCheckerForm, PoCheckerForm);
Application.CreateForm(TGraphStatForm, GraphStatForm);
Application.Run;
end.

View File

@ -94,9 +94,10 @@ end;
procedure TResultDlgForm.GraphStatBtnClick(Sender: TObject);
begin
Debugln('TResultDlgForm.GraphStatBtnClick: Assigned(GraphStatForm) = ',DbgS(Assigned(GraphStatForm)));
GraphStatForm := TGraphStatForm.Create(nil);
GraphStatForm.PoFamilyStats := Self.PoFamilyStats;
GraphStatForm.ShowModal;
FreeAndNil(GraphStatForm);
end;
procedure TResultDlgForm.SaveBtnClick(Sender: TObject);