Changeset 7 for os/trunk/System
- Timestamp:
- Jun 2, 2013, 6:59:07 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
os/trunk/System/LDOS.Kernel.pas
r6 r7 21 21 procedure Execute; virtual; 22 22 procedure Terminate; virtual; 23 destructor Destroy; override; 23 24 end; 24 25 … … 87 88 procedure HandleTaskList; 88 89 public 89 Timers: T List<TTimer>;90 Processes: T List<TProcess>;91 Drivers: T List<TDriver>;90 Timers: TObjectList<TTimer>; 91 Processes: TObjectList<TProcess>; 92 Drivers: TObjectList<TDriver>; 92 93 StartOnBoot: TList<TApplication>; 93 94 Screen: TScreen; … … 135 136 constructor TKernel.Create; 136 137 begin 137 Processes := T List<TProcess>.Create;138 Timers := T List<TTimer>.Create;139 Drivers := T List<TDriver>.Create;138 Processes := TObjectList<TProcess>.Create; 139 Timers := TObjectList<TTimer>.Create; 140 Drivers := TObjectList<TDriver>.Create; 140 141 Screen := TScreen.Create; 141 142 Screen.Kernel := Self; … … 227 228 Canvas.Destroy; 228 229 Forms.Destroy; 230 VideoDevice.Destroy; 229 231 inherited; 230 232 end; … … 311 313 312 314 { TProcess } 315 316 destructor TProcess.Destroy; 317 begin 318 if Assigned(Application) then Application.Destroy; 319 inherited; 320 end; 313 321 314 322 procedure TProcess.Execute;
Note:
See TracChangeset
for help on using the changeset viewer.