Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form loads/displays slowly

Status
Not open for further replies.

hjohnson

Programmer
Aug 1, 2001
90
US
I just recently ran into a issue on a form that displays very slowly. By that I mean when the form is executed, the border visible, but everthing within the border is white. After about 4-10 seconds (but sometimes as long as a minute) then rest of the form appears. This occurs in both code and in a compiled app.

I've pinpointed delay down to to somewhere between the from. Init() and form.Paint() events. I created an public array that I re-dimension in varias init() to track the seconds() when each one was fired then enabled the eventtracking to see the order in which they fired. According the eventtracking log, the sequence is:

Form1.Init()
Form1.Paint()
Form1.Activate()

In one example:

Form1.Init() Last line occured at 38298.480
Form1.Paint() occured at 38302.826
Form1.Activate()occured at 38302.826

almost 4.5 seconds occurred between init() and paint() with nothing in the event log.

Does anyone have any thoughts are ideas of what may be happening to cause the delay.

Thanks in advance.
 

hjohnson,

It must be whatever you are doing in the Init that is slow. Can you give us a summary of the processing you are doing there? (Or post the code, but not if it very long).

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top