HtmlEditor :  Phorum 5 The fastest message board... ever.

This is the discussion forum for the HtmlEditor. See also the HtmlEditor home page, where you can download the control, and the Documentation Wiki, a collaborative project for documenting the control.

Goto Thread: PreviousNext
Goto: Forum ListMessage ListNew TopicSearchLog In
Periodic crash
Posted by: James Hancock (---.darwinconsulting.com)
Date: Friday, 28-Mar-2003, 22:58:10

Some of our customers are getting periodic crashes:

Error Message Object reference not set to an instance of an object


The stack trace show that the error is from HTMLEditor.

Specifically part of it is:

at System.windows.forms.unsafenativemethods.dispatchmessageW(MSG& msg)...

Here'w what they're doing (and I can't reproduce this).

They're editing some HTML and they hit the enter key, and this message comes up, but not all of the time. It's very weird.

Any incites as to why this could be happening?

Thanks
James Hancock

Re: Periodic crash
Posted by: Tim Anderson (---.server.ntl.com)
Date: Friday, 28-Mar-2003, 23:12:59

1. Latest build of HTMLEditor?

2. Any modifications?

3. Are you doing anything special in response to the Enter key?

4. Win 98?

Tim

Re: Periodic crash
Posted by: James Hancock (---.darwinconsulting.com)
Date: Monday, 31-Mar-2003, 21:23:05

1. Yes.
2. Nope, I've dropped all of the stuff that I've put in to see if it would fix it.
3. Nope, nothing is handled or done on any key press.
4. Nope, Win XP.

Re: Periodic crash
Posted by: Tim Anderson (81.255.3.---)
Date: Wednesday, 02-Apr-2003, 07:26:41

James,

I'd definitely like to fix any problems of this kind. The big question is where the exception is happening. If it is in managed code, it shouldn't be too hard to fix. If it is somewhere in mshtml it's much harder.

Are you able to reproduce the error within the vs.net IDE?

If you run, for example, the simple demo app in edit mode, does the problem occur?

If it's specific to your app, I'll gladly take a look if you email the code to me.

My view is that the editor needs to be very robust to be useful.

Tim

Re: Periodic crash
Posted by: James Hancock (---.darwinconsulting.com)
Date: Wednesday, 02-Apr-2003, 18:48:58

My problem is that I cannot reproduce it at all. (Design or full exe)

It's only a few beta testers (read customers) that have this happen and it isn't consistant.

Yes, they were able to make it happen in the demo app, which is what really weirded me out. and the error message seems to be out of managed code or in managed code that is calling unmanaged code.

Re: Periodic crash
Posted by: James Hancock (---.darwinconsulting.com)
Date: Wednesday, 02-Apr-2003, 21:50:24

Tim, I've sent you an email with the error message as a screen grab and a bunch more details.

Hope this helps!

Jamie

Re: Periodic crash
Posted by: George Soules (---.greenmountainaccess.net)
Date: Friday, 11-Apr-2003, 13:03:18

Tim,

I'm having exactly the same problem. In addition to the "reference not set to an instance of an object" exception I have also gotten a System.OutOfMemoryException in system.windows.forms.dll.

I am developing on Win2K. I have subclassed htmleditor and have made one change to it: I added a TranslateURLStringOut property. When I started getting the exception today, it occurred when I clicked on a hyperlink.

Note that when I first started using htmleditor a few weeks ago, I was not seeing this problem at all. Then I made some changes to the hosting form and started seeing it randomly when I did a mousedown in a treeview on the same form. I made more changes to the hosting form and the problem went away entirely. Today I changed the form again and the problem came back.

Unfortunately, I see no pattern as to what kind of form changes are triggering or supressing the problem. If there's anything I can do to help, please let me know -- this control is excellent and I very much appreciate your providing it to all of us.

George

Re: Periodic crash
Posted by: Tim Anderson (---.server.ntl.com)
Date: Friday, 11-Apr-2003, 13:31:13

George,

My problem at the moment is reproducing the error.

Can you zip up your project and send it me? Or a smaller project that shows this behaviour?

It's obviously important that we get this nailed.

Tim

Re: Periodic crash
Posted by: George Soules (---.greenmountainaccess.net)
Date: Friday, 11-Apr-2003, 14:03:30

Tim,

I have just sent you some debugging info and I'll try to create a simple app that reproduces the problem.

George

Re: Periodic crash
Posted by: Tim Anderson (---.server.ntl.com)
Date: Monday, 14-Apr-2003, 16:49:21

I've managed to reproduce the problem now - more news soon I hope.

Tim

Re: Periodic crash
Posted by: Tim Anderson (---.server.ntl.com)
Date: Tuesday, 15-Apr-2003, 15:01:29

... found an error in the interface definition for IDocHostShowUI which caused problems when ShowMessage or ShowHelp was called.

This fixes the problem I can reproduce.

Tim



Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically.
jPUpJ
This is a moderated forum. Your message will remain hidden until it has been approved by a moderator or administrator
This forum powered by Phorum.