single stepping application keeps dropping me into frxClass?
I have three reports in my delphi application and another dozen or so forms that are nothing to do with fast reports.
The reports work fine.
However, if I single step through code in an unrelated form that simply updates a recordset in my database, when I reach the end of the update procedure the debug jumps into FastReport's frxClass unit at the line indicated below. If I carry on single stepping in the hope of getting back the code I want to trace it gets to the else line and then hangs the application.
Why does it keep trying to run your code and how can I stop it so that I can get back to the code I want to debug?
(in case its any help one of the reports does use the table I have just updated)
Howard
begin
sl := TStringList.Create;
sl.Sorted := True;
begin
sl := TStringList.Create;
sl.Sorted := True; <
jumps to here
sl.Duplicates := dupAccept;
for i := 0 to FObjects.Count - 1 do
begin
c := FObjects;
if c is TfrxView then
if c.Left >= 0 then
sl.AddObject('1' + Format('%9.2f', [c.Left]), c)
else <
hangs here
sl.AddObject('0' + Format('%9.2f', [-c.Left]), c);
end;
The reports work fine.
However, if I single step through code in an unrelated form that simply updates a recordset in my database, when I reach the end of the update procedure the debug jumps into FastReport's frxClass unit at the line indicated below. If I carry on single stepping in the hope of getting back the code I want to trace it gets to the else line and then hangs the application.
Why does it keep trying to run your code and how can I stop it so that I can get back to the code I want to debug?
(in case its any help one of the reports does use the table I have just updated)
Howard
begin
sl := TStringList.Create;
sl.Sorted := True;
begin
sl := TStringList.Create;
sl.Sorted := True; <
jumps to here
sl.Duplicates := dupAccept;
for i := 0 to FObjects.Count - 1 do
begin
c := FObjects;
if c is TfrxView then
if c.Left >= 0 then
sl.AddObject('1' + Format('%9.2f', [c.Left]), c)
else <
hangs here
sl.AddObject('0' + Format('%9.2f', [-c.Left]), c);
end;
Comments
Now, this is just a guess: try unchecking the Use Debug DCUs in your project, do a Rebuild Project and see if that helps to skip the frx units at all.
Some ideas?? ... I don't know why friday goes right and today is steping into frxClass!!