[Mono-bugs] [Bug 389798] New: ProgressBar has problems with big values

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue May 13 09:22:12 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=389798


           Summary: ProgressBar has problems with big values
           Product: Mono: Class Libraries
           Version: 1.9.0
          Platform: x86-64
        OS/Version: SLES 10
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: carsten.sponsel at astrum-it.de
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Is it possible that the ProgressBar has problems with big values?

My application uses the Progress bar to indicate the progress made during
loading and parsing binary files.

ProgressBar.Maximum is set to the file size - i'm using the
BinaryReader.BaseStream.Length property for that. 

For updating the value i'm using something like:
ProgressBar.Value = (int) BinaryReader.BaseStream.Position;

With small files (< 8 MB) it works like expected (like in .NET) -> the
ProgressBar continually grows.
With files > 8 MB and < 16 MB -> the ProgressBar first grows continually to the
half and then disappears
With files > 16 MB -> the ProgressBar first grows continually to the half, then
disappears for some time and then begins to begin growing from start.
..

In .NET it works like expected but the mono ProgressBar does not seem to be
able to handle Values greater than approximately 8M


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list