Re: [Gambas-user] Issue 257 in gambas: Database password retrieval error and abort in IDE

2012-06-18 Thread gambas
Updates: Status: NeedsInfo Labels: -Version Version-TRUNK Comment #2 on issue 257 by benoit.m...@gmail.com: Database password retrieval error and abort in IDE http://code.google.com/p/gambas/issues/detail?id=257 There is a problem with Gnome keyring. Do you run Gnome3 ? --

Re: [Gambas-user] Issue 258 in gambas: Expander and slider combo issues

2012-06-18 Thread gambas
Updates: Status: NeedsInfo Labels: -Version Version-TRUNK Comment #1 on issue 258 by benoit.m...@gmail.com: Expander and slider combo issues http://code.google.com/p/gambas/issues/detail?id=258 Can you provide me a screenshot of your problem? --

Re: [Gambas-user] Bug with JIT and external functions

2012-06-18 Thread Emil Lenngren
Does it work in revision #4847? /Emil 2012/6/18 Jussi Lahtinen > Starting program: /usr/local/bin/gbx3 > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". > gbx3: ExecutionEngine.cpp:165: void > llvm::ExecutionEngine::addG

Re: [Gambas-user] Bug with JIT and external functions

2012-06-18 Thread Jussi Lahtinen
Starting program: /usr/local/bin/gbx3 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". gbx3: ExecutionEngine.cpp:165: void llvm::ExecutionEngine::addGlobalMapping(const llvm::GlobalValue*, void*): Assertion `(CurVal == 0 || Add

Re: [Gambas-user] Bug with JIT and external functions

2012-06-18 Thread Emil Lenngren
Hi. Can you please provide more information? A gdb backtrace or something, because I get no errors at all. Everything seems to work for me ... /Emil 2012/6/18 Jussi Lahtinen > OK, I found it. See attachment. > > Jussi > > > > > On 17 June 2012 23:36, Jussi Lahtinen wrote: > > > OK, that is fix

Re: [Gambas-user] Bug with JIT and external functions

2012-06-18 Thread Jussi Lahtinen
OK, I found it. See attachment. Jussi On 17 June 2012 23:36, Jussi Lahtinen wrote: > OK, that is fixed, and I cannot see any problems with compare method > anymore. > > But with my big project, I got this with signal 6; > gbx3: ExecutionEngine.cpp:165: void > llvm::ExecutionEngine::addGlobal

Re: [Gambas-user] Access global variable from other .class

2012-06-18 Thread Jussi Lahtinen
> Some systems do not use sudo. Maybe they find it unsecure. > Hmmm... I don't know any reason for sudo being insecure compared to su. Do you mean sudo exist, but it's use is restricted like su in Ubuntu..? Otherwise, if sudo doesn't exist then use "su -c", if this also fails, then I don't know

Re: [Gambas-user] Access global variable from other .class

2012-06-18 Thread John Spikowski
On Mon, 2012-06-18 at 19:22 +0200, Benoît Minisini wrote: > Some systems do not use sudo. Maybe they find it unsecure. Dancing with Android Linux with root MIA and directory permission structures like a maze, is a challenge to say the least. Besides all that, I was able to get ScriptBasic running

Re: [Gambas-user] Access global variable from other .class

2012-06-18 Thread tobi
On Mon, 18 Jun 2012, Benoît Minisini wrote: > Le 18/06/2012 19:15, Jussi Lahtinen a écrit : > >> Maybe it would be possible to write a graphical su entirely in Gambas? > >> The first difficulty I see is how to know if we must use 'su' or 'sudo' > >> to run the command... > >> > >> > > I have never

Re: [Gambas-user] Access global variable from other .class

2012-06-18 Thread Benoît Minisini
Le 18/06/2012 19:15, Jussi Lahtinen a écrit : >> Maybe it would be possible to write a graphical su entirely in Gambas? >> The first difficulty I see is how to know if we must use 'su' or 'sudo' >> to run the command... >> >> > I have never run into need for su, I always use sudo. > Example in Ubun

Re: [Gambas-user] Access global variable from other .class

2012-06-18 Thread Jussi Lahtinen
> Maybe it would be possible to write a graphical su entirely in Gambas? > The first difficulty I see is how to know if we must use 'su' or 'sudo' > to run the command... > > I have never run into need for su, I always use sudo. Example in Ubuntu as default, you cannot do "su root". So su is useful

Re: [Gambas-user] Access global variable from other .class

2012-06-18 Thread Jussi Lahtinen
> As far as know, at least CentOS doesn't have a graphical authorisation > utility for sudo. > Seems so, weird. As far as I know, on some mandriva related distros with gnome desktops > installed, it still bumps the user privileges even if -c is used. > Also strange... Hmm. I have seen gks

Re: [Gambas-user] Access global variable from other .class

2012-06-18 Thread Bruce
On Sat, 2012-06-16 at 16:24 +0300, Jussi Lahtinen wrote: > > No, xdg-su is no longer part of xdg-utils. > > > > Do you know reason for this? No, I just look at the latest releases. > > > > > I have not used the xdg-su script for privilege escalation, but a quick > > (and I mean quick!) look th

