好请大家帮我看看。
unit realcaculate;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls,[blue]lycfluent,lyctem,qigang,gyrotor,zhyarotor;自己的PAS每个里面有一个类,有的还有FORM应该不影响把。[/blue]
type
TrealcaculateForm = class(TForm)
Timer1: TTimer;
procedure Timer1Timer(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
{ Private declarations }
public
{ Public declarations }
// zhyarotor:Trotormid;
// qigang:Tqigang;
end;
var
// gyrotor1:Trotor;
realcaculateForm: TrealcaculateForm;
liu:array[0..27] of real;
tjT,lowT1,lowT2,lowT3,lowT4,lowT5,lowT6,lowT7:real;
implementation
uses fuzhi[red];//实施提供变量的FORM.[/red]
{$R *.dfm}
procedure TrealcaculateForm.Timer1Timer(Sender: TObject);
var
huire:Thuire;
turbine:Tturbine;
gyrotor1:Trotor;
zhyarotor:Trotormid;
qigang:Tqigang;
ii:integer;
x:integer;
begin
huire:=Thuire.Create;
huire:=Thuire.init;
turbine:=Tturbine.Create;
turbine:=Tturbine.init(3000,27,0.005,3,0.1,0.1,0.05,zhenkong,0,1.4);
//gyrotor1:=Trotor.Create;
//zhyarotor:=Trotormid.Create;
qigang:=Tqigang.create;
qigang.init;
huire.setD0(dd0);
huire.setxiaoliuliang(xiaoqijiF);
///////////////
huire.Free;
turbine.Free;
gyrotor1.Free;
zhyarotor.Free;
qigang.Free;
end;
end;
procedure TrealcaculateForm.FormCreate(Sender: TObject);
begin
qigang:=Tqigang.Create;
qigang.init;
gyrotor1:=Trotor.Create;
gyrotor1.rotorT;
zhyarotor:=Trotormid.Create;
zhyarotor.rotorMidT;
end;
procedure TrealcaculateForm.FormClose(Sender: TObject;
var Action: TCloseAction);
begin
RELEASE;
end;
end.
[red]////////////////////不管怎么安排累得CREATE,FREE的位置内存还是不断增长。[/red]