[Gambas-user] Gambas 3.1 and Exec (Bug or NOT?)

Sebi sebikul at ...626...
Fri Apr 13 18:21:59 CEST 2012


Hi! If the only thing you want to do is test if a given binary is present on any of the $PATH folders, you can use the CheckProgram function used on the Prooject.module file of the IDE source code. 

It returns false if present, true if missing. 
Hope it helps!
-----Original Message-----
From: Willy Raets <willy at ...2734...>
Date: Fri, 13 Apr 2012 18:05:49 
To: Benoît Minisini<gambas at ...1...>
Reply-To: willy at ...2734...,
	mailing list for gambas users <gambas-user at lists.sourceforge.net>
Cc: mailing list for gambas users<gambas-user at lists.sourceforge.net>
Subject: Re: [Gambas-user] Gambas 3.1 and Exec (Bug or NOT?)


> The bug was in Gambas 3.0. Now, in Gambas 3.1, if you try to run a 
> program that does not exist, you get an error.
> 
> Normally you should get that error message:
> 
> "Cannot run child process: cannot exec program: Resource temporarily 
> unavailable in SysInfo:11"
> 
> I don't really understand why you get "Success" instead.
> 
> Regards,
> 

Hi,

Okay, so instead of executing command to a string and testing for length
of returned string, I now use Try Exec[] to string and that seems to the
job.

But now on closing the application gbx3 is not closed.
Some process seems to prevent the application from correctly closing.
The form closed but that's all.

Project attached

[System]
OperatingSystem=Linux
Kernel=2.6.35-32-generic
Architecture=i686
Memory=2051620 kB
DistributionVendor=Ubuntu
DistributionRelease="Ubuntu 10.10"
Desktop=Gnome

[Gambas 2]
Version=2.24.0
Path=/usr/bin/gbx2

[Gambas 3]
Version=3.1.0
Path=/usr/bin/gbx3

[Libraries]
Qt4=libQtCore.so.4.7.0
GTK+=libgtk-x11-2.0.so.0.2200.0






More information about the User mailing list