OutOfMemoryError in French, using en,de,fr
Brought to you by:
i_net_software
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.
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.