Help Pls: Bizarre TrackBar Behaviour With Large Values

  • Thread starter Thread starter Pls Help
  • Start date Start date
P

Pls Help

Hi,

I've encountered a weird TrackBar issue, it seems to hang completely when
the TrackBar.Maximum is set to certain large values.. what's going on? Have
tried this on a few different 2000/XP environments and it seems the
behaviour is universal.

Btw, before attempting the test below it's a good idea to make sure you
haven't any unsaved work.. :)

First try simply creating a TrackBar with the TrackBar.Maximum property
(defined as an int) set to Int32.MaxValue.. no probs there? Now try setting
it to 67108864, for example. Does your Windows grind to a halt, or is it
just mine? What's the deal? I know I can scale down the values of the bar
therefore avoiding the need to use such high values but the issue stands..
why is it so?

Thanks in advance to anyone who can shed some light on this perplexing
issue.
 
Ooooh, evil code :P

For some reason it can't manage to draw it properly, and what slows down the system to a crawl is dumprep.exe which eats up memory until there is no more. I managed to recover by forcefully ending dumprep.exe in task manager.

Dumprep.exe - " Microsoft provided Windows Error Dump Reporting Tool that creates memory dump reports that you can send back to Microsoft for further analysis. The tool is found on Windows XP/2003. "

I wonder what the report eventually would say :P There is a tool SOS for viewing dump files, but I'm not sure where the dump file was saved, if it was ever saved and not held in memory until finished processing.

Happy coding!
Morten Wennevik [C# MVP]
 
Back
Top