How can I find out the source of long delays when resizing the main shape?

I have a D2006 application containing a page control and various grids, etc. on the tabs. When I resize the main shape (which ripples and resizes everything around the shape that matches something), I experience long delays, like a few seconds. The application freezes, the idle handler is not called, and running threads are also paused.

I am trying to pause execution in the IDE when this happens in an attempt to crack the execution while it is in bad code, but the IDE does not receive messages.

Obviously, I did not expect anyone to point me to some strange piece of code, but I will debug approaches that can help me. I have a complete runtime code throughout the application, and long delays are not displayed in any of the data. For example, the runtime of the main form of the OnResize handler is minimal.

+5
source share
4 answers

If you want to know what really takes your time, try a profiler. Sampling Profiler can easily answer your question, especially if you can find the beginning and end of the code section causing the problems and insert expressions OutputDebugStringaround it to narrow the profiling.

+5

OK. . , , , . HTTP, (TMemo) . HTTP CR/LF, TMemo . , , TMemo , .

:

  • Delphi
  • TMemo
  • TMemo

, - , .

BTW @Mason - SamplingProfiler - , VCL, ?

+3

, .... OutputDebugString() , , . , "".

, , . 3 , , , "".

.

( IDE ODS) , , " ".

+2

AQTime ( XE, ).

, .

, , .

+2

All Articles