- Timestamp:
- Mar 8, 2012, 3:40:45 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/Clients/UChronisClientMySQL.pas
r37 r38 159 159 destructor TChronisClientMySQL.Destroy; 160 160 begin 161 Database.Free;161 FreeAndNil(Database); 162 162 inherited Destroy; 163 163 end; -
trunk/Forms/UImportStructureForm.pas
r21 r38 94 94 procedure TImportStructureForm.FormShow(Sender: TObject); 95 95 begin 96 EditHost.Text := Core.S qlDatabase1.HostName;97 EditUser.Text := Core.S qlDatabase1.UserName;98 EditSchema.Text := Core.S qlDatabase1.Database;96 EditHost.Text := Core.System.Client.Host; 97 EditUser.Text := Core.System.Client.User; 98 EditSchema.Text := Core.System.Client.Schema; 99 99 end; 100 100 -
trunk/Forms/UMainForm.pas
r37 r38 170 170 procedure TMainForm.FormDestroy(Sender: TObject); 171 171 begin 172 Report.Free;173 TreeState.Free;174 PersistentForm.Free;172 FreeAndNil(Report); 173 FreeAndNil(TreeState); 174 FreeAndNil(PersistentForm); 175 175 end; 176 176 … … 254 254 procedure TMainForm.AConnectExecute(Sender: TObject); 255 255 begin 256 try 257 LoginForm := TLoginForm.Create(MainForm); 256 258 Core.Profiles.LoadFromRegistry(Core.RegistryRootKey, Core.RegistryKey); 257 259 if LoginForm.ShowModal = mrOK then begin … … 273 275 end; 274 276 end; 277 finally 278 LoginForm.Free; 279 end; 275 280 end; 276 281 … … 304 309 procedure TMainForm.MenuItem17Click(Sender: TObject); 305 310 begin 306 LoginForm.ShowModal; 311 try 312 LoginForm := TLoginForm.Create(MainForm); 313 LoginForm.ShowModal; 314 finally 315 LoginForm.Free; 316 end; 307 317 end; 308 318 -
trunk/UCore.lfm
r33 r38 12 12 top = 55 13 13 end 14 object SqlDatabase1: TSqlDatabase15 Connected = False16 Port = 330617 Encoding = 'utf8'18 OnLogQuery = SqlDatabase1LogQuery19 left = 20020 top = 5521 end22 14 object DebugLog1: TDebugLog 23 15 WriteToFileEnable = False -
trunk/UCore.pas
r37 r38 16 16 CoolTranslator1: TCoolTranslator; 17 17 DebugLog1: TDebugLog; 18 SqlDatabase1: TSqlDatabase;19 18 procedure DataModuleCreate(Sender: TObject); 20 19 procedure DataModuleDestroy(Sender: TObject); … … 56 55 System := TChronisBase.Create; 57 56 System.Client := TChronisClientMySQL.Create; 58 TChronisClientMySQL(System.Client).Database := SqlDatabase1;57 //TChronisClientMySQL(System.Client).Database := SqlDatabase1; 59 58 System.RegisterModule(TModuleSystem); 60 59 System.ModuleSystem := TModuleSystem(System.Modules.Last); … … 68 67 begin 69 68 SaveToRegistry; 70 System.Free;71 Profiles.Free;69 FreeAndNil(System); 70 FreeAndNil(Profiles); 72 71 end; 73 72 -
trunk/USystem.pas
r37 r38 658 658 destructor TChronisBase.Destroy; 659 659 begin 660 Types.Free;661 Modules.Free;662 Client.Free;660 FreeAndNil(Types); 661 FreeAndNil(Modules); 662 FreeAndNil(Client); 663 663 inherited Destroy; 664 664 end; -
trunk/chronis.lpi
r36 r38 291 291 <StackChecks Value="True"/> 292 292 </Checks> 293 <VerifyObjMethodCallValidity Value="True"/> 293 294 </CodeGeneration> 294 295 <Linking> 295 296 <Debugging> 296 <DebugInfoType Value="dsStabs"/>297 297 <UseHeaptrc Value="True"/> 298 298 </Debugging> -
trunk/chronis.lpr
r36 r38 35 35 Application.CreateForm(TCore, Core); 36 36 Application.CreateForm(TMainForm, MainForm); 37 Application.CreateForm(TLoginForm, LoginForm);38 Application.CreateForm(TImportStructureForm, ImportStructureForm);39 Application.CreateForm(TLoginProfileForm, LoginProfileForm);40 37 Application.Run; 41 38 end.
Note:
See TracChangeset
for help on using the changeset viewer.