This is my first post here, but I would like to say thanks to the community because I have found a solution to my problems countless times, coming here and finding a solution to a question that has already been answered.
Speaking of this, I would like to finish the job. I am working on the IDE Code Gear Delphi 2007. I am still new to working in delphi, less than 3 months to be precise, so please keep this in mind, as something may not be so simple for me.
First, I would like to give a little context related to the problem. I am writing a scheduling utility to complete tasks at a specific time. For each available task, there are two related delphi frames that are associated with this task. The first frame is for editing details specific to this task, and the second frame is for displaying information about the execution time when performing tasks.
A list of running tasks is saved, and a scroll in the utility displays a list of corresponding frames for information about the execution time. These run-time frames are created and destroyed as tasks are launched and completed. This brings me to my problem.
I use the virtual class manager to store a list of available displays and edit frames for each task and create them on the fly as needed. At runtime, everything behaves appropriately when the application really closes, which I see a problem.
the program regards the EAccessViolation exception as closing it. When I tried to trace the problem using the IDE, the line or action corresponding to this problem does not actually exist in my code. Therefore, it should be part of some cleaning functions that are performed in the background.
, " ", , . , - , .
var
tmpCCI: TComponentClassInfExt;
tmpS: String;
tc: TComponent;
bf: TBaseactionedit;
...
begin
...
tc := tmpCCI.fComponentClass.Create(nil);
if tc is TBaseactionedit then
begin
bf := TBaseActionEdit(tc);
bf.name := tmpCCI.fComponentClass.classname+IntToStr(nameCount);
bf.Visible := False;
bf.parent := pnlActionEdit;
bf.Align := alClient;
bf.Visible := True;
end;
...
, . FreeAndNil, . , , , , , - .
- , - ?
P.S. , , -, , , , . !