0

I have a form with a lot of components on it that is taking a LONG time to display. I have isolated the issue to being before the OnShow gets called so it must be one (or more) of the components on the form taking a long time to create. Is there a way to hook in to the TForm component creation logic to see what component is causing the issue?

Caynadian
  • 747
  • 2
  • 12
  • 37
  • 2
    Think of using a general purpose profiler, will need it anyway. – Sertac Akyuz Apr 12 '18 at 15:08
  • Any suggestions for a good one? – Caynadian Apr 12 '18 at 15:27
  • 1
    Included aqtime was enough for me, but AFAIR no tools for D2007. See https://stackoverflow.com/questions/291631/profiler-and-memory-analysis-tools-for-delphi and https://stackoverflow.com/questions/368938/delphi-profiling-tools . – Sertac Akyuz Apr 12 '18 at 15:47
  • "*I have a form with a lot of components on it*" - then you should consider redesigning your UI. – Remy Lebeau Apr 12 '18 at 16:07
  • "then you should consider redesigning your UI" - much easier said than done. The UI is standardized across the application and other forms with the same number of components don't have this issue. It's just this one form. I think I have isolated the naughty one through trial and error. – Caynadian Apr 12 '18 at 16:16

1 Answers1

0

Through trial and error I figured out which component it was and determined that it was something to do with the debugger as running the application outside of Delphi had much better performance than from within.

Caynadian
  • 747
  • 2
  • 12
  • 37