Re: [Gambas-user] Issue 271 in gambas: Text pull segmentation fault

2012-07-10 Thread gambas
Comment #3 on issue 271 by sevoir...@gmail.com: Text pull segmentation fault http://code.google.com/p/gambas/issues/detail?id=271 Gambas 2.23 affected too: [122755.276800] gbr2[21108]: segfault at 1c ip b74b39f9 sp bfcaa404 error 4 in gb.gtk.so.0.0.0[b7462000+87000] --

Re: [Gambas-user] Issue 271 in gambas: Text pull segmentation fault

2012-07-10 Thread gambas
Comment #2 on issue 271 by krisztiankende: Text pull segmentation fault http://code.google.com/p/gambas/issues/detail?id=271 No problem, but it's just a plain TexBox. You can very easily reproduce the problem. If running the project from IDE, then error does not occur, only when I running wit

Re: [Gambas-user] Menu.Group property???

2012-07-10 Thread Bruce
On Tue, 2012-07-10 at 18:57 +0200, Tobias Boege wrote: > On Tue, 10 Jul 2012, Bruce wrote: > > The menu editor exposes (what looks like) a property called "Group" and > > if it is set I can use that name instead of the actual menu name in the > > event handler for all menu items in the same group.

Re: [Gambas-user] JIT bug 5

2012-07-10 Thread Emil Lenngren
Fixed in the latest revision! Gambas should have a real unit test system... /Emil 2012/7/10 Jussi Lahtinen > OK, see attachment. > > Jussi > > > > On 10 July 2012 22:30, Jussi Lahtinen wrote: > > > Strange, this crash occurs on somewhere in initialization sub of my > > project which worked wi

Re: [Gambas-user] xml.save() (Adrien Prokopowicz)

2012-07-10 Thread Emil Lenngren
You'd better send a source package instead of a compiled one, since no one (yet) has written a decompiler... /Emil 2012/7/11 Antonio Carlos Siqueira > OK. > > my file is that; name: file.xml > > > > > this thing. > > > > the application and file.xml are attached. put 2 in the same path

Re: [Gambas-user] xml.save() (Adrien Prokopowicz)

2012-07-10 Thread Antonio Carlos Siqueira
OK. my file is that; name: file.xml this thing. the application and file.xml are attached. put 2 in the same path. Do test you self. Thanks AC When replying, please edit your Subject line so it is more specific than "Re: Contents of Gambas-user digest..." Today's Topics: 1. Re:

Re: [Gambas-user] Issue 271 in gambas: Text pull segmentation fault

2012-07-10 Thread gambas
Updates: Status: NeedsInfo Labels: -Version Version-3.2.0 Comment #1 on issue 271 by benoit.m...@gmail.com: Text pull segmentation fault http://code.google.com/p/gambas/issues/detail?id=271 Instead of a video, please make a little project that will allow me to reproduce the bu

[Gambas-user] Issue 271 in gambas: Text pull segmentation fault

2012-07-10 Thread gambas
Status: New Owner: Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 271 by krisztiankende: Text pull segmentation fault http://code.google.com/p/gambas/issues/detail?id=271 If I try pull the text from a text box out of the window, segmentat

Re: [Gambas-user] JIT bug 6 :-)

2012-07-10 Thread Benoît Minisini
Le 10/07/2012 21:55, Emil Lenngren a écrit : > Yes I know... > I sent a bug report to llvm May 21: > http://llvm.org/bugs/show_bug.cgi?id=12906 > > They haven't done anything > about it yet :/ > > As a workaround, you can run > LANG=en GB_JIT=info gbx3 >

Re: [Gambas-user] JIT bug 6 :-)

2012-07-10 Thread Emil Lenngren
Yes I know... I sent a bug report to llvm May 21: http://llvm.org/bugs/show_bug.cgi?id=12906 They haven't done anything about it yet :/ As a workaround, you can run LANG=en GB_JIT=info gbx3 /Emil 2012/7/10 Benoît Minisini > In the fractal example, i

[Gambas-user] JIT bug 6 :-)

2012-07-10 Thread Benoît Minisini
In the fractal example, if I set the GB_JIT environment variable to get a dump of the jit-compiled fractal computing loop, the program aborts: gb.jit: using LLVM 3.1. gb.jit: beginning compiling FFractal.FastDrawFractalRect:

Re: [Gambas-user] JIT bug 4

2012-07-10 Thread Jussi Lahtinen
OK, I didn't know that kind of optimization is done... That explains also why "imMatr[10, 10] += x" was needed. Jussi On 10 July 2012 22:22, Emil Lenngren wrote: > Because if you only write "x = 0.6 ^ x", that statement is completely > optimized away, because x is never used later on. > If yo

Re: [Gambas-user] JIT bug 5

2012-07-10 Thread Jussi Lahtinen
OK, see attachment. Jussi On 10 July 2012 22:30, Jussi Lahtinen wrote: > Strange, this crash occurs on somewhere in initialization sub of my > project which worked with earlier revision. > > Jussi > > > > > On 10 July 2012 22:14, Jussi Lahtinen wrote: > >> >> Not yet, able to isolate... >> >

Re: [Gambas-user] JIT bug 5

