Re: [Gambas-user] Application Error on latest svn

2012-06-14 Thread Jussi Lahtinen
Weird, that same revision works correctly on Xubuntu 12.04 64bit. Jussi On 14 June 2012 18:16, Demosthenes Koptsis demosthen...@gmail.com wrote: Hi list i checkout latest svn 4829 and i get an application error when i start gambas3 see screenshot please help.

Re: [Gambas-user] update rev. 4818 to 4828 IDE failer

2012-06-14 Thread Jussi Lahtinen
All attached logs are zero size... Jussi On 14 June 2012 01:37, Karl Reinl karl.re...@fen-net.de wrote: Salut, can't start the IDE any more!!! [System] OperatingSystem=Linux Kernel=3.0.0-16-generic Architecture=x86_64 Memory=1019076 kB DistributionVendor=LinuxMint

Re: [Gambas-user] QtBasic = Q7Basic some interesting features

2012-06-13 Thread Jussi Lahtinen
I don't see Q7Basic as very useful idea. Surely it could be good tool for aid learning C++ GUI programming, if you already know basic. But C/C++ is good only if you need speed or you are working with resource restricted systems (example embedded systems) etc, for anything else higher level

Re: [Gambas-user] C like #include for Gambas

2012-06-11 Thread Jussi Lahtinen
in this pre-processing productivity enhancing feature? :-) On Sat, 2012-06-09 at 23:30 +0930, Bruce wrote: On Sat, 2012-06-09 at 13:51 +0100, jm wrote: On Sat, 2012-06-09 at 02:45 +0300, Jussi Lahtinen wrote: Maybe I'm just too tired, but I don't understand the point. Jussi, maybe

Re: [Gambas-user] crypt.md5 vs md5sum

2012-06-11 Thread Jussi Lahtinen
The crypt algorithm is encoded in the crypt string, so you do not need to specify it. http://gambasdoc.org/help/comp/gb.crypt/crypt/check?v3 So, I don't think you can use it to get clear MD5 sums. But you can use this; Dim sPassword As String Dim sCheckSum As String sPassword = MyPassWord

Re: [Gambas-user] C like #include for Gambas

2012-06-11 Thread Jussi Lahtinen
As I see it include is a pre-processing directive. It simply replaces the #include statement with the contents of an external file. This is a project management consideration and not a programming paradigm i.e. OOP, Functional, Procedural, etc.. I agree, but I think with OOP, C style

Re: [Gambas-user] C like #include for Gambas

2012-06-11 Thread Jussi Lahtinen
Gambas provides file management for it's projects. Using Gambas you can get file management for free by splitting a project into many classes which in Gambas results in the IDE managing these as different files. This is not necessarily the case with other OOP languages. OK, now I think I

Re: [Gambas-user] C like #include for Gambas

2012-06-09 Thread Jussi Lahtinen
Maybe you need to use Export? http://gambasdoc.org/help/lang/export?v3 Jussi On 9 June 2012 01:16, jm j...@martindale-electric.co.uk wrote: C like #include files for gambas? Sounds a bit harsh I know, but is it possible to add a feature that functions like a C #include? The logic behind

Re: [Gambas-user] C like #include for Gambas

2012-06-09 Thread Jussi Lahtinen
C thrives on #include without showing signs of design problems. Yes, I know, I wasn't talking about C, I was talking about object oriented language, Gambas. Tens of thousands of external lines of code can be pulled in with a dozen #include statements, leaving the code completely

Re: [Gambas-user] C like #include for Gambas

2012-06-09 Thread Jussi Lahtinen
have had same problems. I attached my suggestion how to implement this (IncludeProblem-0.0.1.tar.gz). Is it working solution? Jussi On 9 June 2012 16:18, Jussi Lahtinen jussi.lahti...@gmail.com wrote: C thrives on #include without showing signs of design problems. Yes, I know, I wasn't

Re: [Gambas-user] C like #include for Gambas

2012-06-09 Thread Jussi Lahtinen
Bruce, please re-read. I'm against idea of #include being new keyword. Jussi On 9 June 2012 17:00, Bruce bbr...@paddys-hill.net wrote: On Sat, 2012-06-09 at 13:51 +0100, jm wrote: On Sat, 2012-06-09 at 02:45 +0300, Jussi Lahtinen wrote: Maybe I'm just too tired, but I don't understand

Re: [Gambas-user] C like #include for Gambas

2012-06-09 Thread Jussi Lahtinen
Sorry, maybe I need to re-read! Jussi On 9 June 2012 18:02, Jussi Lahtinen jussi.lahti...@gmail.com wrote: Bruce, please re-read. I'm against idea of #include being new keyword. Jussi On 9 June 2012 17:00, Bruce bbr...@paddys-hill.net wrote: On Sat, 2012-06-09 at 13:51 +0100, jm

Re: [Gambas-user] New feature in Gambas 3

2012-06-09 Thread Jussi Lahtinen
Thanks! 512 is almost enough, so, I'm sure 4096 is more than enough for my purposes. Jussi On 9 June 2012 16:41, Benoît Minisini gam...@users.sourceforge.net wrote: Le 05/06/2012 21:06, Jussi Lahtinen a écrit : Yes. My project is pretty huge. Jussi OK. In revision #4816, you can

