Dell Inspiron notebook
Steps to reproduce:
1. Have existing todo.txt flat file. (probably not important)
2. Download and install 22.214.171.124.msi
3. Run todo.txt.
4. Choose "File / Options..." from menu.
5. Click on "Select Font..." button.
A window to pop up listing installed fonts on the system to choose from.
A blank window frame (probably the font window) immediately followed by a fatal error message window: "todotxt.net has encountered a problem and needs to close. We are sorry for the inconvenience." with a "Close" button.
I found the issue. It was crashing in the ColorFont.dll because the default font that was being used on the tasklist, "Segoe UI", is not natively on WinXP. There is no bounds check in the dll, so it set the index to an invalid range and crashed.
My proposed changes are: bounds checking the index and defaulting to the first font in the list returned from Windows if it exceeds the valid range. Also, update the default font to something that is found in XP, like Arial or Courier New.
In the mean time, a work around for this issue would be to install the Segoe UI font on XP, if it is available.
Addressed crash in XP for Issue #117
Added limited logging to ColorFontDialog. Checked to ensure that named
font was found before setting the index value. Changed default font to
Arial to allow it to function in XP.