Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
70
Unhandled exception for UltraSpellChecker.
posted

Hello,

I am using infragistic 11.1.

I am getting unhandled exception when I add the UltraTextEditor and UltraSpellChecker to my MDI Child form.

I did the following: 

1. Create a new project. 

2. For the default form Form1, Set IsMDIContainer to true

3. Add new form. Form2. Add ultratexteditor and ultraspellchecker. Set the spellchecker of the Ultratexteditor to the ultraspellchecker added.

4. Add a button on Form1 and on its click set the form2.MDIParent = Me and Form2.Show()

5. Run the application. Open the Form2 by clicking the button. And Close the form. 

Throws the exception.

Please let me know if I missed something.

The exception is copied here. 

Thank you in advance for the help.

System.NullReferenceException was unhandled
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=Infragistics2.Win.UltraWinSpellChecker.v11.1
StackTrace:
at Infragistics.Win.UltraWinSpellChecker.SpellChecker.LookUpMainDictionary(String query)
at Infragistics.Win.UltraWinSpellChecker.SpellChecker.PreCheck()
at Infragistics.Win.UltraWinSpellChecker.SpellChecker.Check(String text, Int32 startPosition)
at Infragistics.Win.UltraWinSpellChecker.SpellChecker.Check(String text)
at Infragistics.Win.UltraWinSpellChecker.UltraSpellChecker.CheckTextSubString(String text, Int32 startIndex, Int32 length, Object spellCheckTarget)
at Infragistics.Win.UltraWinSpellChecker.UltraSpellChecker.GetErrors(Object spellCheckTarget)
at Infragistics.Win.UltraWinSpellChecker.UltraSpellChecker.ShowSpellCheckDialog(IWin32Window owner, Object spellCheckTarget)
at Infragistics.Win.UltraWinSpellChecker.UltraSpellChecker.OnExitEditMode(EmbeddableEditorBase editor, Boolean forceExit, Boolean applyChanges)
at Infragistics.Win.UltraWinSpellChecker.UltraSpellChecker.Infragistics.Win.UltraWinSpellChecker.IUltraSpellChecker.OnExitEditMode(EmbeddableEditorBase editor, Boolean forceExit, Boolean applyChanges)
at Infragistics.Win.EmbeddableEditorBase.ExitEditMode(Boolean forceExit, Boolean applyChanges)
at Infragistics.Win.UltraWinEditors.TextEditorControlBase.OnLeave(EventArgs e)
at System.Windows.Forms.Control.NotifyLeave()
at System.Windows.Forms.ContainerControl.UpdateFocusedControl()
at System.Windows.Forms.ContainerControl.AssignActiveControlInternal(Control value)
at System.Windows.Forms.ContainerControl.ActivateControlInternal(Control control, Boolean originator)
at System.Windows.Forms.Form.ActivateMdiChildInternal(Form form)
at System.Windows.Forms.Form.DeactivateMdiChild()
at System.Windows.Forms.Form.WmMdiActivate(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
at System.Windows.Forms.Control.DefWndProc(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.MdiClient.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DefMDIChildProc(IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.Control.DestroyHandle()
at System.Windows.Forms.Control.Dispose(Boolean disposing)
at System.Windows.Forms.Form.Dispose(Boolean disposing)
at WindowsApplication1.Form2.Dispose(Boolean disposing) in C:\Users\Rujuta\AppData\Local\Temporary Projects\WindowsApplication1\Form2.Designer.vb:line 13
at System.Windows.Forms.Form.WmClose(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
InnerException:

  • 7535
    Offline posted

    Hello ,


    Thank you for posting. I followed the steps you suggested and was unable to reproduce the behavior you're describing.
    Its maybe because you are using version 11.1 which is an old version, the bug might have fixed in some time with other supported versions.

    Please note 11.1 is no longer supported so in order to get the fix of the issue you have to upgrade your project to version 18.1/18.2.

    I have attached the sample project I used to test this. Please test this project on your PC with 18.1 ; whether or not it works correctly may help indicate the nature of this problem.

    If the project does not work correctly, this indicates either a problem possibly specific to your environment or a difference in the DLL versions we are using. My test was performed using version 18.1.20181.88 .

    If the project does show the product feature working correctly, this indicates a possible problem in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.

    Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.

    Please let me know if I can provide any further assistance.

    Sincerely,
    Divya Jain
    Associate Software Developer

    7737.Sample.zip