[Gambas-user] Bug with autocompletion

2012-09-26 Thread Jussi Lahtinen
This happens with Gambas 3 rev 5201. I don't know how to reproduce it, but it has happened with autocompletion when I press Tab. [13] Null object. FCompletion.CompleteItem.730 Any clue? Jussi -- How fast is your code?

Re: [Gambas-user] run project as root - BIS

2012-09-24 Thread Jussi Lahtinen
But Desktop.RunAsRoot() does something else..? ...What do you mean ? AFAIK, Desktop.RunAsRoot(whoami) and xdg-su -c whoami should do exactly same thing. However only xdg-su -c whoami works. I will investigate... Jussi

Re: [Gambas-user] run project as root - BIS

2012-09-24 Thread Jussi Lahtinen
AFAIK, Desktop.RunAsRoot(whoami) and xdg-su -c whoami should do exactly same thing. However only xdg-su -c whoami works. OK, now I understand the problem. Destop.RunAsRoot() uses internally Exec command, and so redirections doesn't work. Instead of Exec there should be Shell..? Benoit?

Re: [Gambas-user] run project as root

2012-09-23 Thread Jussi Lahtinen
Oh, yes, that was the reason I haven't use it! It doesn't have method to return value. So far I have used gksudo with shell command, but generally working solution is needed. Jussi On Sun, Sep 23, 2012 at 11:10 AM, wally wa...@voosen.eu wrote: Hello Jussi, i 've seen in other postingsyou

Re: [Gambas-user] run project as root

2012-09-23 Thread Jussi Lahtinen
Private fl As File Public Sub Form_Open() Desktop.RunAsRoot(cat /dev/ttyUSB1 /tmp/a) fl = Open /tmp/a For Read Watch End Public Sub File_Read() Dim s As String s = File.Load(/tmp/a) TextEdit1.Text = s End This is good idea, but instead of /tmp/a, I would use

Re: [Gambas-user] run project as root

2012-09-23 Thread Jussi Lahtinen
is going on... I will look this closer later, when I have more time. Jussi On Sun, Sep 23, 2012 at 7:17 PM, Ru Vuott vu...@yahoo.it wrote: --- Dom 23/9/12, Jussi Lahtinen jussi.lahti...@gmail.com ha scritto: This is good idea, but instead of /tmp/a, I would use Temp$(): Private fl

Re: [Gambas-user] run project as root

2012-09-23 Thread Jussi Lahtinen
I tried your code, and I obtain in TextEdit simply the word: root (But I should be getting: vuott) No. If you run it as root, you should get root! I wonder why it works on your system... What it your system? Jussi

Re: [Gambas-user] run project as root

2012-09-22 Thread Jussi Lahtinen
I think this would require new option to IDE. But you can make your project to use graphical sudo, and ask password independently of IDE. Jussi On Sat, Sep 22, 2012 at 8:58 AM, wally wa...@voosen.eu wrote: Hello, (how) can i run a project as root from within gambas3 IDE running as user ?

Re: [Gambas-user] run project as root

2012-09-22 Thread Jussi Lahtinen
You mean your program is intended to run always as root? Maybe you then need new feature to IDE... or setup virtual machine and there start IDE as root. Jussi On Sat, Sep 22, 2012 at 2:13 PM, wally wa...@voosen.eu wrote: Jussi, but this is not very convnient during development wally

Re: [Gambas-user] run project as root

2012-09-22 Thread Jussi Lahtinen
Thinking this bit more... I think it would be very difficult to safely enable IDE to run projects as root! So, use virtual machine, there you can mess all you want without problems (as long as you back up sources outside of the virtual machine). Jussi On Sat, Sep 22, 2012 at 3:20 PM, Jussi

Re: [Gambas-user] run project as root

2012-09-22 Thread Jussi Lahtinen
Mmm... No. By looking at the xdg-utils source code, I don't think that Desktop.RunAsRoot() does anything useful. It should be removed or rewritten differently... RunAsRoot() method runs command as root, not the whole program, as I understand was the goal. It still have problems? What do you

Re: [Gambas-user] Gambas error messages

2012-09-21 Thread Jussi Lahtinen
: /usr/bin/gambas2/.project [Inferior 1 (process 1145) exited with code 01] (gdb) bt No stack. (gdb) ^CQuit (gdb) bt No stack. (gdb) quit miniand@miniand:/usr/bin$ On Thu, 2012-09-20 at 18:45 +0300, Jussi Lahtinen wrote: Try

