This project is read-only.

Running on Windows XP


i've been using this editor in a WPF program.

All of a sudden it stopped working on Windows XP. It ends with null pointer exception.
PLEASE HELP ME!, i need it for my job.


laurents wrote Apr 19, 2013 at 1:51 PM


This bug was posted 1 year ago, but I had the same crash on windows XP.
I debugged the code and found the problem:
  • First of all, the problem on XP computers that make a software crash is because a PIA is missing: Microsoft.mshtml.dll looks not present or not registered in the GAC of XPs computers.
  • I suggest to update the code to avoid this NullReferenceException that makes crash the application
In the file SmithHtmlEditor/Views/HtmlEditor.xaml.cs (added 'htmldoc == null ||')
    private void OnTimerTick(object sender, EventArgs e)
        if (htmldoc == null || htmldoc.State != HtmlDocumentState.Complete) return;
The editor will display nothing instead of crashing.

Hope it will help other users,
How can I suggest my moifcation?