delphi - How might I find out the source of long delays on resizing the main form? -
i have d2006 app contains page control , various grids, etc on tabs. when resize main form (which ripples through , resizes on form aligned something), experience long delays, several seconds. app freezes, idle handler not called , running threads appear suspend also.
i have tries pausing execution in ide while happening in attempt break execution while in troublesome code, ide not taking messages.
obviously i'm not expecting point me @ errant piece of code, i'm after debugging approaches might me. have extensive execution timing code throughout app, , long delays don't show in of data. example, execution time of main form onresize handler minimal.
if want find out what's taking time, try profiler. sampling profiler answer question pretty easily, if you're able find beginning , end of section of code that's causing trouble , insert outputdebugstring
statements around narrow down profiling.
Comments
Post a Comment