single stepping application keeps dropping me into frxClass?

hsmhsm
edited 9:48PM in FastReport 4.0
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;

Comments

  • Anu de DeusAnu de Deus Hampshire, UK
    edited 9:48PM
    In Delphi 7, there is the debug action (like Step into (F7)) called Run Until Return (Shift +F8), that will take you out of the current function and stop exactly where it was called from, should help when you get inside the frx unit.
    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.
  • Same problem than hsm.
    Some ideas?? ... I don't know why friday goes right and today is steping into frxClass!!

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.