Ignore:
Timestamp:
Aug 3, 2012, 1:55:46 PM (12 years ago)
Author:
chronos
Message:
  • Fixed: Module Debug menu items creation and destruction.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/StudioPackage/UDataModule.pas

    r9 r10  
    108108  ModuleManager.API := API;
    109109
    110   Application.CreateForm(TFormMain, FormMain);
     110  FormMain := TFormMain.Create(nil);
     111  Application.UpdateMainForm(FormMain);
    111112  OpenedFiles.OnOpenFile := FormMain.OpenFileExecute;
    112   Application.CreateForm(TFormProject, FormProject);
    113   Application.CreateForm(TFormSourceCode, FormSourceCode);
    114   Application.CreateForm(TFormSettings, FormSettings);
    115   Application.CreateForm(TFormModuleList, FormModuleList);
     113  FormProject := TFormProject.Create(nil);
     114  FormSourceCode := TFormSourceCode.Create(nil);
     115  FormSettings := TFormSettings.Create(nil);
     116  FormModuleList := TFormModuleList.Create(nil);
    116117
    117118  TLDStudioAPI(ModuleManager.API).MainForm := FormMain;
    118119  TLDStudioAPI(ModuleManager.API).MainMenu := FormMain.MainMenu;
    119120  TLDStudioAPI(ModuleManager.API).FileTypes := FileTypes;
     121  FormMain.Show;
    120122end;
    121123
     
    124126  FreeAndNil(ModuleManager);
    125127  FreeAndNil(API);
     128  FreeAndNil(FormMain);
     129  FreeAndNil(FormProject);
     130  FreeAndNil(FormSourceCode);
     131  FreeAndNil(FormSettings);
     132  FreeAndNil(FormModuleList);
    126133  FreeAndNil(OpenedFiles);
    127134  FreeAndNil(FileTypes);
Note: See TracChangeset for help on using the changeset viewer.