Menu

#3 OutOfMemoryError in French, using en,de,fr

closed
nobody
None
5
2010-08-09
2009-03-25
Anonymous
No

Using JOrtho v0.4:
------------------------------------
URL url = null
try { url = new URL("file", null, "./dictionaries/"); }
catch(MalformedURLException mue) {}
SpellChecker.registerDictionaries(url, "en,de,fr", "en");
JEditorPane text = new JEditorPane();
JScrollPane scrollPane = new JScrollPane(text, ...);
SpellChecker.register(text);
frame.add(scrollPane);
------------------------------------
Process:
* Right click on text, select "French" language
* Take any action

Result:
Program hangs, and Java reports an OutOfMemoryError. Spelling suggestions remain on previous language.

Error does not occur when selecting English or German, or when French is not included.

Discussion

  • i-net software

    i-net software - 2010-08-09

    If you have an OutOfMemoryError then create a memory dump and analyze it. The loading of an dictionary need some memory which will be free then.

     
  • i-net software

    i-net software - 2010-08-09
    • status: open --> closed
     

Log in to post a comment.