Re: [Gambas-user] Gambas error messages

2012-09-21 Thread Jussi Lahtinen
Thats why I was originally posting to ask if more could be done for the command line options to output more verbose messages for the rainy day when things go wrong so that we may debug in silence. I don't know what kind of messages you expect to get... We already got this ERROR: #49: Not a

Re: [Gambas-user] Gambas error messages

2012-09-21 Thread Jussi Lahtinen
at 11:12 PM, Jussi Lahtinen jussi.lahti...@gmail.comwrote: Thats why I was originally posting to ask if more could be done for the command line options to output more verbose messages for the rainy day when things go wrong so that we may debug in silence. I don't know what kind of messages you

Re: [Gambas-user] Gambas error messages

2012-09-21 Thread Jussi Lahtinen
Did you try to install libqt3-mt? e.g firefox --help konqueror --help ssh --help ls --help Anyway I then tried gbr2 --help after realizing what was happening. True, thought --help works with gbx2, gbc2, gbs2, gbs3, gbx3, gbr3 and gbc3, which are command line programs. That also

Re: [Gambas-user] Gambas error messages

2012-09-20 Thread Jussi Lahtinen
You tried to launch Gambas executable with gbx, for that you need to use gbr. gbx is for running source code or evaluating, not for executables. Jussi On Thu, Sep 20, 2012 at 2:44 PM, jm j...@martindale-electric.co.uk wrote: On Wed, 2012-09-19 at 18:21 +0300, Jussi Lahtinen wrote: Or here

Re: [Gambas-user] Gambas error messages

2012-09-20 Thread Jussi Lahtinen
files, command line etc. etc. all have same result. On Thu, 2012-09-20 at 17:37 +0300, Jussi Lahtinen wrote: You tried to launch Gambas executable with gbx, for that you need to use gbr. gbx is for running source code or evaluating, not for executables. Jussi On Thu, Sep 20, 2012

Re: [Gambas-user] Gambas error messages

2012-09-20 Thread Jussi Lahtinen
(gdb) run Starting program: /usr/bin/gbx2 [Thread debugging using libthread_db enabled] Using host libthread_db library /lib/arm-linux-gnueabi/libthread_db.so.1. ERROR: #45: File or directory does not exist [Inferior 1 (process 12262) exited with code 01] (gdb) I'll elaborate bit... This

Re: [Gambas-user] Gambas error messages

2012-09-20 Thread Jussi Lahtinen
/libthread_db.so.1. ERROR: #45: File or directory does not exist [Inferior 1 (process 1074) exited with code 01] (gdb) bt No stack. (gdb) ^CQuit (gdb) bt No stack. (gdb) quit miniand@miniand:/usr/bin$ On Thu, 2012-09-20 at 18:18 +0300, Jussi Lahtinen wrote: Please do exactly what I told, and send

Re: [Gambas-user] Gambas error messages

2012-09-19 Thread Jussi Lahtinen
gambas3 is just program made with Gambas, if it is in infinite loop, interpreter cannot know about it. It just does what it is commanded to do. Just like in any other programming language. Try to run something else to see whether anything works. gbx3 is Gambas interpreter executable, and gbr3 is

Re: [Gambas-user] Gambas error messages

2012-09-19 Thread Jussi Lahtinen
:13 PM, Jussi Lahtinen jussi.lahti...@gmail.comwrote: gambas3 is just program made with Gambas, if it is in infinite loop, interpreter cannot know about it. It just does what it is commanded to do. Just like in any other programming language. Try to run something else to see whether anything

Re: [Gambas-user] Gambas error messages

2012-09-19 Thread Jussi Lahtinen
Oh and BTW, if you want to compile Gambas executables without IDE, use gbc3. Jussi On Wed, Sep 19, 2012 at 3:57 PM, jm j...@martindale-electric.co.uk wrote: On Wed, 2012-09-19 at 14:03 +0200, Benoît Minisini wrote: Le 19/09/2012 13:55, jm a écrit : Hi, Gambas runs on Linux and I

Re: [Gambas-user] Modal Form

2012-09-10 Thread Jussi Lahtinen
I can confirm this problem with Gambas 3 rev 5152 @ Xubuntu 12.04 64 bit. Problem applies only to GTK+, Qt4 works fine. [System] OperatingSystem=Linux Kernel=3.2.0-30-generic Architecture=x86_64 Memory=4049136 kB DistributionVendor=Ubuntu DistributionRelease=Ubuntu 12.04.1 LTS