Re: [Gambas-user] C like #include for Gambas

2012-06-09 Thread Jussi Lahtinen
OK, while that solution might work, it sucks. Instead see new attachment (IncludeProblem-2.0.tar.gz). Jussi On 9 June 2012 16:57, Jussi Lahtinen jussi.lahti...@gmail.com wrote: Thinking more closely your problem, I think I know what you need. You try to avoid writing *many* lines like

Re: [Gambas-user] C like #include for Gambas

2012-06-08 Thread Jussi Lahtinen
Maybe I'm just too tired, but I don't understand the point. If you have huge program that needs to be expended just a little bit, then why don't you just add new class/module/piece of code/etc which holds that new thing to the program? Or if you need something from the program like #include

Re: [Gambas-user] install problem

2012-06-08 Thread Jussi Lahtinen
You don't seem to have correct permissions to autom4te.cache folders..? Try as other user or sudo chown -R yourusername PathToSources. Jussi On 9 June 2012 02:28, stfn settesette stf...@gmail.com wrote: hi guy i am stefano i have little problem i have in virtual machine xubuntu

Re: [Gambas-user] New feature in Gambas 3

2012-06-05 Thread Jussi Lahtinen
[GB.DEBUG] * NEW: Abort the program if the profile file is bigger than 512M. Is it possible to have option to change size of that limit? Jussi On 4 June 2012 21:36, Jussi Lahtinen jussi.lahti...@gmail.com wrote: OK, now it seems to work, except when you stop execution from IDE

Re: [Gambas-user] New feature in Gambas 3

2012-06-05 Thread Jussi Lahtinen
Yes. My project is pretty huge. Jussi On 5 June 2012 21:48, Benoît Minisini gam...@users.sourceforge.net wrote: Le 05/06/2012 20:38, Jussi Lahtinen a écrit : [GB.DEBUG] * NEW: Abort the program if the profile file is bigger than 512M. Is it possible to have option to change size

Re: [Gambas-user] New feature in Gambas 3

2012-06-04 Thread Jussi Lahtinen
it on in the middle of the execution..? Jussi On 4 June 2012 01:21, Benoît Minisini gam...@users.sourceforge.net wrote: Le 03/06/2012 17:45, Jussi Lahtinen a écrit : With revision 4804 it still crashes. Fixed in revision #4806. regards, -- Benoît Minisini

Re: [Gambas-user] New feature in Gambas 3

2012-06-04 Thread Jussi Lahtinen
:35, Jussi Lahtinen a écrit : Hmmm... Now I can't see System.Profile = True doing anything. If profiling is turned on from IDE menu, then System.Profile = True seems to be ignored and profiling is started at same time as the project. And if profiling is turned off from IDE

Re: [Gambas-user] Delete/Remove blank line from text file.

2012-06-03 Thread Jussi Lahtinen
Show your code. I think it might be due PRINT command adding \n to end of line. Jussi On 3 June 2012 12:29, sundar j sundar_...@rediffmail.com wrote: In my application i need to use lot of string function to add and remove multiple lines. I do not have any issue with that. However, If i

Re: [Gambas-user] New feature in Gambas 3

2012-06-03 Thread Jussi Lahtinen
/usr/lib/x86_64- Jussi On 3 June 2012 03:49, Benoît Minisini gam...@users.sourceforge.net wrote: Le 24/05/2012 21:24, Jussi Lahtinen a écrit : Unfortunately I still got the signal 6 with rev 4772. Xubuntu 12.04 64bit. *** buffer overflow detected ***: ProfilerBug terminated

Re: [Gambas-user] 请问,有没有中文的基础教程?

2012-06-03 Thread Jussi Lahtinen
有许多例子与Gambas中运(这是非常类似VB)。 请喜欢英语,没有人了解中国。 Jussi On 3 June 2012 20:35, wonnerfy wonne...@163.com wrote: 请问,有没有中文的基础教程,在windwsXP下学过一点vb(但不是很精通)。 -- Live Security Virtual Conference Exclusive live event will cover

Re: [Gambas-user] Bug with rev 4772

