error closing guide gui after snapshot

조회 수: 1 (최근 30일)
Talha Meraj
Talha Meraj 2019년 5월 10일
댓글: Luciano Di iorio 2019년 7월 6일
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
Luciano Di iorio
Luciano Di iorio 2019년 7월 6일
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

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by