[Gambas-user] Enumerating multiple objects at once

2012-09-05 Thread Jussi Lahtinen
Hi! Is there way to enumerate multiple objects without merging them first? Something like: For Each hObject In cCollection1 cCollection2 hOneMoreObject ... Next I think it would be more elegant than: For Each hObject In cCollection1 DoSomething(hObject) Next For Each hObject In

[Gambas-user] 2D arrays

2012-09-05 Thread Jussi Lahtinen
Is this bug? Private Sub ArrayTest(iArr As Array) Print Object.Type(iArr) Print iArr[1, 1] *-- This gives Not an array.* End Public Sub Button1_Click() Dim iArray As New Integer[10, 10] Print Object.Type(iArray) ArrayTest(iArray) End Jussi ArrayBug-0.0.1.tar.gz Description:

Re: [Gambas-user] 2D arrays

2012-09-05 Thread Jussi Lahtinen
type. Read more about this here: http://code.google.com/p/gambas/issues/detail?id=175 ;) /Emil 2012/9/5 Jussi Lahtinen jussi.lahti...@gmail.com: Is this bug? Private Sub ArrayTest(iArr As Array) Print Object.Type(iArr) Print iArr[1, 1] *-- This gives Not an array.* End

[Gambas-user] Bug with list of tasks

2012-08-31 Thread Jussi Lahtinen
With latest revision, only notes beginning with two quotemarks are shown in list. This is shown: ''TODO: This is not shown: 'TODO: I would expect both of them to be found on list. Jussi -- Live Security Virtual

Re: [Gambas-user] Using DataBrowser for a table which

2012-08-30 Thread Jussi Lahtinen
I think it was fixed in revision 5075. Just use the latest revision. Jussi On 30 August 2012 13:20, John Rose john.aaron.r...@gmail.com wrote: Benoit, Using nemh's Pre-releases ppa which uses version #5071 to prepare its .deb, my app compiles OK but on running says program returned value

Re: [Gambas-user] Using DataBrowser for a table which

2012-08-30 Thread Jussi Lahtinen
Not fixed in latest sebikul's gambas-daily ppa, which uses svn 3995 is version 3.2.90. I tried that earlier today after the ppa was uploaded. Rev 3995 is from 09 Aug 2011 !?? Latest revision is 5100. What are you talking about? Jussi

Re: [Gambas-user] Using DataBrowser for a table which

2012-08-30 Thread Jussi Lahtinen
OK, got it... different numbering. I don't know what Gambas revision is used for that, but I would guess latest. Can you provide test project to demonstrate the problem? Jussi On Thu, Aug 30, 2012 at 11:16 PM, Jussi Lahtinen jussi.lahti...@gmail.comwrote: Not fixed in latest sebikul's

Re: [Gambas-user] Question on autohelp in IDE and libaries.

2012-08-28 Thread Jussi Lahtinen
Example: ''This line is visible in help window. br ''This second line too... Public Sub TestSub() ... So, put helplines before declaration of method/function/variable/etc. Jussi On 27 August 2012 23:48, Willy Raets wi...@earthshipbelgium.be wrote: Hi all, Hope someone can help with this

Re: [Gambas-user] Release 3.2.1

2012-08-28 Thread Jussi Lahtinen
I've still received no answer for any web page correlating version numbers versus revision numbers. Anyone have information on this? Version numbers are for general users (stabile releases), revision numbers are for development version of Gambas. Jussi

Re: [Gambas-user] An arbitrary precision calculator class

