datawriter.destroy();
initIdList();
disableMenus();
SliceReader sr = new SliceReader(fileName, width, height, depth, 0);
if (getPreferences().getInt("use_cached_access", 0) == 0) {
datawriter = new HeapReader(width, height, depth);
volume = new Stack(datawriter);
} else {
volume = new Stack(width, height, depth, getPreferences().getString("tempFileName", "temp.raw"));
datawriter = volume.getWriter();
}