2012-05-31 Thread Jussi Lahtinen
this comes from (there should be a lot of other variables before that). Gambas 3 rev 4793 @ Xubuntu 12.04 64bit Jussi On 24 May 2012 22:51, Jussi Lahtinen jussi.lahti...@gmail.com wrote: Hi! I tried to start one of my project with new revision, but nothing showed up (there should

Re: [Gambas-user] sqlite database inside an executable

2012-05-29 Thread Jussi Lahtinen
I suppose it is possible, but not easy. Unless you copy database out from executable to access it. But what's the point then... or anyway..? Jussi On 29 May 2012 08:43, Bruce bbr...@paddys-hill.net wrote: Is there any way to access (read-only of course) an sqlite database inside the gambas

Re: [Gambas-user] Is there some way to make JIT disabled by default?

2012-05-28 Thread Jussi Lahtinen
Use compile script, then you just have to remember to double click it. Jussi On 28 May 2012 15:15, Bruce bbr...@paddys-hill.net wrote: This is one of those situations. I have tried the JIT stuff with the latest llvm and yes it is good. BUT! I use two other pieces of software, a stats

Re: [Gambas-user] New JIT Compiler

2012-05-24 Thread Jussi Lahtinen
Great work guys! Documentation still contains following sentence: Gambas http://gambasdoc.org/help/def/gambas is an interpreted language, with no just-in-time or other compilation to native code at all. http://gambasdoc.org/help/doc/benchmark Jussi On 24 May 2012 01:39, Benoît Minisini

Re: [Gambas-user] New feature in Gambas 3

2012-05-24 Thread Jussi Lahtinen
-7f4d27ab5000 ---p 0002b000 08:02 393392 /usr/lib/x86_64- Jussi On 23 May 2012 23:16, Benoît Minisini gam...@users.sourceforge.net wrote: Le 23/05/2012 18:49, Jussi Lahtinen a écrit : There is bug... if I try to trigger profiling with System.Profile = True (option Activate profiling

[Gambas-user] Bug with rev 4772

2012-05-24 Thread Jussi Lahtinen
Hi! I tried to start one of my project with new revision, but nothing showed up (there should be window which tells about initialization progress). So, I tried to run it with gdb to see what is going on. Interpreter is in loop and so I cannot get anything from it, so I killed it. Unfortunately I

Re: [Gambas-user] New feature in Gambas 3

2012-05-23 Thread Jussi Lahtinen
08:02 393392 /usr/lib/x86_64-linux-gnu/libvorbis.so.0.4.5 7fb163c2-7fb163e1f000 ---p 0002b000 08:02 393392 /usr/lib/x86_64- Jussi On 21 May 2012 22:58, Jussi Lahtinen jussi.lahti...@gmail.com wrote: Yes, that would be great! Jussi On Mon, May 21, 2012 at 10:29 PM, Benoît

Re: [Gambas-user] Gambas2 prog Circular Reference

2012-05-21 Thread Jussi Lahtinen
Without source code, it's pretty much impossible to say. That error message should specify the object involved..? Benoit, I'm not sure this is related, but at least there is bug how to handle circular references. See attached project. Jussi On Mon, May 21, 2012 at 9:32 AM, Rolf-Werner

Re: [Gambas-user] Gambas2 prog Circular Reference

2012-05-21 Thread Jussi Lahtinen
Sorry, this was on Gambas 3 rev 4745 @ Xubuntu 12.04 64bit. Jussi On Mon, May 21, 2012 at 5:45 PM, Jussi Lahtinen jussi.lahti...@gmail.comwrote: Without source code, it's pretty much impossible to say. That error message should specify the object involved..? Benoit, I'm not sure

Re: [Gambas-user] Rev 4751 doesn't compile

2012-05-21 Thread Jussi Lahtinen
Works now, thanks! Jussi On Mon, May 21, 2012 at 8:01 PM, Benoît Minisini gam...@users.sourceforge.net wrote: Le 21/05/2012 18:49, Jussi Lahtinen a écrit : /usr/local/bin/gbi3: symbol lookup error: /usr/local/lib/gambas3/ gb.gtk.so: undefined symbol

Re: [Gambas-user] New feature in Gambas 3

2012-05-21 Thread Jussi Lahtinen
Yes, that would be great! Jussi On Mon, May 21, 2012 at 10:29 PM, Benoît Minisini gam...@users.sourceforge.net wrote: Le 21/05/2012 20:39, Jussi Lahtinen a écrit : Is it possible to have separated start and stop buttons for the profiler? I have huge project and when it starts it goes

Re: [Gambas-user] New feature in Gambas 3

2012-05-20 Thread Jussi Lahtinen
Thanks! It's great! Jussi On Sat, May 19, 2012 at 2:58 PM, Benoît Minisini gam...@users.sourceforge.net wrote: Hi, I have just added the ability to profile a project from the IDE. This is not finished yet. At the moment, the IDE will tell you how much time you spend in each function,

Re: [Gambas-user] Issue 152 in gambas: Minor bug with help texts.

2012-04-29 Thread Jussi Lahtinen
Confirmed, thanks! Jussi On Sun, Apr 29, 2012 at 03:24, gam...@googlecode.com wrote: Updates: Status: Fixed Comment #6 on issue 152 by benoit.m...@gmail.com: Minor bug with help texts. http://code.google.com/p/gambas/issues/detail?id=152 Finally fixed in revision #4689.

Re: [Gambas-user] gb3: incorrect solution to If...Then condition

2012-04-27 Thread Jussi Lahtinen
If Sin(0.5) ^ 2 + Cos(0.5) ^ 2 1 Then Print This shouldn't be seen, but it is. Endif ? format((Sin(0.5) ^ 2 + Cos(0.5) ^ 2),#.) 1 What is going on? Jussi 2012/4/27 Benoît Minisini gam...@users.sourceforge.net Le 27/04/2012 05:08, Kevin Fishburne a écrit :

Re: [Gambas-user] gb3: incorrect solution to If...Then condition

2012-04-27 Thread Jussi Lahtinen
2012/4/28 Benoît Minisini gam...@users.sourceforge.net Le 27/04/2012 20:44, Jussi Lahtinen a écrit : If Sin(0.5) ^ 2 + Cos(0.5) ^ 2 1 Then Print This shouldn't be seen, but it is. Endif ? format((Sin(0.5) ^ 2 + Cos(0.5) ^ 2),#.) 1 What is going

Re: [Gambas-user] [Feature Request] Offline Documentation

2012-04-17 Thread Jussi Lahtinen
Also agreed, sometimes it takes a while to get help info from online, I would like it to be immediate. Jussi On Tue, Apr 17, 2012 at 20:35, M. Cs. mohar...@gmail.com wrote: I agree with you. If would be nice to have a package gambas3-gb-help, as an option. Csaba 2012/4/17, sundar j

Re: [Gambas-user] [Feature Request] Offline Documentation

2012-04-17 Thread Jussi Lahtinen
I removed the offline documentation in Gambas 3 because I don't have the time to deal with it anymore. Maybe I didn't get this right... Couldn't it be possible for IDE to just download all the documentation html pages and then use local folder as source for the help browser? Jussi

Re: [Gambas-user] [Feature Request] Offline Documentation

2012-04-17 Thread Jussi Lahtinen
Oh, not just IDE but also manually download them as tar ball, etc. Jussi On Tue, Apr 17, 2012 at 22:40, Jussi Lahtinen jussi.lahti...@gmail.comwrote: I removed the offline documentation in Gambas 3 because I don't have the time to deal with it anymore. Maybe I didn't get this right

[Gambas-user] InStr and gb.Case

2012-04-16 Thread Jussi Lahtinen
http://gambasdoc.org/help/lang/instr?v3 With this: If InStr(sTmp, test,, gb.Case) = 0 Then I get error Unexpected ','. , argument is optional so I don't expect this. With this: If InStr(sTmp, test, 0, gb.Case) = 0 Then I get error Unknown symbol 'Case' in class 'gb'. , it doesn't seem to

Re: [Gambas-user] Gambas 3.1 will be released in a few days

2012-04-02 Thread Jussi Lahtinen
Revision 4591 seems to have bug. ? Date(2484515) 16/05/2002 00:00:00 ? Date(2484515) 05/16/2002 Jussi 2012/4/1 Benoît Minisini gam...@users.sourceforge.net Hi, I will release Gambas 3.1 in a few days. There were many last minute fixes in the IDE packager. So you are welcome,

Re: [Gambas-user] Gambas 3.1 will be released in a few days

2012-04-02 Thread Jussi Lahtinen
OK, so it comes from PRINT. Jussi 2012/4/2 Benoît Minisini gam...@users.sourceforge.net Le 02/04/2012 15:06, Jussi Lahtinen a écrit : Revision 4591 seems to have bug. ? Date(2484515) 16/05/2002 00:00:00 ? Date(2484515) 05/16/2002 Jussi No, it's normal: ? Date

Re: [Gambas-user] Load hidden file to variable?

2012-03-31 Thread Jussi Lahtinen
Why it doesn't work? It cannot find the file? Or does it give you error message? Jussi On Sat, Mar 31, 2012 at 18:36, sundar j sundar_...@rediffmail.com wrote: I need to load file to a variable which is residing in side a hidden folder. So i tried to load it like If

Re: [Gambas-user] newbie configure issue

2012-03-30 Thread Jussi Lahtinen
./reconf-all ./configure make sudo make install Jussi On Fri, Mar 30, 2012 at 03:08, pete b. phpet...@gmail.com wrote: Hi all, This is my first attempt at using autoconfig so I may be missing the obvious ... I tried to configure, except I got the following error messages. I don't see

Re: [Gambas-user] IIf syntax

2012-03-16 Thread Jussi Lahtinen
To clear out more... This is allowed: IIf(1 = 2, function1(arg), function2(arg)) And functions 1 and 2 can return integer, string, etc. But this is *not* allowed: IIf(1 = 2, function1, function2) So, IIf cannot take pointer to function as argument. Jussi On Sat, Mar 17, 2012 at 00:12,

Re: [Gambas-user] Bug / changed behaviour of Input

2012-03-16 Thread Jussi Lahtinen
Is INPUT more useful now? I don't know, I still never use this instruction! Same problem, I haven't use it. But now I can think usage for it. Would be nice to have opinions from other people. Anyone..? Jussi -- This

Re: [Gambas-user] Bug / changed behaviour of Input

2012-03-15 Thread Jussi Lahtinen
I think PRINT should use CStr... but I wonder how many applications this would broke. Though, I think that is easy to fix if it happens... Jussi 2012/3/15 Benoît Minisini gam...@users.sourceforge.net Le 15/03/2012 00:30, Emil Lenngren a écrit : Yeah :) Sorry, now I remember why I did

[Gambas-user] Bug / changed behaviour of Input

2012-03-14 Thread Jussi Lahtinen
hFile = Open /tmp/testingtesting/Test.txt For Output Create Print #hFile, Test1 Close hFile sStr = hFile = Open /tmp/testingtesting/Test.txt For Input Input #hFile, sStr Close hFile From revision 4549, sStr remains null. Jussi GambasTester-0.9.24.tar.gz Description: GNU Zip

Re: [Gambas-user] Bug / changed behaviour of Input

2012-03-14 Thread Jussi Lahtinen
Yes, it works now. Jussi 2012/3/14 Benoît Minisini gam...@users.sourceforge.net Le 14/03/2012 13:12, Jussi Lahtinen a écrit : hFile = Open /tmp/testingtesting/Test.txt For Output Create Print #hFile, Test1 Close hFile sStr = hFile = Open /tmp/testingtesting

Re: [Gambas-user] Bug / changed behaviour of Input

2012-03-14 Thread Jussi Lahtinen
for reading such data... I always use command Read. Is this correct? Jussi On Wed, Mar 14, 2012 at 14:59, Jussi Lahtinen jussi.lahti...@gmail.comwrote: Yes, it works now. Jussi 2012/3/14 Benoît Minisini gam...@users.sourceforge.net Le 14/03/2012 13:12, Jussi Lahtinen a écrit

Re: [Gambas-user] Bug / changed behaviour of Input

2012-03-14 Thread Jussi Lahtinen
Input never returns something with spaces in it. It works about the same way as scanf(%s, ...), scanf(%d, ...). It splits up the input on white spaces. Oh yes, of course. And apparently CDate() writes 16/05/2002 00:00:00, and 00:00:00 is interpreted as null. I think Input is kind of wierd

Re: [Gambas-user] Bug / changed behaviour of Input

2012-03-14 Thread Jussi Lahtinen
Read reads data in binary format. Input reads data in text format. I know what you mean, I just don't know usage for it. Currently I find no way in Gambas to do the C equivalent of scanf(%s, str); Well... I don't see much usage for scanf() either. You still need to validate the input. If

Re: [Gambas-user] Bug / changed behaviour of Input

2012-03-14 Thread Jussi Lahtinen
Lol, there is a LOT of usage for scanf :) Yes, I'm sure it has (it's on stdio). I just haven't need it. If we say c++ istream instead, then you have cin a b ... If I want to read a text file word by word, (where a word is something whitespace-separated, space on newline), cin is quite

