source: aedes_errordump.m

Last change on this file was 147, checked in by tjniskan, 9 years ago
  • Added support for Windows network paths (
    server\share) to

aedes_juigetfiles.m (Windows only)

  • Added a link for suppressing the license information from printing to

workspace

  • Fixed some uicontrol colors in aedes_headerbrowser.m
  • Changed the buffer size for reading VNMR PROCPAR to 1MB. The

previous buffer size (10kB) was apparently too low for some SWIFT data

  • aedes_killfigs.m now has an option to force close only Aedes-related

figures

  • Updated figure tags for aedes_killfigs.m
  • Added a request for restarting Aedes to the "Update successful" dialog

M aedes_readprocpar.m
M aedes_killfigs.m
M aedes_data_read.m
M aedes_gui_defaults.m
M aedes_resviewer.m
M aedes.m
M aedes_update.m
M aedes_export_gui.m
M aedes_headerbrowser.m
M aedes_revision.m
M aedes_juigetfiles.m
M aedes_errordump.m

File size: 1.8 KB
RevLine 
[80]1function aedes_errordump(errorstruct)
2% AEDES_ERRORDUMP - Write the lasterror structure into file
[2]3%   
4%
5% Synopsis:
6%
7% Description:
8%
9% Examples:
10%
11% See also:
12%
13
[37]14% This function is a part of Aedes - A graphical tool for analyzing
[36]15% medical images
[2]16%
[36]17% Copyright (C) 2006 Juha-Pekka Niskanen <Juha-Pekka.Niskanen@uku.fi>
18%
[45]19% Department of Physics, Department of Neurobiology
[37]20% University of Kuopio, FINLAND
[36]21%
22% This program may be used under the terms of the GNU General Public
23% License version 2.0 as published by the Free Software Foundation
24% and appearing in the file LICENSE.TXT included in the packaging of
25% this program.
26%
27% This program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
28% WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
[2]29
[36]30
[16]31debug=false;
[2]32
33if debug
34  keyboard
35else
[16]36  % Construct file name and path for the errordump file
[2]37  error_dir = [prefdir(1),filesep];
[37]38  error_fname =['aedes_errordump_',datestr(now,30),'.mat'];
[2]39 
[16]40  % Get revision information
[80]41  [rev,repo]=aedes_revision;
[16]42 
[36]43  % Save the errorstruct
44  save([error_dir,error_fname],'errorstruct','rev','repo','-mat')
[16]45 
[36]46
[16]47  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
[36]48  % Error dialog
[16]49  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
[147]50  hh=errordlg({['Oops... An unhandeled error has occurred in Aedes! ',...
[48]51        'This is probably a bug. ',...
[147]52        'An error dump was written into the following file:'],...
[36]53        ['"',error_dir,error_fname,'"'],'','',...
54        'The returned error message was:',...
55        errorstruct.message,errorstruct.identifier,'',...
[37]56        ['If you get this error dialog every time you try to close Aedes ' ...
[80]57        'main window, run the command "aedes_killfigs" in the Matlab ' ...
[36]58        'workspace. This will delete ALL currently open Matlab figures ' ...
59        'with brute force!!!']},...
[147]60        'UNHANDELED ERROR!','modal');
[2]61end
Note: See TracBrowser for help on using the repository browser.

Powered by Trac 1.0.9.Copyright © Juha-Pekka Niskanen 2008