January 11th, 2011

The message text limit for the Marquee screen saver is 255, even if you bypass the dialog box that prevents you from entering more than 255 characters

If you find an old Windows XP machine and fire up the configuration dialog for the Marquee screen saver, you’ll see that the text field for entering the message won’t let you type more than 255 characters. That’s because the Marquee screen saver uses a 255-character buffer to hold the message, and the dialog box figure there’s no point in letting you type in a message longer than the screen saver can display. A customer decided to bypass the configuration dialog and change the text in the screen saver by editing the settings directly, and then complained that the Marquee screen saver truncated the message at 255 characters. Well, yeah, because the limit is 255 characters. That’s what the dialog box was trying to tell you. If you bypass the dialog box and whack the setting directly, that doesn’t change the Marquee screen saver. Its limit is still 255 characters.

It’s like attaching a gizmo to the gas pump fuel nozzle to disable the auto-stop feature because you want to put 20 gallons of gas into your 15-gallon tank. Disabling the auto-stop will not make the gas tank any bigger. All it does it make it easier to accidentally overflow your gas tank’s buffer.

Author

Raymond has been involved in the evolution of Windows for more than 30 years. In 2003, he began a Web site known as The Old New Thing which has grown in popularity far beyond his wildest imagination, a development which still gives him the heebie-jeebies. The Web site spawned a book, coincidentally also titled The Old New Thing (Addison Wesley 2007). He occasionally appears on the Windows Dev Docs Twitter account to tell stories which convey no useful information.

0 comments

Discussion are closed.