Ticket #672: josm-oom-message.diff
| File josm-oom-message.diff, 1.0 KB (added by , 18 years ago) |
|---|
-
home/dnaber/workspace/JOSM/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java
43 43 if (Main.parent != null) { 44 44 if (e instanceof OutOfMemoryError) { 45 45 // do not translate the string, as translation may raise an exception 46 JOptionPane.showMessageDialog(Main.parent, "You are out of memory. Strange things may happen.\nPlease restart JOSM and load smaller data sets."); 46 JOptionPane.showMessageDialog(Main.parent, "JOSM is out of memory. " + 47 "Strange things may happen.\nPlease restart JOSM with the -Xmx###M option,\n" + 48 "where ### is the the number of MB assigned to JOSM (e.g. 256).\n" + 49 "Currently, " + Runtime.getRuntime().maxMemory()/1000/1000 + " MB are available to JOSM."); 47 50 return; 48 51 } 49 52
