Last night I came across a dialog box in Vista that I found to be incredibly funny.
Take a look (I hope the text is readable in the 30% reduced image, otherwise click on the image to view full size):
Clearly enough, under the checkbox Vista claims "Scheduled defragmentation is disabled".
Then on par with the "Defragment now..." button Vista also claims that "Scheduled defragmentation is enabled". Cute :-)
How can you reproduce this? Just open this dialog box and if "Run on a schedule" is checked then uncheck it and without closing the dialog or pressing Apply click "Defragment now...".
When defragmentation completes then Vista displays the "Scheduled defragmentation is enabled" message.
Obviously, since the unchecked checkbox has not yet been committed, the code that sets this message reads the currently stored value for the "Run of a schedule" flag from somewhere in the system and then proceeds to inform us that it is still enabled, although the same information is supposed to be already available elsewhere on the same dialog box (basically this is the real bug in the dialog).
Really it is such a silly mistake, on such a commonly used dialog (or is it not) that I would have expected their testers to notice... Makes me lose some confidence even on SP1... Maybe they get it right on SP2 with this OS.
Have fun!
Dimitris Staikos
