Compiled GUIDE Gui Error (Line 42) when closing program

1 visualización (últimos 30 días)
Douglas Anderson
Douglas Anderson el 15 de Nov. de 2014
Comentada: Douglas Anderson el 17 de Nov. de 2014
Hello!
Compiled gui works, but when program is closed, an error always pops up: "H must be the handle to a figure or a figure descendant. Error in => dynovibe_2_1.m at Line 42." Since Line 42 in a this is in the nargout if statement for the "DO NOT EDIT" portion, I am guessing that it's a problem with the Output Function, reproduced below:
% --- Outputs from this function a re returned to the command line.
function varargout = dynovibe_2_1_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
handles = guidata(hObject);
% Get default command line output from handles structure
h_d = handles.h_dly ;
r_d = handles.r_dly ;
final_ppv = handles.ppv_values ;
final_fft = handles.fft_values ;
varargout{1} = h_d; %jumbolo; %output;
varargout{2} = r_d; %handles.h_dly;
varargout{3} = final_ppv;
varargout{4} = final_fft;
delete(handles.figure1);
I'm really not sure what outputs mean for a Windows compiled Matlab program anyway. Any suggestions to clean this up? Thanks!
Doug Anderson
  2 comentarios
Jan
Jan el 15 de Nov. de 2014
It is important to show us the line, which causes the error. Guessing that the problem is anywhere else might be bold.
Douglas Anderson
Douglas Anderson el 17 de Nov. de 2014
Hi Jan
Sorry, I hadn't noticed the comment. Here is the code snippet:
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @FortyTwo_1_1_OpeningFcn, ...
'gui_OutputFcn', @FortyTwo_1_1_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
Line 42 is:
gui_mainfcn(gui_State, varargin{:});
Thank you.
Doug

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by