[Gambas-user] How to "Me.Close" with "Shell" or "Exec"?
Willy Raets
willy at ...2734...
Fri Apr 20 17:18:41 CEST 2012
On vr, 2012-04-20 at 17:07 +0200, tobi wrote:
> > > 2012/4/20, abbat <abbat.81 at ...787...>:
> > >>
> > >> It does not CLOSE.
> > >> Just try F5
> > >>
> > >> If True then
> > >> Exec ["ls"]
> > >> Me.Close
> > >> EndIf
> > >>
> > >> DOES NOT CLOSE (you have to push "stop" button), AND:
> > >>
> > >> If True then
> > >> 'Exec ["ls"]
> > >> Me.Close
> > >> EndIf
> > >>
> > >> WORKS
> > >>
What version of Gambas are you on? 3.1
Because I had likewise problems with TRY Exec not closing correctly and
they are fixed a revision, post 3.1.
Fix will be in upcoming 3.1.1 release.
Your problem might be caused by the same bug if your are on Gambas 3.1.
I did not have this problem in Gambas 3.0 though.
>
> One remark: According to http://www.gambasdoc.org/help/lang/quit you are strongly advised to not
> call Quit in a GUI application.
I used quit as a work around as well for now until 3.1.1 gets released.
Willy
More information about the User
mailing list