Progressbar in Win7 is drawed with a delay
Original Reporter info from Mantis: Reinhard Berger
-
Reporter name:
Original Reporter info from Mantis: Reinhard Berger
- Reporter name:
Description:
Win Windows 7 (Vista ?) the Progressbar is drawn with a kind of delay which leads to an incorrect position of the bar when the percents is shown next to it.
Only if one decrases speed of the application with a "sleep(1) command progressbar is very close its "position".
Example : Position of the bar is 60% but bar only shows about 30%
If the program runs slow enough and give the bar the time to draw everything is ok,
I added a little program to test this.
Additional information:
How it works :
After starting, 2 files are needed - perfectly bigger ones with around 15 MiB or more.
2nd File can be the same as the 1st.
On Win7 check the check box and you see appearing the messagebox after the percent reach 100%
But the progressbar will still be growing during showing the messagebox.
If you wait (1-2sec) progressbar reaches then 100%.
But if you run the test in a loop without the checkbox checked, you will not see 100% progress of one file, since the progressbar has not the time to grow up, instead it will be drawn again on the next file with 10 or less percent again.
Only if you put a "sleep(1)" or higher between the loop, the progressbar reaches nearly 100%
This is a WIN7 only problem, it does not appear on WinXP.
Mantis conversion info:
- Mantis ID: 19349
- Version: 0.9.30.1 (SVN)