Hi,
When you call your second gui (GUI_Retrait), do you first close the main gui ?
If so, the error message is normal.
For what I understand, when you create the main GUI, you stock the handle in the appdata of the root (setappdata(0,'GUI3',yourHandle)). So the handle is stored. But if you close the main figure, the value of the handle is still stored, but the GUI doesn't exist anymore, so you can't use the value as a handle.
to be clear, test this :
f = figure;
ishandle(f)
close(f);
ishandle(f)
f still exist but is not a handle anymore.
Is this the problem you have ?
Best Answer