Re: [Gambas-user] (Custom) virtual controls

2014-10-11 Thread B Bruen
On Sun, 12 Oct 2014 01:45:26 +0200 Benoît Minisini wrote: > Le 12/10/2014 00:52, B Bruen a écrit : > > A couple of oddities have emerged from my work in the "A Good Idea?" > > thread: > > > > 1) the _IsVirtual constant - this appears now to be a function? Is > > the help documentation correct or

Re: [Gambas-user] Segmentation fault (11) with ImageStat() function

2014-10-11 Thread Benoît Minisini
Le 12/10/2014 02:44, Ru Vuott a écrit : > Hello, > > by starting from this: > http://sourceforge.net/p/gambas/mailman/message/21194093/ > > I tried this simple code: > > Public Sub Form_Open() > > With ImageStat("/tmp/my_image.jpg") >Print .Type >Print .Width;; .Height;; .Depth > End With >

[Gambas-user] Segmentation fault (11) with ImageStat() function

2014-10-11 Thread Ru Vuott
Hello, by starting from this: http://sourceforge.net/p/gambas/mailman/message/21194093/ I tried this simple code: Public Sub Form_Open() With ImageStat("/tmp/my_image.jpg") Print .Type Print .Width;; .Height;; .Depth End With End Well, I obtain a Segmentation fault (11) error ! ..mayb

Re: [Gambas-user] Wow, Gambas is twice as fast as (Free) Pascal

2014-10-11 Thread Jussi Lahtinen
My cleaning script didn't include "rm -f /usr/local/bin/gbs3" and apparently because of changed paths "make install" didn't overwrite old version. So my gbs3 had version number 3.2.90, and no -f option (it was simply ignored)! Just to warn others, you may want to check whether you too have two vers

Re: [Gambas-user] (Custom) virtual controls

2014-10-11 Thread Benoît Minisini
Le 12/10/2014 00:52, B Bruen a écrit : > A couple of oddities have emerged from my work in the "A Good Idea?" > thread: > > 1) the _IsVirtual constant - this appears now to be a function? Is > the help documentation correct or is this constant/function something > I am not understanding? _IsVirtua

[Gambas-user] (Custom) virtual controls

2014-10-11 Thread B Bruen
A couple of oddities have emerged from my work in the "A Good Idea?" thread: 1) the _IsVirtual constant - this appears now to be a function? Is the help documentation correct or is this constant/function something I am not understanding? 2) a bit more complex - I have an ancestral class, VMenuI

Re: [Gambas-user] A good idea?

2014-10-11 Thread B Bruen
Just an update. This works really well. Thanks Tobi for help in crystallising where I was trying to go with this. So far (I am only working on this part-time - it's a non-income earner but it will save so much time and effort in the future) I have a robust solution for fully-autonomous pop-ups

Re: [Gambas-user] Wow, Gambas is twice as fast as (Free) Pascal

2014-10-11 Thread Jussi Lahtinen
> Ah ok, sounds more logical. Anyway, if you want to compare Gambas with a > compiled language, you should use the JIT compiler. And you must not use > it if you compare it with an interpreted-only language. > Absolutely, that would make the comparing fair. I'll test later with JIT. Jussi --

Re: [Gambas-user] Wow, Gambas is twice as fast as (Free) Pascal

2014-10-11 Thread Benoît Minisini
Le 11/10/2014 21:49, T Lee Davidson a écrit : > Just to be clear, I did not run 'polynom.gambas' as a script with the > she-bang specifying to use 'gbs3' to execute it. That *is* slow. > > I executed it using gbs3 with the '-f' option invoking the JustInTime > compiler. > > I also just now used the

Re: [Gambas-user] Wow, Gambas is twice as fast as (Free) Pascal

2014-10-11 Thread T Lee Davidson
Just to be clear, I did not run 'polynom.gambas' as a script with the she-bang specifying to use 'gbs3' to execute it. That *is* slow. I executed it using gbs3 with the '-f' option invoking the JustInTime compiler. I also just now used the IDE to create a command-line application based on the

Re: [Gambas-user] Wow, Gambas is twice as fast as (Free) Pascal

2014-10-11 Thread T Lee Davidson
I guess I should have included my system information; just didn't think about it being relevant at the time. Obviously, though, it is. System Info: Intel(R) Pentium(R) 4 CPU 2.40GHz, 1G RAM Mageia 3, Kernel 3.10.54 (KDE4) Gambas 3.5.4 Free Pascal Compiler version 2.6.4 [2014/03/07] for i386 Int

Re: [Gambas-user] Wow, Gambas is twice as fast as (Free) Pascal

2014-10-11 Thread Jussi Lahtinen
Something wrong here! Gambas and Pascal are different category programming languages, interpreted and compiled. And thus this is hard to believe. So I had to test this myself. $ time ./polym_g.gambas 125 125 125 125 125 125 125 125 125 125 real1m20.918s

Re: [Gambas-user] Wow, Gambas is twice as fast as (Free) Pascal

2014-10-11 Thread Benoît Minisini
Le 11/10/2014 18:32, T Lee Davidson a écrit : > > On 10/11/2014 08:52 AM, Benoît Minisini wrote: >> You're right, I thought that the number of occurrences was printed, not >> the result. Always look at the code before answering!:-) >> >> Well, as Fabien says, shows the Pascal code. I find strange t

Re: [Gambas-user] Wow, Gambas is twice as fast as (Free) Pascal

2014-10-11 Thread T Lee Davidson
On 10/11/2014 08:52 AM, Benoît Minisini wrote: > You're right, I thought that the number of occurrences was printed, not > the result. Always look at the code before answering!:-) > > Well, as Fabien says, shows the Pascal code. I find strange that a > compiled Pascal program is twice slower than

Re: [Gambas-user] Issue 567 in gambas: Recent changes for db collation cause postgresql crash

2014-10-11 Thread gambas
Updates: Status: Fixed Comment #4 on issue 567 by benoit.m...@gmail.com: Recent changes for db collation cause postgresql crash https://code.google.com/p/gambas/issues/detail?id=567 (No comment was entered for this change.) -- You received this message because this project is configur

Re: [Gambas-user] Strange error after switching PopUpMenu

2014-10-11 Thread Benoît Minisini
Le 06/10/2014 08:33, Rolf-Werner Eilert a écrit : > > Ooops - yes :) Ok, what property should I use instead? I could set it > directly in the file, not going the way via the IDE. > > Thanks for drilling into it so deeply! > > Rolf > Replace "LeftRight" by "Row". The conversion of these constants

Re: [Gambas-user] Wow, Gambas is twice as fast as (Free) Pascal

2014-10-11 Thread Benoît Minisini
Le 11/10/2014 06:58, T Lee Davidson a écrit : > On 10/10/2014 08:50 PM, Benoît Minisini wrote: > > Thank you for trying to explain that to me. But, now I am really confused. > > As far as I can tell, the Gambas program also uses floating point > numbers. The only integers I see used in that program

Re: [Gambas-user] Wow, Gambas is twice as fast as (Free) Pascal

2014-10-11 Thread Fabien Bodard
Please show the Pascal code Le 11 oct. 2014 06:58, "T Lee Davidson" a écrit : > On 10/10/2014 08:50 PM, Benoît Minisini wrote: > > Thank you for trying to explain that to me. But, now I am really confused. > > As far as I can tell, the Gambas program also uses floating point > numbers. The only i