2012-07-10 Thread Jussi Lahtinen
Strange, this crash occurs on somewhere in initialization sub of my project which worked with earlier revision. Jussi On 10 July 2012 22:14, Jussi Lahtinen wrote: > > Not yet, able to isolate... > > ** INTERNAL ERROR ** > ** Bad type (12) for VALUE_undo_variant > ** Program aborting. Sorry! :

Re: [Gambas-user] JIT bug 4

2012-07-10 Thread Emil Lenngren
Yes, "0.6 ^ x" was the culprit alone ;) 2012/7/10 Emil Lenngren > Because if you only write "x = 0.6 ^ x", that statement is completely > optimized away, because x is never used later on. > If you write "Print 0.6 ^ x", the result of the operation is printed, i.e. > used. > > If you write "Print

Re: [Gambas-user] JIT bug 4

2012-07-10 Thread Emil Lenngren
Because if you only write "x = 0.6 ^ x", that statement is completely optimized away, because x is never used later on. If you write "Print 0.6 ^ x", the result of the operation is printed, i.e. used. If you write "Print 0.6 ^ 2", that is optimized to "Print 0.36". /Emil 2012/7/10 Jussi Lahtinen

Re: [Gambas-user] JIT bug 4

2012-07-10 Thread Jussi Lahtinen
Yes it works now. But "Print 0.6 ^ x" did crash, but "x = 0.6 ^ x" alone did not crash ("imMatr[10, 10] += x" was needed)! So I wonder was "0.6 ^ x" culprit alone? Jussi On 10 July 2012 18:13, Emil Lenngren wrote: > It should work now in revision #4934! > > /Emil > > 2012/7/9 Emil Lenngren

[Gambas-user] JIT bug 5

2012-07-10 Thread Jussi Lahtinen
Not yet, able to isolate... ** INTERNAL ERROR ** ** Bad type (12) for VALUE_undo_variant ** Program aborting. Sorry! :-( So, I set break point on "ERROR_panic": Breakpoint 1, ERROR_panic ( error=0x436524 "Bad type (%d) for VALUE_undo_variant") at gb_error.c:517 517{ (gdb) bt #0 ERROR

Re: [Gambas-user] xml.save()

2012-07-10 Thread Adrien Prokopowicz
Hi Antonio, Can you provide a little project that reproduces the bug ? Regards, Adrien. 2012/7/10 Antonio Carlos Siqueira > Hi to all, > > I'm using xml to save some data in my aplication. > every Myxml.save() used gambas put blanks before and after de data. > > like this: > > > > >

[Gambas-user] xml.save()

2012-07-10 Thread Antonio Carlos Siqueira
Hi to all, I'm using xml to save some data in my aplication. every Myxml.save() used gambas put blanks before and after de data. like this: "A string" first save: "A string" second save: "A string" 3th

Re: [Gambas-user] Menu.Group property???

2012-07-10 Thread Tobias Boege
On Tue, 10 Jul 2012, Bruce wrote: > The menu editor exposes (what looks like) a property called "Group" and > if it is set I can use that name instead of the actual menu name in the > event handler for all menu items in the same group. > > This is really handy in the IDE when coupled with LAST. >

Re: [Gambas-user] JIT bug 4

2012-07-10 Thread Emil Lenngren
It should work now in revision #4934! /Emil 2012/7/9 Emil Lenngren > From gdb I disassemble the jit function to this: > ... >0x77e3f05c: movabs $0x0,%rax >0x77e3f066: callq *%rax > ... > > You can see that llvm replaced the llvm.powi.f64 to a null function :/ > > 2012

[Gambas-user] Menu.Group property???

2012-07-10 Thread Bruce
The menu editor exposes (what looks like) a property called "Group" and if it is set I can use that name instead of the actual menu name in the event handler for all menu items in the same group. This is really handy in the IDE when coupled with LAST. But I can't set the Group "property" in code

[Gambas-user] ComboBox.List.Insert( Array as String[]) used as a Sub

2012-07-10 Thread Bruce
Another one that is bugging me. I have a combo box that has a list with default items in it. On the fly I want to add a new set of items that are already in a String[]. But myCombo.List.Insert(myArray) just fails silently (nothing gets added and the program just keeps going). I see th

Re: [Gambas-user] How to determine if a menu exists?

2012-07-10 Thread Bruce
On Tue, 2012-07-10 at 13:27 +0200, Benoît Minisini wrote: > Le 10/07/2012 13:18, Bruce a écrit : > > I am trying to create a library that adds a set of sub-menus to a > > specific menu in a form in the client project. In order to do this > > there is an obvious requirement that the parent menu exi

Re: [Gambas-user] How to determine if a menu exists?

2012-07-10 Thread Benoît Minisini
Le 10/07/2012 13:18, Bruce a écrit : > I am trying to create a library that adds a set of sub-menus to a > specific menu in a form in the client project. In order to do this > there is an obvious requirement that the parent menu exists in the form. > > The simplest analogy I can come up with here

[Gambas-user] How to determine if a menu exists?

2012-07-10 Thread Bruce
I am trying to create a library that adds a set of sub-menus to a specific menu in a form in the client project. In order to do this there is an obvious requirement that the parent menu exists in the form. The simplest analogy I can come up with here is that it is sort of like a "Recent Files" ma