From 257122218808f36ca2bb443d80738d50f8ae51d3 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 29 Aug 2008 11:04:04 +0000 Subject: [PATCH] always output to stderr for out of memory - (no dependence on OOM dialog here (for sake of modularity)) --- src/jalview/io/FileLoader.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/jalview/io/FileLoader.java b/src/jalview/io/FileLoader.java index f185205..2879f50 100755 --- a/src/jalview/io/FileLoader.java +++ b/src/jalview/io/FileLoader.java @@ -397,13 +397,11 @@ public class FileLoader implements Runnable } }); } - else - { - System.err.println("Out of memory loading file " + file + "!!"); - } + System.err.println("Out of memory loading file " + file + "!!"); + } loadtime += System.currentTimeMillis(); - + // TODO: Estimate percentage of memory used by a newly loaded alignment - warn if more memory will be needed to work with it // System.gc(); memused = memused - (rt.maxMemory() - rt.totalMemory() + rt.freeMemory()); // difference in free memory after load if (Desktop.desktop != null && Desktop.desktop.isShowMemoryUsage()) -- 1.7.10.2