[Gambas-user] Weird Overflow error (GB_DIR)

Jesus Guardon jguardon at ...2035...
Wed Dec 16 21:16:00 CET 2009


Hi all

I am experimenting with the GB_DIR environment variable, and I've made a
deb package with my program to install it in /opt. The current dir
structure is as follows:

jesus at ...2151...:~$ tree /opt
/opt
`-- dfhlog
    |-- dfhlog.gambas
    `-- gambas2
        |-- bin
        |   |-- gbr2 -> gbx2
        |   `-- gbx2
        `-- lib
            `-- gambas2
                |-- gb.component
                |-- gb.corba.component
                |-- ... etc
                ...etc...

I am calling my executable from a bash script located in /usr/local/bin

jesus at ...2151...:~$ cat /usr/local/bin/dfhlog
#!/bin/sh
export PATH=/opt/dfhlog/gambas2/bin
export GB_DIR=/opt/dfhlog/gambas2
exec /opt/dfhlog/dfhlog.gambas

(In this case, LD_LIBRARY_PATH is not used, because they already are in
my system).

When I execute 'dfhlog' from the console the main form is shown, but I
got the error:

jesus at ...2151...:~$ dfhlog
global.?.0: #7: Overflow

(Also a message box is displayed with the error)

However my application runs fine when using the standard paths as always.

Am I missing something? Which is "Overflow" error related to?

Regards,

Jesús








More information about the User mailing list