Path: news.mathworks.com!newsfeed-00.mathworks.com!kanaga.switch.ch!switch.ch!ecngs!feeder2.ecngs.de!newsfeed.freenet.de!newsfeed0.kamp.net!newsfeed.kamp.net!feeder.news-service.com!69.16.177.246.MISMATCH!cyclone03.ams.highwinds-media.com!news.highwinds-media.com!npeersf02.ams.highwinds-media.com!newsfe01.ams2.POSTED!7564ea0f!not-for-mail
Sender:  <tristram@chicken.quantmodels.co.uk>
From: tristram.scott@ntlworld.com (Tristram Scott)
Subject: Re: Report generator from a GUI
Newsgroups: comp.soft-sys.matlab
References: <gdil46$a66$1@fred.mathworks.com> <gdkgdm$7hu$1@fred.mathworks.com> <gdkm3n$fds$1@fred.mathworks.com> <gdknen$33e$1@fred.mathworks.com>
User-Agent: tin/1.7.7-20041215 ("Scalpay") (UNIX) (SunOS/5.10 (sun4u))
Lines: 25
Message-ID: <c9mLk.44748$Zl2.1783@newsfe01.ams2>
NNTP-Posting-Host: 82.6.107.75
X-Complaints-To: http://netreport.virginmedia.com
X-Trace: newsfe01.ams2 1224601288 82.6.107.75 (Tue, 21 Oct 2008 11:01:28 EDT)
NNTP-Posting-Date: Tue, 21 Oct 2008 11:01:28 EDT
Organization: virginmedia.com
Date: Tue, 21 Oct 2008 15:01:28 GMT
Xref: news.mathworks.com comp.soft-sys.matlab:496539


Sonsoles Romero Garc&#xED;a <krokketilla@gmail.com> wrote:
> Yes, Steven is right,I also had tried changing the CloseRequestFcn,
> hoping for something as close all was in the code, but my GUI disappeared
> so I think there is a delete all or something like that. 
> 
> Does somebody know which function in the report generator blockset is the
> one in charge of close all the figures? Maybe if the code is open I will be
> able to change it.
> 
> Now, I'm working with the debugger searching for it.
> 

What if you try a variation on Steven's suggestion:

>> h = figure('DeleteFcn', 'error(''I refuse to be closed'')');

Then perhaps when the figure gets deleted you will get a call stack with the 
error message.

I still say you should file a bug report.  The report generator has no
business closing your figure windows.

-- 
Dr Tristram J. Scott               
Energy Consultant