2012-08-25 Thread Jussi Lahtinen
free to add it there! -Original Message- From: Jussi Lahtinen jussi.lahti...@gmail.com Date: Sat, 25 Aug 2012 03:59:58 To: Gambas mailing list for users.Gambas-user@lists.sourceforge.net Reply-To: mailing list for gambas users gambas-user@lists.sourceforge.net Subject: [Gambas-user

Re: [Gambas-user] Gambas is not multi-threaded, but...

2012-08-24 Thread Jussi Lahtinen
I think I don't have enough time right now to go deeply into this, but I have already done multithreading with Gambas. One of my project has interface class which uses exec command to launch command line program made with Gambas. Argument for the command line program describe what it should do.

Re: [Gambas-user] Gambas is not multi-threaded, but...

2012-08-24 Thread Jussi Lahtinen
Tasks are the same thing, but simpler to use that processes. I will look into this later. And this is *not* multi-threading, but multi-processing. Oh yes, you are right. Jussi -- Live Security Virtual Conference

[Gambas-user] An arbitrary precision calculator class

2012-08-24 Thread Jussi Lahtinen
Almost forgot... Some weeks(?) ago I noticed that people tend have problems with floating point precision (problem with all general purpose languages). So, I'll share my quick dirty solution. Short but useful code if you need very precise numbers for math, but speed is not crucial. I personally

Re: [Gambas-user] Check on entered number having more than 6 digits not working

2012-08-13 Thread Jussi Lahtinen
Conversion and checking is two different things... Jussi On 13 August 2012 19:09, nando nand...@nothingsimple.com wrote: That's perfectly fine. Let me offer this plan of attack. Test if it is between -90 and +90 multiply by 1,000,000 into an INTEGER which chops all decimal digits to the

Re: [Gambas-user] Printer code request

2012-08-11 Thread Jussi Lahtinen
Hints... ((Key[n] Or Key[N]) And Key.Alt) Here Or and And are bitwise operators. Example: Key[a] = 65 Key[b] = 66 And so... (Key[a] Or Key[b]) = 67 Also Key[n] and Key[N] have same value (78). But, (Key[n] And Key.Alt) will work as long as Key.Code = 0 is not passed. When Key.Alt = False

Re: [Gambas-user] Check on entered number having more than 6 digits not working

2012-08-11 Thread Jussi Lahtinen
I cannot reproduce your problem... What is your Gambas version? Jussi On 11 August 2012 17:51, John Rose john.aaron.r...@gmail.com wrote: I'm trying to validate an entered Latitude value as having a maximum of 6 digits after the decimal point. Sometimes it doesn't work. In the case below,

Re: [Gambas-user] Check on entered number having more than 6 digits not working

2012-08-11 Thread Jussi Lahtinen
I suspect that there was something else wrong with your project. But just in case, I would like to know if someone else can reproduce your problem. Test project is attached. John, can you reproduce your original problem with that test project? Jussi On 11 August 2012 22:10, John Rose

Re: [Gambas-user] Check if a form is opened/show

2012-08-10 Thread Jussi Lahtinen
If Form.Visible is not what you need, then you can declare Opened boolean to form and set it true in Form_Open event. Jussi On 10 August 2012 03:24, rocko sunblast...@gmail.com wrote: Is there a way to check if a form is opened?? If Fmain.Open = True Then do...something endif I

Re: [Gambas-user] Printer code request

2012-08-10 Thread Jussi Lahtinen
See Barcode example for how to send things to printer. And this for how to take screenshot: http://gambasdoc.org/help/comp/gb.qt4/desktop/screenshot?v3 Jussi On 10 August 2012 19:54, fulippo_fuli...@tiscali.it fulippo_fuli...@tiscali.it wrote: Dear All I need to send to the printer the

Re: [Gambas-user] JIT bug 7

2012-08-09 Thread Jussi Lahtinen
or something. If you want, you can post the llvm output, gdb stacktrace or whatever... /Emil 2012/7/28 Jussi Lahtinen jussi.lahti...@gmail.com Before continuing my vacation again in countryside... Here is some JIT bug. See attachment. Gambas 3 rev 4995 @ Xubuntu 12.04 64bit

Re: [Gambas-user] Adding a date to a number

2012-08-09 Thread Jussi Lahtinen
http://gambasdoc.org/help/lang/dateadd?show Jussi On 9 August 2012 23:33, rocko sunblast...@gmail.com wrote: I have a date box that I want to use for adding a number of days to. EX: say user picks date 9/10/12(American style date format) and enters 30 days in a value box to add to the date

Re: [Gambas-user] Default icons problem

2012-07-29 Thread Jussi Lahtinen
Where is stored the oxygen icon theme on your computer? ('/usr/share/icons' on mine) In that same path. Where is stored your XFCE configuration? ('~/.config/xfce4' on mine). Also same. I'm compiling latest revision, let's see if it works... Jussi

Re: [Gambas-user] Rounding to 2 decimals

2012-07-27 Thread Jussi Lahtinen
ValueBox doesn't take strings. So, I suggest to use TextBoxes and do the conversion properly with Val(). Jussi On 27 July 2012 21:05, rocko sunblast...@gmail.com wrote: On Fri, 2012-07-27 at 19:49 +0200, Tobias Boege wrote: On Fri, 27 Jul 2012, rocko wrote: On Fri, 2012-07-27 at 19:25

Re: [Gambas-user] Rounding to 2 decimals

2012-07-27 Thread Jussi Lahtinen
Issue with Round is more complicated. It is floating point precision problem, which arises from automatic conversion from float to single. You can fix it by changing; Dim perAmnt As Single to Dim perAmnt As Float Jussi On 27 July 2012 21:05, rocko sunblast...@gmail.com wrote: On Fri,

Re: [Gambas-user] Rounding to 2 decimals

2012-07-27 Thread Jussi Lahtinen
(prmAmnt / totAmnt * 100, -2) Print perAmnt Else ''Here handle incorrect input of user... Endif Jussi On 27 July 2012 21:11, Jussi Lahtinen jussi.lahti...@gmail.com wrote: ValueBox doesn't take strings. So, I suggest to use TextBoxes and do the conversion properly with Val(). Jussi

Re: [Gambas-user] Rounding to 2 decimals

2012-07-27 Thread Jussi Lahtinen
, rocko sunblast...@gmail.com wrote: AHA! That works, I forgot about using 'Float' If I were to use a textBox to display the result, how would I convert it?? Would it be something like: Val(perAmnt) On Fri, 2012-07-27 at 21:14 +0300, Jussi Lahtinen wrote: Issue with Round is more

[Gambas-user] JIT bug 7

2012-07-27 Thread Jussi Lahtinen
Before continuing my vacation again in countryside... Here is some JIT bug. See attachment. Gambas 3 rev 4995 @ Xubuntu 12.04 64bit Jussi JITbug7-0.0.1.tar.gz Description: GNU Zip compressed data -- Live Security

Re: [Gambas-user] Install problems

2012-07-25 Thread Jussi Lahtinen
Top posting means the thread has to be read from the bottom up (minor annoyance), but what's really bad is when a single thread continuously mixes top and bottom posting. Then you have chaos. One solution to a mixed order thread (as I did here) is just to snip everything except what you're

Re: [Gambas-user] Default icons problem

2012-07-25 Thread Jussi Lahtinen
Jussi On 25 July 2012 17:22, Jussi Lahtinen jussi.lahti...@gmail.com wrote: Where is stored the oxygen icon theme on your computer? ('/usr/share/icons' on mine) In that same path. Where is stored your XFCE configuration? ('~/.config/xfce4' on mine). Also same. I'm compiling latest

Re: [Gambas-user] Install problems

2012-07-25 Thread Jussi Lahtinen
|| - gb.media On Wed, 2012-07-25 at 03:24 +0300, Jussi Lahtinen wrote: I think you don't have devs installed! http://gambasdoc.org/help/install/ubuntu?v3view About top-posting... This is how gmail does it automatically, and I don't see any significant difference between top

Re: [Gambas-user] Default icons problem

2012-07-25 Thread Jussi Lahtinen
OK, without full path it works, but not completely. Example with theme LowContrast I don't see correct icons. gb.form: init stock with icon theme: 'LowContrast' gb.form: desktop is XFCE gb.form: add icon path: /usr/share/icons/LowContrast/1x1!2 gb.form: add icon path:

Re: [Gambas-user] Install problems

2012-07-25 Thread Jussi Lahtinen
Just ignore it. Jussi On 25 July 2012 22:50, rocko sunblast...@gmail.com wrote: Forgot to mention I am getting one error when I run gambas3 from the command line: gb.qt4: warning: unable to load Qt translation: en_US.utf8 But gambas3 seems to run fine. On Wed, 2012-07-25 at 21:24

Re: [Gambas-user] Install problems

2012-07-25 Thread Jussi Lahtinen
Gmail, IMHO, is actually a mess managing threads and messages. I have noticed that it really split opinions. Either you love it or hate it. Why not use Thunderbird or alike? I understand we may use web based mail when not at home or not in our own PC, but... Kevin has answered exactly

Re: [Gambas-user] Default icons problem

2012-07-25 Thread Jussi Lahtinen
OK, without full path it works, but not completely. I should have pointed that. But I could handle full paths, for icon themes not stored in /usr/share/icons... Good idea. Also I think there should be error/warning message if the theme is missing and debugging is on. Now I got only this

Re: [Gambas-user] Default icons problem

2012-07-25 Thread Jussi Lahtinen
contains themes that do not have icons (?). And some alternative path structures are not checked..? Also some themes doesn't have icons in all necessary sizes, perhaps this should print warning? Jussi On 25 July 2012 23:54, Jussi Lahtinen jussi.lahti...@gmail.com wrote: OK, without full path

Re: [Gambas-user] Install problems

2012-07-25 Thread Jussi Lahtinen
Without Thunderbird, I wouldn't be able to develop Gambas and work at home... In the past I used KMail, but it becomes unusable in the last versions, so I switched to Thunderbird. Yeah, I don't mean to be spiteful. I'm sure it is good software for people who like to use non-web based email

Re: [Gambas-user] Default icons problem

2012-07-25 Thread Jussi Lahtinen
And when I look from Settings manager -- appearance settings, there hicolor is *not* listed. Because it is marked as Hidden in the index.theme file. Aaaa... OK. But LowContrast is listed, and it has different path structure. Gnome, oxygen and Tango themes (all working) seems to

Re: [Gambas-user] Default icons problem

2012-07-25 Thread Jussi Lahtinen
AFAIK this is not standard and I can't use them. Icon relative paths and names should be the same in all icon themes. I understand. However, I wonder how things work in Xubuntu, since if I chose to use that theme, icons work correctly in Desktop. Jussi

Re: [Gambas-user] Default icons problem

2012-07-24 Thread Jussi Lahtinen
For Each sStr In Stock.Themes Print sStr Next Jussi On 24 July 2012 14:03, Maria geapla...@yahoo.es wrote: Yes, directory name in /usr/share/icons How I use the Stock.Theme property for getting themes? When I wrote it doesn't give me suggestions of themes, thats what you mean? I wrote

Re: [Gambas-user] Install problems

2012-07-24 Thread Jussi Lahtinen
I think you don't have devs installed! http://gambasdoc.org/help/install/ubuntu?v3view About top-posting... This is how gmail does it automatically, and I don't see any significant difference between top-posters vs non-top-posters... Is this really problem? Jussi On 25 July 2012 03:04,

Re: [Gambas-user] Raises the event

2012-07-13 Thread Jussi Lahtinen
I don't think Gambas supports static events. So you need to remove static from declaration, or use sub instead. Why you need myTest() sub to be static? Jussi On 13 July 2012 09:23, Ivan Kern ivan-k...@freenet.de wrote: Hi to all, I have made my own gambas component in gambas2 under ubuntu

[Gambas-user] DIV

2012-07-12 Thread Jussi Lahtinen
? 4.3 DIV 2.1 Type mismatch: wanted Integer, got Float instead Why it take only integers? Jussi -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has

Re: [Gambas-user] DIV

2012-07-12 Thread Jussi Lahtinen
Doc states, DIV is a synonymous for \ which is the integer division operator. Documentation says Calculates the quotient of two Integer numbers, rounding down. And my question was, in other words, why it calculates quotient for only integer numbers? Output is always integer, but why input

Re: [Gambas-user] DIV

2012-07-12 Thread Jussi Lahtinen
This is for performance reasons: '\' (or DIV) operator is faster than '/'. OK. If you want to use DIV like '/', just use '/'! / is different thing, it doesn't give integer quotient. To get integer quotient from floats I use iQuotient = Floor( a / b ). Jussi

[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

Re: [Gambas-user] JIT bug 4

2012-07-10 Thread Jussi Lahtinen
it ... /Emil 2012/7/9 Jussi Lahtinen jussi.lahti...@gmail.com In fact the function can be further reduced to: c = CInt((0.6 ^ iEta) / sngCached[iEta]) Jussi On 9 July 2012 21:02, Jussi Lahtinen jussi.lahti...@gmail.com wrote: Finally, here it is isolated. See attachment

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 jussi.lahti...@gmail.com wrote: Not yet, able to isolate... ** INTERNAL ERROR ** ** Bad type (12) for VALUE_undo_variant ** Program

Re: [Gambas-user] JIT bug 5

2012-07-10 Thread Jussi Lahtinen
OK, see attachment. Jussi On 10 July 2012 22:30, Jussi Lahtinen jussi.lahti...@gmail.com 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 jussi.lahti...@gmail.com wrote

Re: [Gambas-user] JIT bug 4

2012-07-10 Thread Jussi Lahtinen
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 jussi.lahti...@gmail.com Yes it works now. But Print 0.6 ^ x did crash, but x = 0.6 ^ x alone did

[Gambas-user] JIT bug 4

2012-07-09 Thread Jussi Lahtinen
Finally, here it is isolated. See attachment. I don't know why I didn't get it in first try, and yet, I'm not sure what is going on... Gambas 3 rev 4921 @ Xubuntu 12.04 64bit Jussi JITbug4-0.0.1.tar.gz Description: GNU Zip compressed data

Re: [Gambas-user] JIT bug 4

2012-07-09 Thread Jussi Lahtinen
In fact the function can be further reduced to: c = CInt((0.6 ^ iEta) / sngCached[iEta]) Jussi On 9 July 2012 21:02, Jussi Lahtinen jussi.lahti...@gmail.com wrote: Finally, here it is isolated. See attachment. I don't know why I didn't get it in first try, and yet, I'm not sure what

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

2012-07-08 Thread Jussi Lahtinen
OK. I use gmail and so I didn't see the problem. My thought was to keep these JIT bugs in same thread, but you are right. Jussi On 6 July 2012 18:44, Benoît Minisini gam...@users.sourceforge.net wrote: Le 06/07/2012 17:35, Jussi Lahtinen a écrit : Just quick info before I leave for couple

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

2012-06-29 Thread Jussi Lahtinen
out, index=optimized out) at jit_runtime.c:965 #9 0x in ?? () Gambas 3 rev 4871 @ Xubuntu 12.04 64bit Jussi On 27 June 2012 19:17, Jussi Lahtinen jussi.lahti...@gmail.com wrote: Yes, it works now! Jussi On 27 June 2012 00:12, Emil Lenngren emil.lenng...@gmail.com

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

2012-06-27 Thread Jussi Lahtinen
to even compile it and see if it works at the moment :) /Emil 2012/6/26 Jussi Lahtinen jussi.lahti...@gmail.com .../MagicBug$ GB_JIT=info gbx3 gb.jit: using LLVM 3.2. gb.jit: beginning compiling MainModule.MainModule

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

