Path: news.mathworks.com!not-for-mail
From: "William " <w_king10@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Passing handles between GUIs via a loaded file
Date: Mon, 6 Oct 2008 06:46:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 13
Message-ID: <gccc79$d4l$1@fred.mathworks.com>
Reply-To: "William " <w_king10@yahoo.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1223275561 13461 172.30.248.38 (6 Oct 2008 06:46:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 6 Oct 2008 06:46:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 930703
Xref: news.mathworks.com comp.soft-sys.matlab:493776


Hi,

I have a GUI with pulldown menus and editable text boxes.  I am trying  to save the configuration of all the editable text boxes and pulldown menus to a file that can be loaded the next time the user wants to use the GUI.  

I can run the GUI properly if I start from scratch(All of the handles operate normally).  The problem is, when I rerun the GUI and load in the configuration file, I get an 'Invalid handle object' error.  Does anyone know a way to do this?

Currently, I am saving the handles structure from the previously open GUI into the configuration file.  I then reopen the GUI and load in the saved configuration file.  When the file is loaded, I am copying over the handles structure from the previously opened GUI.  I noticed that some of the numbers change slightly between the two handles (i.e. checkbox3 goes from 320.0040 to 320.0039).  Could this be causing the problem?  

Please let me know if you know a way to save the configuration and data of a GUI into a config file that can be loaded back into the GUI so the user can pick up where he/she left off. 

Thanks!!

Bill King