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
20
Pasting some links in TextBox stops the application
posted

Hello!

In my application i have a TextBox that uses the UltraSpellChecker and the portuguese dictionary.
The thing is when i paste some links in the TextBox, my application stops working. I noticed that this is happening because of the dictionary. If i change the language, everything works fine.
Also, i noticed that is not because of the link, but because of some parts of it, like, when i write: "criando-padroes-de-engenharia-criar-metodos-descritivos-nao-precisa-ser-uma-dor-de-cabeca", everything stops.
What i think is happening is that the dictionary interprets that text like one word and tries to find something close to it.

This is the part of my code where i use the SpellChecker:

this.ultraSpellChecker1.ContainingControl = new System.Windows.Forms.ContainerControl();
this.ultraSpellChecker1.Mode = Infragistics.Win.UltraWinSpellChecker.SpellCheckingMode.AsYouType;
this.ultraSpellChecker1.SpellChecked += new Infragistics.Win.UltraWinSpellChecker.SpellCheckedEventHandler(this.ultraSpellChecker1_SpellChecked);
this.ultraSpellChecker1.Dictionary = Application.StartupPath + @"\br_portuguese.dict";
this.ultraSpellChecker1.SpellOptions.LanguageParser = Infragistics.Win.UltraWinSpellChecker.LanguageType.Portuguese;
this.ultraSpellChecker1.SpellChecked += new Infragistics.Win.UltraWinSpellChecker.SpellCheckedEventHandler(this.Evento_Corretor);
this.ultraSpellChecker1.SpellOptions.SuggestSplitWords = true;

I don't know if the problem is in my code and I apologise, because this is a little bit confusing.

Parents
No Data
Reply
  • 6120
    Offline posted

    Hello Ray,

    Please clarify the Infragistics version that you are using. When you said application stopped when spell checking certain string, do you mean application stopped by throwing an exception? If yes, SpellChecker throwing an exception when spell checking a specific type of string has been fixed in 14.2 and later versions. If you are using any previous version than this then please test this with a later version to see if you were able to resolve this issue.

    I will further look into this issue as soon as I hear back from you.

    Please let me know if you have any questions.

    Sincerely,
    Sahaja Kokkalagadda
    Associate Software Developer

Children
No Data