2012-06-26 Thread Jussi Lahtinen
On 20 June 2012 20:14, Emil Lenngren emil.lenng...@gmail.com wrote: That bug was actually an interpreter bug, but it is now corrected in the latest revision :) /Emil 2012/6/20 Jussi Lahtinen jussi.lahti...@gmail.com Yeah, I'm also leaving to countryside for Midsummer parties... but I

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

2012-06-26 Thread Jussi Lahtinen
2012 21:05, Emil Lenngren emil.lenng...@gmail.com wrote: I am in Italy now on holiday so I cannot debug the code, but could you please run gbx3 with GB_JIT=info and post the llvm code? /Emil 2012/6/26 Jussi Lahtinen jussi.lahti...@gmail.com OK, here is more. This is really really weird

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

2012-06-20 Thread Jussi Lahtinen
Return CallbackFunction End Fast Private Function CallbackFunction() ... End Extern extfunc(cb As Pointer) In somelib Fast Private Function Main() Dim p As Pointer = GenerateCallback() extfunc(p) End /Emil 2012/6/19 Jussi Lahtinen jussi.lahti...@gmail.com

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

2012-06-20 Thread Jussi Lahtinen
cannot do anything then, but just keep sending emails and I will reply when I come home :) /Emil 2012/6/20 Jussi Lahtinen jussi.lahti...@gmail.com So far everything seems to work! I'll continue further testing later. Jussi On 20 June 2012 01:10, Emil Lenngren emil.lenng

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

