我最近一直在开发一个 GUI,它运行良好,直到 Matlab 在运行不相关的代码时崩溃。我的代码中允许用户绘制 ROI 的部分不再有效,并且在我的 impoly 调用中报告错误(在 Matlab 崩溃之前完美运行):
function cb(src,evt)
handles = guidata(src); %# import the data from the object
images=handles.images;
start = handles.view_slice;
last = handles.slices;
imshow(images(:,:,start),[])
h=impoly;
position = getPosition(h);
我现在得到的错误是:
Error using hittest
Invalid object handle
Error in imshared.ipthittest (line 33)
h = hittest(hFigure, currentPoint);
Error in findLowestManagedObject (line 14)
hit_obj =
imshared.ipthittest(hFigure,buttonMotionEvent.currentPoint);
Error in iptPointerManager>createPointerManager/updatePointer
(line 334)
overMe =
findLowestManagedObject(hFigure,mouseMotionEvent);
Error in
iptPointerManager>createPointerManager/enablePointerManager (line
259)
updatePointer(figHandle, evt);
Error in iptPointerManager (line 72)
pointerManager.API.enable();
Error in manageInteractivePlacement (line 76)
iptPointerManager(h_fig,'Enable');
Error in impoly>impolyAPI (line 245)
placement_aborted =
manageInteractivePlacement(h_axes,h_group,@placePolygon,@buttonUpPlacement);
Error in impoly (line 97)
[h_group,draw_api] = impolyAPI(varargin{:});
Error in volume_scan>cb (line 288)
h=impoly;
Error while evaluating uitoggletool OnCallback
除了这个不起作用之外,还有其他奇怪的东西,包括卡在 GUIDE 表格中的文本(我无法删除)和一个默认为第三个选项的复选框文本
有人有什么想法吗?某处是否有需要重置/删除的崩溃文件?我用的是2012b。
谢谢,吉姆