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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Progress bar not updating on another network...

Status
Not open for further replies.

ukusa

Programmer
Oct 8, 2001
49
AU
I have an Import and stats screen where I have a progress bar to show the progress of how many records have been processed. When I run the program on a slow network or locally, progress bar works fine, but when using it on another network which is somewhat faster, the progress bar gets stuck at the beginning while running through the records on the server. I have the code right and used progbar1.repaint / progbar1.update through each record processing cycle but just can't get the bar to flow in this case. It doesn't seem to update the screen when you need it to. I have a similar problem when using a "Please Wait" object and doesn't show until the form refreshes at some time but not immediately.

What behaviour on the network would cause that? The prog and data are on a shared drive using BDE. The program must of course load up into memory locally and process a refreshed set of data but don't understand what the problem is... 8-( How do I force the objects to update / show while processing around 2000 records etc?

Thanks!
 
May be you are not giving your app a chance to process the WM_PAINT messages.

Try:

StepIt;
Application.ProcessMessages;


If it still not work, elaborate some more about your code (are you using only one thread? how are you telling the bar to step?)

buho (A).

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top