public OOMWarning(String string, OutOfMemoryError oomerror)
{
- this(string, oomerror, Desktop.desktop);
+ this(string, oomerror, Desktop.getDesktopPane());
}
@Override
public void run()
{
+ oomInprogress = false;
JvOptionPane.showInternalMessageDialog(desktop, MessageManager
.formatMessage("warn.out_of_memory_when_action", new String[]
{ action }), MessageManager.getString("label.out_of_memory"),
JvOptionPane.WARNING_MESSAGE);
// hope that there's enough memory left that no more appear.
- oomInprogress = false;
}
}