Re: [Gambas-user] Bug / changed behaviour of Input

2012-03-14 Thread Jussi Lahtinen
That's the difference, If you pass the string 1234 to Read As Integer, you get the Integer 875770417, because 1234 is in ascii 49 50 51 52, and 49 + 50*(2^8) + 51*(2^16) + 52*(2^24) = 875770417. True. I'm slow today. Maybe it's my fever, but I just can't lay down doing nothing. Makes me bored

Re: [Gambas-user] Read and arrays

2012-03-13 Thread Jussi Lahtinen
OK, I didn't notice that... Thanks! Jussi 2012/3/13 Benoît Minisini gam...@users.sourceforge.net Le 12/03/2012 17:21, tobi a écrit : On Mon, 12 Mar 2012, Jussi Lahtinen wrote: I was thinking quicker way to read large binary files to memory. And I noticed this; The returned datatype

[Gambas-user] Read and arrays

2012-03-12 Thread Jussi Lahtinen
I was thinking quicker way to read large binary files to memory. And I noticed this; The returned datatype can be one of the following: NULL, Boolean, Byte, Short, Integer, Long, Pointer, Single, Float, Date, String, Variant, any Array, Collection or structure.

[Gambas-user] ...allocation(s) non freed.

2012-03-11 Thread Jussi Lahtinen
Hi! Is it possible to have more information about non freed allocations? Pointer name, object where allocation is done or something that would help to find the problem? Since I don't think I have any non freed allocations... Jussi

