[Gambas-user] Closing signals

nando nando_f at ...951...
Wed Feb 7 23:55:37 CET 2007


Recently, I had placed a breakpoint in _close to track down a clean app close.
Clicking 'X' makes the code run in _close
But, in the IDE, hitting STOP will not _close.
I would like to know if the IDE takes care of closing files,pipes,etc that
a program creates or openes when running in the IDE?
Is it possible to (optionally perhaps) have STOP button allow run _close code?
Perhaps a _Stop or _Quit event for IDE programs when the stop button pressed
which will allow some type of cleanup possible
(just thinking out loud)
-Fernando


---------- Original Message -----------
From: Leonardo Miliani <leonardo at ...1237...>
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Sent: Wed, 07 Feb 2007 23:44:51 +0100
Subject: [Gambas-user] Closing signals

> Hello everybody.
> I would like to know if there's a way to intercept what is trying to
> close a Gambas application.
> I remember that in VB there was a way to read the closing signal to know
> if the application had been closed from the user by clicking on the "X"
> icon or if the system was shutting down and was sending all the
> applications the terminating signal.
> 
> I would like to write a check in my applications to close them in a safe
> way if they intercept a terminating signal from the system, i.e. during
> shutdowns or reboots, to avoyd data loosing.
> Thanks.
> 
> -- 
> Ciao.
> Leo.
> 
> Web: www.leonardomiliani.com
> E-mail: leonardo at ...1237...
> Scegli software opensource - Choose opensource software
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
------- End of Original Message -------





More information about the User mailing list