Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

Getting out of memory error on RapidSpell .NET 3.7.0.3110 version - RapidSpell Desktop .NET - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
rbaiwar
#1 Posted : Thursday, March 10, 2016 8:11:30 AM
Rank: Member

Groups: Registered

Joined: 9/7/2010
Posts: 1
Hi,

Our users are getting a sporadic out of memory error on RapidSpell .NET 3.7.0.3110 version. Following is the stack trace of the error.

'System.OutofMemoryException' was thrown.
at System.Collections.ArrayList..ctor(Int32 capacity)
at Keyoti.RapidSpell.RapidSpellChecker..ctor().
at Keyoti.RapidSpell.RapidSpellAsyouType.get_RapidSpellChecker()
at Keyoti.RapidSpell.RapidSpellAsyouType.set_CheckCompoundWords(Boolean value)

We have a custom text box control which Inherits Keyoti.RapidSpell.AYTTextBox and in the initLayout method of our cutom text box control we have the following initilization code
If (rapidSpell Is Nothing) Then
rapidSpell = New RapidSpellAsYouType()
rapidSpell.ShowAddMenuOption = False
rapidSpell.ShowSuggestionsContextMenu = True
rapidSpell.CheckCompoundWords = False

There can be many textboxes on our screen as per configured by the user. I need to know whether we have any solution for such a situation or error.

Any help regarding this is highly appreciated.

Thanks
Rushikesh
Jim
#2 Posted : Thursday, March 10, 2016 4:02:50 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,669
Location: Canada
Hi Rushikesh, it looks like you have one RapidSpellAsYouType instance per textbox. In the current version (5), that's not a problem because the dictionary is automatically shared amongst all instances, but in v3 you would have multiple copies of the dictionary in memory.

You can do this however,

Code:

rapidSpell = New RapidSpellAsYouType()
rapidSpell.ShareDictionary = true


just be careful because if you do that, you must not change the dictionary (eg by setting the DictFilePath property) once that property is set. In v5 multiple shared dictionaries is supported.

Best
Jim
-your feedback is helpful to other users, thank you!


Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.




About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.