Re: [Gambas-user] ...allocation(s) non freed.

2012-03-11 Thread Jussi Lahtinen
enabled ;) /Emil 2012/3/11 Jussi Lahtinen jussi.lahti...@gmail.com Hi! Is it possible to have more information about non freed allocations? Pointer name, object where allocation is done or something that would help to find the problem? Since I don't think I have any non freed

Re: [Gambas-user] ...allocation(s) non freed.

2012-03-11 Thread Jussi Lahtinen
to disable the memory pooling system Gambas uses, otherwise you can get strange results... /Emil 2012/3/11 Jussi Lahtinen jussi.lahti...@gmail.com Thanks! Jussi On Sun, Mar 11, 2012 at 17:03, Emil Lenngren emil.lenng...@gmail.com wrote: The interpreter has support

Re: [Gambas-user] Strange Keyboard Behavior

2012-03-10 Thread Jussi Lahtinen
From your description of the problem, it seems to be with cursor position only? Or is there random characters too? Try changing system font or IDE font. Give more information of your system (used fonts, From IDE menu ? -- system information, etc). Jussi On Sat, Mar 10, 2012 at 16:30,

Re: [Gambas-user] Strange Keyboard Behavior

2012-03-10 Thread Jussi Lahtinen
sudo apt-get install gtk2-engines-pixbuf Jussi On Sat, Mar 10, 2012 at 21:35, Bill-Lancaster bill-lancas...@lineone.netwrote: When editing code the cursor is positioned either one or two character before the point at which insertion actually occurs. And this may be a clue. On compiling