2012-06-19 Thread Jussi Lahtinen
Yes, it works now! Jussi On 18 June 2012 22:34, Emil Lenngren emil.lenng...@gmail.com wrote: Does it work in revision #4847? /Emil 2012/6/18 Jussi Lahtinen jussi.lahti...@gmail.com Starting program: /usr/local/bin/gbx3 [Thread debugging using libthread_db enabled] Using host

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

2012-06-19 Thread Jussi Lahtinen
On 19 June 2012 21:02, Jussi Lahtinen jussi.lahti...@gmail.com wrote: Yes, it works now! Jussi On 18 June 2012 22:34, Emil Lenngren emil.lenng...@gmail.com wrote: Does it work in revision #4847? /Emil 2012/6/18 Jussi Lahtinen jussi.lahti...@gmail.com Starting program: /usr

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

2012-06-19 Thread Jussi Lahtinen
must wait support for callbacks to finish that. Jussi On 19 June 2012 21:58, Emil Lenngren emil.lenng...@gmail.com wrote: Hi. Kiitos for another bug report :) Hmm.. I forgot that classes can override extern methods as well. That's where the real problem is. /Emil 2012/6/19 Jussi Lahtinen

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 gksu

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 only

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 how

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 jussi.lahti...@gmail.com 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

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

