function hfig = myGui ## hfig = myGui(object); ## ## GUI with indexed object and menu with callback. ## Octave crashes when this function is run. ## ## Does not crash if you remove either the indexed object (obj) or the ## callback on the menu. ## Indexed object. obj(2) = myClass (); hfig = figure(); ##**************************************************************************** hmenu = uimenu ("label", "&View"); uimenu (hmenu, "label", "&Panel1" ... , "callback", {@menu_callback, 1} ... ); ##**************************************************************************** function menu_callback(hsrc, evt, panelNum) ## Do nothing. endfunction endfunction