Re: [Gambas-user] Two modal forms at same time

2012-03-09 Thread Jussi Lahtinen
Can you send project to demonstrate this? Jussi On Fri, Mar 9, 2012 at 15:31, M. Cs. mohar...@gmail.com wrote: I have a class with two forms W1 and W2. Forms and corresponding buttons are created in Main procedure of the class. The problem is when I first do W1.ShowModal, it does shows

Re: [Gambas-user] Probem analysing Desktop path

2012-03-06 Thread Jussi Lahtinen
In Ubuntu desktop path is in ~/.config/user-dirs.dirs Jussi On Tue, Mar 6, 2012 at 21:51, Willy Raets wi...@earthshipbelgium.be wrote: On di, 2012-03-06 at 20:34 +0100, Matti wrote: Willy, The easiest solution to store some infos would be to use gb.settings. Then you don't have to

Re: [Gambas-user] Probem analysing Desktop path

2012-03-06 Thread Jussi Lahtinen
Even better! Shell xdg-user-dir DESKTOP To sPathOfDesktop Maybe Benoit could add this natively to User class? Jussi On Tue, Mar 6, 2012 at 21:55, Jussi Lahtinen jussi.lahti...@gmail.comwrote: In Ubuntu desktop path is in ~/.config/user-dirs.dirs Jussi On Tue, Mar 6, 2012 at 21:51

Re: [Gambas-user] Answer mail so that it's in the same thread

2012-03-04 Thread Jussi Lahtinen
Change your preferences, do not use digest. As you use gmail, you can create separated folder for gambas mailing list. Jussi On Sun, Mar 4, 2012 at 12:56, John Rose john.aaron.r...@gmail.com wrote: An elementary question about this mailing list: Benoit told me please *answer* mails that are

Re: [Gambas-user] Gambas has Gosub now!

2012-03-04 Thread Jussi Lahtinen
Maybe there should be GoBack instead of Return. We already have GoTo and GoSub, so I think it would be logical... Jussi 2012/3/4 Benoît Minisini gam...@users.sourceforge.net Le 04/03/2012 02:23, Benoît Minisini a écrit : You are right, I didn't think about that. So the current design

Re: [Gambas-user] Possible suggestion/question

2012-03-02 Thread Jussi Lahtinen
I made quick effort to try to simulate gosub with goto, and noticed that jumping back inside loops is not possible (as the documentation says...). I understand that when it's For ... Next, but shouldn't that be possible with Do ... Loop Until x? Anyway, I'm not sure my simulation does accurately

Re: [Gambas-user] gambas3 ans debain squeeze

2012-02-29 Thread Jussi Lahtinen
http://gambasdoc.org/help/doc/distro?enview http://gambasdoc.org/help/install?enview Jussi On Wed, Feb 29, 2012 at 17:31, TME jeanluc.bertin...@orange.fr wrote: Thank you for your replies I tried with library Ubuntu Lucid, Ubuntu Maverick, and other library Ubuntu I have always the same

Re: [Gambas-user] Memory problems with Gambas3

2012-02-27 Thread Jussi Lahtinen
If you see the gbx3 process memory becoming huge (in the KDE task manager for example), then the problem is in Gambas. If the problem is in the nvidia driver, you should see the xorg process becoming huge. Yeah, logs shows that Xorg was closed due it hogging over 6 GB of memory. Jussi

Re: [Gambas-user] Gambas3 make install issue

2012-02-27 Thread Jussi Lahtinen
Is make install ran as root (sudo make install)? You may need to send output of whole compilation. ( ./reconf-all ./configure -C make sudo make install ) ~/Desktop/compile.log 21 What make --version says? Jussi On Mon, Feb 27, 2012 at 18:23, Florent THOMAS mailingl...@tdeo.fr wrote:

Re: [Gambas-user] Memory problems with Gambas3