2012-06-18 Thread Jussi Lahtinen
2012 22:08, Emil Lenngren emil.lenng...@gmail.com wrote: 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 jussi.lahti...@gmail.com OK, I found it. See attachment

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

2012-06-17 Thread Jussi Lahtinen
it more closely when this is fixed. Jussi On 17 June 2012 19:01, Emil Lenngren emil.lenng...@gmail.com wrote: Yes, it works now :) 2012/6/17 Benoît Minisini gam...@users.sourceforge.net Le 17/06/2012 02:54, Jussi Lahtinen a écrit : Yeah, terminal gives other position... With my

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

2012-06-17 Thread Jussi Lahtinen
already established!' failed. I'm out of time, but as soon as I have time I try to isolate code causing the problem. Jussi On 17 June 2012 20:24, Emil Lenngren emil.lenng...@gmail.com wrote: It should be fixed in revision #4843! /Emil 2012/6/17 Jussi Lahtinen jussi.lahti...@gmail.com Yes

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

2012-06-16 Thread Jussi Lahtinen
No, xdg-su is no longer part of xdg-utils. Do you know reason for this? I have not used the xdg-su script for privilege escalation, but a quick (and I mean quick!) look through it at it stands is not going to be a great success. Privilege escalation means exploitation, not use of

[Gambas-user] Bug with JIT and external functions