[Gambas-user] Issue 258 in gambas: Expander and slider combo issues

2012-06-18 Thread gambas
Status: New Owner: Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 258 by r...@cyberjunky.nl: Expander and slider combo issues http://code.google.com/p/gambas/issues/detail?id=258 1) Describe the problem. I know that not long ago the widt

Re: [Gambas-user] Issue 257 in gambas: Database password retrieval error and abort in IDE

2012-06-18 Thread gambas
Comment #1 on issue 257 by r...@cyberjunky.nl: Database password retrieval error and abort in IDE http://code.google.com/p/gambas/issues/detail?id=257 Additional info: you get the abort if you right click the connection and choose properties.

Re: [Gambas-user] More on overriding native classes

2012-06-18 Thread Bruce
On Mon, 2012-06-18 at 22:39 +0930, Bruce wrote: > Try this: > Create a new command line project in the IDE. > Add a new class "Application" with the following contents > > ' Gambas class file > > Create Static > Inherits Application > Export > >

[Gambas-user] Issue 257 in gambas: Database password retrieval error and abort in IDE

2012-06-18 Thread gambas
Status: New Owner: Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 257 by r...@cyberjunky.nl: Database password retrieval error and abort in IDE http://code.google.com/p/gambas/issues/detail?id=257 1) Describe the problem. I'm trying ou

Re: [Gambas-user] How do I override an Array class?

2012-06-18 Thread Emil Lenngren
You don't need to call alloca(). Simply use something like this: CLASS *her[get_the_size()]; It is valid in C99. 2012/6/18 Benoît Minisini > Le 18/06/2012 14:32, Emil Lenngren a écrit : > > Even if most projects don't need more than depth 16, there might be > some > > very large projects (lik

[Gambas-user] More on overriding native classes

2012-06-18 Thread Bruce
The previous topic has reminded me of something. Contrary to what is said or implied in section 3.2 of the "Object Model" help topic, it is not possible to override several if not many native classes. Two particular instances leap to mind, "Application" and "Error". Try this: Create a new comman

Re: [Gambas-user] How do I override an Array class?

2012-06-18 Thread Emil Lenngren
Haha lol. I looked up the class hierarchy for LLVM, which is a quite large project, and the longest chain had 9 classes. /Emil 2012/6/18 Bruce > On Mon, 2012-06-18 at 14:32 +0200, Emil Lenngren wrote: > > Even if most projects don't need more than depth 16, there might be some > > very large pr

Re: [Gambas-user] How do I override an Array class?

2012-06-18 Thread Benoît Minisini
Le 18/06/2012 14:32, Emil Lenngren a écrit : > Even if most projects don't need more than depth 16, there might be some > very large projects (like Bruce's) that need it. Even well-designed > projects can have a large class tree. > > And it is relatively easy to make that algorithm max depth-inde

Re: [Gambas-user] How do I override an Array class?

2012-06-18 Thread Bruce
On Mon, 2012-06-18 at 14:32 +0200, Emil Lenngren wrote: > Even if most projects don't need more than depth 16, there might be some > very large projects (like Bruce's) that need it. Even well-designed > projects can have a large class tree. > > And it is relatively easy to make that algorithm max

Re: [Gambas-user] How do I override an Array class?

2012-06-18 Thread Emil Lenngren
Even if most projects don't need more than depth 16, there might be some very large projects (like Bruce's) that need it. Even well-designed projects can have a large class tree. And it is relatively easy to make that algorithm max depth-independent. First see at what depth the current class is a

Re: [Gambas-user] How do I override an Array class?

2012-06-18 Thread Benoît Minisini
Le 18/06/2012 13:24, Emil Lenngren a écrit : > What is the real reason for limiting inheritance to max 16 levels? I see no > problem having no limit at all. > > /Emil > 16 is arbitrary, but a limit is necessary for one algorithm in class inheritance management. Anyway if you need more than 16 in

Re: [Gambas-user] How do I override an Array class?

2012-06-18 Thread Emil Lenngren
What is the real reason for limiting inheritance to max 16 levels? I see no problem having no limit at all. /Emil 2012/6/18 Bruce > On Sun, 2012-06-17 at 18:06 +0200, Emil Lenngren wrote: > > Instead of overriding, why not simply create a module that does things > with > > your array instead? >

Re: [Gambas-user] Components and libraries and forms. Weird Sunday

2012-06-18 Thread Benoît Minisini
Le 18/06/2012 12:41, Bruce a écrit : > On Mon, 2012-06-18 at 12:19 +0200, Benoît Minisini wrote: >> Le 17/06/2012 12:59, Bruce a écrit : >>> No bugs or questions this time. Just some observations. >>> >>> 1) Using a library that contains an exposed form. >>> >>> If a library exposes a form then wh

Re: [Gambas-user] Components and libraries and forms. Weird Sunday

2012-06-18 Thread Benoît Minisini
Le 17/06/2012 12:59, Bruce a écrit : > No bugs or questions this time. Just some observations. > > 1) Using a library that contains an exposed form. > > If a library exposes a form then when using that library in the IDE in > another project, I see a "magical" method called $Load is exposed. I'm