From: Eric on
Hi,

I have a GUI that use image processing GUI tool like impoint or imrect and I want to be able to save and restore the gui.
I currently tried hgsave & hgload but to no success.

after reload and try to use the object (draging pts ect) Iget thee following error.

??? Error using ==> getappdata
Invalid object handle

Error in ==> impoint>impointAPI/startDrag at 451
if ~isempty(getappdata(h_group,'roiObjectReference'))

??? Error while evaluating hggroup ButtonDownFcn


You can replicate it with
figure(1)
impoint %place the point
%save the fig and reload it
% now try to move the point you should get the same error

anyone know a solution for this problem ?