Changeset 742 in josm for trunk


Ignore:
Timestamp:
2008-08-01T12:57:30+02:00 (16 years ago)
Author:
stoecker
Message:

better error message for missing memory. closes #672

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java

    r655 r742  
    4444                        if (e instanceof OutOfMemoryError) {
    4545                                // 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()/1024/1024 + " MB are available to JOSM.");
    4750                                return;
    4851                        }
Note: See TracChangeset for help on using the changeset viewer.