2012-02-26 Thread Jussi Lahtinen
I'm out of time, I will look into this later. Jussi 2012/2/26 Benoît Minisini gam...@users.sourceforge.net Le 25/02/2012 23:06, Jussi Lahtinen a écrit : I can't manage to isolate the problem and I can't send the source. Right now I'm using following workaround; Draw.Begin(tmpPic

Re: [Gambas-user] Memory problems with Gambas3

2012-02-26 Thread Jussi Lahtinen
I reverted week back in revision, but I cannot reproduce the bug anymore. Maybe this has something to do with nvidia drivers, they don't seem to be very stable. Jussi On Sun, Feb 26, 2012 at 21:39, Jussi Lahtinen jussi.lahti...@gmail.comwrote: Qt4, but I think it happened also with GTK+. I

Re: [Gambas-user] Memory problems with Gambas3

2012-02-25 Thread Jussi Lahtinen
temporary picture the problem disappears. But the situation is not very satisfying. So any debugging tips? How to gather information about what happen? Is there something I can do with gdb, etc? Or is there some debugging dispatch for gbx3? Jussi On Sun, Feb 19, 2012 at 20:12, Jussi Lahtinen

Re: [Gambas-user] For...Next loop efficiency question

2012-02-23 Thread Jussi Lahtinen
Nested loops are of course different thing... Jussi On Thu, Feb 23, 2012 at 12:31, Kevin Fishburne kevinfishbu...@eightvirtues.com wrote: Thank you everyone, that information is extremely useful. You can also time several repetitions of the code and compare the results. It seems

Re: [Gambas-user] String array empty after SUB (Gambas 2)

2012-02-22 Thread Jussi Lahtinen
Just quick thought... maybe this felder = feld.Copy() gives new object reference feld to felder. And because feld is declared locally, the it is null after the sub and so is also felder. Perhaps you need to do felder = feld.Copy() manually with for each... Jussi On Wed, Feb 22, 2012 at

Re: [Gambas-user] How to make Class file to Library for use in other Gambas applications

2012-02-21 Thread Jussi Lahtinen
First, use Export command in classes you want to expose as library. Then, open project which uses this as library. Open project properties, choose tab libraries and add library binary. Jussi On Wed, Feb 22, 2012 at 02:03, Willy Raets wi...@earthshipbelgium.bewrote: Hi all, I've been

Re: [Gambas-user] how to indicate progress

2012-02-19 Thread Jussi Lahtinen
http://gambasdoc.org/help/lang/exec?v3 http://gambasdoc.org/help/comp/gb/process?v3 Dim hProcess As Process hProcess = Exec [ ... If hProcess.State = Process.Running Then ... Jussi On Sun, Feb 19, 2012 at 14:13, Bill-Lancaster bill-lancas...@lineone.netwrote: Gambas 3 I want to

Re: [Gambas-user] how to indicate progress

2012-02-19 Thread Jussi Lahtinen
There is quite good documentation of Gambas. I strongly suggest to look at it. Application.Busy is not indicator of application doing something. It's not automatically adjusted. http://gambasdoc.org/help/comp/gb.qt4/application/busy?v3 Jussi On Sun, Feb 19, 2012 at 15:25, Bill-Lancaster

[Gambas-user] Memory problems with Gambas3

2012-02-19 Thread Jussi Lahtinen
Hi! I was debugging huge project to find out why it's execution is slowed down to unusable, when suddenly screen went blank and I was logged out. Reason found from logs: Killed process 1264 (Xorg) total-vm:6406864kB, anon-rss:2751124kB, file-rss:784kB So I ran out of memory. This shouldn't happen,

Re: [Gambas-user] Memory problems with Gambas3

2012-02-19 Thread Jussi Lahtinen
Unfortunately I can't send the project. But I keep on trying to isolate the problem. I'm pretty sure leak is from Gambas as it is fixed by commenting out the three lines. Jussi 2012/2/19 Benoît Minisini gam...@users.sourceforge.net Le 19/02/2012 19:12, Jussi Lahtinen a écrit : Hi! I

Re: [Gambas-user] Memory problems with Gambas3

2012-02-19 Thread Jussi Lahtinen
/02/2012 19:12, Jussi Lahtinen a écrit : Hi! I was debugging huge project to find out why it's execution is slowed down to unusable, when suddenly screen went blank and I was logged out. Reason found from logs: Killed process 1264 (Xorg) total-vm:6406864kB, anon-rss:2751124kB, file

Re: [Gambas-user] Gambas3 Runtime

2012-02-12 Thread Jussi Lahtinen
I've compiled installed revision #4445 of Gambas3. So, you have installed whole Gambas3... However, I have no access to package gambas3-runtimesince I no longer access kendek's ppa for Gambas3 due to clashes of it #4445. How can I get the gambas3-runtime package installed? ...and you

Re: [Gambas-user] Gambas bug?

2012-02-10 Thread Jussi Lahtinen
You can check whether it is property or method. Dim hCls As Class = Object.Class([John, Peter]) If hCls[Count].Kind = Class.Method Then ... Jussi 2012/2/10 Fabián Flores Vadell fabianfloresvad...@gmail.com 2012/2/10 Emil Lenngren emil.lenng...@gmail.com You probably get the error

Re: [Gambas-user] Start a form minized

2012-02-08 Thread Jussi Lahtinen
One option is to start your program from module [Public Sub Main()] and show the form only when needed. Jussi On Tue, Feb 7, 2012 at 17:38, Rolf Schmidt rolf.fr...@t-online.de wrote: Hi everybody out there is it possible to start a form minimized or invisible. I use a TrayIcon to

Re: [Gambas-user] Missing symbols

2012-02-08 Thread Jussi Lahtinen
Can someone confirm this problem, does it exist only on my system? Gambas 3 r4445 @ Xubuntu 11.10 64bit Jussi On Mon, Feb 6, 2012 at 18:00, Jussi Lahtinen jussi.lahti...@gmail.comwrote: One of these days... maybe I have missed something, but any clue why Gambas programs cannot find some

Re: [Gambas-user] Missing symbols

2012-02-08 Thread Jussi Lahtinen
64 or 32 bit system? Jussi On Wed, Feb 8, 2012 at 19:29, Wally wa...@voosen.eu wrote: Jussi, same problem here, OpenSuse 12.1 / gambas 3 svn wally On Wednesday, February 08, 2012 18:45:50 Jussi Lahtinen wrote: Can someone confirm this problem, does it exist only on my system

Re: [Gambas-user] Missing symbols

2012-02-08 Thread Jussi Lahtinen
OK, thanks! Jussi On Wed, Feb 8, 2012 at 19:47, Wally wa...@voosen.eu wrote: 32 On Wednesday, February 08, 2012 19:36:14 Jussi Lahtinen wrote: 64 or 32 bit system? Jussi On Wed, Feb 8, 2012 at 19:29, Wally wa...@voosen.eu wrote: Jussi, same problem here, OpenSuse 12.1

Re: [Gambas-user] Missing symbols

2012-02-08 Thread Jussi Lahtinen
I thought libc stands for C standard library. Apparently they are all over different binaries... Thanks! Jussi 2012/2/8 Benoît Minisini gam...@users.sourceforge.net Le 06/02/2012 17:00, Jussi Lahtinen a écrit : One of these days... maybe I have missed something, but any clue why Gambas

Re: [Gambas-user] gb3: converting structures to classes

2012-02-07 Thread Jussi Lahtinen
While structures and classes are different thing generally, I have understand that structures are implemented to Gambas internally as class. And to answer Kevin's question. Create class named Client_Animation, and paste this inside of it: Public Animating As Boolean Public OrientationDefault As

[Gambas-user] Missing symbols

2012-02-06 Thread Jussi Lahtinen
One of these days... maybe I have missed something, but any clue why Gambas programs cannot find some symbols from libc? Specifically I'm talking about fmod, my libraries (written with C) can find this without problem. And even more strange, Gambas programs can find some symbols from libc.

Re: [Gambas-user] inheritance problems

2012-02-04 Thread Jussi Lahtinen
Seems like circular reference. Class2 inherits array of it self, which then inherits array of it self, which ... Jussi On Sat, Feb 4, 2012 at 03:05, Shane Powell shanep1...@tpg.com.au wrote: I have this in my program class 1 public array of class 2 class 2 inherits class 1

Re: [Gambas-user] inheritance problems

2012-02-04 Thread Jussi Lahtinen
I think you need to send project which demonstrates this problem. Maybe Gambas should raise error. Jussi On Sat, Feb 4, 2012 at 14:42, Jussi Lahtinen jussi.lahti...@gmail.comwrote: Seems like circular reference. Class2 inherits array of it self, which then inherits array of it self, which

Re: [Gambas-user] inheritance problems

2012-02-04 Thread Jussi Lahtinen
thats what i want to know it seems that public variables are copy when a class is inherited and the value they where when you inherit them is only used from then on i made a test app i must be doing something wrong this app just uses integers There are two objects, myc1 and myc2. And you

Re: [Gambas-user] Send from .module to .class

2012-02-04 Thread Jussi Lahtinen
Controls have property name Public, set it to True. Jussi On Sun, Feb 5, 2012 at 01:01, abbat abbat...@mail.ru wrote: How can I send a string test_string from Main.module to Label1 which situated on MFmain.class Thanks -- View this message in context:

Re: [Gambas-user] I need your help with Processes

2012-02-03 Thread Jussi Lahtinen
Repeat wait 1 Until checker=TRUE checker=FALSE After every Run_command() Maybe you want to include that into Run_command(), that would make the code tidier. Also when wait is in loop, I think one second is too long time, if there is multiple commands to execute... My problem is how

Re: [Gambas-user] Issue 206 in gambas: Can't compile Gambas3

2012-02-01 Thread Jussi Lahtinen
Where did you get the source? With svn? Or did you downloaded it from some website? Next time before compiling anything, delete all gambas binaries to make sure that next you are using just compiled version. Also where/how did you get the revision (not version) number? Jussi On Wed, Feb 1,

Re: [Gambas-user] Executing Shell command (also applies to Exec command), FMain form goes blank

2012-01-31 Thread Jussi Lahtinen
Then you need to do your own wait loop, something like: Dim hProcess As Process hProcess = Shell sYourCommand Do Wait 0.1 Loop Until hProcess.State Process.Running Jussi On Tue, Jan 31, 2012 at 12:02, John Rose john.aaron.r...@gmail.com wrote: I was not trying to blame you earlier: I

Re: [Gambas-user] Executing Shell command (also applies to Exec command), FMain form goes blank

2012-01-31 Thread Jussi Lahtinen
But if it is possible to get download status from get_iplayer, then I think you should do this with read event. Otherwise the user doesn't know how much he have to wait. Jussi On Tue, Jan 31, 2012 at 14:41, Jussi Lahtinen jussi.lahti...@gmail.comwrote: Then you need to do your own wait loop

<    5   6   7   8   9   10   11   12   13   14   >