[Gambas-user] program return error value 1

roberto.premoli at tiscali.it roberto.premoli at tiscali.it
Wed Oct 25 14:58:13 CEST 2023


Il 24.10.2023 22:15 T Lee Davidson ha scritto:

> On 10/24/23 09:35, roberto.premoli at tiscali.it [1]wrote:
>
>> Hello all igot a new conputer with he follow: distro: devuan 5.0
>> "Dedalus" (the current stable) linux: Linux AM 6.1.0-13-amd64 #1 SMP
>> PREEMPT_DYNAMIC Debian 6.1.55-1 (2023-09-29) x86_64 GNU/Linux 
>> gambas:
>> 3.18.0 I create FROM ZERO (i choose QT) a demo program. How the
>> programm works: there are one label and 2 buttons: press button 1 =>
>> label1.text = "hello word" press button 2 => label1.text = "happy
>> birtday" no more, very easy demo program When I try to run it, it
>> return "error 1" and it does not run. I tried also "compile" and
>> "compile all" berore run, no success. Really I dont know what i did
>> wrong: i change nothing in configuration, i change nothing in Fmain
>> attributes, the only bold attribute are height and width (both = 
>> 448).
>> I only created label, 2 buttons an place code into button as follow:
>> Public Sub Button1_Click() Label1.Text = "hello world!" End Public 
>> Sub
>> Button2_Click() Label1.Text = "happy birtday!" End I attached here 
>> the
>> demo program if someone want to investigate and find my error. 
>> Thanks,
>> Roberto
>
> It works fine here with v3.18.4; no error.
>
> Where are you seeing "error 1"? In the IDE console, or on the command
> line when executing the compiled project?

the error appear in IDE, in low right corner. It has background blue.

> Perhaps your Gambas installation is corrupted.

no, it works.
to verify it,I downloaded from example the program "test" and run it.
it works. it is a simple window with a button, more or less the same i 
did.
well: it works. then I open another instance of gambas with the big 
program i
want to move on 3.18.0 and i just copy from my program all graphic 
elements
(button, panel, label, ecc) and paste into "test" program.
Then i did the same about the code (just copy-and-paste) then i run it 
and it works!
IT seem that the "bad magic" trigger when i CREATE a new project or 
port the
directory of old project onto the new PC. There is no problem if i 
download
that "test" program from gambas's example and move is folder into home 
and modify it
adding elements, code, ecc.
I also thought there are some problems about rights on file, but is 
not, i modified
all the ownership of file and all off them belongs to new owner that 
use it...
i am so confused... for sure the problem is in something that i do, but 
really I
don't understand where the matter is :-(((
I can use this trick to download a test program and modify it as i said 
below,
but it is just a workaround...

> By the way, when attaching archive files, please use "zip", "tar.gz" 
> or
> the "gmail.txt" formats[1]. Gambas does not recognize
> the "7-zip" format. You can make a "tar.gz" archive easily right 
> within
> Gambas: In the menu, Project > Make source archive.
>
Ok i will do next time.




More information about the User mailing list