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
error in ResizeBorder?
Posted by: Winger300 (---.nott.cable.ntl.com)
Date: Wednesday, 09-Jul-2003, 23:38:39

I was getting this...

An unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dll

when i resize my browser app.

I replaced this...

int ResizeBorder([In] RECT rect, [In] Object doc, [In] Boolean
fFrameWindow);

with this...

void ResizeBorder(ref tagRECT prcBorder,
[MarshalAs(UnmanagedType.Interface)] IntPtr
pUIWindow, int fRameWindow);

in Comsupport.cs and it seems to fix it.

Re: error in ResizeBorder?
Posted by: Tim (---.server.ntl.com)
Date: Thursday, 10-Jul-2003, 07:13:49

Interesting. There seemed to be some inconsistency in the way ResizeBorder was defined. How about this one:

[return: MarshalAs(UnmanagedType.I4)][PreserveSig]
int ResizeBorder([In] RECT prcBorder, [In, MarshalAs(UnmanagedType.Interface)] IntPtr pUIWindow, [In,
MarshalAs(UnmanagedType.Bool)] Boolean fFrameWindow);

Tim

Re: error in ResizeBorder?
Posted by: James Hancock (---.darwinconsulting.com)
Date: Thursday, 10-Jul-2003, 15:59:35

Tim: I changed this one to the void in the alternative version.



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.
xhmeM
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.