2012-06-16 Thread Jussi Lahtinen
See attachment. If you comment out Fast from mTest, all works perfectly. Gambas 3 rev 4837 @ Xubuntu 12.04 64bit Jussi GambasTester-0.9.28.tar.gz Description: GNU Zip compressed data -- Live Security Virtual Conference

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

2012-06-16 Thread Jussi Lahtinen
... /Emil 2012/6/16 Jussi Lahtinen jussi.lahti...@gmail.com See attachment. If you comment out Fast from mTest, all works perfectly. Gambas 3 rev 4837 @ Xubuntu 12.04 64bit Jussi -- Live Security Virtual

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

2012-06-16 Thread Jussi Lahtinen
debugging code because if there is an error in an uncommon code path, that error might normally be hard to discover. If the jit compiler sees that error directly upon compile time, you can easier correct the bug. /Emil 2012/6/17 Jussi Lahtinen jussi.lahti...@gmail.com From this (integer to integer

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

2012-06-16 Thread Jussi Lahtinen
frame. I don't know why... /Emil 2012/6/17 Jussi Lahtinen jussi.lahti...@gmail.com Aaa... OK, sorry for the trouble. I assumed it is because of extern, because with my actual project I had similar error messages from modules where extern is used. Also the error message is pretty

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

2012-06-15 Thread Jussi Lahtinen
Weird that there isn't any standard about this, or is there..? I think every linux distribution should have link to it's graphical version of sudo/su, with uniform name like GUIsudo. Then you could always call it without knowing which environment is used. Jussi On 14 June 2012 07:58, Bruce

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

2012-06-15 Thread Jussi Lahtinen
If I remember correctly, you can even save more work by using gb.desktop, Desktop.RunAsRoot() which builds on top of the portland xdg scripts. Before writing anything I should always check what gb.desktop contains... But there seems to be bugs. I tried 'Desktop.RunAsRoot(whoami)'. All I got

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

2012-06-15 Thread Jussi Lahtinen
wrote: On Fri, 15 Jun 2012, Jussi Lahtinen wrote: If I remember correctly, you can even save more work by using gb.desktop, Desktop.RunAsRoot() which builds on top of the portland xdg scripts. Before writing anything I should always check what gb.desktop contains

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

2012-06-15 Thread Jussi Lahtinen
OK, got it. It's now fixed (actually xfce function was missing), tested and attached. Benoit, is this official part of xdg-utils..? Because I have that package installed, but not that script. Jussi On 16 June 2012 00:23, Jussi Lahtinen jussi.lahti...@gmail.com wrote: OK, I'm stupid

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