Path: news.mathworks.com!not-for-mail
From: "Luca Cerone" <cerone@to-see.it>
Newsgroups: comp.soft-sys.matlab
Subject: Callback Cross close function
Date: Tue, 13 May 2008 15:11:44 +0000 (UTC)
Organization: To see srl
Lines: 11
Message-ID: <g0cb3g$17m$1@fred.mathworks.com>
Reply-To: "Luca Cerone" <cerone@to-see.it>
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 1210691504 1270 172.30.248.38 (13 May 2008 15:11:44 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 13 May 2008 15:11:44 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1102946
Xref: news.mathworks.com comp.soft-sys.matlab:468165


Hi,
I'm developing a compiled GUI application.
It works fine, but I have a problem:
I can't succeed in making the program to free memory when i
close it clicking on the X (cross) button of my application.

How can I write a callback for the X button?
How can I deallocate all memories, destroy all classes and
free memory (is a clear all enough before of returning?)
If you could help me, I would be very grateful!
Thank you very much in advance!!! -Luca-