error closing guide gui after snapshot

1 visualización (últimos 30 días)
Talha Meraj
Talha Meraj el 10 de Mayo de 2019
Comentada: Luciano Di iorio el 6 de Jul. de 2019
i am getting this error while click on red cross button of gui to close it after taking snapshot?
Invalid or deleted object.
Error in matlab.webcam.internal.PreviewController/closePreview
Error in matlab.webcam.internal.PreviewController/closePreviewWindowCallback
Error in
matlab.webcam.internal.PreviewController>@(src,event)obj.closePreviewWindowCallback
Error while evaluating Figure CloseRequestFcn.
%% code of capture button
global cam;
img = snapshot(cam);
axes(handles.axes1);
imshow(img);
closePreview(cam);
delete (cam);
clear cam;
guidata(hObject, handles);
  1 comentario
Luciano Di iorio
Luciano Di iorio el 6 de Jul. de 2019
I have the same problem.. Do you have solution?
Im working with Matlab R2017a
While webcam is playing I cant close from red cross, but with a specific button for close the GUI yes

Iniciar sesión para comentar.

Respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by