Editor Exceptions

Posted by: imgodot on 27 September 2017, 9:13 pm EST

    • Post Options:
    • Link

    Posted 27 September 2017, 9:13 pm EST

    There have been numerous posts dealing with exceptions that occur when debugging an application that uses the C1Editor control with, from what I found, no resolution.

    The most common issue surrounds a COMException and typically cannot be recreated by C1 personnel. The reason they could not recreate it is because the appearance of the error is dependent on the Visual Studio (VS) debug settings.

    We are getting two different exceptions with the editor control but we only get one at a time and, which one we get depends on the debug settings in VS.

    Exception #1: NullReferenceException (this is a first chance exception)

    This error occurs in the form designer inside “InitializeComponent()” on this line:

    “me.editNote.MaxLength = 7000”.

    Exception #2: COMException (this is a “real” exception and not “first chance”)

    This error occurs in the form designer inside “InitializeComponent()” on this line:

    “Me.editNoteXML = New C1.Win.C1Editor.C1Editor()”

    The exception also displays this information:

    “An exception of type ‘System.Runtime.InteropServices.COMException’ occurred in

    System.Windows.Forms.dll and wasn’t handled before a managed/native boundary”

    NOTE: This 2nd error will ONLY occur if the VS debugger has the “Break when exceptions cross AppDomain or managed/native boundaries” option checked. (This option is accessed via:

    “DEBUG/Options and Settings” in the “Debugging” section and “General” subsection.)

    We would like some resolution on this.

    – Paul

  • Posted 27 September 2017, 9:13 pm EST

    Hi,

    Can you send us some steps to reproduce this? Any xml file or operations done on editor in order to get this exception?

    ~nilay

  • Posted 26 February 2018, 5:15 am EST

    I have the same thing. When a form which contains a single C1Editor control is loading then it takes 6-7 seconds (Core i7-4770k). The Output panel (in Visual Studio) shows 17 “Exception thrown: ‘System.Runtime.InteropServices.COMException’ in System.Windows.Forms.dll” error messages. The exceptions are thrown when the “this.c1Editor1 = new C1.Win.C1Editor.C1Editor();” is executed in InitializeComponent() function. The editor is empty, no file or text added. This is not right. Have you found any fix for this? Thanks, Louis

  • Posted 24 August 2019, 12:11 pm EST

    I’m experiencing this as well. It creates a delay of at least 6 seconds to load the form. Specifically, it’s “new C1.Win.C1Editor.C1Editor()”. Does something need to be altered with InitializeComponent?

  • Posted 26 August 2019, 2:05 am EST

    Hello,

    While I could observe no COMException on initialization of a C1Editor control, note that C1Editor initialization code runs the browser, so further data loading should be faster. Thus, it might take some extra time in the beginning.

    Let me know if you need further assistance.

    Thanks,

    Esha

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels