From rterry at ...1823... Fri Jun 1 00:27:56 2012 From: rterry at ...1823... (Richard Terry) Date: Fri, 01 Jun 2012 08:27:56 +1000 Subject: [Gambas-user] Gridview Q and determining width of a string Message-ID: <4FC7F06C.4000208@...1823...> Hi List A few qridview questions if anyone has time. I'm loading a grid with variable length strings, and want to adjust the column widths to match, or have the option to increase the height of a cell with word-wrap within the cell. I wondered if anyone has gone down this path before. I tried having a hidden label with auto-resize = false, setting the label.text property to the string, reading the width, then setting the max width of all the strings to the column width. This works but seems messy, plus I found I had to put a Wait command after each label update or the label didn't resize. Also would be interested in how to wrap text within a grid cell. Regards richard From mohareve at ...626... Fri Jun 1 10:03:46 2012 From: mohareve at ...626... (M. Cs.) Date: Fri, 1 Jun 2012 10:03:46 +0200 Subject: [Gambas-user] Silly behavior on Mageia 2 Message-ID: Hi, I'm testing my Gambas3 application on the new Mageia 2 release, and I'm encountering weird things: 1. There's no mp3 playback with gb.sdl.sound component 2. The Exist() cannot find existing files. I have no such errors on Kubuntu.. I was a big fan of Mandriva, so I wanted to give a try to its fork, but the result isn't very impressive. Moreover, I never had decent results with any of big RPM based distributions ( openSuse, Fedora, Mandriva and now Mageia too). There are nearly always dependency problems. But in present case I just don't know what's wrong. Any similar experiences, solutions? Csaba From gambas at ...1... Fri Jun 1 10:20:54 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 01 Jun 2012 10:20:54 +0200 Subject: [Gambas-user] Silly behavior on Mageia 2 In-Reply-To: References: Message-ID: <4FC87B66.2040601@...1...> Le 01/06/2012 10:03, M. Cs. a ?crit : > Hi, > I'm testing my Gambas3 application on the new Mageia 2 release, and > I'm encountering weird things: > 1. There's no mp3 playback with gb.sdl.sound component SDL must be allowed to play mp3 files, but I don't know if it is enabled at compilation time or by installing a specific library. > 2. The Exist() cannot find existing files. Please provide the value of System.Charset and System.Language. > I have no such errors on Kubuntu.. > > I was a big fan of Mandriva, so I wanted to give a try to its fork, > but the result isn't very impressive. Moreover, I never had decent > results with any of big RPM based distributions ( openSuse, Fedora, > Mandriva and now Mageia too). There are nearly always dependency > problems. But in present case I just don't know what's wrong. My own experience is the contrary: I now use Kubuntu since two years, and it has been always far more buggy than Mandriva. I just find dpkg faster than rpm. At the moment I'm trying to find why my right control key suddenly stopped working by emitting a key code that no application recognizes... Regards, -- Beno?t Minisini From eilert-sprachen at ...221... Fri Jun 1 10:42:14 2012 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 01 Jun 2012 10:42:14 +0200 Subject: [Gambas-user] Gridview Q and determining width of a string In-Reply-To: <4FC7F06C.4000208@...1823...> References: <4FC7F06C.4000208@...1823...> Message-ID: <4FC88066.8080900@...221...> Hi Richard, > > I'm loading a grid with variable length strings, and want to adjust the > column widths to match, or have the option to increase the height of a > cell with word-wrap within the cell. > > I wondered if anyone has gone down this path before. Yes and no :-) To adjust the width, use Table.Font.Width(LongestString), maybe with a for-next loop at first to check the contents of all cells in a column, delivering a pointer to the longest string. As far as I understand, the Table (or Grid) has one font only, so it can be easily set this way. Correct me if I'm wrong. The WordWrap feature is switched on in one of my projects here, but I cannot find where quickly. Maybe I simply switched it on in the IDE as a default. Anyway, I'm having difficulties with the height of the line as it is not adapted automatically (at least this is my problem in Gambas2, I don't know how this is in Gambas3 yet). In this context I really like your idea with the label though the way you use it is not necessary as you have Table.Font.Width to do this: > > I tried having a hidden label with auto-resize = false, setting the > label.text property to the string, reading the width, then setting the > max width of all the strings to the column width. This works but seems > messy, plus I found I had to put a Wait command after each label update > or the label didn't resize. But I could imagine it useful for wrapping the text AND find out how many rows of text result from it, setting the Height property for the row. Rolf From eilert-sprachen at ...221... Fri Jun 1 11:53:43 2012 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 01 Jun 2012 11:53:43 +0200 Subject: [Gambas-user] Gridview Q and determining width of a string In-Reply-To: <4FC7F06C.4000208@...1823...> References: <4FC7F06C.4000208@...1823...> Message-ID: <4FC89127.5030200@...221...> Am 01.06.2012 00:27, schrieb Richard Terry: > Hi List > > A few qridview questions if anyone has time. > > I'm loading a grid with variable length strings, and want to adjust the > column widths to match, or have the option to increase the height of a > cell with word-wrap within the cell. > > I wondered if anyone has gone down this path before. > > I tried having a hidden label with auto-resize = false, setting the > label.text property to the string, reading the width, then setting the > max width of all the strings to the column width. This works but seems > messy, plus I found I had to put a Wait command after each label update > or the label didn't resize. > > Also would be interested in how to wrap text within a grid cell. > > Regards > > richard Ok, I just did some trial code, and it may run like this: - Give a fixed Column.Width. - Browse the strings and find out if Table.Font.Width(of the investigated Cell) is greater than the appropriate Column.Width. - If yes: set the string into a TextLabel which has AutoResize = True and the Width of which is the same like Column.Width. - Then read the resulting Height and give it to Table.Row.Height. What do you think? Rolf From gambas at ...1... Fri Jun 1 12:09:54 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 01 Jun 2012 12:09:54 +0200 Subject: [Gambas-user] Bug with rev 4772 In-Reply-To: References: Message-ID: <4FC894F2.7080000@...1...> Le 31/05/2012 19:09, Jussi Lahtinen a ?crit : > I'm trying to isolate this problem, and while messing up with things I > found bug (signal 11) that might be related. > Project attached. > I fixed circular initialization problem in revision #4799. Of course, now, you cannot suppose that a class is entirely initialized when using it as soon as there is a circular dependency like in your test project. Regards, -- Beno?t Minisini From rterry at ...1823... Fri Jun 1 13:55:27 2012 From: rterry at ...1823... (Richard Terry) Date: Fri, 01 Jun 2012 21:55:27 +1000 Subject: [Gambas-user] Gridview Q and determining width of a string In-Reply-To: <4FC88066.8080900@...221...> References: <4FC7F06C.4000208@...1823...> <4FC88066.8080900@...221...> Message-ID: <4FC8ADAF.1040304@...1823...> Rolf-Werner Eilert wrote: > Hi Richard, > > > >> I'm loading a grid with variable length strings, and want to adjust the >> column widths to match, or have the option to increase the height of a >> cell with word-wrap within the cell. >> >> I wondered if anyone has gone down this path before. >> > > Yes and no :-) > > To adjust the width, use Table.Font.Width(LongestString), maybe with a > for-next loop at first to check the contents of all cells in a column, > delivering a pointer to the longest string. As far as I understand, the > Table (or Grid) has one font only, so it can be easily set this way. > Correct me if I'm wrong. > > The WordWrap feature is switched on in one of my projects here, but I > cannot find where quickly. Maybe I simply switched it on in the IDE as a > default. Anyway, I'm having difficulties with the height of the line as > it is not adapted automatically (at least this is my problem in Gambas2, > I don't know how this is in Gambas3 yet). > > In this context I really like your idea with the label though the way > you use it is not necessary as you have Table.Font.Width to do this: > > >> I tried having a hidden label with auto-resize = false, setting the >> label.text property to the string, reading the width, then setting the >> max width of all the strings to the column width. This works but seems >> messy, plus I found I had to put a Wait command after each label update >> or the label didn't resize. >> > > But I could imagine it useful for wrapping the text AND find out how > many rows of text result from it, setting the Height property for the row. > > Rolf > > Hi Rolf, thanks for your reply, I tried the font.width property, had to had 10 to it to make it wide enough but it works well enough. I found the wrap property so will experiment and report back over the weekend (later night now in AU and only just sat down at the puter!. richard From rterry at ...1823... Fri Jun 1 15:27:58 2012 From: rterry at ...1823... (Richard Terry) Date: Fri, 01 Jun 2012 23:27:58 +1000 Subject: [Gambas-user] Gridview Q and determining width of a string In-Reply-To: <4FC89127.5030200@...221...> References: <4FC7F06C.4000208@...1823...> <4FC89127.5030200@...221...> Message-ID: <4FC8C35E.70001@...1823...> Rolf-Werner Eilert wrote: > Am 01.06.2012 00:27, schrieb Richard Terry: > >> Hi List >> >> A few qridview questions if anyone has time. >> >> I'm loading a grid with variable length strings, and want to adjust the >> column widths to match, or have the option to increase the height of a >> cell with word-wrap within the cell. >> >> I wondered if anyone has gone down this path before. >> >> I tried having a hidden label with auto-resize = false, setting the >> label.text property to the string, reading the width, then setting the >> max width of all the strings to the column width. This works but seems >> messy, plus I found I had to put a Wait command after each label update >> or the label didn't resize. >> >> Also would be interested in how to wrap text within a grid cell. >> >> Regards >> >> richard >> > > Ok, I just did some trial code, and it may run like this: > > - Give a fixed Column.Width. > - Browse the strings and find out if Table.Font.Width(of the > investigated Cell) is greater than the appropriate Column.Width. > - If yes: set the string into a TextLabel which has AutoResize = True > and the Width of which is the same like Column.Width. > - Then read the resulting Height and give it to Table.Row.Height. > > What do you think? > > Rolf > > > Hi rolf, Your suggestions worked fine, see the picture (I'm doing my drug prescribing section at the moment) Using the grids richtext property and the table.font.width to keep track of the widest of each column makes it easy to set the column widths, and row heights as per the picture. It would also be easy to put in more sophisticated handling of anomalous widths to keep a very long column text from pushing out the width to an unreasonable size compared to the general column width. thanks again Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: sample_grid_rows.png Type: image/png Size: 24717 bytes Desc: not available URL: From gambas at ...1... Fri Jun 1 16:30:51 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 01 Jun 2012 16:30:51 +0200 Subject: [Gambas-user] Transparent side panels Message-ID: <4FC8D21B.5000102@...1...> Hi, In revision #4800, I added a "Transparent" to the SidePanel property to restore its old behaviour. By default, Transparent is FALSE, and you get the old behaviour. If you set Transparent to TRUE, you get the new behaviour, with the SidePanel handles appearing when the SidePanel border is hovered. Regards, -- Beno?t Minisini From gambas at ...1... Fri Jun 1 17:43:31 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 01 Jun 2012 17:43:31 +0200 Subject: [Gambas-user] Suggestion: Packaging preferences in gambas3.config In-Reply-To: <1338435501.14818.9.camel@...37...> References: <1338435501.14818.9.camel@...37...> Message-ID: <4FC8E323.5080804@...1...> Le 31/05/2012 05:38, Bruce a ?crit : > Hi Beno?t, > > Attached are three diffs that add a small benefit to those whose package > up a lot of projects. Basically it adds "default" settings for the > items on the first page of the FMakeInstall wizard. These are help in > the gambas3.config file. > > The changes are: > 1) add another tab to the Preferences form to allow the user to > set/change the defaults for packaging info. > 2) changes the name of the "Packages" tab to "Source Archives" (ditto > the label on that tab. > 3) adds logic to FOptions.class to manage the default values in and out > of Settings > 4) adds logic to the FMakeInstall form to look for these defaults in > Settings[FMakeInstall/...] > > The benefits are only to those who do package a lot of projects. > > Hope you see your way to adopting these. I wrote them after having to > type in the same info 20 times and retype them after mispelling the > email address every time. (And I hate managing conflicts in trunk.) > > regards > Bruce > Cool, but I hugely prefer that you commit your changes directly with subversion. Integrating a diff file from a past revision is a bit of nightmare for me. Do you have a sourceforge account so that I grant you a write access to the source repository? -- Beno?t Minisini From gambas at ...1... Fri Jun 1 17:46:07 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 01 Jun 2012 17:46:07 +0200 Subject: [Gambas-user] sqlite database inside an executable In-Reply-To: <1338270208.4095.54.camel@...37...> References: <1338270208.4095.54.camel@...37...> Message-ID: <4FC8E3BF.4050206@...1...> Le 29/05/2012 07:43, Bruce a ?crit : > Is there any way to access (read-only of course) an sqlite database > inside the gambas executable? > > Strange idea I know, but I've got this "really good idea". > > Bruce > At program startup, you must copy the sqlite file from the executable (with COPY) to a real file in a temporary directory, and then open it. Some methods of some components can do that automatically and transparently. But not gb.db.sqlite at the moment. Regards, -- Beno?t Minisini From mohareve at ...626... Fri Jun 1 19:13:32 2012 From: mohareve at ...626... (M. Cs.) Date: Fri, 1 Jun 2012 19:13:32 +0200 Subject: [Gambas-user] Silly behavior on Mageia 2 In-Reply-To: <4FC87B66.2040601@...1...> References: <4FC87B66.2040601@...1...> Message-ID: 1. UTF-8 -> charset 2. hu_HU.UTF-8 -> language 2012/6/1, Beno?t Minisini : > Le 01/06/2012 10:03, M. Cs. a ?crit : >> Hi, >> I'm testing my Gambas3 application on the new Mageia 2 release, and >> I'm encountering weird things: >> 1. There's no mp3 playback with gb.sdl.sound component > > SDL must be allowed to play mp3 files, but I don't know if it is enabled > at compilation time or by installing a specific library. > >> 2. The Exist() cannot find existing files. > > Please provide the value of System.Charset and System.Language. > >> I have no such errors on Kubuntu.. >> >> I was a big fan of Mandriva, so I wanted to give a try to its fork, >> but the result isn't very impressive. Moreover, I never had decent >> results with any of big RPM based distributions ( openSuse, Fedora, >> Mandriva and now Mageia too). There are nearly always dependency >> problems. But in present case I just don't know what's wrong. > > My own experience is the contrary: I now use Kubuntu since two years, > and it has been always far more buggy than Mandriva. I just find dpkg > faster than rpm. > > At the moment I'm trying to find why my right control key suddenly > stopped working by emitting a key code that no application recognizes... > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From demosthenesk at ...626... Sat Jun 2 07:13:46 2012 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 02 Jun 2012 08:13:46 +0300 Subject: [Gambas-user] Templates Message-ID: <4FC9A10A.7070403@...626...> Hello list, i want to ask if there is a future plan to implement Templates in Gambas like .net example http://msdn.microsoft.com/en-us/library/6sh2ey19.aspx#Y0 'Declaration _ Public Class List(Of T) _ Implements IList(Of T), ICollection(Of T), _ IEnumerable(Of T), IList, ICollection, IEnumerable From girardhenri at ...67... Sat Jun 2 08:06:21 2012 From: girardhenri at ...67... (girard henri) Date: Sat, 2 Jun 2012 08:06:21 +0200 Subject: [Gambas-user] Silly behavior on Mageia 2 In-Reply-To: References: <4FC87B66.2040601@...1...> Message-ID: Yes... ubuntu is buggy but how easy to compile a program ! I used mandriva till 11 if I remenber, but it becomes to proprietary and more forum were full of experts with big "mouths". Unfortunatly ubuntu turns too to much this way but has still good years in front. One problem I tried fedora but I am not used any more to look for programms I need... Pity it seems to be a good 17 version (just to make vlc working is really incredible !). Le 01/06/2012 19:13, M. Cs. a ?crit : > 1. UTF-8 -> charset > 2. hu_HU.UTF-8 -> language > > > 2012/6/1, Beno?t Minisini: >> Le 01/06/2012 10:03, M. Cs. a ?crit : >>> Hi, >>> I'm testing my Gambas3 application on the new Mageia 2 release, and >>> I'm encountering weird things: >>> 1. There's no mp3 playback with gb.sdl.sound component >> SDL must be allowed to play mp3 files, but I don't know if it is enabled >> at compilation time or by installing a specific library. >> >>> 2. The Exist() cannot find existing files. >> Please provide the value of System.Charset and System.Language. >> >>> I have no such errors on Kubuntu.. >>> >>> I was a big fan of Mandriva, so I wanted to give a try to its fork, >>> but the result isn't very impressive. Moreover, I never had decent >>> results with any of big RPM based distributions ( openSuse, Fedora, >>> Mandriva and now Mageia too). There are nearly always dependency >>> problems. But in present case I just don't know what's wrong. >> My own experience is the contrary: I now use Kubuntu since two years, >> and it has been always far more buggy than Mandriva. I just find dpkg >> faster than rpm. >> >> At the moment I'm trying to find why my right control key suddenly >> stopped working by emitting a key code that no application recognizes... >> >> Regards, >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From ea7dfh at ...2382... Sat Jun 2 14:03:30 2012 From: ea7dfh at ...2382... (Jesus) Date: Sat, 02 Jun 2012 14:03:30 +0200 Subject: [Gambas-user] Installing runtime in Centos6 Message-ID: <4FCA0112.1020909@...2382...> Hi all Well, a friend of mine is running into problems to have the Gambas3 runtime installed on a VPS server running Centos6. It seems to be a kind of mismatch with libc6 versions, so if someone have a clue about what's going on here, he will be grateful. This is a grep for libc related packages currently on that system: glibc-devel-2.5-81.el5_8.2 compat-glibc-headers-2.3.4-2.26 libcap-devel-1.10-26 compat-libcom_err-1.0-7 glibc-2.5-81.el5_8.2 libcap-1.10-26 glibc-2.5-81.el5_8.2 glibc-devel-2.5-81.el5_8.2 compat-glibc-2.3.4-2.26 libcroco-0.6.1-2.1 glibc-headers-2.5-81.el5_8.2 libc-client-2004g-2.2.1 libcroco-devel-0.6.1-2.1 glibc-common-2.5-81.el5_8.2 Now, when trying to install the rpm package: rpm -i server/gambas3-runtime.rpm error: Failed dependencies: libc.so.6(GLIBC_2.14)(64bit) is needed by gambas3-runtime-3.1.1-2.fc18.x86_64 Yes, it seems he's using the Fedora rpm package, but this might not be a problem. Is there any chance to get this solved, or perhaps trying to compile from sources is the best bet? Best regards -- Jesus Guardon From bbruen at ...2308... Sat Jun 2 14:41:27 2012 From: bbruen at ...2308... (Bruce) Date: Sat, 02 Jun 2012 22:11:27 +0930 Subject: [Gambas-user] Installing runtime in Centos6 In-Reply-To: <4FCA0112.1020909@...2382...> References: <4FCA0112.1020909@...2382...> Message-ID: <1338640887.30926.15.camel@...40...> On Sat, 2012-06-02 at 14:03 +0200, Jesus wrote: > Hi all > > Well, a friend of mine is running into problems to have the Gambas3 > runtime installed on a VPS server running Centos6. > > It seems to be a kind of mismatch with libc6 versions, so if someone > have a clue about what's going on here, he will be grateful. > > This is a grep for libc related packages currently on that system: A grep of what? > > glibc-devel-2.5-81.el5_8.2 > compat-glibc-headers-2.3.4-2.26 > libcap-devel-1.10-26 > compat-libcom_err-1.0-7 > glibc-2.5-81.el5_8.2 > libcap-1.10-26 > glibc-2.5-81.el5_8.2 > glibc-devel-2.5-81.el5_8.2 > compat-glibc-2.3.4-2.26 > libcroco-0.6.1-2.1 > glibc-headers-2.5-81.el5_8.2 > libc-client-2004g-2.2.1 > libcroco-devel-0.6.1-2.1 > glibc-common-2.5-81.el5_8.2 > > Now, when trying to install the rpm package: which rpm package? where did it come from? Fedora what/ which repo? > > rpm -i server/gambas3-runtime.rpm > error: Failed dependencies: > libc.so.6(GLIBC_2.14)(64bit) is needed by > gambas3-runtime-3.1.1-2.fc18.x86_64 fc18??? I thought fc17 was the latest stable release. This looks a little bit experimental. > > Yes, it seems he's using the Fedora rpm package, but this might not be a > problem. > > Is there any chance to get this solved, or perhaps trying to compile > from sources is the best bet? > > Best regards > locate is better than trying to grep "who-knows-what" locate lib/libc on mine shows that there is a /lib/libc.so.6 and file /lib/libc.so.6 shows that it is a symbolic link to 'libc-2.12.so' i.e. the actual library in /lib Using foreign binaries is a game of Russian roulette, the only chances you have are "pure dumb luck" or a great deal of checking every little detail before pulling that trigger. Good luck! Bruce From gambas at ...1... Sat Jun 2 16:07:51 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 02 Jun 2012 16:07:51 +0200 Subject: [Gambas-user] Templates In-Reply-To: <4FC9A10A.7070403@...626...> References: <4FC9A10A.7070403@...626...> Message-ID: <4FCA1E37.6090407@...1...> Le 02/06/2012 07:13, Demosthenes Koptsis a ?crit : > Hello list, > > i want to ask if there is a future plan to implement Templates in Gambas > like .net > > example > > http://msdn.microsoft.com/en-us/library/6sh2ey19.aspx#Y0 > > 'Declaration > _ > Public Class List(Of T) _ > Implements IList(Of T), ICollection(Of T), _ > IEnumerable(Of T), IList, ICollection, IEnumerable > I have no plan to implement templates at the moment. Maybe in the future, I don't know. There is already a rudimentary template mechanism inside the interpreter to implement arrays of a specific class. But I don't think it can be generalized. Regards, -- Beno?t Minisini From gambas at ...1... Sat Jun 2 16:10:00 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 02 Jun 2012 16:10:00 +0200 Subject: [Gambas-user] Silly behavior on Mageia 2 In-Reply-To: References: <4FC87B66.2040601@...1...> Message-ID: <4FCA1EB8.6030100@...1...> Le 01/06/2012 19:13, M. Cs. a ?crit : > 1. UTF-8 -> charset > 2. hu_HU.UTF-8 -> language > Do you have some examples of Exist() failing to find a file? -- Beno?t Minisini From demosthenesk at ...626... Sat Jun 2 16:26:37 2012 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 02 Jun 2012 17:26:37 +0300 Subject: [Gambas-user] Templates In-Reply-To: <4FCA1E37.6090407@...1...> References: <4FC9A10A.7070403@...626...> <4FCA1E37.6090407@...1...> Message-ID: <4FCA229D.4000608@...626...> ???? 2/6/2012 17:07, ?/? Beno?t Minisini ??????: > Le 02/06/2012 07:13, Demosthenes Koptsis a ?crit : >> Hello list, >> >> i want to ask if there is a future plan to implement Templates in Gambas >> like .net >> >> example >> >> http://msdn.microsoft.com/en-us/library/6sh2ey19.aspx#Y0 >> >> 'Declaration >> _ >> Public Class List(Of T) _ >> Implements IList(Of T), ICollection(Of T), _ >> IEnumerable(Of T), IList, ICollection, IEnumerable >> > I have no plan to implement templates at the moment. Maybe in the > future, I don't know. > > There is already a rudimentary template mechanism inside the interpreter > to implement arrays of a specific class. But I don't think it can be > generalized. > > Regards, > ok, it would been nice feature for a future release. From gambas at ...2524... Sat Jun 2 17:01:53 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 02 Jun 2012 15:01:53 +0000 Subject: [Gambas-user] Issue 253 in gambas: GTK++ toolkit only In-Reply-To: <1-6813199134517018827-16987846535652209861-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-16987846535652209861-gambas=googlecode.com@...2524...> <0-6813199134517018827-16987846535652209861-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-16987846535652209861-gambas=googlecode.com@...2524...> Comment #2 on issue 253 by benoit.m... at ...626...: GTK++ toolkit only http://code.google.com/p/gambas/issues/detail?id=253 So there is no bug? From emil.lenngren at ...626... Sat Jun 2 17:04:19 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Sat, 2 Jun 2012 17:04:19 +0200 Subject: [Gambas-user] Templates In-Reply-To: <4FCA229D.4000608@...626...> References: <4FC9A10A.7070403@...626...> <4FCA1E37.6090407@...1...> <4FCA229D.4000608@...626...> Message-ID: That .net thing is generics, not templates. C++ has real templates, i.e. different versions of the code is compiled for each template parameters. In java and .net generics, only one version of the code is compiled, and in java, generics are only "syntax sugar" for casting things to and from the "Object" base class. In Gambas you can use the Variant datatype for similar purposes. For example, the Collection class can be used with any datatype because it's only storing Variants. /Emil 2012/6/2 Demosthenes Koptsis > ???? 2/6/2012 17:07, ?/? Beno?t Minisini ??????: > > Le 02/06/2012 07:13, Demosthenes Koptsis a ?crit : > >> Hello list, > >> > >> i want to ask if there is a future plan to implement Templates in Gambas > >> like .net > >> > >> example > >> > >> http://msdn.microsoft.com/en-us/library/6sh2ey19.aspx#Y0 > >> > >> 'Declaration > >> _ > >> Public Class List(Of T) _ > >> Implements IList(Of T), ICollection(Of T), _ > >> IEnumerable(Of T), IList, ICollection, IEnumerable > >> > > I have no plan to implement templates at the moment. Maybe in the > > future, I don't know. > > > > There is already a rudimentary template mechanism inside the interpreter > > to implement arrays of a specific class. But I don't think it can be > > generalized. > > > > Regards, > > > ok, it would been nice feature for a future release. > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From adrien.prokopowicz at ...626... Sat Jun 2 19:08:27 2012 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sat, 02 Jun 2012 19:08:27 +0200 Subject: [Gambas-user] gb.qt4 compilation time Message-ID: <3050501.EirOWOUXts@...2823...> Hi all, Since a few weeks I found that the gb.qt4 component takes a lot of time to compile. I was wondering why and I found that there were a lot of #includes in CWindow.h (as in many other .h files) : #include #include #include #include #include #include #include #include #include #include #include #include #include ... but in the whole CWindow.h file I haven't found any reference to QMoveEvent, QCloseEvent, QMainWindow, QMenuBar, QPushButton ... and others. So my question is : why include all these files ? Is there some hidden stuff or other things that I don't know ? :-) Regards, Adrien. From gambas at ...1... Sat Jun 2 19:31:25 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 02 Jun 2012 19:31:25 +0200 Subject: [Gambas-user] gb.qt4 compilation time In-Reply-To: <3050501.EirOWOUXts@...2823...> References: <3050501.EirOWOUXts@...2823...> Message-ID: <4FCA4DED.9040504@...1...> Le 02/06/2012 19:08, Adrien Prokopowicz a ?crit : > Hi all, > > Since a few weeks I found that the gb.qt4 component takes a lot of time to > compile. I was wondering why and I found that there were a lot of #includes in > CWindow.h (as in many other .h files) : > > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > > ... but in the whole CWindow.h file I haven't found any reference to > QMoveEvent, QCloseEvent, QMainWindow, QMenuBar, QPushButton ... and others. > > So my question is : why include all these files ? Is there some hidden stuff or > other things that I don't know ? :-) > > Regards, > Adrien. > You can try to remove some of them and see if it compiles. I never checked that. Many of these includes were added by the Qt3 -> Qt4 converter when gb.qt was transformed into gb.qt4. Regards, -- Beno?t Minisini From ea7dfh at ...2382... Sat Jun 2 19:48:00 2012 From: ea7dfh at ...2382... (Jesus) Date: Sat, 02 Jun 2012 19:48:00 +0200 Subject: [Gambas-user] Installing runtime in Centos6 In-Reply-To: <1338640887.30926.15.camel@...40...> References: <4FCA0112.1020909@...2382...> <1338640887.30926.15.camel@...40...> Message-ID: <4FCA51D0.9080302@...2382...> El 02/06/12 14:41, Bruce escribi?: > On Sat, 2012-06-02 at 14:03 +0200, Jesus wrote: >> Hi all >> >> Well, a friend of mine is running into problems to have the Gambas3 >> runtime installed on a VPS server running Centos6. >> >> It seems to be a kind of mismatch with libc6 versions, so if someone >> have a clue about what's going on here, he will be grateful. >> >> This is a grep for libc related packages currently on that system: > A grep of what? Mmm, actually I don't know where this list come from... > >> >> glibc-devel-2.5-81.el5_8.2 >> compat-glibc-headers-2.3.4-2.26 >> libcap-devel-1.10-26 >> compat-libcom_err-1.0-7 >> glibc-2.5-81.el5_8.2 >> libcap-1.10-26 >> glibc-2.5-81.el5_8.2 >> glibc-devel-2.5-81.el5_8.2 >> compat-glibc-2.3.4-2.26 >> libcroco-0.6.1-2.1 >> glibc-headers-2.5-81.el5_8.2 >> libc-client-2004g-2.2.1 >> libcroco-devel-0.6.1-2.1 >> glibc-common-2.5-81.el5_8.2 >> >> Now, when trying to install the rpm package: > which rpm package? where did it come from? Fedora what/ which repo? >> >> rpm -i server/gambas3-runtime.rpm >> error: Failed dependencies: >> libc.so.6(GLIBC_2.14)(64bit) is needed by >> gambas3-runtime-3.1.1-2.fc18.x86_64 > > fc18??? I thought fc17 was the latest stable release. This looks a > little bit experimental. >> >> Yes, it seems he's using the Fedora rpm package, but this might not be a >> problem. >> >> Is there any chance to get this solved, or perhaps trying to compile >> from sources is the best bet? >> >> Best regards >> > > locate is better than trying to grep "who-knows-what" > > locate lib/libc > > on mine shows that there is a /lib/libc.so.6 > and > > file /lib/libc.so.6 > > shows that it is a symbolic link to 'libc-2.12.so' i.e. the actual > library in /lib > > > Using foreign binaries is a game of Russian roulette, the only chances > you have are "pure dumb luck" or a great deal of checking every little > detail before pulling that trigger. > > Good luck! > > Bruce You're right. That's the same advice I just gave him. I will move your questions to my friend and I will be back with more information. Thanks, Bruce -- Jesus Guardon From beckaja1 at ...626... Sat Jun 2 20:59:30 2012 From: beckaja1 at ...626... (b3tchi) Date: Sat, 2 Jun 2012 11:59:30 -0700 (PDT) Subject: [Gambas-user] cant start Gambas3 as user Message-ID: <33950352.post@...1379...> Hi I' m struggling with error during start of gambas3. Welcome screen shows but in second after that a get this message box: This application has raised an unexpected error and must abort. [13] Null object. Project.IsAdded.5122 this problems apears just when i try to run Gambas3 as user when i run it as root everything is working. First time I try to compile it by my self and for the second time i installed gambas3 from PPA but get the same problem and for the last time i try to install gambas3 on different pc with same Setup Kubuntu 12.10 KDE 4.8.3 but everytime i getting same error. Please can you help me with that. Where should be the problem? anyone has the same setup working ? Thanks for any advice b3tchi -- View this message in context: http://old.nabble.com/cant-start-Gambas3-as-user-tp33950352p33950352.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Jun 2 21:05:12 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 02 Jun 2012 21:05:12 +0200 Subject: [Gambas-user] cant start Gambas3 as user In-Reply-To: <33950352.post@...1379...> References: <33950352.post@...1379...> Message-ID: <4FCA63E8.20407@...1...> Le 02/06/2012 20:59, b3tchi a ?crit : > > Hi > I' m struggling with error during start of gambas3. Welcome screen shows but > in second after that a get this message box: > > This application has raised an unexpected > error and must abort. > > [13] Null object. > Project.IsAdded.5122 > > this problems apears just when i try to run Gambas3 as user when i run it as > root everything is working. > > First time I try to compile it by my self and for the second time i > installed gambas3 from PPA but get the same problem and for the last time i > try to install gambas3 on different pc with same Setup Kubuntu 12.10 KDE > 4.8.3 > but everytime i getting same error. > > Please can you help me with that. Where should be the problem? anyone has > the same setup working ? > Thanks for any advice > b3tchi Please start gambas3 from the console and provide the full error message with the stack backtrace. Thanks. -- Beno?t Minisini From gambas at ...2524... Sat Jun 2 21:15:01 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 02 Jun 2012 19:15:01 +0000 Subject: [Gambas-user] Issue 249 in gambas: cell height in gridrow can not be set to -1 for autoheight In-Reply-To: <2-6813199134517018827-17894289632802938917-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-17894289632802938917-gambas=googlecode.com@...2524...> <0-6813199134517018827-17894289632802938917-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-17894289632802938917-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Type-Bug Type-Enhancement Comment #3 on issue 249 by benoit.m... at ...626...: cell height in gridrow can not be set to -1 for autoheight http://code.google.com/p/gambas/issues/detail?id=249 (No comment was entered for this change.) From gambas at ...2524... Sat Jun 2 21:16:01 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 02 Jun 2012 19:16:01 +0000 Subject: [Gambas-user] Issue 249 in gambas: cell height in gridrow can not be set to -1 for autoheight In-Reply-To: <3-6813199134517018827-17894289632802938917-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-17894289632802938917-gambas=googlecode.com@...2524...> <0-6813199134517018827-17894289632802938917-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-17894289632802938917-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #4 on issue 249 by benoit.m... at ...626...: cell height in gridrow can not be set to -1 for autoheight http://code.google.com/p/gambas/issues/detail?id=249 Fixed in revision #4804. Now setting a row height to -1 makes it fit its contents. From gambas at ...2524... Sat Jun 2 21:17:22 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 02 Jun 2012 19:17:22 +0000 Subject: [Gambas-user] Issue 71 in gambas: Signal #11 In-Reply-To: <6-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> References: <6-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> <0-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> Message-ID: <7-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> Comment #7 on issue 71 by benoit.m... at ...626...: Signal #11 http://code.google.com/p/gambas/issues/detail?id=71 Hi, Do you still have the crash? From beckaja1 at ...626... Sat Jun 2 21:20:54 2012 From: beckaja1 at ...626... (b3tchi) Date: Sat, 2 Jun 2012 12:20:54 -0700 (PDT) Subject: [Gambas-user] cant start Gambas3 as user In-Reply-To: <4FCA63E8.20407@...1...> References: <33950352.post@...1379...> <4FCA63E8.20407@...1...> Message-ID: <33950709.post@...1379...> here is the console b3tchi at ...2858...:~/Documents$ gambas3 gb.qt4: warning: unable to load Qt translation: en_US.UTF-8 Project.IsAdded.5122: #13: Null object 1: FWelcome.Run.33 2: Project.Main.282 b3tchi at ...2858...:~/Documents$ Beno?t Minisini wrote: > > Le 02/06/2012 20:59, b3tchi a ?crit : >> >> Hi >> I' m struggling with error during start of gambas3. Welcome screen shows >> but >> in second after that a get this message box: >> >> This application has raised an unexpected >> error and must abort. >> >> [13] Null object. >> Project.IsAdded.5122 >> >> this problems apears just when i try to run Gambas3 as user when i run it >> as >> root everything is working. >> >> First time I try to compile it by my self and for the second time i >> installed gambas3 from PPA but get the same problem and for the last time >> i >> try to install gambas3 on different pc with same Setup Kubuntu 12.10 KDE >> 4.8.3 >> but everytime i getting same error. >> >> Please can you help me with that. Where should be the problem? anyone has >> the same setup working ? >> Thanks for any advice >> b3tchi > > Please start gambas3 from the console and provide the full error message > with the stack backtrace. > > Thanks. > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > b3tchi at ...2858...:~/Documents$ gambas3 gb.qt4: warning: unable to load Qt translation: en_US.UTF-8 Project.IsAdded.5122: #13: Null object 1: FWelcome.Run.33 2: Project.Main.282 b3tchi at ...2858...:~/Documents$ -- View this message in context: http://old.nabble.com/cant-start-Gambas3-as-user-tp33950352p33950709.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Jun 2 21:31:16 2012 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Sat, 02 Jun 2012 21:31:16 +0200 Subject: [Gambas-user] cant start Gambas3 as user In-Reply-To: <33950709.post@...1379...> References: <33950352.post@...1379...> <4FCA63E8.20407@...1...> <33950709.post@...1379...> Message-ID: <4FCA6A04.2030500@...1...> Le 02/06/2012 21:20, b3tchi a ?crit : > > here is the console > > b3tchi at ...2858...:~/Documents$ gambas3 > gb.qt4: warning: unable to load Qt translation: en_US.UTF-8 > Project.IsAdded.5122: #13: Null object > 1: FWelcome.Run.33 > 2: Project.Main.282 > b3tchi at ...2858...:~/Documents$ > And you didn't told which version of Gambas 3 you are using! -- Beno?t Minisini From beckaja1 at ...626... Sat Jun 2 21:39:26 2012 From: beckaja1 at ...626... (b3tchi) Date: Sat, 2 Jun 2012 12:39:26 -0700 (PDT) Subject: [Gambas-user] cant start Gambas3 as user In-Reply-To: <4FCA6A04.2030500@...1...> References: <33950352.post@...1379...> <4FCA63E8.20407@...1...> <33950709.post@...1379...> <4FCA6A04.2030500@...1...> Message-ID: <33950791.post@...1379...> Beno?t Minisini wrote: > > Le 02/06/2012 21:20, b3tchi a ?crit : >> >> here is the console >> >> b3tchi at ...2858...:~/Documents$ gambas3 >> gb.qt4: warning: unable to load Qt translation: en_US.UTF-8 >> Project.IsAdded.5122: #13: Null object >> 1: FWelcome.Run.33 >> 2: Project.Main.282 >> b3tchi at ...2858...:~/Documents$ >> > > And you didn't told which version of Gambas 3 you are using! > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > its the latest version 3.1.1 in both cases (ppa and manual compilation with checkinstall) ppa is https://launchpad.net/~nemh/+archive/gambas3/+packages https://launchpad.net/~nemh/+archive/gambas3/+packages -- View this message in context: http://old.nabble.com/cant-start-Gambas3-as-user-tp33950352p33950791.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Jun 2 21:43:36 2012 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Sat, 02 Jun 2012 21:43:36 +0200 Subject: [Gambas-user] cant start Gambas3 as user In-Reply-To: <33950791.post@...1379...> References: <33950352.post@...1379...> <4FCA63E8.20407@...1...> <33950709.post@...1379...> <4FCA6A04.2030500@...1...> <33950791.post@...1379...> Message-ID: <4FCA6CE8.20904@...1...> Le 02/06/2012 21:39, b3tchi a ?crit : > > its the latest version 3.1.1 in both cases (ppa and manual compilation with > checkinstall) > ppa is https://launchpad.net/~nemh/+archive/gambas3/+packages > https://launchpad.net/~nemh/+archive/gambas3/+packages > The bug may have been fixed in /trunk. So if eventually you can compile it and tell me, it would be cool. Regards, -- Beno?t Minisini From gambas at ...2524... Sat Jun 2 23:27:59 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 02 Jun 2012 21:27:59 +0000 Subject: [Gambas-user] Issue 253 in gambas: GTK++ toolkit only In-Reply-To: <2-6813199134517018827-16987846535652209861-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-16987846535652209861-gambas=googlecode.com@...2524...> <0-6813199134517018827-16987846535652209861-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-16987846535652209861-gambas=googlecode.com@...2524...> Comment #3 on issue 253 by xakep... at ...626...: GTK++ toolkit only http://code.google.com/p/gambas/issues/detail?id=253 No, there is. Altough the project doesn't use the gb.gui and gb.qt4 they are still required for it to run. Another thing is that I am conused by the gambas3-gb-form and gambas3-gb-form-stock packages, if I try to install gambas3-gb-form then the gambas3-gb-gui package is gragged along with gambas3-gb-qt4 and gambas3-gb-gui which installes the qt4 tollkit and the whole thing is 100MB total. Isn't the gambas3-form-stock package sufficent when using only one toolkit? If so then the problem is probably with the packages itself - probably the package was not "split" properly. I hope I made myself clear, should you need more information I will provide it From gambas at ...2524... Sun Jun 3 00:46:53 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 02 Jun 2012 22:46:53 +0000 Subject: [Gambas-user] Issue 253 in gambas: GTK++ toolkit only In-Reply-To: <3-6813199134517018827-16987846535652209861-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-16987846535652209861-gambas=googlecode.com@...2524...> <0-6813199134517018827-16987846535652209861-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-16987846535652209861-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #4 on issue 253 by benoit.m... at ...626...: GTK++ toolkit only http://code.google.com/p/gambas/issues/detail?id=253 OK. There are bugs in the binary packages apparently. gb.gui and gb.form must not depend on gb.qt4. I will fix the Gambas 3 packaging specifications and post a mail about that on the mailing list. From vuott at ...325... Sun Jun 3 00:48:16 2012 From: vuott at ...325... (Ru Vuott) Date: Sat, 2 Jun 2012 23:48:16 +0100 (BST) Subject: [Gambas-user] "shared library" (with inline assembler code) is slow... In-Reply-To: <4FBD7194.7090602@...1...> Message-ID: <1338677296.57238.YahooMailClassic@...2695...> Hello Benoit, simply for a test I've made this simple C "shared library" .so (with inline assembler code). I noted that if I use it from a Gambas program (with Extern) it's very slow. Why? static unsigned int car asm("raxregistro"); static unsigned int cbr asm("rbxregistro"); int hello(int numero) { cbr=numero; asm("mov rbxregistro(%rip),%eax"); asm("ciclo:"); asm("dec %eax"); asm("jne ciclo"); asm("mov %eax,raxregistro(%rip)"); return car; } Bye From emil.lenngren at ...626... Sun Jun 3 01:02:46 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Sun, 3 Jun 2012 01:02:46 +0200 Subject: [Gambas-user] "shared library" (with inline assembler code) is slow... In-Reply-To: <1338677296.57238.YahooMailClassic@...2695...> References: <4FBD7194.7090602@...1...> <1338677296.57238.YahooMailClassic@...2695...> Message-ID: Is the function itself slow or is it slow because of the call overhead of libffi? /Emil 2012/6/3 Ru Vuott > Hello Benoit, > > simply for a test I've made this simple C "shared library" .so (with > inline assembler code). I noted that if I use it from a Gambas program > (with Extern) it's very slow. Why? > > static unsigned int car asm("raxregistro"); > static unsigned int cbr asm("rbxregistro"); > int hello(int numero) { > cbr=numero; > asm("mov rbxregistro(%rip),%eax"); > asm("ciclo:"); > asm("dec %eax"); > asm("jne ciclo"); > asm("mov %eax,raxregistro(%rip)"); > return car; > } > > Bye > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Sun Jun 3 01:05:55 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 02 Jun 2012 23:05:55 +0000 Subject: [Gambas-user] Issue 253 in gambas: GTK++ toolkit only In-Reply-To: <4-6813199134517018827-16987846535652209861-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-16987846535652209861-gambas=googlecode.com@...2524...> <0-6813199134517018827-16987846535652209861-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-16987846535652209861-gambas=googlecode.com@...2524...> Comment #5 on issue 253 by xakep... at ...626...: GTK++ toolkit only http://code.google.com/p/gambas/issues/detail?id=253 OK. Thank you for your time! From vuott at ...325... Sun Jun 3 01:09:32 2012 From: vuott at ...325... (Ru Vuott) Date: Sun, 3 Jun 2012 00:09:32 +0100 (BST) Subject: [Gambas-user] "shared library" (with inline assembler code) is slow... In-Reply-To: Message-ID: <1338678572.68508.YahooMailClassic@...2780...> If I run that code via script in my Terminal, passing to it a value of 1 billion (it has to count from 0 to 1 billion), I have a result about 60 millisecond. If I create a shared library, and I use it in Gambas (...passing 1 billion...), in gambas console I have about 655 millisecond !!! :-O ...I do not understand why.... --- Dom 3/6/12, Emil Lenngren ha scritto: > Da: Emil Lenngren > Oggetto: Re: [Gambas-user] "shared library" (with inline assembler code) is slow... > A: "mailing list for gambas users" > Data: Domenica 3 giugno 2012, 01:02 > Is the function itself slow or is it > slow because of the call overhead of > libffi? > > /Emil > > 2012/6/3 Ru Vuott > > > Hello Benoit, > > > > simply for a test I've made this simple C "shared > library" .so (with > > inline assembler code). I noted that if I use it from a > Gambas program > > (with Extern) it's very slow. Why? > > > > static unsigned int car asm("raxregistro"); > > static unsigned int cbr asm("rbxregistro"); > > int hello(int numero) { > > cbr=numero; > > asm("mov rbxregistro(%rip),%eax"); > > asm("ciclo:"); > > asm("dec %eax"); > > asm("jne ciclo"); > > asm("mov %eax,raxregistro(%rip)"); > > return car; > > } > > > > Bye > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's > security and > > threat landscape has changed and how IT managers can > respond. Discussions > > will include endpoint security, mobile security and the > latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's > security and > threat landscape has changed and how IT managers can > respond. Discussions > will include endpoint security, mobile security and the > latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From emil.lenngren at ...626... Sun Jun 3 01:10:48 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Sun, 3 Jun 2012 01:10:48 +0200 Subject: [Gambas-user] "shared library" (with inline assembler code) is slow... In-Reply-To: <1338678572.68508.YahooMailClassic@...2780...> References: <1338678572.68508.YahooMailClassic@...2780...> Message-ID: What happens if you put 2 billions instead? 2012/6/3 Ru Vuott > If I run that code via script in my Terminal, passing to it a value of 1 > billion (it has to count from 0 to 1 billion), I have a result about 60 > millisecond. > If I create a shared library, and I use it in Gambas (...passing 1 > billion...), in gambas console I have about 655 millisecond !!! :-O > > ...I do not understand why.... > > > > > --- Dom 3/6/12, Emil Lenngren ha scritto: > > > Da: Emil Lenngren > > Oggetto: Re: [Gambas-user] "shared library" (with inline assembler code) > is slow... > > A: "mailing list for gambas users" > > Data: Domenica 3 giugno 2012, 01:02 > > Is the function itself slow or is it > > slow because of the call overhead of > > libffi? > > > > /Emil > > > > 2012/6/3 Ru Vuott > > > > > Hello Benoit, > > > > > > simply for a test I've made this simple C "shared > > library" .so (with > > > inline assembler code). I noted that if I use it from a > > Gambas program > > > (with Extern) it's very slow. Why? > > > > > > static unsigned int car asm("raxregistro"); > > > static unsigned int cbr asm("rbxregistro"); > > > int hello(int numero) { > > > cbr=numero; > > > asm("mov rbxregistro(%rip),%eax"); > > > asm("ciclo:"); > > > asm("dec %eax"); > > > asm("jne ciclo"); > > > asm("mov %eax,raxregistro(%rip)"); > > > return car; > > > } > > > > > > Bye > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Live Security Virtual Conference > > > Exclusive live event will cover all the ways today's > > security and > > > threat landscape has changed and how IT managers can > > respond. Discussions > > > will include endpoint security, mobile security and the > > latest in malware > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's > > security and > > threat landscape has changed and how IT managers can > > respond. Discussions > > will include endpoint security, mobile security and the > > latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Jun 3 01:20:10 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 03 Jun 2012 01:20:10 +0200 Subject: [Gambas-user] Problems with current Gambas 3 packaging Message-ID: <4FCA9FAA.5000806@...1...> Hi, There are problems with current gambas 3 packaging. So I have updated the "How to package Gambas" page on the wiki, that describes the packaging specifications. The changes are: * gb.gui, gb.gui.opengl are part of gambas3-runtime, and do not depend on any other package. These components were incorrectly put it their own package before. * The list of all packages has been updated. * Each package of this list has now a list of other packages they depend on. If you are making Gambas 3 binary packages, please review these specifications again, and tell me what you think about them, if some problems arise... Thanks in advance! -- Beno?t Minisini From vuott at ...325... Sun Jun 3 01:47:58 2012 From: vuott at ...325... (Ru Vuott) Date: Sun, 3 Jun 2012 00:47:58 +0100 (BST) Subject: [Gambas-user] "shared library" (with inline assembler code) is slow... In-Reply-To: Message-ID: <1338680878.51668.YahooMailClassic@...2780...> Excuse me, Emil, I have written a mistake: well, if I send 1 billion with script in terminal, I receive about: ms 570 with shared library in gambas I confirm about. 655 Difference: ms 100 --- Dom 3/6/12, Emil Lenngren ha scritto: > Da: Emil Lenngren > Oggetto: Re: [Gambas-user] "shared library" (with inline assembler code) is slow... > A: "mailing list for gambas users" > Data: Domenica 3 giugno 2012, 01:10 > What happens if you put 2 billions > instead? > > 2012/6/3 Ru Vuott > > > If I run that code via script in my Terminal, passing > to it a value of 1 > > billion (it has to count from 0 to 1 billion), I have a > result about 60 > > millisecond. > > If I create a shared library, and I use it in Gambas > (...passing 1 > > billion...), in gambas console I have about 655 > millisecond !!!? :-O > > > > ...I do not understand why.... > > > > > > > > > > --- Dom 3/6/12, Emil Lenngren > ha scritto: > > > > > Da: Emil Lenngren > > > Oggetto: Re: [Gambas-user] "shared library" (with > inline assembler code) > > is slow... > > > A: "mailing list for gambas users" > > > Data: Domenica 3 giugno 2012, 01:02 > > > Is the function itself slow or is it > > > slow because of the call overhead of > > > libffi? > > > > > > /Emil > > > > > > 2012/6/3 Ru Vuott > > > > > > > Hello Benoit, > > > > > > > > simply for a test I've made this simple C > "shared > > > library" .so (with > > > > inline assembler code). I noted that if I use > it from a > > > Gambas program > > > > (with Extern) it's very slow. Why? > > > > > > > > static unsigned int car asm("raxregistro"); > > > > static unsigned int cbr asm("rbxregistro"); > > > > int hello(int numero) { > > > > cbr=numero; > > > > asm("mov rbxregistro(%rip),%eax"); > > > > asm("ciclo:"); > > > > asm("dec %eax"); > > > > asm("jne ciclo"); > > > > asm("mov %eax,raxregistro(%rip)"); > > > > return car; > > > > } > > > > > > > > Bye > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Live Security Virtual Conference > > > > Exclusive live event will cover all the ways > today's > > > security and > > > > threat landscape has changed and how IT > managers can > > > respond. Discussions > > > > will include endpoint security, mobile > security and the > > > latest in malware > > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > ------------------------------------------------------------------------------ > > > Live Security Virtual Conference > > > Exclusive live event will cover all the ways > today's > > > security and > > > threat landscape has changed and how IT managers > can > > > respond. Discussions > > > will include endpoint security, mobile security > and the > > > latest in malware > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's > security and > > threat landscape has changed and how IT managers can > respond. Discussions > > will include endpoint security, mobile security and the > latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's > security and > threat landscape has changed and how IT managers can > respond. Discussions > will include endpoint security, mobile security and the > latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From emil.lenngren at ...626... Sun Jun 3 01:54:49 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Sun, 3 Jun 2012 01:54:49 +0200 Subject: [Gambas-user] "shared library" (with inline assembler code) is slow... In-Reply-To: <1338680878.51668.YahooMailClassic@...2780...> References: <1338680878.51668.YahooMailClassic@...2780...> Message-ID: ... And how big is the difference if you put in 2 billion instead? :) 2012/6/3 Ru Vuott > Excuse me, Emil, I have written a mistake: > well, if I send 1 billion with script in terminal, I receive about: ms 570 > > with shared library in gambas I confirm about. 655 > > > Difference: ms 100 > > > > > --- Dom 3/6/12, Emil Lenngren ha scritto: > > > Da: Emil Lenngren > > Oggetto: Re: [Gambas-user] "shared library" (with inline assembler code) > is slow... > > A: "mailing list for gambas users" > > Data: Domenica 3 giugno 2012, 01:10 > > What happens if you put 2 billions > > instead? > > > > 2012/6/3 Ru Vuott > > > > > If I run that code via script in my Terminal, passing > > to it a value of 1 > > > billion (it has to count from 0 to 1 billion), I have a > > result about 60 > > > millisecond. > > > If I create a shared library, and I use it in Gambas > > (...passing 1 > > > billion...), in gambas console I have about 655 > > millisecond !!! :-O > > > > > > ...I do not understand why.... > > > > > > > > > > > > > > > --- Dom 3/6/12, Emil Lenngren > > ha scritto: > > > > > > > Da: Emil Lenngren > > > > Oggetto: Re: [Gambas-user] "shared library" (with > > inline assembler code) > > > is slow... > > > > A: "mailing list for gambas users" < > gambas-user at lists.sourceforge.net> > > > > Data: Domenica 3 giugno 2012, 01:02 > > > > Is the function itself slow or is it > > > > slow because of the call overhead of > > > > libffi? > > > > > > > > /Emil > > > > > > > > 2012/6/3 Ru Vuott > > > > > > > > > Hello Benoit, > > > > > > > > > > simply for a test I've made this simple C > > "shared > > > > library" .so (with > > > > > inline assembler code). I noted that if I use > > it from a > > > > Gambas program > > > > > (with Extern) it's very slow. Why? > > > > > > > > > > static unsigned int car asm("raxregistro"); > > > > > static unsigned int cbr asm("rbxregistro"); > > > > > int hello(int numero) { > > > > > cbr=numero; > > > > > asm("mov rbxregistro(%rip),%eax"); > > > > > asm("ciclo:"); > > > > > asm("dec %eax"); > > > > > asm("jne ciclo"); > > > > > asm("mov %eax,raxregistro(%rip)"); > > > > > return car; > > > > > } > > > > > > > > > > Bye > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > Live Security Virtual Conference > > > > > Exclusive live event will cover all the ways > > today's > > > > security and > > > > > threat landscape has changed and how IT > > managers can > > > > respond. Discussions > > > > > will include endpoint security, mobile > > security and the > > > > latest in malware > > > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Live Security Virtual Conference > > > > Exclusive live event will cover all the ways > > today's > > > > security and > > > > threat landscape has changed and how IT managers > > can > > > > respond. Discussions > > > > will include endpoint security, mobile security > > and the > > > > latest in malware > > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Live Security Virtual Conference > > > Exclusive live event will cover all the ways today's > > security and > > > threat landscape has changed and how IT managers can > > respond. Discussions > > > will include endpoint security, mobile security and the > > latest in malware > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's > > security and > > threat landscape has changed and how IT managers can > > respond. Discussions > > will include endpoint security, mobile security and the > > latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Sun Jun 3 02:14:43 2012 From: vuott at ...325... (Ru Vuott) Date: Sun, 3 Jun 2012 01:14:43 +0100 (BST) Subject: [Gambas-user] "shared library" (with inline assembler code) is slow... In-Reply-To: Message-ID: <1338682483.80099.YahooMailClassic@...2758...> script = ms 1130 shared library = ms 1300 --- Dom 3/6/12, Emil Lenngren ha scritto: > Da: Emil Lenngren > Oggetto: Re: [Gambas-user] "shared library" (with inline assembler code) is slow... > A: "mailing list for gambas users" > Data: Domenica 3 giugno 2012, 01:54 > ... And how big is the difference if > you put in 2 billion instead? :) > > 2012/6/3 Ru Vuott > > > Excuse me, Emil, I have written a mistake: > > well, if I send 1 billion with script in terminal, I > receive about: ms 570 > > > > with shared library in gambas I confirm about. 655 > > > > > > Difference: ms 100 > > > > > > > > > > --- Dom 3/6/12, Emil Lenngren > ha scritto: > > > > > Da: Emil Lenngren > > > Oggetto: Re: [Gambas-user] "shared library" (with > inline assembler code) > > is slow... > > > A: "mailing list for gambas users" > > > Data: Domenica 3 giugno 2012, 01:10 > > > What happens if you put 2 billions > > > instead? > > > > > > 2012/6/3 Ru Vuott > > > > > > > If I run that code via script in my Terminal, > passing > > > to it a value of 1 > > > > billion (it has to count from 0 to 1 > billion), I have a > > > result about 60 > > > > millisecond. > > > > If I create a shared library, and I use it in > Gambas > > > (...passing 1 > > > > billion...), in gambas console I have about > 655 > > > millisecond !!!? :-O > > > > > > > > ...I do not understand why.... > > > > > > > > > > > > > > > > > > > > --- Dom 3/6/12, Emil Lenngren > > > ha scritto: > > > > > > > > > Da: Emil Lenngren > > > > > Oggetto: Re: [Gambas-user] "shared > library" (with > > > inline assembler code) > > > > is slow... > > > > > A: "mailing list for gambas users" < > > gambas-user at lists.sourceforge.net> > > > > > Data: Domenica 3 giugno 2012, 01:02 > > > > > Is the function itself slow or is it > > > > > slow because of the call overhead of > > > > > libffi? > > > > > > > > > > /Emil > > > > > > > > > > 2012/6/3 Ru Vuott > > > > > > > > > > > Hello Benoit, > > > > > > > > > > > > simply for a test I've made this > simple C > > > "shared > > > > > library" .so (with > > > > > > inline assembler code). I noted > that if I use > > > it from a > > > > > Gambas program > > > > > > (with Extern) it's very slow. Why? > > > > > > > > > > > > static unsigned int car > asm("raxregistro"); > > > > > > static unsigned int cbr > asm("rbxregistro"); > > > > > > int hello(int numero) { > > > > > > cbr=numero; > > > > > > asm("mov rbxregistro(%rip),%eax"); > > > > > > asm("ciclo:"); > > > > > > asm("dec %eax"); > > > > > > asm("jne ciclo"); > > > > > > asm("mov %eax,raxregistro(%rip)"); > > > > > > return car; > > > > > > } > > > > > > > > > > > > Bye > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > Live Security Virtual Conference > > > > > > Exclusive live event will cover all > the ways > > > today's > > > > > security and > > > > > > threat landscape has changed and > how IT > > > managers can > > > > > respond. Discussions > > > > > > will include endpoint security, > mobile > > > security and the > > > > > latest in malware > > > > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > > _______________________________________________ > > > > > > Gambas-user mailing list > > > > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > Live Security Virtual Conference > > > > > Exclusive live event will cover all the > ways > > > today's > > > > > security and > > > > > threat landscape has changed and how IT > managers > > > can > > > > > respond. Discussions > > > > > will include endpoint security, mobile > security > > > and the > > > > > latest in malware > > > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Live Security Virtual Conference > > > > Exclusive live event will cover all the ways > today's > > > security and > > > > threat landscape has changed and how IT > managers can > > > respond. Discussions > > > > will include endpoint security, mobile > security and the > > > latest in malware > > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > ------------------------------------------------------------------------------ > > > Live Security Virtual Conference > > > Exclusive live event will cover all the ways > today's > > > security and > > > threat landscape has changed and how IT managers > can > > > respond. Discussions > > > will include endpoint security, mobile security > and the > > > latest in malware > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's > security and > > threat landscape has changed and how IT managers can > respond. Discussions > > will include endpoint security, mobile security and the > latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's > security and > threat landscape has changed and how IT managers can > respond. Discussions > will include endpoint security, mobile security and the > latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Sun Jun 3 02:21:52 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 03 Jun 2012 00:21:52 +0000 Subject: [Gambas-user] Issue 251 in gambas: Fedora 17 Required Development Packages In-Reply-To: <0-6813199134517018827-8162456778739069214-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-8162456778739069214-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-8162456778739069214-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -Version Version-TRUNK Comment #1 on issue 251 by benoit.m... at ...626...: Fedora 17 Required Development Packages http://code.google.com/p/gambas/issues/detail?id=251 Done. From richard.j.walker at ...247... Sun Jun 3 02:24:42 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Sun, 3 Jun 2012 01:24:42 +0100 Subject: [Gambas-user] Window position error on applying stored "geometry" Message-ID: Using Gambas 3.1.1 as distributed with Mageia 2. I believe it may be somewhat patched as it includes Mageia in the packaging wizard distribution selection screen. I have a small front-end program for controlling jack_capture for which I have implemented a .conf settings file. Amongst other things, the settings file stores the last screen location/size. The entry in the .conf file may look like this: [Window] Geometry=[574,26,344,148,0] At startup the program will actually appear at 574,52. If this location is stored to the .conf file on exit then the next startup will put the window at 574,78. In general the window will always appear at a location 26 pixels below the "restored" setting. It is not, perhaps, a coincidence that the task-bar height is 26 pixels. If I create a settings .file entry like this: [Window] Geometry=[574,0,344,148,0] then the program will open with its window tucked up neatly below the task bar. The Fmain.Top value will, of course, be 26. Changing the task bar height to 32 will change all of the displacements from 26 to 32. So far, so good. If I can find the panel in the Desktop.Windows list then I can change my Settings file write procedure to incorporate the offset thus: Adjusted_Top = Fmain.Top - panel_height Settings["Window/Geometry"] = [Fmain.Left, Adjusted_Top, Fmain.Width, Fmain.Height, 0] That should solve the problem, but I am not clear as to why it is necessary. Why not use absolute screen locations and completely avoid the task bar issue? The observant among you may be wondering why I did not use the Write settings method. In fact I have used it but it causes a crash if the program is closed when it is on the second monitor. I can, however, use Settings.Read(Fmain, "Window") which will load the screen settings correctly, whichever screen is indicated by the X location. I was wondering if this is only an issue with Gambas 3 on the LXDE desktop, but I cannot test this as I am keeping this machine lean'n'mean; that means KDE4 and Gnome 3 are not allowed near it. Richard From gambas at ...1... Sun Jun 3 02:49:38 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 03 Jun 2012 02:49:38 +0200 Subject: [Gambas-user] New feature in Gambas 3 In-Reply-To: References: <4FB78ADB.3070800@...1...> <4FBA978A.4010608@...1...> <4FBD45B8.1040607@...1...> Message-ID: <4FCAB4A2.2020907@...1...> 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 > ======= Backtrace: ========= > /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f4d30bcc007] > ... Do you have the crash yet? -- Beno?t Minisini From bbruen at ...2308... Sun Jun 3 03:02:59 2012 From: bbruen at ...2308... (Bruce) Date: Sun, 03 Jun 2012 10:32:59 +0930 Subject: [Gambas-user] Window position error on applying stored "geometry" In-Reply-To: References: Message-ID: <1338685379.30926.21.camel@...40...> On Sun, 2012-06-03 at 01:24 +0100, RICHARD WALKER wrote: > Using Gambas 3.1.1 as distributed with Mageia 2. I believe it may be > somewhat patched as it includes Mageia in the packaging wizard > distribution selection screen. No, Mageia is in the original. > I have a small front-end program for controlling jack_capture for > which I have implemented a .conf settings file. Amongst other things, > the settings file stores the last screen location/size. The entry in > the .conf file may look like this: > [Window] > Geometry=[574,26,344,148,0] > > At startup the program will actually appear at 574,52. If this > location is stored to the .conf file on exit then the next startup > will put the window at 574,78. In general the window will always > appear at a location 26 pixels below the "restored" setting. > > It is not, perhaps, a coincidence that the task-bar height is 26 > pixels. If I create a settings .file entry like this: > [Window] > Geometry=[574,0,344,148,0] > > then the program will open with its window tucked up neatly below the > task bar. The Fmain.Top value will, of course, be 26. Changing the > task bar height to 32 will change all of the displacements from 26 to > 32. > > So far, so good. If I can find the panel in the Desktop.Windows list > then I can change my Settings file write procedure to incorporate the > offset thus: > > Adjusted_Top = Fmain.Top - panel_height > Settings["Window/Geometry"] = [Fmain.Left, Adjusted_Top, Fmain.Width, > Fmain.Height, 0] > > That should solve the problem, but I am not clear as to why it is > necessary. Why not use absolute screen locations and completely avoid > the task bar issue? > > The observant among you may be wondering why I did not use the Write > settings method. In fact I have used it but it causes a crash if the > program is closed when it is on the second monitor. I can, however, > use > > Settings.Read(Fmain, "Window") > > which will load the screen settings correctly, whichever screen is > indicated by the X location. > > I was wondering if this is only an issue with Gambas 3 on the LXDE > desktop, but I cannot test this as I am keeping this machine > lean'n'mean; that means KDE4 and Gnome 3 are not allowed near it. I'm with you there Richard! :-) I've been using LXDE since the first KDE4 debacle was released > Richard Now this is a wild guess, but are you running lxpanel at the top of the screen? There is an outstanding bug regarding this going back about 2 years or so, especially if it has the default name. I run mine down the left hand side and 1) Settings.Write and Settings.Read both work fine 2) The window does not move down the screen. I do remember such an effect happening with something else not gambas, so maybe??? Anyway the sun just came out in Strathalbyn and I'm off to lunch! So best of luck. Bruce From richard.j.walker at ...247... Sun Jun 3 04:15:02 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Sun, 3 Jun 2012 03:15:02 +0100 Subject: [Gambas-user] Window position error on applying stored "geometry" In-Reply-To: <1338685379.30926.21.camel@...40...> References: <1338685379.30926.21.camel@...40...> Message-ID: On 03/06/2012, Bruce wrote: > On Sun, 2012-06-03 at 01:24 +0100, RICHARD WALKER wrote: >> Using Gambas 3.1.1 as distributed with Mageia 2. I believe it may be >> somewhat patched as it includes Mageia in the packaging wizard >> distribution selection screen. > No, Mageia is in the original. Ah, OK. It wasn't in the Cauldron Gambas until very recently (a week or few). MGA2 went live last weekend. >> I was wondering if this is only an issue with Gambas 3 on the LXDE >> desktop, but I cannot test this as I am keeping this machine >> lean'n'mean; that means KDE4 and Gnome 3 are not allowed near it. > I'm with you there Richard! :-) I've been using LXDE since the first KDE4 > debacle was released I stayed with KDE 3 on Mandriva 2008.1 for many years. Discovering LXDE was "a good thing". We can only hope that packagers can keep their greedy fingers off it and resist the temptation to make it depend on bloatware like Pulseaudio. Sadly that is a forlorn hope for Mageia. When will people learn that slim, resource-efficient desktops might possibly be used on equipment which does not have the spare capacity for such frilly extras? > > Now this is a wild guess, but are you running lxpanel at the top of the > screen? There is an outstanding bug regarding this going back about 2 > years or so, especially if it has the default name. Yes and no. I have been running my "task bar" equivalent at the top of the screen since the mid- to late-eighties. Never got out of the habit. It seems my mouse muscles just expect it that way. On the other hand, my brother is running on a converted Jolibook with a ridiculously restricted screen height of 600! His lxpanel is like yours, down the left. Having re-written the settings writing routine to correct for the top lxpanel offset it suddenly occurred to me that it might creep right on his screen. > I run mine down the left hand side and > 1) Settings.Write and Settings.Read both work fine Ah, but have you tried it with a desktop spread across two screens? I had to change the writing method to work around the crash bug, but as it writes out a Geometry= string it can be read quite well with Settings.Read. > 2) The window does not move down the screen. > It would move right though - I tested it and modified my offset calculation to take account of vertical panels too. Happily, if the panel is on the right or at the bottom then no offset is necessary. So, now we have: Select Case True Case offset < 0 Settings["Window/Geometry"] = [Fmain.Left + offset, FMain.Top, Fmain.Width, Fmain.Height, 0] Case offset > 0 Settings["Window/Geometry"] = [Fmain.Left, FMain.Top - offset, Fmain.Width, Fmain.Height, 0] Case offset = 0 Settings["Window/Geometry"] = [Fmain.Left, FMain.Top, Fmain.Width, Fmain.Height, 0] End Select The offset parameter passed to the procedure is first negated for width offsets and zero is passed if either the panel's X>0 or Y>0. The height offset is passed as a positive parameter. > Anyway the sun just came out in Strathalbyn and I'm off to lunch! So > best of luck. > Bruce You are kidding, right? Do you know any girls called Sheila? Aren't national stereotypes a pain? "O wad some Pow'r the giftie gie us To see oursels as others see us" That only works if others see us in a clear, true light. Speaking of which, the sun'll be up here soon enough - time for bed. Richard From sundar_ima at ...251... Sun Jun 3 11:29:12 2012 From: sundar_ima at ...251... (sundar j) Date: 3 Jun 2012 09:29:12 -0000 Subject: [Gambas-user] =?utf-8?q?Delete/Remove_blank_line_from_text_file?= =?utf-8?q?=2E?= Message-ID: <20120603092912.15714.qmail@...2860...> 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 remove certain sentence then it becomes blank line. So how do i remove those blank lines? From beckaja1 at ...626... Sun Jun 3 11:33:59 2012 From: beckaja1 at ...626... (b3tchi) Date: Sun, 3 Jun 2012 02:33:59 -0700 (PDT) Subject: [Gambas-user] cant start Gambas3 as user In-Reply-To: <4FCA6CE8.20904@...1...> References: <33950352.post@...1379...> <4FCA63E8.20407@...1...> <33950709.post@...1379...> <4FCA6A04.2030500@...1...> <33950791.post@...1379...> <4FCA6CE8.20904@...1...> Message-ID: <33952543.post@...1379...> Beno?t Minisini wrote: > > Le 02/06/2012 21:39, b3tchi a ?crit : >> >> its the latest version 3.1.1 in both cases (ppa and manual compilation >> with >> checkinstall) >> ppa is https://launchpad.net/~nemh/+archive/gambas3/+packages >> https://launchpad.net/~nemh/+archive/gambas3/+packages >> > > The bug may have been fixed in /trunk. So if eventually you can compile > it and tell me, it would be cool. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > i tried compile&checkinstall gambas3 from svn 3.1.9 trunk but getting similar error first when i tried run as root get some another problem b3tchi at ...2858...:~/Documents/trunk$ sudo gambas3 [sudo] password for b3tchi: gb.qt4: warning: unable to load Qt translation: en_US.UTF-8 Error: "/var/tmp/kdecache-b3tchi" is owned by uid 1000 instead of uid 0. ** INTERNAL ERROR ** ** Cannot write into signal pipe: Bad file descriptor ** Program aborting. Sorry! :-( and when i'm trying run as user b3tchi at ...2858...:~/Documents/trunk$ gambas3 gb.qt4: warning: unable to load Qt translation: en_US.UTF-8 Project.IsAdded.5153: #13: Null object 1: FWelcome.Run.33 2: Project.Main.286 b3tchi at ...2858...:~/Documents/trunk$ -- View this message in context: http://old.nabble.com/cant-start-Gambas3-as-user-tp33950352p33952543.html Sent from the gambas-user mailing list archive at Nabble.com. From ea7dfh at ...2382... Sun Jun 3 11:56:42 2012 From: ea7dfh at ...2382... (Jesus) Date: Sun, 03 Jun 2012 11:56:42 +0200 Subject: [Gambas-user] Installing runtime in Centos6 In-Reply-To: <4FCA51D0.9080302@...2382...> References: <4FCA0112.1020909@...2382...> <1338640887.30926.15.camel@...40...> <4FCA51D0.9080302@...2382...> Message-ID: <4FCB34DA.6070101@...2382...> El 02/06/12 19:48, Jesus escribi?: > El 02/06/12 14:41, Bruce escribi?: >> On Sat, 2012-06-02 at 14:03 +0200, Jesus wrote: >>> Hi all >>> >>> Well, a friend of mine is running into problems to have the Gambas3 >>> runtime installed on a VPS server running Centos6. >>> >>> It seems to be a kind of mismatch with libc6 versions, so if someone >>> have a clue about what's going on here, he will be grateful. >>> >>> This is a grep for libc related packages currently on that system: >> A grep of what? > > Mmm, actually I don't know where this list come from... > >> >>> >>> glibc-devel-2.5-81.el5_8.2 >>> compat-glibc-headers-2.3.4-2.26 >>> libcap-devel-1.10-26 >>> compat-libcom_err-1.0-7 >>> glibc-2.5-81.el5_8.2 >>> libcap-1.10-26 >>> glibc-2.5-81.el5_8.2 >>> glibc-devel-2.5-81.el5_8.2 >>> compat-glibc-2.3.4-2.26 >>> libcroco-0.6.1-2.1 >>> glibc-headers-2.5-81.el5_8.2 >>> libc-client-2004g-2.2.1 >>> libcroco-devel-0.6.1-2.1 >>> glibc-common-2.5-81.el5_8.2 >>> >>> Now, when trying to install the rpm package: >> which rpm package? where did it come from? Fedora what/ which repo? >>> >>> rpm -i server/gambas3-runtime.rpm >>> error: Failed dependencies: >>> libc.so.6(GLIBC_2.14)(64bit) is needed by >>> gambas3-runtime-3.1.1-2.fc18.x86_64 >> >> fc18??? I thought fc17 was the latest stable release. This looks a >> little bit experimental. >>> >>> Yes, it seems he's using the Fedora rpm package, but this might not be a >>> problem. >>> >>> Is there any chance to get this solved, or perhaps trying to compile >>> from sources is the best bet? >>> >>> Best regards >>> >> >> locate is better than trying to grep "who-knows-what" >> >> locate lib/libc >> >> on mine shows that there is a /lib/libc.so.6 >> and >> >> file /lib/libc.so.6 >> >> shows that it is a symbolic link to 'libc-2.12.so' i.e. the actual >> library in /lib >> >> >> Using foreign binaries is a game of Russian roulette, the only chances >> you have are "pure dumb luck" or a great deal of checking every little >> detail before pulling that trigger. >> >> Good luck! >> >> Bruce > > > You're right. That's the same advice I just gave him. I will move your > questions to my friend and I will be back with more information. > > > Thanks, Bruce > > Hi The libc6 version is the same as yours, but he doesn't remember where the rpm was downloaded. Is there any trusted centos repository containing the gambas3 runtime he could try? If not, I think the best way is compiling from sources. Thanks for your time. -- Jesus Guardon From gambas at ...1... Sun Jun 3 12:57:23 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 03 Jun 2012 12:57:23 +0200 Subject: [Gambas-user] Window position error on applying stored "geometry" In-Reply-To: References: Message-ID: <4FCB4313.9060606@...1...> Le 03/06/2012 02:24, RICHARD WALKER a ?crit : > The observant among you may be wondering why I did not use the Write > settings method. In fact I have used it but it causes a crash if the > program is closed when it is on the second monitor. If you have a crash, please give the details about it: do you have a Gambas error or a real crash. If you have a real crash, please follow the procedure described on the "Report a problem" page of the web site, and send me the stack backtrace of the crash. Thanks in advance! -- Beno?t Minisini From jussi.lahtinen at ...626... Sun Jun 3 13:23:18 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 3 Jun 2012 14:23:18 +0300 Subject: [Gambas-user] Delete/Remove blank line from text file. In-Reply-To: <20120603092912.15714.qmail@...2860...> References: <20120603092912.15714.qmail@...2860...> Message-ID: 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 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 remove > certain sentence then it becomes blank line. So how do i remove those blank > lines? > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From adrien.prokopowicz at ...626... Sun Jun 3 14:10:37 2012 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sun, 03 Jun 2012 14:10:37 +0200 Subject: [Gambas-user] Crash with JIT + IDE Profiling Message-ID: <2251127.17YnSTHlec@...2823...> Hi, I tried to profile the IDE by enabling the profiling option, but when I close the child IDE, the parent IDE crashes : gdb gbr3 GNU gdb (GDB) 7.4.1 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /usr/local/bin/gbr3...done. (gdb) run /usr/local/bin/gambas3 Starting program: /usr/local/bin/gbr3 /usr/local/bin/gambas3 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/libthread_db.so.1". Traceback (most recent call last): File "/usr/share/gdb/auto-load/usr/lib/libgobject-2.0.so.0.3200.3-gdb.py", line 9, in from gobject import register File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in import gdb.backtrace ImportError: No module named backtrace gb.qt4: warning: unable to load Qt translation: fr_FR.utf8 [New Thread 0xb1361b40 (LWP 25608)] [New Thread 0xb0a60b40 (LWP 25609)] Stored value type does not match pointer operand type! store i64 %1825, i32* %1823 i32Stored value type does not match pointer operand type! store i64 %1923, i32* %1921 i32Broken module found, compilation aborted! Program received signal SIGABRT, Aborted. 0xb7fdd424 in __kernel_vsyscall () (gdb) bt #0 0xb7fdd424 in __kernel_vsyscall () #1 0xb7dee24f in raise () from /lib/libc.so.6 #2 0xb7defb53 in abort () from /lib/libc.so.6 #3 0xaea66fea in ?? () from /usr/lib/llvm/libLLVM-3.1.so #4 0xaea52f23 in llvm::FPPassManager::runOnFunction(llvm::Function&) () from /usr/lib/llvm/libLLVM-3.1.so #5 0xaea52f7c in llvm::FPPassManager::runOnModule(llvm::Module&) () from /usr/lib/llvm/libLLVM-3.1.so #6 0xaea52b74 in llvm::MPPassManager::runOnModule(llvm::Module&) () from /usr/lib/llvm/libLLVM-3.1.so #7 0xaea52c59 in llvm::PassManagerImpl::run(llvm::Module&) () from /usr/lib/llvm/libLLVM-3.1.so #8 0xaea52ca6 in llvm::PassManager::run(llvm::Module&) () from /usr/lib/llvm/libLLVM-3.1.so #9 0xaea6b4f8 in llvm::verifyModule(llvm::Module const&, llvm::VerifierFailureAction, std::string*) () from /usr/lib/llvm/libLLVM-3.1.so #10 0xaf9e9f90 in JIT_codegen () at jit_codegen.cpp:6170 #11 0xaf9f0505 in JIT_compile_and_execute () at jit_compile.cpp:99 #12 0x08079124 in EXEC_loop () at gbx_exec_loop.c:1370 #13 0x08050d1e in EXEC_function_loop () at gbx_exec.c:899 #14 0x08051351 in EXEC_function_real () at gbx_exec.c:863 #15 0x08051fff in EXEC_public_desc (class=0x81e0894, object=0x81e0894, desc=0x83d7274, nparam=0) at gbx_exec.c:1554 #16 0x08064829 in raise_event (observer=observer at ...2861...=0x81e0894, object=object at ...2861...=0x8c653f4, func_id=19, func_id at ...2861...=20, nparam=0) at gbx_api.c:709 #17 0x080652f4 in GB_Raise (object=0x8c653f4, event_id=2, nparam=0) at gbx_api.c:840 #18 0x08072552 in stop_process_after (_object=0x8c653f4) at gbx_c_process.c:290 #19 stop_process (process=0x8c653f4) at gbx_c_process.c:325 #20 stop_process (process=0x8c653f4) at gbx_c_process.c:301 #21 0x08072652 in callback_child (signum=17, data=0) at gbx_c_process.c:722 #22 0x08075864 in SIGNAL_raise_callbacks (fd=29, type=1, data=0x0) at gbx_signal.c:180 #23 0xb70078d3 in CWatch::read (this=0x87446e0, fd=29) at CWatch.cpp:135 #24 0xb700774c in qt_static_metacall (_a=0xbfffecd8, _o=0x87446e0, _c=, _id=) at CWatch_moc.cpp:50 #25 CWatch::qt_static_metacall (_o=0x87446e0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfffecd8) at CWatch_moc.cpp:44 #26 0xb5eefc76 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4 #27 0xb5f406d5 in QSocketNotifier::activated(int) () from /usr/lib/libQtCore.so.4 #28 0xb5ef68df in QSocketNotifier::event(QEvent*) () from /usr/lib/libQtCore.so.4 #29 0xb6177f6c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #30 0xb617c97f in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #31 0xb5ed79fe in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4 #32 0xb5f0ab04 in QEventDispatcherUNIX::activateSocketNotifiers() () from /usr/lib/libQtCore.so.4 ---Type to continue, or q to quit--- #33 0xb5f0b768 in QEventDispatcherUNIXPrivate::doSelect(QFlags, timeval*) () from /usr/lib/libQtCore.so.4 #34 0xb5f0c1b3 in QEventDispatcherUNIX::processEvents(QFlags) () from /usr/lib/libQtCore.so.4 #35 0xb622a123 in ?? () from /usr/lib/libQtGui.so.4 #36 0xb5ed64dc in QEventLoop::processEvents(QFlags) () from /usr/lib/libQtCore.so.4 #37 0xb5ed67d1 in QEventLoop::exec(QFlags) () from /usr/lib/libQtCore.so.4 #38 0xb5edba6a in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4 #39 0xb6175dd4 in QApplication::exec() () from /usr/lib/libQtGui.so.4 #40 0xb6fe29bc in hook_loop () at main.cpp:769 #41 0x0804b17b in main (argc=, argv=) at gbx.c:404 Regards, Adrien. From adrien.prokopowicz at ...626... Sun Jun 3 14:25:49 2012 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sun, 03 Jun 2012 05:25:49 -0700 (PDT) Subject: [Gambas-user] gb.qt4 compilation time In-Reply-To: <4FCA4DED.9040504@...1...> References: <3050501.EirOWOUXts@...2823...> <4FCA4DED.9040504@...1...> Message-ID: <1407394.75zLvl5HIy@...2823...> Le samedi 2 juin 2012 19:31:25 Beno?t Minisini a ?crit : > Le 02/06/2012 19:08, Adrien Prokopowicz a ?crit : > > Hi all, > > > > Since a few weeks I found that the gb.qt4 component takes a lot of time to > > compile. I was wondering why and I found that there were a lot of > > #includes in CWindow.h (as in many other .h files) : > > > > #include > > #include > > #include > > #include > > #include > > #include > > #include > > #include > > #include > > #include > > #include > > #include > > #include > > > > ... but in the whole CWindow.h file I haven't found any reference to > > QMoveEvent, QCloseEvent, QMainWindow, QMenuBar, QPushButton ... and > > others. > > > > So my question is : why include all these files ? Is there some hidden > > stuff or other things that I don't know ? :-) > > > > Regards, > > Adrien. > > You can try to remove some of them and see if it compiles. I never > checked that. > > Many of these includes were added by the Qt3 -> Qt4 converter when gb.qt > was transformed into gb.qt4. > > Regards, Hi Beno?t, I tried to remove all these includes in all .h files (and a few .cpp files), for example in CWindow : //#include //#include //#include //#include //#include //#include //#include //#include //#include //#include //#include //#include class QSizeGrip; class QPushButton; It works, but the compilation is not very faster (I measured by executing "time make" after a "make clean"). On my Computer (Intel Atom @1.6Ghz) it takes around 15~20 seconds less than before, but it still takes me around 9 minutes. :/ From emil.lenngren at ...626... Sun Jun 3 15:02:01 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Sun, 3 Jun 2012 15:02:01 +0200 Subject: [Gambas-user] Crash with JIT + IDE Profiling In-Reply-To: <2251127.17YnSTHlec@...2823...> References: <2251127.17YnSTHlec@...2823...> Message-ID: Which function is marked as Fast? I would like to know which gambas function that results in that error. I should add debug printing that says which function is being compiled.... And profiling jit functions is not really implemented. /Emil 2012/6/3 Adrien Prokopowicz > Hi, > > I tried to profile the IDE by enabling the profiling option, but when I > close > the child IDE, the parent IDE crashes : > > gdb gbr3 > GNU gdb (GDB) 7.4.1 > Copyright (C) 2012 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later < > http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "i686-pc-linux-gnu". > For bug reporting instructions, please see: > ... > Reading symbols from /usr/local/bin/gbr3...done. > (gdb) run /usr/local/bin/gambas3 > Starting program: /usr/local/bin/gbr3 /usr/local/bin/gambas3 > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/lib/libthread_db.so.1". > Traceback (most recent call last): > File "/usr/share/gdb/auto-load/usr/lib/libgobject-2.0.so.0.3200.3-gdb.py > ", > line 9, in > from gobject import register > File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in > import gdb.backtrace > ImportError: No module named backtrace > gb.qt4: warning: unable to load Qt translation: fr_FR.utf8 > [New Thread 0xb1361b40 (LWP 25608)] > [New Thread 0xb0a60b40 (LWP 25609)] > Stored value type does not match pointer operand type! > store i64 %1825, i32* %1823 > i32Stored value type does not match pointer operand type! > store i64 %1923, i32* %1921 > i32Broken module found, compilation aborted! > > Program received signal SIGABRT, Aborted. > 0xb7fdd424 in __kernel_vsyscall () > (gdb) bt > #0 0xb7fdd424 in __kernel_vsyscall () > #1 0xb7dee24f in raise () from /lib/libc.so.6 > #2 0xb7defb53 in abort () from /lib/libc.so.6 > #3 0xaea66fea in ?? () from /usr/lib/llvm/libLLVM-3.1.so > #4 0xaea52f23 in llvm::FPPassManager::runOnFunction(llvm::Function&) () > from > /usr/lib/llvm/libLLVM-3.1.so > #5 0xaea52f7c in llvm::FPPassManager::runOnModule(llvm::Module&) () from > /usr/lib/llvm/libLLVM-3.1.so > #6 0xaea52b74 in llvm::MPPassManager::runOnModule(llvm::Module&) () from > /usr/lib/llvm/libLLVM-3.1.so > #7 0xaea52c59 in llvm::PassManagerImpl::run(llvm::Module&) () from > /usr/lib/llvm/libLLVM-3.1.so > #8 0xaea52ca6 in llvm::PassManager::run(llvm::Module&) () from > /usr/lib/llvm/libLLVM-3.1.so > #9 0xaea6b4f8 in llvm::verifyModule(llvm::Module const&, > llvm::VerifierFailureAction, std::string*) () from /usr/lib/llvm/ > libLLVM-3.1.so > #10 0xaf9e9f90 in JIT_codegen () at jit_codegen.cpp:6170 > #11 0xaf9f0505 in JIT_compile_and_execute () at jit_compile.cpp:99 > #12 0x08079124 in EXEC_loop () at gbx_exec_loop.c:1370 > #13 0x08050d1e in EXEC_function_loop () at gbx_exec.c:899 > #14 0x08051351 in EXEC_function_real () at gbx_exec.c:863 > #15 0x08051fff in EXEC_public_desc (class=0x81e0894, object=0x81e0894, > desc=0x83d7274, nparam=0) at gbx_exec.c:1554 > #16 0x08064829 in raise_event (observer=observer at ...2861...=0x81e0894, > object=object at ...2861...=0x8c653f4, func_id=19, func_id at ...2861...=20, nparam=0) > at gbx_api.c:709 > #17 0x080652f4 in GB_Raise (object=0x8c653f4, event_id=2, nparam=0) at > gbx_api.c:840 > #18 0x08072552 in stop_process_after (_object=0x8c653f4) at > gbx_c_process.c:290 > #19 stop_process (process=0x8c653f4) at gbx_c_process.c:325 > #20 stop_process (process=0x8c653f4) at gbx_c_process.c:301 > #21 0x08072652 in callback_child (signum=17, data=0) at gbx_c_process.c:722 > #22 0x08075864 in SIGNAL_raise_callbacks (fd=29, type=1, data=0x0) at > gbx_signal.c:180 > #23 0xb70078d3 in CWatch::read (this=0x87446e0, fd=29) at CWatch.cpp:135 > #24 0xb700774c in qt_static_metacall (_a=0xbfffecd8, _o=0x87446e0, > _c=, _id=) at CWatch_moc.cpp:50 > #25 CWatch::qt_static_metacall (_o=0x87446e0, > _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfffecd8) at > CWatch_moc.cpp:44 > #26 0xb5eefc76 in QMetaObject::activate(QObject*, QMetaObject const*, int, > void**) () from /usr/lib/libQtCore.so.4 > #27 0xb5f406d5 in QSocketNotifier::activated(int) () from > /usr/lib/libQtCore.so.4 > #28 0xb5ef68df in QSocketNotifier::event(QEvent*) () from > /usr/lib/libQtCore.so.4 > #29 0xb6177f6c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () > from /usr/lib/libQtGui.so.4 > #30 0xb617c97f in QApplication::notify(QObject*, QEvent*) () from > /usr/lib/libQtGui.so.4 > #31 0xb5ed79fe in QCoreApplication::notifyInternal(QObject*, QEvent*) () > from > /usr/lib/libQtCore.so.4 > #32 0xb5f0ab04 in QEventDispatcherUNIX::activateSocketNotifiers() () from > /usr/lib/libQtCore.so.4 > ---Type to continue, or q to quit--- > #33 0xb5f0b768 in > > QEventDispatcherUNIXPrivate::doSelect(QFlags, > timeval*) () from /usr/lib/libQtCore.so.4 > #34 0xb5f0c1b3 in > QEventDispatcherUNIX::processEvents(QFlags) > () > from /usr/lib/libQtCore.so.4 > #35 0xb622a123 in ?? () from /usr/lib/libQtGui.so.4 > #36 0xb5ed64dc in > QEventLoop::processEvents(QFlags) () from > /usr/lib/libQtCore.so.4 > #37 0xb5ed67d1 in QEventLoop::exec(QFlags) > () > from /usr/lib/libQtCore.so.4 > #38 0xb5edba6a in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4 > #39 0xb6175dd4 in QApplication::exec() () from /usr/lib/libQtGui.so.4 > #40 0xb6fe29bc in hook_loop () at main.cpp:769 > #41 0x0804b17b in main (argc= at > address 0x6>, > argv=) at > gbx.c:404 > > Regards, > Adrien. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Sun Jun 3 15:15:13 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 03 Jun 2012 13:15:13 +0000 Subject: [Gambas-user] Issue 255 in gambas: TextBox_LostFocus event bug? Message-ID: <0-6813199134517018827-15455130070928217927-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 255 by sot... at ...626...: TextBox_LostFocus event bug? http://code.google.com/p/gambas/issues/detail?id=255 1) Having a button with property default set to TRUE on a Form with textboxes when the user hits Return to activate the Button action, the TextBox_LostFocus event is not raised, the textbox text is loose. Not happens if the user clicks on the button. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): [System] OperatingSystem=Linux Kernel=2.6.32-41-generic Architecture=x86_64 Memory=4059304 kB DistributionVendor=Ubuntu DistributionRelease="Ubuntu 10.04.4 LTS" Desktop=Gnome [Gambas 2] Version=2.23.0 Path=/usr/local/bin/gbx2 [Gambas 3] Version=3.1.90 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.6.2 GTK+=libgtk-x11-2.0.so.0.2000.1 3) Provide a little project that reproduces the bug or the crash. Sample project attached 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. Simply run the project and write some text into textbox then click on the button, rerun the project, write some text into textbox and hit return Attachments: textbox_lostfocus-0.0.1.tar.gz 4.6 KB From gambas at ...1... Sun Jun 3 16:03:34 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 03 Jun 2012 16:03:34 +0200 Subject: [Gambas-user] Crash with JIT + IDE Profiling In-Reply-To: References: <2251127.17YnSTHlec@...2823...> Message-ID: <4FCB6EB6.9070000@...1...> Le 03/06/2012 15:02, Emil Lenngren a ?crit : > Which function is marked as Fast? I would like to know which gambas > function that results in that error. > I should add debug printing that says which function is being compiled.... > > And profiling jit functions is not really implemented. > > /Emil > FProfile.Init() This is the only one marked with FAST. Could it be a 32/64 bits thing? -- Beno?t Minisini From emil.lenngren at ...626... Sun Jun 3 16:30:18 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Sun, 3 Jun 2012 16:30:18 +0200 Subject: [Gambas-user] Crash with JIT + IDE Profiling In-Reply-To: <4FCB6EB6.9070000@...1...> References: <2251127.17YnSTHlec@...2823...> <4FCB6EB6.9070000@...1...> Message-ID: Beno?t, didn't you get the same message before? 2012/6/3 Beno?t Minisini > Le 03/06/2012 15:02, Emil Lenngren a ?crit : > > Which function is marked as Fast? I would like to know which gambas > > function that results in that error. > > I should add debug printing that says which function is being > compiled.... > > > > And profiling jit functions is not really implemented. > > > > /Emil > > > > FProfile.Init() > > This is the only one marked with FAST. > > Could it be a 32/64 bits thing? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From emil.lenngren at ...626... Sun Jun 3 16:33:33 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Sun, 3 Jun 2012 16:33:33 +0200 Subject: [Gambas-user] Crash with JIT + IDE Profiling In-Reply-To: References: <2251127.17YnSTHlec@...2823...> <4FCB6EB6.9070000@...1...> Message-ID: It's probably a 32-bit problem. I will start up my virtualbox with 32-bit and see what happens :) 2012/6/3 Emil Lenngren > Beno?t, didn't you get the same message before? > > > 2012/6/3 Beno?t Minisini > >> Le 03/06/2012 15:02, Emil Lenngren a ?crit : >> > Which function is marked as Fast? I would like to know which gambas >> > function that results in that error. >> > I should add debug printing that says which function is being >> compiled.... >> > >> > And profiling jit functions is not really implemented. >> > >> > /Emil >> > >> >> FProfile.Init() >> >> This is the only one marked with FAST. >> >> Could it be a 32/64 bits thing? >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From gambas at ...1... Sun Jun 3 16:43:14 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 03 Jun 2012 16:43:14 +0200 Subject: [Gambas-user] Crash with JIT + IDE Profiling In-Reply-To: References: <2251127.17YnSTHlec@...2823...> <4FCB6EB6.9070000@...1...> Message-ID: <4FCB7802.3000905@...1...> Le 03/06/2012 16:30, Emil Lenngren a ?crit : > Beno?t, didn't you get the same message before? > What are you talking about? -- Beno?t Minisini From emil.lenngren at ...626... Sun Jun 3 16:56:45 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Sun, 3 Jun 2012 16:56:45 +0200 Subject: [Gambas-user] Crash with JIT + IDE Profiling In-Reply-To: <4FCB7802.3000905@...1...> References: <2251127.17YnSTHlec@...2823...> <4FCB6EB6.9070000@...1...> <4FCB7802.3000905@...1...> Message-ID: Nevermind, that was another problem. 2012/6/3 Beno?t Minisini > Le 03/06/2012 16:30, Emil Lenngren a ?crit : > > Beno?t, didn't you get the same message before? > > > > What are you talking about? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From richard.j.walker at ...247... Sun Jun 3 17:15:25 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Sun, 3 Jun 2012 16:15:25 +0100 Subject: [Gambas-user] Window position error on applying stored "geometry" In-Reply-To: <4FCB4313.9060606@...1...> References: <4FCB4313.9060606@...1...> Message-ID: On 03/06/2012, Beno?t Minisini wrote: > Le 03/06/2012 02:24, RICHARD WALKER a ?crit : >> The observant among you may be wondering why I did not use the Write >> settings method. In fact I have used it but it causes a crash if the >> program is closed when it is on the second monitor. > > If you have a crash, please give the details about it: do you have a > Gambas error or a real crash. If you have a real crash, please follow > the procedure described on the "Report a problem" page of the web site, > and send me the stack backtrace of the crash. > > Thanks in advance! > > -- > Beno?t Minisini > System information: [System] OperatingSystem=Linux Kernel=3.2.16-0.rt27.1.mga2 Architecture=x86_64 Memory=4061372 kB DistributionVendor="Mageia" DistributionRelease="Mageia Cauldron" ----> actually Mageia 2 Release Desktop=LXDE [Gambas 3] Version=3.1.1 Path=/usr/bin/gbx3 The attached mini-prog will demonstrate the problem. The archive includes typical safe and crashed settings conf files and a copy of the console error message when it crashes. To produce the error you must have a desktop spread across at least two monitors. The instructions are in the program. I have just installed gdb and DDD (data display debugger gui for gdb) so I will take a few hours to figure out how to use these tools and see if I can produce the backtrace suggested in the console error message. Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: Window_Position_Bug-0.0.7.tar.gz Type: application/x-gzip Size: 8853 bytes Desc: not available URL: From jussi.lahtinen at ...626... Sun Jun 3 17:45:51 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 3 Jun 2012 18:45:51 +0300 Subject: [Gambas-user] New feature in Gambas 3 In-Reply-To: <4FCAB4A2.2020907@...1...> References: <4FB78ADB.3070800@...1...> <4FBA978A.4010608@...1...> <4FBD45B8.1040607@...1...> <4FCAB4A2.2020907@...1...> Message-ID: With revision 4804 it still crashes. *** buffer overflow detected ***: ProfilerBug terminated ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f6332982007] /lib/x86_64-linux-gnu/libc.so.6(+0x107f00)[0x7f6332980f00] /lib/x86_64-linux-gnu/libc.so.6(+0x107369)[0x7f6332980369] /lib/x86_64-linux-gnu/libc.so.6(_IO_default_xsputn+0xdd)[0x7f63328f4bcd] /lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x4ff)[0x7f63328c0b7f] /lib/x86_64-linux-gnu/libc.so.6(__vsprintf_chk+0x94)[0x7f6332980404] /lib/x86_64-linux-gnu/libc.so.6(__sprintf_chk+0x7d)[0x7f633298034d] /usr/local/lib/gambas3/gb.debug.so(+0x3d11)[0x7f6332675d11] /usr/local/lib/gambas3/gb.debug.so(+0x3dd3)[0x7f6332675dd3] ProfilerBug[0x434899] ProfilerBug[0x40a442] ProfilerBug[0x40aae1] ProfilerBug[0x41e7f5] ProfilerBug[0x41ef2e] /usr/local/lib/gambas3/gb.gtk.so(+0x5fd1b)[0x7f6331546d1b] /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0xfeca)[0x7f632fe53eca] /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x421)[0x7f632fe6c741] /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x82)[0x7f632fe6d242] /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x8e845)[0x7f6330d06845] /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x132)[0x7f632fe53ca2] /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x21179)[0x7f632fe65179] /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0xd79)[0x7f632fe6d099] /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x82)[0x7f632fe6d242] /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x8d66d)[0x7f6330d0566d] /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x136dd8)[0x7f6330daedd8] /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x132)[0x7f632fe53ca2] /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x21339)[0x7f632fe65339] /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0xa5e)[0x7f632fe6cd7e] /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x82)[0x7f632fe6d242] /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x251191)[0x7f6330ec9191] /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_propagate_event+0xc3)[0x7f6330dacf63] /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_main_do_event+0x283)[0x7f6330dad2c3] /usr/local/lib/gambas3/gb.gtk.so(+0x68c8b)[0x7f633154fc8b] /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0(+0x5bcac)[0x7f6330a21cac] /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x16a)[0x7f632fb96c9a] /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x48060)[0x7f632fb97060] /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x34)[0x7f632fb97124] /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_main_iteration_do+0x1d)[0x7f6330dac55d] /usr/local/lib/gambas3/gb.gtk.so(+0x66b9e)[0x7f633154db9e] /usr/local/lib/gambas3/gb.gtk.so(+0x66c0d)[0x7f633154dc0d] ProfilerBug[0x404694] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f633289a76d] ProfilerBug[0x404791] ======= Memory map: ======== 00400000-0044b000 r-xp 00000000 08:02 392733 /usr/local/bin/gbx3 0064a000-0064b000 r--p 0004a000 08:02 392733 /usr/local/bin/gbx3 0064b000-00655000 rw-p 0004b000 08:02 392733 /usr/local/bin/gbx3 00655000-00658000 rw-p 00000000 00:00 0 018d2000-01abf000 rw-p 00000000 00:00 0 [heap] 7f632834b000-7f6328357000 r-xp 00000000 08:02 784975 /lib/x86_64-linux-gnu/libudev.so.0.13.0 7f6328357000-7f6328556000 ---p 0000c000 08:02 784975 /lib/x86_64-linux-gnu/libudev.so.0.13.0 7f6328556000-7f6328557000 r--p 0000b000 08:02 784975 /lib/x86_64-linux-gnu/libudev.so.0.13.0 7f6328557000-7f6328558000 rw-p 0000c000 08:02 784975 /lib/x86_64-linux-gnu/libudev.so.0.13.0 7f6328558000-7f632859a000 r-xp 00000000 08:02 791426 /lib/x86_64-linux-gnu/libdbus-1.so.3.5.8 7f632859a000-7f632879a000 ---p 00042000 08:02 791426 /lib/x86_64-linux-gnu/libdbus-1.so.3.5.8 7f632879a000-7f632879b000 r--p 00042000 08:02 791426 /lib/x86_64-linux-gnu/libdbus-1.so.3.5.8 7f632879b000-7f632879c000 rw-p 00043000 08:02 791426 /lib/x86_64-linux-gnu/libdbus-1.so.3.5.8 7f632879c000-7f63287b2000 r-xp 00000000 08:02 397123 /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so 7f63287b2000-7f63289b1000 ---p 00016000 08:02 397123 /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so 7f63289b1000-7f63289b2000 r--p 00015000 08:02 397123 /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so 7f63289b2000-7f63289b3000 rw-p 00016000 08:02 397123 /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so 7f63289b3000-7f63289db000 r-xp 00000000 08:02 786721 /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so 7f63289db000-7f6328bda000 ---p 00028000 08:02 786721 /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so 7f6328bda000-7f6328bdb000 r--p 00027000 08:02 786721 /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so 7f6328bdb000-7f6328bdc000 rw-p 00028000 08:02 786721 /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so 7f6328bdc000-7f6328c20000 r-xp 00000000 08:02 398884 /usr/lib/x86_64-linux-gnu/libibus-1.0.so.0.401.0 7f6328c20000-7f6328e1f000 ---p 00044000 08:02 398884 /usr/lib/x86_64-linux-gnu/libibus-1.0.so.0.401.0 7f6328e1f000-7f6328e21000 r--p 00043000 08:02 398884 /usr/lib/x86_64-linux-gnu/libibus-1.0.so.0.401.0 7f6328e21000-7f6328e22000 rw-p 00045000 08:02 398884 /usr/lib/x86_64-linux-gnu/libibus-1.0.so.0.401.0 7f6328e22000-7f6328e23000 rw-p 00000000 00:00 0 7f6328e23000-7f6328e29000 r-xp 00000000 08:02 523786 /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so 7f6328e29000-7f6329028000 ---p 00006000 08:02 523786 /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so 7f6329028000-7f6329029000 r--p 00005000 08:02 523786 /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so 7f6329029000-7f632902a000 rw-p 00006000 08:02 523786 /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so 7f632902a000-7f632902c000 r-xp 00000000 08:02 1047984 /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so 7f632902c000-7f632922b000 ---p 00002000 08:02 1047984 /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so 7f632922b000-7f632922c000 r--p 00001000 08:02 1047984 /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so 7f632922c000-7f632922d000 rw-p 00002000 08:02 1047984 /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so 7f632922d000-7f6329239000 r-xp 00000000 08:02 553804 /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libmist.so 7f6329239000-7f6329438000 ---p 0000c000 08:02 553804 /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libmist.so 7f6329438000-7f6329439000 r--p 0000b000 08:02 553804 /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libmist.so 7f6329439000-7f632943a000 rw-p 0000c000 08:02 553804 /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libmist.so 7f632943a000-7f6329440000 r-xp 00000000 08:02 395710 /usr/lib/x86_64-linux-gnu/libogg.so.0.7.1 7f6329440000-7f632963f000 ---p 00006000 08:02 395710 /usr/lib/x86_64-linux-gnu/libogg.so.0.7.1 7f632963f000-7f6329640000 r--p 00005000 08:02 395710 /usr/lib/x86_64-linux-gnu/libogg.so.0.7.1 7f6329640000-7f6329641000 rw-p 00006000 08:02 395710 /usr/lib/x86_64-linux-gnu/libogg.so.0.7.1 7f6329641000-7f632966c000 r-xp 00000000 08:02 393392 /usr/lib/x86_64-linux-gnu/libvorbis.so.0.4.5 7f632966c000-7f632986b000 ---p 0002b000 08:02 393392 /usr/lib/x86_64- Jussi On 3 June 2012 03:49, Beno?t Minisini 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 > > ======= Backtrace: ========= > > /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f4d30bcc007] > > ... > > Do you have the crash yet? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From emil.lenngren at ...626... Sun Jun 3 19:10:13 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Sun, 3 Jun 2012 19:10:13 +0200 Subject: [Gambas-user] Crash with JIT + IDE Profiling In-Reply-To: References: <2251127.17YnSTHlec@...2823...> <4FCB6EB6.9070000@...1...> <4FCB7802.3000905@...1...> Message-ID: I hope it works in the latest revision :) /Emil 2012/6/3 Emil Lenngren > Nevermind, that was another problem. > > > 2012/6/3 Beno?t Minisini > >> Le 03/06/2012 16:30, Emil Lenngren a ?crit : >> > Beno?t, didn't you get the same message before? >> > >> >> What are you talking about? >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From wonnerfy at ...2862... Sun Jun 3 19:35:58 2012 From: wonnerfy at ...2862... (wonnerfy) Date: Mon, 4 Jun 2012 01:35:58 +0800 (CST) Subject: [Gambas-user] =?gbk?b?x+vOyqOs09DDu9PQ1tDOxLXEu/m0ob3Ms8yjvw==?= Message-ID: <8d0f5ed.8a0d.137b36aee24.Coremail.wonnerfy@...2862...> ???????????????windwsXP?????vb????????? From adrien.prokopowicz at ...626... Sun Jun 3 19:59:01 2012 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sun, 03 Jun 2012 19:59:01 +0200 Subject: [Gambas-user] Crash with JIT + IDE Profiling In-Reply-To: References: <2251127.17YnSTHlec@...2823...> Message-ID: <16947412.0aiFq3okII@...2823...> Le dimanche 3 juin 2012 19:10:13 Emil Lenngren a ?crit : > I hope it works in the latest revision :) > > /Emil > > 2012/6/3 Emil Lenngren > > > Nevermind, that was another problem. > > > > > > 2012/6/3 Beno?t Minisini > > > >> Le 03/06/2012 16:30, Emil Lenngren a ?crit : > >> > Beno?t, didn't you get the same message before? > >> > >> What are you talking about? > >> > >> -- > >> Beno?t Minisini > >> > >> > >> ------------------------------------------------------------------------- > >> ----- Live Security Virtual Conference > >> Exclusive live event will cover all the ways today's security and > >> threat landscape has changed and how IT managers can respond. Discussions > >> will include endpoint security, mobile security and the latest in malware > >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ---------------------------------------------------------------------------- > -- Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Yes, it works. Thanks. :-) From jussi.lahtinen at ...626... Sun Jun 3 20:45:58 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 3 Jun 2012 21:45:58 +0300 Subject: [Gambas-user] =?gb2312?b?x+vOyqOs09DDu9PQ1tDOxLXEu/m0ob3Ms8yjvw==?= In-Reply-To: <8d0f5ed.8a0d.137b36aee24.Coremail.wonnerfy@...2862...> References: <8d0f5ed.8a0d.137b36aee24.Coremail.wonnerfy@...2862...> Message-ID: ??????Gambas?????????VB?? ?????????????? Jussi On 3 June 2012 20:35, wonnerfy wrote: > ???????????????windwsXP?????vb????????? > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Jun 4 00:21:46 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 04 Jun 2012 00:21:46 +0200 Subject: [Gambas-user] New feature in Gambas 3 In-Reply-To: References: <4FB78ADB.3070800@...1...> <4FBA978A.4010608@...1...> <4FBD45B8.1040607@...1...> <4FCAB4A2.2020907@...1...> Message-ID: <4FCBE37A.6030808@...1...> Le 03/06/2012 17:45, Jussi Lahtinen a ?crit : > With revision 4804 it still crashes. > Fixed in revision #4806. regards, -- Beno?t Minisini From richard.j.walker at ...247... Mon Jun 4 00:22:07 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Sun, 3 Jun 2012 23:22:07 +0100 Subject: [Gambas-user] Window position error on applying stored "geometry" In-Reply-To: References: <4FCB4313.9060606@...1...> Message-ID: I finally worked out what I was doing wrong, I think, with gdb. I got it to start my test application and watched as it displayed the console error message we have seen before. The program had returned a value of 1. I then executed "bt" and it simply said "No Stack". Is there anything else I can do with gdb or Gambas to get more info? Richard On 03/06/2012, RICHARD WALKER wrote: > On 03/06/2012, Beno?t Minisini wrote: >> Le 03/06/2012 02:24, RICHARD WALKER a ?crit : >>> The observant among you may be wondering why I did not use the Write >>> settings method. In fact I have used it but it causes a crash if the >>> program is closed when it is on the second monitor. >> >> If you have a crash, please give the details about it: do you have a >> Gambas error or a real crash. If you have a real crash, please follow >> the procedure described on the "Report a problem" page of the web site, >> and send me the stack backtrace of the crash. >> >> Thanks in advance! >> >> -- >> Beno?t Minisini >> > > System information: > [System] > OperatingSystem=Linux > Kernel=3.2.16-0.rt27.1.mga2 > Architecture=x86_64 > Memory=4061372 kB > DistributionVendor="Mageia" > DistributionRelease="Mageia Cauldron" ----> actually Mageia 2 Release > Desktop=LXDE > > [Gambas 3] > Version=3.1.1 > Path=/usr/bin/gbx3 > > The attached mini-prog will demonstrate the problem. The archive > includes typical safe and crashed settings conf files and a copy of > the console error message when it crashes. > > To produce the error you must have a desktop spread across at least > two monitors. The instructions are in the program. > > I have just installed gdb and DDD (data display debugger gui for gdb) > so I will take a few hours to figure out how to use these tools and > see if I can produce the backtrace suggested in the console error > message. > > Richard > From gambas at ...1... Mon Jun 4 00:52:22 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 04 Jun 2012 00:52:22 +0200 Subject: [Gambas-user] Window position error on applying stored "geometry" In-Reply-To: References: <4FCB4313.9060606@...1...> Message-ID: <4FCBEAA6.8010907@...1...> Le 04/06/2012 00:22, RICHARD WALKER a ?crit : > I finally worked out what I was doing wrong, I think, with gdb. I got > it to start my test application and watched as it displayed the > console error message we have seen before. The program had returned a > value of 1. I then executed "bt" and it simply said "No Stack". > > Is there anything else I can do with gdb or Gambas to get more info? > > Richard > This is not a crash, this is a X11 bug. As by default the dialog between the application and the X11 server is asynchronous, you receive the error long after it has occured. I need a way to simulate two screens on my single monitor so that I can debug and fix the problem. If you know how to do that, it will help me! -- Beno?t Minisini From eilert-sprachen at ...221... Mon Jun 4 16:14:28 2012 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 04 Jun 2012 16:14:28 +0200 Subject: [Gambas-user] DrawingArea and Draw.RichText Message-ID: <4FCCC2C4.8040308@...221...> Hi, In Gambas2 I'm drawing a RichText on a DrawingArea and I'm wondering why it makes all line breaks but doesn't show any bold, italics and stuff. My experimental text string has some words bold, italics and so on. When I show it in a TextLabel or a TextArea, no problem, everything appears as expected. When I do Draw.RichText(sRichText, x, y, w, h) on the DrawingArea, however, the text is wrapped as expected but will not show any bold, italics and so on letters, everything is plain Roman. Any idea how to overcome this? Or will I have to live with this limitation? Rolf From jussi.lahtinen at ...626... Mon Jun 4 17:35:37 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 4 Jun 2012 18:35:37 +0300 Subject: [Gambas-user] New feature in Gambas 3 In-Reply-To: <4FCBE37A.6030808@...1...> References: <4FB78ADB.3070800@...1...> <4FBA978A.4010608@...1...> <4FBD45B8.1040607@...1...> <4FCAB4A2.2020907@...1...> <4FCBE37A.6030808@...1...> Message-ID: 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, then "System.Profile = True" doesn't turn it on in the middle of the execution..? Jussi On 4 June 2012 01:21, Beno?t Minisini 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 > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Mon Jun 4 18:02:28 2012 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 04 Jun 2012 18:02:28 +0200 Subject: [Gambas-user] DrawingArea and Draw.RichText In-Reply-To: <4FCCC2C4.8040308@...221...> References: <4FCCC2C4.8040308@...221...> Message-ID: <4FCCDC14.4050309@...221...> My mistake, I found that I forgot to convert something in the strings, now everything seems to be fine. Rolf Am 04.06.2012 16:14, schrieb Rolf-Werner Eilert: > Hi, > > In Gambas2 I'm drawing a RichText on a DrawingArea and I'm wondering why > it makes all line breaks but doesn't show any bold, italics and stuff. > > My experimental text string has some words bold, italics and so on. When > I show it in a TextLabel or a TextArea, no problem, everything appears > as expected. > > When I do > > Draw.RichText(sRichText, x, y, w, h) > > on the DrawingArea, however, the text is wrapped as expected but will > not show any bold, italics and so on letters, everything is plain Roman. > > Any idea how to overcome this? Or will I have to live with this limitation? > > Rolf > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Jun 4 20:10:28 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 04 Jun 2012 20:10:28 +0200 Subject: [Gambas-user] New feature in Gambas 3 In-Reply-To: References: <4FB78ADB.3070800@...1...> <4FBA978A.4010608@...1...> <4FBD45B8.1040607@...1...> <4FCAB4A2.2020907@...1...> <4FCBE37A.6030808@...1...> Message-ID: <4FCCFA14.6030508@...1...> Le 04/06/2012 17: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, then "System.Profile = True" > doesn't turn it on in the middle of the execution..? > > Jussi > That's the contrary. You must turn progiling on from the IDE, and then set System.Profile to FALSE to disable instruction profiling when you don't need it, and set it back to TRUE when you want to enable it again. But System.Profile won't disable function call profiling in any case. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Mon Jun 4 20:36:12 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 4 Jun 2012 21:36:12 +0300 Subject: [Gambas-user] New feature in Gambas 3 In-Reply-To: <4FCCFA14.6030508@...1...> References: <4FB78ADB.3070800@...1...> <4FBA978A.4010608@...1...> <4FBD45B8.1040607@...1...> <4FCAB4A2.2020907@...1...> <4FCBE37A.6030808@...1...> <4FCCFA14.6030508@...1...> Message-ID: OK, now it seems to work, except when you stop execution from IDE (by clicking stop button) instead of actually closing the project. See attached project. Stopping from IDE gives wrong results. Jussi On 4 June 2012 21:10, Beno?t Minisini wrote: > Le 04/06/2012 17: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, then "System.Profile = True" > > doesn't turn it on in the middle of the execution..? > > > > Jussi > > > > That's the contrary. You must turn progiling on from the IDE, and then > set System.Profile to FALSE to disable instruction profiling when you > don't need it, and set it back to TRUE when you want to enable it again. > > But System.Profile won't disable function call profiling in any case. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: ProfilerBug-2.0.1.tar.gz Type: application/x-gzip Size: 4860 bytes Desc: not available URL: From richard.j.walker at ...247... Mon Jun 4 21:55:19 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Mon, 4 Jun 2012 20:55:19 +0100 Subject: [Gambas-user] Window position error on applying stored "geometry" In-Reply-To: <4FCBEAA6.8010907@...1...> References: <4FCB4313.9060606@...1...> <4FCBEAA6.8010907@...1...> Message-ID: On 03/06/2012, Beno?t Minisini wrote: > I need a way to simulate two screens on my single monitor so that I can > debug and fix the problem. If you know how to do that, it will help me! > Hi Beno?t, Your wish is my command. Now all I have to do is sort out a little mouse problem and we might soon have a simulated Xinerama 2-screen environment on a single monitor. At the moment I get either the mouse stopping half way across the pseudo-Xinerama screen, or it gets the whole way across but I have to use a "dummy" screen of the same dimensions from which the mouse coords are read. Make sense to you? I have to admit I am struggling to understand what is going on. At least the test-bed Gambas project unmistakably fails when it is closed in the second "screen". I am using two tools which are packaged for Mageia, so should be fairly common in most distros; Xephyr and Xdmx - both X-servers. The difficulty is in getting the magic right for input events. More, as soon as... Richard From richard.j.walker at ...247... Tue Jun 5 04:23:52 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Tue, 5 Jun 2012 03:23:52 +0100 Subject: [Gambas-user] Window position error on applying stored "geometry" In-Reply-To: References: <4FCB4313.9060606@...1...> <4FCBEAA6.8010907@...1...> Message-ID: > I am using two tools which are packaged for Mageia, so should be > fairly common in most distros; Xephyr and Xdmx - both X-servers. The > difficulty is in getting the magic right for input events. More, as > soon as... Success. I eventually ran into a bit of a brick wall trying to use Xdmx as the xinerama "harness" for the two Xephyr screens. The only sane way to use it (and it works) is with a dummy console used to track the mouse cursor. Getting the keyboard to work was problematic. In the end I tripped over another way of faking xinerama on a single Xephyr screen. I present to you a short bash script which will start a Xephyr X server with dimensions you choose which will be split (invisibly) into two pseudo-monitors by a specially crafted fake libXinerama (source linked in the bash script) and user-specific ~/.fakexinerama configuration file. I can confirm that this environment will demonstrate the issue with my test-bed project, though you will have to judge for yourself where the second half of the xinerama screen starts:-) I had to tweak the project a tiny bit to try to accommodate the changed screen resolution as I use a form width and height check to tell me if the previous run had crashed - sloppy, yes; sorry? Yes. Quick and dirty, but it'll do, I reckon. Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: xephyr Type: application/octet-stream Size: 840 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Window_Position_Bug-0.0.11.tar.gz Type: application/x-gzip Size: 9207 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Xinerama.c Type: text/x-csrc Size: 4408 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: .fakexinerama Type: application/octet-stream Size: 28 bytes Desc: not available URL: From gambas at ...1... Tue Jun 5 09:27:22 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 05 Jun 2012 09:27:22 +0200 Subject: [Gambas-user] Window position error on applying stored "geometry" In-Reply-To: References: <4FCB4313.9060606@...1...> <4FCBEAA6.8010907@...1...> Message-ID: <4FCDB4DA.50906@...1...> Le 05/06/2012 04:23, RICHARD WALKER a ?crit : >> I am using two tools which are packaged for Mageia, so should be >> fairly common in most distros; Xephyr and Xdmx - both X-servers. The >> difficulty is in getting the magic right for input events. More, as >> soon as... > > Success. I eventually ran into a bit of a brick wall trying to use > Xdmx as the xinerama "harness" for the two Xephyr screens. The only > sane way to use it (and it works) is with a dummy console used to > track the mouse cursor. Getting the keyboard to work was problematic. > In the end I tripped over another way of faking xinerama on a single > Xephyr screen. > > I present to you a short bash script which will start a Xephyr X > server with dimensions you choose which will be split (invisibly) into > two pseudo-monitors by a specially crafted fake libXinerama (source > linked in the bash script) and user-specific ~/.fakexinerama > configuration file. > > I can confirm that this environment will demonstrate the issue with my > test-bed project, though you will have to judge for yourself where the > second half of the xinerama screen starts:-) > I had to tweak the project a tiny bit to try to accommodate the > changed screen resolution as I use a form width and height check to > tell me if the previous run had crashed - sloppy, yes; sorry? Yes. > Quick and dirty, but it'll do, I reckon. > > Richard > Thanks. I could deal with it. Is it better now with revision #4808? -- Beno?t Minisini From gambas at ...2524... Tue Jun 5 13:21:45 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 05 Jun 2012 11:21:45 +0000 Subject: [Gambas-user] Issue 71 in gambas: Signal #11 In-Reply-To: <7-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> References: <7-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> <0-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> Message-ID: <8-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> Comment #8 on issue 71 by islamph... at ...626...: Signal #11 http://code.google.com/p/gambas/issues/detail?id=71 Hi I've updated gambas version to 2.23 i have crashes but without signals.... just the program closes down..... i'm working on installing fedora 17 instead of ubuntu and trying the software there hope this will work Thank you too much for your beautiful work and your passion to make your work perfect..... From richard.j.walker at ...247... Tue Jun 5 13:37:51 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Tue, 5 Jun 2012 12:37:51 +0100 Subject: [Gambas-user] Window position error on applying stored "geometry" In-Reply-To: <4FCDB4DA.50906@...1...> References: <4FCB4313.9060606@...1...> <4FCBEAA6.8010907@...1...> <4FCDB4DA.50906@...1...> Message-ID: It will take a little more time to tell. It has been many years since I last built Gambas from source so I have quite a bit of research and preparation to do first. R On 05/06/2012, Beno?t Minisini wrote: > Le 05/06/2012 04:23, RICHARD WALKER a ?crit : >>> I am using two tools which are packaged for Mageia, so should be >>> fairly common in most distros; Xephyr and Xdmx - both X-servers. The >>> difficulty is in getting the magic right for input events. More, as >>> soon as... >> >> Success. I eventually ran into a bit of a brick wall trying to use >> Xdmx as the xinerama "harness" for the two Xephyr screens. The only >> sane way to use it (and it works) is with a dummy console used to >> track the mouse cursor. Getting the keyboard to work was problematic. >> In the end I tripped over another way of faking xinerama on a single >> Xephyr screen. >> >> I present to you a short bash script which will start a Xephyr X >> server with dimensions you choose which will be split (invisibly) into >> two pseudo-monitors by a specially crafted fake libXinerama (source >> linked in the bash script) and user-specific ~/.fakexinerama >> configuration file. >> >> I can confirm that this environment will demonstrate the issue with my >> test-bed project, though you will have to judge for yourself where the >> second half of the xinerama screen starts:-) >> I had to tweak the project a tiny bit to try to accommodate the >> changed screen resolution as I use a form width and height check to >> tell me if the previous run had crashed - sloppy, yes; sorry? Yes. >> Quick and dirty, but it'll do, I reckon. >> >> Richard >> > > Thanks. I could deal with it. > > Is it better now with revision #4808? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From richard.j.walker at ...247... Tue Jun 5 18:11:46 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Tue, 5 Jun 2012 17:11:46 +0100 Subject: [Gambas-user] Window position error on applying stored "geometry" In-Reply-To: References: <4FCB4313.9060606@...1...> <4FCBEAA6.8010907@...1...> <4FCDB4DA.50906@...1...> Message-ID: On executing reconf-all in trunk I am told: libtoolize: You should add the contents of the following files to `aclocal.m4': libtoolize: `/usr/share/aclocal/libtool.m4' libtoolize: `/usr/share/aclocal/ltoptions.m4' libtoolize: `/usr/share/aclocal/ltversion.m4' libtoolize: `/usr/share/aclocal/ltsugar.m4' libtoolize: `/usr/share/aclocal/lt~obsolete.m4' Do I just copy/paste these files into the end of aclocal.m4? R On 05/06/2012, RICHARD WALKER wrote: > It will take a little more time to tell. It has been many years since > I last built Gambas from source so I have quite a bit of research and > preparation to do first. > > R > > On 05/06/2012, Beno?t Minisini wrote: >> Le 05/06/2012 04:23, RICHARD WALKER a ?crit : >>>> I am using two tools which are packaged for Mageia, so should be >>>> fairly common in most distros; Xephyr and Xdmx - both X-servers. The >>>> difficulty is in getting the magic right for input events. More, as >>>> soon as... >>> >>> Success. I eventually ran into a bit of a brick wall trying to use >>> Xdmx as the xinerama "harness" for the two Xephyr screens. The only >>> sane way to use it (and it works) is with a dummy console used to >>> track the mouse cursor. Getting the keyboard to work was problematic. >>> In the end I tripped over another way of faking xinerama on a single >>> Xephyr screen. >>> >>> I present to you a short bash script which will start a Xephyr X >>> server with dimensions you choose which will be split (invisibly) into >>> two pseudo-monitors by a specially crafted fake libXinerama (source >>> linked in the bash script) and user-specific ~/.fakexinerama >>> configuration file. >>> >>> I can confirm that this environment will demonstrate the issue with my >>> test-bed project, though you will have to judge for yourself where the >>> second half of the xinerama screen starts:-) >>> I had to tweak the project a tiny bit to try to accommodate the >>> changed screen resolution as I use a form width and height check to >>> tell me if the previous run had crashed - sloppy, yes; sorry? Yes. >>> Quick and dirty, but it'll do, I reckon. >>> >>> Richard >>> >> >> Thanks. I could deal with it. >> >> Is it better now with revision #4808? >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From gambas at ...1... Tue Jun 5 19:01:39 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 05 Jun 2012 19:01:39 +0200 Subject: [Gambas-user] Window position error on applying stored "geometry" In-Reply-To: References: <4FCB4313.9060606@...1...> <4FCBEAA6.8010907@...1...> <4FCDB4DA.50906@...1...> Message-ID: <4FCE3B73.1070204@...1...> Le 05/06/2012 18:11, RICHARD WALKER a ?crit : > On executing reconf-all in trunk I am told: > > libtoolize: You should add the contents of the following files to `aclocal.m4': > libtoolize: `/usr/share/aclocal/libtool.m4' > libtoolize: `/usr/share/aclocal/ltoptions.m4' > libtoolize: `/usr/share/aclocal/ltversion.m4' > libtoolize: `/usr/share/aclocal/ltsugar.m4' > libtoolize: `/usr/share/aclocal/lt~obsolete.m4' > > Do I just copy/paste these files into the end of aclocal.m4? > > R > Mmm. No, you shouldn't care. -- Beno?t Minisini From richard.j.walker at ...247... Tue Jun 5 19:59:49 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Tue, 5 Jun 2012 18:59:49 +0100 Subject: [Gambas-user] Window position error on applying stored "geometry" In-Reply-To: <4FCE3B73.1070204@...1...> References: <4FCB4313.9060606@...1...> <4FCBEAA6.8010907@...1...> <4FCDB4DA.50906@...1...> <4FCE3B73.1070204@...1...> Message-ID: Roger that. I will postpone building this beast until I have journeyed back to Belfast. Just packing up now. Thanks for all your help. R On 05/06/2012, Beno?t Minisini wrote: > Le 05/06/2012 18:11, RICHARD WALKER a ?crit : >> On executing reconf-all in trunk I am told: >> >> libtoolize: You should add the contents of the following files to >> `aclocal.m4': >> libtoolize: `/usr/share/aclocal/libtool.m4' >> libtoolize: `/usr/share/aclocal/ltoptions.m4' >> libtoolize: `/usr/share/aclocal/ltversion.m4' >> libtoolize: `/usr/share/aclocal/ltsugar.m4' >> libtoolize: `/usr/share/aclocal/lt~obsolete.m4' >> >> Do I just copy/paste these files into the end of aclocal.m4? >> >> R >> > > Mmm. No, you shouldn't care. > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Tue Jun 5 20:38:05 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 5 Jun 2012 21:38:05 +0300 Subject: [Gambas-user] New feature in Gambas 3 In-Reply-To: References: <4FB78ADB.3070800@...1...> <4FBA978A.4010608@...1...> <4FBD45B8.1040607@...1...> <4FCAB4A2.2020907@...1...> <4FCBE37A.6030808@...1...> <4FCCFA14.6030508@...1...> Message-ID: [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 wrote: > > OK, now it seems to work, > except when you stop execution from IDE (by clicking stop button) instead > of actually closing the project. > > See attached project. Stopping from IDE gives wrong results. > > Jussi > > > > > On 4 June 2012 21:10, Beno?t Minisini wrote: > >> Le 04/06/2012 17: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, then "System.Profile = True" >> > doesn't turn it on in the middle of the execution..? >> > >> > Jussi >> > >> >> That's the contrary. You must turn progiling on from the IDE, and then >> set System.Profile to FALSE to disable instruction profiling when you >> don't need it, and set it back to TRUE when you want to enable it again. >> >> But System.Profile won't disable function call profiling in any case. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From gambas at ...1... Tue Jun 5 20:48:31 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 05 Jun 2012 20:48:31 +0200 Subject: [Gambas-user] New feature in Gambas 3 In-Reply-To: References: <4FB78ADB.3070800@...1...> <4FBA978A.4010608@...1...> <4FBD45B8.1040607@...1...> <4FCAB4A2.2020907@...1...> <4FCBE37A.6030808@...1...> <4FCCFA14.6030508@...1...> Message-ID: <4FCE547F.5090606@...1...> 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 of that limit? > > Jussi > Did you reach it? -- Beno?t Minisini From jussi.lahtinen at ...626... Tue Jun 5 21:06:48 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 5 Jun 2012 22:06:48 +0300 Subject: [Gambas-user] New feature in Gambas 3 In-Reply-To: <4FCE547F.5090606@...1...> References: <4FB78ADB.3070800@...1...> <4FBA978A.4010608@...1...> <4FBD45B8.1040607@...1...> <4FCAB4A2.2020907@...1...> <4FCBE37A.6030808@...1...> <4FCCFA14.6030508@...1...> <4FCE547F.5090606@...1...> Message-ID: Yes. My project is pretty huge. Jussi On 5 June 2012 21:48, Beno?t Minisini 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 of that limit? > > > > Jussi > > > > Did you reach it? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From richard.j.walker at ...247... Wed Jun 6 02:42:06 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Wed, 6 Jun 2012 01:42:06 +0100 Subject: [Gambas-user] Problems building Gambas3 on Mageia2 Message-ID: The long preparation, configuring making and installing of Gambas 3.1.90, revision #4809 I think, completed without apparent error. Part of the preparation was to fetch the Mageia 2 Gambas 3 (sounds like a football score) source rpm (version 3.1.1) and install it so that I could (1) get any of the missing build requirements, and (2) test build to check the environment. The rpm rebuild was trouble-free and all have been installed. So far, so good. I have uninstalled the 3.1.1 packages and done the reconf-all, configure, make bit. This took several hours, with a two hour car journey in the middle, but from shaky memory the only advisories I got were about jit and gnome desktop not being built. When it came to installing everything I was belatedly advised that several components were missing: gb.qt4 gb.qt4.opengl gb.xml.rpc gb.xml gb.xml.rpc gb.xml.rpc gb.xml.rpc Probably as a consequence, I could not get anything to work; ide, previously built gambas projects, no menu entries, that sort of thing. So I was wondering, are there some new requirements for building the current Gambas 3 over and above those which are used to build version 3.1.1? Richard From bbruen at ...2308... Wed Jun 6 11:18:50 2012 From: bbruen at ...2308... (Bruce) Date: Wed, 06 Jun 2012 18:48:50 +0930 Subject: [Gambas-user] "mutex" applications Message-ID: <1338974330.15067.14.camel@...40...> I have been mucking around with this for about a year now and haven't found a solution. We have a few gambas applications that are treated as pop-ups by the users. That is, they click on some type of launcher (be it a desktop item, a menu item or in our case a wbar icon) and the application starts. Then they minimize it, or go to another desktop, or any other way to hide the application window. Then they relaunch it... ... and get another instance running. However, sort of like things like Evolution, we only want to have one copy of these applications running. So we need some sort of "mutex" checker that ensures that they can only run one instance of the application. So far, I have found that I can use gb.desktop to detect another instance via the window title and just exit gracefully with a "Another instance of xxxxxxxxxxx is running" message. Blah! That doesn't really do what I want. What I want (what I really, really want) is a way to activate the window found and then exit. Any clues? regards Bruce From gambas at ...1... Wed Jun 6 11:29:55 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 06 Jun 2012 11:29:55 +0200 Subject: [Gambas-user] "mutex" applications In-Reply-To: <1338974330.15067.14.camel@...40...> References: <1338974330.15067.14.camel@...40...> Message-ID: <4FCF2313.6020803@...1...> Le 06/06/2012 11:18, Bruce a ?crit : > I have been mucking around with this for about a year now and haven't > found a solution. > > We have a few gambas applications that are treated as pop-ups by the > users. That is, they click on some type of launcher (be it a desktop > item, a menu item or in our case a wbar icon) and the application > starts. > Then they minimize it, or go to another desktop, or any other way to > hide the application window. > Then they relaunch it... > > ... and get another instance running. > > However, sort of like things like Evolution, we only want to have one > copy of these applications running. So we need some sort of "mutex" > checker that ensures that they can only run one instance of the > application. > > So far, I have found that I can use gb.desktop to detect another > instance via the window title and just exit gracefully with a "Another > instance of xxxxxxxxxxx is running" message. > > Blah! > > That doesn't really do what I want. What I want (what I really, really > want) is a way to activate the window found and then exit. > > Any clues? > > regards > Bruce > AFAIK, this is now done through D-Bus on Linux desktop. But you must investigate how exactly, as I didn't look at it yet. The idea should be the following: 1) Register on the D-Bus with an unique name. 2) If it works, then export a class on the D-Bus with a method that activates yourself and eventually opens a specific document. 3) If it does not works, find the application that has registered on the bus, and use its method defined in 2) to activate it, and eventually ask it to open a new document. Regards, -- Beno?t Minisini From eilert-sprachen at ...221... Wed Jun 6 12:38:54 2012 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 06 Jun 2012 12:38:54 +0200 Subject: [Gambas-user] "mutex" applications In-Reply-To: <1338974330.15067.14.camel@...40...> References: <1338974330.15067.14.camel@...40...> Message-ID: <4FCF333E.5050708@...221...> Am 06.06.2012 11:18, schrieb Bruce: > I have been mucking around with this for about a year now and haven't > found a solution. > > We have a few gambas applications that are treated as pop-ups by the > users. That is, they click on some type of launcher (be it a desktop > item, a menu item or in our case a wbar icon) and the application > starts. > Then they minimize it, or go to another desktop, or any other way to > hide the application window. > Then they relaunch it... > > ... and get another instance running. > > However, sort of like things like Evolution, we only want to have one > copy of these applications running. So we need some sort of "mutex" > checker that ensures that they can only run one instance of the > application. > > So far, I have found that I can use gb.desktop to detect another > instance via the window title and just exit gracefully with a "Another > instance of xxxxxxxxxxx is running" message. > > Blah! > > That doesn't really do what I want. What I want (what I really, really > want) is a way to activate the window found and then exit. > > Any clues? > > regards > Bruce Hi Bruce, I have successfully used this code which is from Jussi Lahtinen. I built it into two of my applications, and it works reliably, at least under Gambas2 on our somewhat older system: PUBLIC SUB Form_Open() DIM sOutput AS String EXEC ["pgrep", "-f", "-l", "-u", System.User.Name, "Stein3.gambas"] WAIT TO sOutput IF Split(Trim$(sOutput), gb.NewLine).Count > 1 THEN QUIT ENDIF Just replace "Stein3" by your binary's name. Regards Rolf From rterry at ...1823... Wed Jun 6 13:29:13 2012 From: rterry at ...1823... (Richard Terry) Date: Wed, 06 Jun 2012 21:29:13 +1000 Subject: [Gambas-user] Gridview keypress question Message-ID: <4FCF3F09.90006@...1823...> Hi List, I've got a grid with several columns. If I use the arrow keys, then the grid focus moves up/down or to the next/previous column. I want to over-ride this keypress behaviour, but can't manage it. If iI even try and detect a keypress n this event, nothing happens public Sub Gridview1_Keypress() print key.code end I''ve looked at the properties and can't seem to find one which will allow me to over-ride this behaviour. Probably something dumb I'm not seeing. Any help appreciated. From bbruen at ...2308... Wed Jun 6 13:40:32 2012 From: bbruen at ...2308... (Bruce) Date: Wed, 06 Jun 2012 21:10:32 +0930 Subject: [Gambas-user] Gridview keypress question In-Reply-To: <4FCF3F09.90006@...1823...> References: <4FCF3F09.90006@...1823...> Message-ID: <1338982832.15067.18.camel@...40...> On Wed, 2012-06-06 at 21:29 +1000, Richard Terry wrote: > public Sub Gridview1_Keypress() > > print key.code > > end Quick guess. lookup STOP EVENT. Not really sure ( I'm busy on the other thing). hth Bruce From rterry at ...1823... Wed Jun 6 13:52:28 2012 From: rterry at ...1823... (Richard Terry) Date: Wed, 06 Jun 2012 21:52:28 +1000 Subject: [Gambas-user] Gridview keypress question In-Reply-To: <1338982832.15067.18.camel@...40...> References: <4FCF3F09.90006@...1823...> <1338982832.15067.18.camel@...40...> Message-ID: <4FCF447C.3040703@...1823...> Bruce wrote: > On Wed, 2012-06-06 at 21:29 +1000, Richard Terry wrote: > >> public Sub Gridview1_Keypress() >> >> print key.code >> >> end >> > > Quick guess. lookup STOP EVENT. > > Not really sure ( I'm busy on the other thing). > hth > Bruce > > Tried that, anyway, just experimented after my last post Seems that everytime you hit an up/down/right/left arrow in the grid, the gridview1_select event is triggered and I guess if you could see what was happening, the next column would be moved to (my grid I've constructed to effectively look like and behave like a columnview, so I couldn't see that). To effectively capture the key.code = key.right (or equivalent of this), I just put a if gridview1.column > 0 then ..... Not elegant, but it does what I wanted. Must be a better way. Regards richard > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From bbruen at ...2308... Wed Jun 6 14:20:57 2012 From: bbruen at ...2308... (Bruce) Date: Wed, 06 Jun 2012 21:50:57 +0930 Subject: [Gambas-user] "mutex" applications In-Reply-To: <4FCF333E.5050708@...221...> References: <1338974330.15067.14.camel@...40...> <4FCF333E.5050708@...221...> Message-ID: <1338985257.15067.34.camel@...40...> On Wed, 2012-06-06 at 12:38 +0200, Rolf-Werner Eilert wrote: > Hi Bruce, > > I have successfully used this code which is from Jussi Lahtinen. I built > it into two of my applications, and it works reliably, at least under > Gambas2 on our somewhat older system: > > PUBLIC SUB Form_Open() > DIM sOutput AS String > > EXEC ["pgrep", "-f", "-l", "-u", System.User.Name, "Stein3.gambas"] > WAIT TO sOutput > > IF Split(Trim$(sOutput), gb.NewLine).Count > 1 THEN > QUIT > ENDIF > > Just replace "Stein3" by your binary's name. > > Regards > > Rolf Nice! A lot quicker than using gb.Desktop. Sadly! It doesn't solve the problem of activating the desired window. And there is a slight "weird", it doesn't detect an instance that is running via the IDE. No idea, but don't really care much, that's not the problem. Ah well, back to Benoit's dbus suggestion. Oh, how I hate having to learn these "new" techo things. Back tomorrow. regards Bruce From tobiasboege01 at ...1601... Wed Jun 6 14:32:07 2012 From: tobiasboege01 at ...1601... (tobi) Date: Wed, 6 Jun 2012 14:32:07 +0200 Subject: [Gambas-user] "mutex" applications In-Reply-To: <1338985257.15067.34.camel@...40...> References: <1338974330.15067.14.camel@...40...> <4FCF333E.5050708@...221...> <1338985257.15067.34.camel@...40...> Message-ID: <20120606123207.GA612@...2774...> On Wed, 06 Jun 2012, Bruce wrote: > On Wed, 2012-06-06 at 12:38 +0200, Rolf-Werner Eilert wrote: > > > Hi Bruce, > > > > I have successfully used this code which is from Jussi Lahtinen. I built > > it into two of my applications, and it works reliably, at least under > > Gambas2 on our somewhat older system: > > > > PUBLIC SUB Form_Open() > > DIM sOutput AS String > > > > EXEC ["pgrep", "-f", "-l", "-u", System.User.Name, "Stein3.gambas"] > > WAIT TO sOutput > > > > IF Split(Trim$(sOutput), gb.NewLine).Count > 1 THEN > > QUIT > > ENDIF > > > > Just replace "Stein3" by your binary's name. > > > > Regards > > > > Rolf > > > Nice! A lot quicker than using gb.Desktop. > > > Sadly! > It doesn't solve the problem of activating the desired window. > > And there is a slight "weird", it doesn't detect an instance that is > running via the IDE. No idea, but don't really care much, that's not > the problem. > > Ah well, back to Benoit's dbus suggestion. Oh, how I hate having to > learn these "new" techo things. > > Back tomorrow. > > regards > Bruce > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user As another possible solution, like firefox once did - when I last used it at least -, is to create a lockfile and check for that. If you are running, the lockfile exists, when program terminates, it removes the file. I suggest to deliver a script to remove that lockfile in case of application crash (I wrote such a thing for the firefox at our school because students seem to either manage to crash firefox very often or login as the same users all the time). You can create that file on whatever scope you want it to act in, like per user, e.g. in their home directories, or system-wide, e.g. in /tmp. Regards, Tobi From gambas at ...1... Wed Jun 6 19:05:31 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 06 Jun 2012 19:05:31 +0200 Subject: [Gambas-user] "mutex" applications In-Reply-To: <20120606123207.GA612@...2774...> References: <1338974330.15067.14.camel@...40...> <4FCF333E.5050708@...221...> <1338985257.15067.34.camel@...40...> <20120606123207.GA612@...2774...> Message-ID: <4FCF8DDB.2090508@...1...> Le 06/06/2012 14:32, tobi a ?crit : > On Wed, 06 Jun 2012, Bruce wrote: >> On Wed, 2012-06-06 at 12:38 +0200, Rolf-Werner Eilert wrote: >> >>> Hi Bruce, >>> >>> I have successfully used this code which is from Jussi Lahtinen. I built >>> it into two of my applications, and it works reliably, at least under >>> Gambas2 on our somewhat older system: >>> >>> PUBLIC SUB Form_Open() >>> DIM sOutput AS String >>> >>> EXEC ["pgrep", "-f", "-l", "-u", System.User.Name, "Stein3.gambas"] >>> WAIT TO sOutput >>> >>> IF Split(Trim$(sOutput), gb.NewLine).Count> 1 THEN >>> QUIT >>> ENDIF >>> >>> Just replace "Stein3" by your binary's name. >>> >>> Regards >>> >>> Rolf >> >> >> Nice! A lot quicker than using gb.Desktop. >> >> >> Sadly! >> It doesn't solve the problem of activating the desired window. >> >> And there is a slight "weird", it doesn't detect an instance that is >> running via the IDE. No idea, but don't really care much, that's not >> the problem. >> >> Ah well, back to Benoit's dbus suggestion. Oh, how I hate having to >> learn these "new" techo things. >> >> Back tomorrow. >> >> regards >> Bruce The good solution is using D-Bus. It is not very difficult actually. As soon as I have time I will try to make a Gambas function in the gb.dbus component so that you can create "unique" application as simply as possible. Regards, -- Beno?t Minisini From tobiasboege01 at ...1601... Wed Jun 6 20:12:24 2012 From: tobiasboege01 at ...1601... (tobi) Date: Wed, 6 Jun 2012 20:12:24 +0200 Subject: [Gambas-user] Configuration issue with gb.desktop Message-ID: <20120606181224.GA1252@...2774...> Hi, I just moved to a new machine and tried to compile gambas3 again. On make, I get with gb.desktop: make[5]: Entering directory `/home/woodap/sources/gambas3/gb.desktop/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -ggdb -Os -MT gb_desktop_la-main.lo -MD -MP -MF .deps/gb_desktop_la-main.Tpo -c -o gb_desktop_la-main.lo `test -f 'main.c' || echo './'`main.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -ggdb -Os -MT gb_desktop_la-main.lo -MD -MP -MF .deps/gb_desktop_la-main.Tpo -c main.c -fPIC -DPIC -o .libs/gb_desktop_la-main.o In file included from main.c:26:0: x11.h:27:22: fatal error: X11/Xlib.h: No such file or directory compilation terminated. Yes! I never had any X on this machine (unlike on the old one where everything got compiled). Shouldn't the component be disabled by the configure script when required headers are not found? Regards, Tobi From richard.j.walker at ...247... Wed Jun 6 21:19:47 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Wed, 6 Jun 2012 20:19:47 +0100 Subject: [Gambas-user] Problems building Gambas3 on Mageia2 In-Reply-To: References: Message-ID: I think I have spotted a possible mistake on my part; I left off the -C from ./configure -C. I haven't seen that before, so I have no idea what effect it might have, but I am re-configuting now and will soon start my 4th build. R On 06/06/2012, RICHARD WALKER wrote: > The long preparation, configuring making and installing of Gambas > 3.1.90, revision #4809 I think, completed without apparent error. > > Part of the preparation was to fetch the Mageia 2 Gambas 3 (sounds > like a football score) source rpm (version 3.1.1) and install it so > that I could (1) get any of the missing build requirements, and (2) > test build to check the environment. The rpm rebuild was trouble-free > and all have been installed. So far, so good. > > I have uninstalled the 3.1.1 packages and done the reconf-all, > configure, make bit. This took several hours, with a two hour car > journey in the middle, but from shaky memory the only advisories I got > were about jit and gnome desktop not being built. > > When it came to installing everything I was belatedly advised that > several components were missing: > gb.qt4 > gb.qt4.opengl > gb.xml.rpc > gb.xml > gb.xml.rpc > gb.xml.rpc > gb.xml.rpc > > Probably as a consequence, I could not get anything to work; ide, > previously built gambas projects, no menu entries, that sort of thing. > > So I was wondering, are there some new requirements for building the > current Gambas 3 over and above those which are used to build version > 3.1.1? > > Richard > From matteo.pasotti at ...626... Wed Jun 6 23:41:56 2012 From: matteo.pasotti at ...626... (Matteo Pasotti) Date: Wed, 06 Jun 2012 23:41:56 +0200 Subject: [Gambas-user] Problems building Gambas3 on Mageia2 In-Reply-To: References: Message-ID: <4FCFCEA4.6000208@...626...> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 06/06/2012 02:42, RICHARD WALKER wrote: > The long preparation, configuring making and installing of Gambas > 3.1.90, revision #4809 I think, completed without apparent error. > > Part of the preparation was to fetch the Mageia 2 Gambas 3 (sounds > like a football score) source rpm (version 3.1.1) and install it > so that I could (1) get any of the missing build requirements, and > (2) test build to check the environment. The rpm rebuild was > trouble-free and all have been installed. So far, so good. > > I have uninstalled the 3.1.1 packages and done the reconf-all, > configure, make bit. This took several hours, with a two hour car > journey in the middle, but from shaky memory the only advisories I > got were about jit and gnome desktop not being built. > > When it came to installing everything I was belatedly advised that > several components were missing: gb.qt4 gb.qt4.opengl gb.xml.rpc > gb.xml gb.xml.rpc gb.xml.rpc gb.xml.rpc > > Probably as a consequence, I could not get anything to work; ide, > previously built gambas projects, no menu entries, that sort of > thing. > > So I was wondering, are there some new requirements for building > the current Gambas 3 over and above those which are used to build > version 3.1.1? > > Richard > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. > Discussions will include endpoint security, mobile security and the > latest in malware threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ Gambas-user mailing > list Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Hi Richard, there's http://gambasdoc.org/help/install/mageia?v3 to know how to build gambas3 on Mageia. Two devel packages was missing: gsl-devel and qtwebkit-devel, now it should be almost complete. Let us know if something is missing. Regards - -- Matteo -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPz86fAAoJED3LowjDDWbNMj4IAK1Pc09YfrLFDjol0eYTJFrO ScZKIufR4weimlh5QZauxkvEerTPd8Ul7r0K/e7w4tmBAkVOblEi7jzEQ/sNfuRG YZsxy9sBIejkSu0bl6vxF7bRcfXpVhLC+NH8Bupl+96qVtrOsxeOf1dJZmjM7iMF vyV2d7jof/4JfLFoDqIVigZ/bNEHXjSZUXwy2ELvEQYvGxbDmgPcYHYNAPysZ4CP WY0jfD5/0aPeZtPzhrQxltH/W9NsHuWjAX5pezSECJOJ3Nrx7LobGeGJ54ms/GCD EWg3KNGg027P1BRxUzCbEuw0BOM4ChwvhB5FVcTVzW8R91Fge9LaUDNPawp4JgY= =an2s -----END PGP SIGNATURE----- From richard.j.walker at ...247... Thu Jun 7 00:17:57 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Wed, 6 Jun 2012 23:17:57 +0100 Subject: [Gambas-user] Problems building Gambas3 on Mageia2 In-Reply-To: <4FCFCEA4.6000208@...626...> References: <4FCFCEA4.6000208@...626...> Message-ID: On 06/06/2012, Matteo Pasotti wrote: > there's http://gambasdoc.org/help/install/mageia?v3 to know how to > build gambas3 on Mageia. > Two devel packages was missing: gsl-devel and qtwebkit-devel, now it > should be almost complete. > Let us know if something is missing. I used that page to compare with the buildrequires in the mga2 source rpm for Gambas 3.1.1. There are quite a few differences, but as I already had executed urpmi --buildrequires [...].mga2.rpm the two libraries you mention were indeed already installed. My difficulty is in building revision #4809, or rather, it builds without obvious fault and then makes a mess of the install. My latest result is an apparently faultless install (don't ask how I achieved that, I thought I was repeating a known failing method) but still no obvious evidence that Gambas 3 is really there. There is nothing in the menu, desktop shortcuts to the ide and to a few pre-compiled Gambas 3 projects produce no visible result and executing gambas3 in a console produces the strangest error message: [richard at ...2863... gambas3-sources]$ gambas3 gbr3: no project file in '/usr/bin/gambas3'. I have reached tether's end with this one. I had just decided to update from subversion again when I saw your reply. My intention was to check out a fix for a bug on xinerama screens which Beno?t had committed in revision #4808. The Big Plan was to analyse the fix and see if I could derive a patch to apply to MGA2's version 3.1.1, and then submit that to the maintainer so I could go on using stock Mageia packages for Gambas (I know my brother would benefit from the fix too). So, if you have no startling insight into why the built gb.qt4 and gb.xml stuff is not installing (every time) and why the installed gambas3 is babbling on about a Gambas project file being missing, then I think I will dump this revision and try tonight's available offering. I might sound grumpy, but I am actually having fun! Richard From nando_f at ...951... Thu Jun 7 03:49:29 2012 From: nando_f at ...951... (nando) Date: Wed, 6 Jun 2012 21:49:29 -0400 Subject: [Gambas-user] "mutex" applications In-Reply-To: <4FCF8DDB.2090508@...1...> References: <1338974330.15067.14.camel@...40...> <4FCF333E.5050708@...221...> <1338985257.15067.34.camel@...40...> <20120606123207.GA612@...2774...> <4FCF8DDB.2090508@...1...> Message-ID: <20120607014738.M77240@...951...> I'd like to suggest a form property called 'Singleton' when _new or _init is called (whichever creates the object) then it will not create a second and only return the first instance of it. Somewhat like a module. ---------- Original Message ----------- From: Beno?t Minisini To: mailing list for gambas users Sent: Wed, 06 Jun 2012 19:05:31 +0200 Subject: Re: [Gambas-user] "mutex" applications > Le 06/06/2012 14:32, tobi a ?crit : > > On Wed, 06 Jun 2012, Bruce wrote: > >> On Wed, 2012-06-06 at 12:38 +0200, Rolf-Werner Eilert wrote: > >> > >>> Hi Bruce, > >>> > >>> I have successfully used this code which is from Jussi Lahtinen. I built > >>> it into two of my applications, and it works reliably, at least under > >>> Gambas2 on our somewhat older system: > >>> > >>> PUBLIC SUB Form_Open() > >>> DIM sOutput AS String > >>> > >>> EXEC ["pgrep", "-f", "-l", "-u", System.User.Name, "Stein3.gambas"] > >>> WAIT TO sOutput > >>> > >>> IF Split(Trim$(sOutput), gb.NewLine).Count> 1 THEN > >>> QUIT > >>> ENDIF > >>> > >>> Just replace "Stein3" by your binary's name. > >>> > >>> Regards > >>> > >>> Rolf > >> > >> > >> Nice! A lot quicker than using gb.Desktop. > >> > >> > >> Sadly! > >> It doesn't solve the problem of activating the desired window. > >> > >> And there is a slight "weird", it doesn't detect an instance that is > >> running via the IDE. No idea, but don't really care much, that's not > >> the problem. > >> > >> Ah well, back to Benoit's dbus suggestion. Oh, how I hate having to > >> learn these "new" techo things. > >> > >> Back tomorrow. > >> > >> regards > >> Bruce > > The good solution is using D-Bus. It is not very difficult actually. > > As soon as I have time I will try to make a Gambas function in the > gb.dbus component so that you can create "unique" application as simply > as possible. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From bbruen at ...2308... Thu Jun 7 04:39:52 2012 From: bbruen at ...2308... (Bruce) Date: Thu, 07 Jun 2012 12:09:52 +0930 Subject: [Gambas-user] "mutex" applications In-Reply-To: <20120607014738.M77240@...951...> References: <1338974330.15067.14.camel@...40...> <4FCF333E.5050708@...221...> <1338985257.15067.34.camel@...40...> <20120606123207.GA612@...2774...> <4FCF8DDB.2090508@...1...> <20120607014738.M77240@...951...> Message-ID: <1339036792.15067.38.camel@...40...> On Wed, 2012-06-06 at 21:49 -0400, nando wrote: > I'd like to suggest a form property called 'Singleton' > when _new or _init is called (whichever creates the object) > then it will not create a second and only > return the first instance of it. Somewhat like a module. nando, That is quite easy to implement (for forms and any class) using a static boolean set true in the _Init() method and checked in the _New() method. This is a different thing altogether, I am trying to ensure that only one instance of an application is running. regards Bruce From bbruen at ...2308... Thu Jun 7 04:55:34 2012 From: bbruen at ...2308... (Bruce) Date: Thu, 07 Jun 2012 12:25:34 +0930 Subject: [Gambas-user] "mutex" applications In-Reply-To: <1339036792.15067.38.camel@...40...> References: <1338974330.15067.14.camel@...40...> <4FCF333E.5050708@...221...> <1338985257.15067.34.camel@...40...> <20120606123207.GA612@...2774...> <4FCF8DDB.2090508@...1...> <20120607014738.M77240@...951...> <1339036792.15067.38.camel@...40...> Message-ID: <1339037734.15067.40.camel@...40...> On Thu, 2012-06-07 at 12:09 +0930, Bruce wrote: > On Wed, 2012-06-06 at 21:49 -0400, nando wrote: > > I'd like to suggest a form property called 'Singleton' > > when _new or _init is called (whichever creates the object) > > then it will not create a second and only > > return the first instance of it. Somewhat like a module. > > nando, > > That is quite easy to implement (for forms and any class) using a static > boolean set true in the _Init() method and checked in the _New() method. > > This is a different thing altogether, I am trying to ensure that only > one instance of an application is running. > > regards > Bruce > Sorry that's both checked and set in the _new() method. (Can't think on two things at once.) B From richard.j.walker at ...247... Fri Jun 8 03:08:18 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Fri, 8 Jun 2012 02:08:18 +0100 Subject: [Gambas-user] Problems building Gambas3 on Mageia2 In-Reply-To: References: <4FCFCEA4.6000208@...626...> Message-ID: I hate mysteries. I hate it when I get a program installation to work without knowing why it was so stubbornly refusing to install properly for so long. After a wild-goose chase trying to figure out why I was getting pkg-config warnings (but only for the installed gsl libraries) and discovering that there was a need for a missing gnome-keyring devel package I was still getting the same error when trying to execute gambas3 in a console. I discovered by accident that all the gmbas3 libraries had been installed in /usr/lib !!! Now there was a surprise. Gambas cannot compile without reference to the libraries in /usr/lib64 so why put its own stuff in /usr/lib? I just copied it all over to the right place and, lo and behold, everything works now. On 06/06/2012, RICHARD WALKER wrote: > On 06/06/2012, Matteo Pasotti wrote: >> there's http://gambasdoc.org/help/install/mageia?v3 to know how to >> build gambas3 on Mageia. >> Two devel packages was missing: gsl-devel and qtwebkit-devel, now it >> should be almost complete. >> Let us know if something is missing. > > I used that page to compare with the buildrequires in the mga2 source > rpm for Gambas 3.1.1. > There are quite a few differences, but as I already had executed urpmi > --buildrequires [...].mga2.rpm the two libraries you mention were > indeed already installed. > > My difficulty is in building revision #4809, or rather, it builds > without obvious fault and then makes a mess of the install. My latest > result is an apparently faultless install (don't ask how I achieved > that, I thought I was repeating a known failing method) but still no > obvious evidence that Gambas 3 is really there. There is nothing in > the menu, desktop shortcuts to the ide and to a few pre-compiled > Gambas 3 projects produce no visible result and executing gambas3 in a > console produces the strangest error message: > > [richard at ...2863... gambas3-sources]$ gambas3 > gbr3: no project file in '/usr/bin/gambas3'. > > I have reached tether's end with this one. I had just decided to > update from subversion again when I saw your reply. My intention was > to check out a fix for a bug on xinerama screens which Beno?t had > committed in revision #4808. The Big Plan was to analyse the fix and > see if I could derive a patch to apply to MGA2's version 3.1.1, and > then submit that to the maintainer so I could go on using stock Mageia > packages for Gambas (I know my brother would benefit from the fix > too). > > So, if you have no startling insight into why the built gb.qt4 and > gb.xml stuff is not installing (every time) and why the installed > gambas3 is babbling on about a Gambas project file being missing, then > I think I will dump this revision and try tonight's available > offering. > > I might sound grumpy, but I am actually having fun! > > Richard > From richard.j.walker at ...247... Fri Jun 8 03:34:44 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Fri, 8 Jun 2012 02:34:44 +0100 Subject: [Gambas-user] Window position error on applying stored "geometry" In-Reply-To: References: <4FCB4313.9060606@...1...> <4FCBEAA6.8010907@...1...> <4FCDB4DA.50906@...1...> <4FCE3B73.1070204@...1...> Message-ID: That certainly took longer than it should, but I have finally managed to get revision #4809 built and manually installed (at least I have a menu entry and the desktop icon for the ide has revealed itself) and I have tested my test-bed project in a real dual monitor setup (and in the pseudo-xinerama Xephyr window), and it works everywhere! Thank you, Beno?t, for the fix. May I ask where the problem was found? I would very much like to have a go at patching the Gambas3 distributed by Mageia and maybe get it into a Mageia bug-fix update. Richard On 05/06/2012, RICHARD WALKER wrote: > Roger that. I will postpone building this beast until I have journeyed > back to Belfast. Just packing up now. > > Thanks for all your help. > > R > > On 05/06/2012, Beno?t Minisini wrote: >> Le 05/06/2012 18:11, RICHARD WALKER a ?crit : >>> On executing reconf-all in trunk I am told: >>> >>> libtoolize: You should add the contents of the following files to >>> `aclocal.m4': >>> libtoolize: `/usr/share/aclocal/libtool.m4' >>> libtoolize: `/usr/share/aclocal/ltoptions.m4' >>> libtoolize: `/usr/share/aclocal/ltversion.m4' >>> libtoolize: `/usr/share/aclocal/ltsugar.m4' >>> libtoolize: `/usr/share/aclocal/lt~obsolete.m4' >>> >>> Do I just copy/paste these files into the end of aclocal.m4? >>> >>> R >>> >> >> Mmm. No, you shouldn't care. >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From joem at ...2671... Sat Jun 9 00:16:10 2012 From: joem at ...2671... (jm) Date: Fri, 08 Jun 2012 23:16:10 +0100 Subject: [Gambas-user] C like #include for Gambas Message-ID: <1339193770.24311.5.camel@...2672...> 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 is to address programs that are growing out of control in size. These are working megalithic programs that have had years of code piled on top of other code. The code has lost none of their lustre and needs to be expanded even more and that bit is being held up by this issue: If I break down programs into modules, then there is a huge overhead in passing parameters. If I break it down into classes, there is still a huge overhead in setting up classes and passing data around. These are programs that require hundred(s) of parameters to be set up if they are to pass data around to do one simple thing correctly. I have no problems doing it, but its boring and now becoming prone to mistakes in the way the parameters are being set up, and the order in which objects are being created. It is difficult to keep track of thousands of things at the same time. So I was thinking, it would be better to allow gambas programs to grow in size to reduce the number of different ways the objects are set up. But that is fatal, because you just can't find stuff quickly enough when you got tens of thousands of lines. I also program in C, and #include is a common way to pull in stuff from all over the place. It is a way to pull in mega numbers of .h and .c program files from all over the place and make a huge program without actually writing uneditable huge programs. The individual .c and .h programs make life so easy to debug and mix and match files as you need it by using a #include at the time and place you need it. Each of the .h and .c programs are separately maintained. Because there is only one .h file or one .c file, there is never any mistakes during duplication. If gambas supported #include, it would be possible to use #include to pull in variable declarations, and snippets of well trodden code as needed without having to copy and paste that would otherwise end up with numerous copies of similar code. Instead there will be just a couple of files that gets pulled in as needed with a #include. Any chance of sneaking in this productivity enhancing feature? :-) ______________________________________________________________________________ This message has been checked for viruses and spam by Corpex using the ArmourPlate Anti Virus and Anti Spam Scanning Service. To find out more and see our email archiving service see http://www.armourplate.com or call Corpex on UK 0845 050 1898. From stfn77 at ...626... Sat Jun 9 01:28:50 2012 From: stfn77 at ...626... (stfn settesette) Date: Sat, 9 Jun 2012 01:28:50 +0200 Subject: [Gambas-user] install problem Message-ID: hi guy i am stefano i have little problem i have in virtual machine xubuntu 11.10 whit xfce 4.8 and just installed gambas2 by repository (go ok )but i want install gambas 3.1.1 ,i just follow the istruction ( http://gambas.sourceforge.net/en/main.html) but give me much error i attach the error -------------- next part -------------- Making install in main make[1]: ingresso nella directory "/home/stefano/Scaricati/gambas3-3.1.1/main" Making install in gbc make[2]: ingresso nella directory "/home/stefano/Scaricati/gambas3-3.1.1/main/gbc" make[3]: ingresso nella directory "/home/stefano/Scaricati/gambas3-3.1.1/main/gbc" test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin" /bin/bash ../libtool --mode=install /usr/bin/install -c gbc3 gba3 gbi3 '/usr/local/bin' /bin/bash: ../libtool: File o directory non esistente make[3]: *** [install-binPROGRAMS] Errore 127 make[3]: uscita dalla directory "/home/stefano/Scaricati/gambas3-3.1.1/main/gbc" make[2]: *** [install-am] Errore 2 make[2]: uscita dalla directory "/home/stefano/Scaricati/gambas3-3.1.1/main/gbc" make[1]: *** [install-recursive] Errore 1 make[1]: uscita dalla directory "/home/stefano/Scaricati/gambas3-3.1.1/main" make: *** [install-recursive] Errore 1 -------------- next part -------------- libtoolize: putting auxiliary files in `.'. libtoolize: copying file `./ltmain.sh' libtoolize: You should add the contents of the following files to `aclocal.m4': libtoolize: `/usr/share/aclocal/libtool.m4' libtoolize: `/usr/share/aclocal/ltoptions.m4' libtoolize: `/usr/share/aclocal/ltversion.m4' libtoolize: `/usr/share/aclocal/ltsugar.m4' libtoolize: `/usr/share/aclocal/lt~obsolete.m4' libtoolize: Remember to add `LT_INIT' to configure.ac. libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal autom4te: cannot open autom4te.cache/requests: Permesso negato aclocal: /usr/bin/autom4te failed with exit status: 1 autoreconf: aclocal failed with exit status: 1 From jussi.lahtinen at ...626... Sat Jun 9 01:45:18 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 9 Jun 2012 02:45:18 +0300 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: <1339193770.24311.5.camel@...2672...> References: <1339193770.24311.5.camel@...2672...> Message-ID: 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 yourmodule" then just write "yourmodule.whateveryouneed". This sounds more like design problem of the code, than limitation of Gambas. Jussi On 9 June 2012 01:16, jm 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 is to address programs that are growing > out of control in size. These are working megalithic programs that > have had years of code piled on top of other code. > The code has lost none of their lustre and needs to be > expanded even more and that bit is being held up > by this issue: > > If I break down programs into modules, then there is a huge > overhead in passing parameters. > > If I break it down into classes, there is still a huge overhead > in setting up classes and passing data around. > > These are programs that require hundred(s) of parameters to be > set up if they are to pass data around to do one simple thing > correctly. > > I have no problems doing it, but its boring and now becoming > prone to mistakes in the way the parameters are being set up, > and the order in which objects are being created. > It is difficult to keep track of thousands of things at the > same time. > > So I was thinking, it would be better to allow gambas programs > to grow in size to reduce the number of different ways the > objects are set up. But that is fatal, because you just can't find stuff > quickly enough when you got tens of thousands of lines. > > I also program in C, and #include is a common way to > pull in stuff from all over the place. It is a way to > pull in mega numbers of .h and .c program files from all over the place > and make a huge program without actually writing uneditable huge > programs. > > The individual .c and .h programs make life so easy to debug > and mix and match files as you need it by using a #include > at the time and place you need it. > Each of the .h and .c programs are separately maintained. > Because there is only one .h file or one .c file, > there is never any mistakes during duplication. > > If gambas supported #include, it would be possible > to use #include to pull in variable declarations, > and snippets of well trodden code as needed without having > to copy and paste that would otherwise end up with numerous copies > of similar code. Instead there will be just a couple > of files that gets pulled in as needed with a #include. > > Any chance of sneaking in this productivity enhancing feature? :-) > > > > > ______________________________________________________________________________ > This message has been checked for viruses and spam by Corpex using > the ArmourPlate Anti Virus and Anti Spam Scanning Service. > To find out more and see our email archiving service see > http://www.armourplate.com or call Corpex on UK 0845 050 1898. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sat Jun 9 02:01:11 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 9 Jun 2012 03:01:11 +0300 Subject: [Gambas-user] install problem In-Reply-To: References: Message-ID: 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 wrote: > hi guy i am stefano i have little problem > i have in virtual machine xubuntu 11.10 whit xfce 4.8 and just > installed gambas2 by repository (go ok )but i want install gambas > 3.1.1 ,i just follow the istruction ( > http://gambas.sourceforge.net/en/main.html) but give me much error i > attach the error > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From dusan.petrovcic at ...67... Sat Jun 9 12:21:13 2012 From: dusan.petrovcic at ...67... (fire666) Date: Sat, 9 Jun 2012 03:21:13 -0700 (PDT) Subject: [Gambas-user] C like #include for Gambas In-Reply-To: <1339193770.24311.5.camel@...2672...> References: <1339193770.24311.5.camel@...2672...> Message-ID: <33985552.post@...1379...> well in gambas you can include differently afaik try turning on and off: project --> properties --> components if you don't have some turned on you can't do some stuff jm-24 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 is to address programs that are growing > out of control in size. These are working megalithic programs that > have had years of code piled on top of other code. > The code has lost none of their lustre and needs to be > expanded even more and that bit is being held up > by this issue: > > If I break down programs into modules, then there is a huge > overhead in passing parameters. > > If I break it down into classes, there is still a huge overhead > in setting up classes and passing data around. > > These are programs that require hundred(s) of parameters to be > set up if they are to pass data around to do one simple thing > correctly. > > I have no problems doing it, but its boring and now becoming > prone to mistakes in the way the parameters are being set up, > and the order in which objects are being created. > It is difficult to keep track of thousands of things at the > same time. > > So I was thinking, it would be better to allow gambas programs > to grow in size to reduce the number of different ways the > objects are set up. But that is fatal, because you just can't find stuff > quickly enough when you got tens of thousands of lines. > > I also program in C, and #include is a common way to > pull in stuff from all over the place. It is a way to > pull in mega numbers of .h and .c program files from all over the place > and make a huge program without actually writing uneditable huge > programs. > > The individual .c and .h programs make life so easy to debug > and mix and match files as you need it by using a #include > at the time and place you need it. > Each of the .h and .c programs are separately maintained. > Because there is only one .h file or one .c file, > there is never any mistakes during duplication. > > If gambas supported #include, it would be possible > to use #include to pull in variable declarations, > and snippets of well trodden code as needed without having > to copy and paste that would otherwise end up with numerous copies > of similar code. Instead there will be just a couple > of files that gets pulled in as needed with a #include. > > Any chance of sneaking in this productivity enhancing feature? :-) > > > > ______________________________________________________________________________ > This message has been checked for viruses and spam by Corpex using > the ArmourPlate Anti Virus and Anti Spam Scanning Service. > To find out more and see our email archiving service see > http://www.armourplate.com or call Corpex on UK 0845 050 1898. > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/C-like--include-for-Gambas-tp33984378p33985552.html Sent from the gambas-user mailing list archive at Nabble.com. From vuott at ...325... Sat Jun 9 14:06:05 2012 From: vuott at ...325... (Ru Vuott) Date: Sat, 9 Jun 2012 13:06:05 +0100 (BST) Subject: [Gambas-user] rev. 4815 - "Extern" doesn't work ? In-Reply-To: <4FBD8511.2020200@...1...> Message-ID: <1339243565.20007.YahooMailClassic@...2691...> I feel that I can no longer invoke external functions contained in libraries. In fact all my programs, that contain calls to external functions by Extern, now they return to me - on the line where there is the external function call - the error: "Illegal function" ! :-O Can you control it ? Regards P.S.: My updated: rev 4815 From jussi.lahtinen at ...626... Sat Jun 9 14:12:09 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 9 Jun 2012 15:12:09 +0300 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: <1339193770.24311.5.camel@...2672...> References: <1339193770.24311.5.camel@...2672...> Message-ID: Maybe you need to use Export? http://gambasdoc.org/help/lang/export?v3 Jussi On 9 June 2012 01:16, jm 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 is to address programs that are growing > out of control in size. These are working megalithic programs that > have had years of code piled on top of other code. > The code has lost none of their lustre and needs to be > expanded even more and that bit is being held up > by this issue: > > If I break down programs into modules, then there is a huge > overhead in passing parameters. > > If I break it down into classes, there is still a huge overhead > in setting up classes and passing data around. > > These are programs that require hundred(s) of parameters to be > set up if they are to pass data around to do one simple thing > correctly. > > I have no problems doing it, but its boring and now becoming > prone to mistakes in the way the parameters are being set up, > and the order in which objects are being created. > It is difficult to keep track of thousands of things at the > same time. > > So I was thinking, it would be better to allow gambas programs > to grow in size to reduce the number of different ways the > objects are set up. But that is fatal, because you just can't find stuff > quickly enough when you got tens of thousands of lines. > > I also program in C, and #include is a common way to > pull in stuff from all over the place. It is a way to > pull in mega numbers of .h and .c program files from all over the place > and make a huge program without actually writing uneditable huge > programs. > > The individual .c and .h programs make life so easy to debug > and mix and match files as you need it by using a #include > at the time and place you need it. > Each of the .h and .c programs are separately maintained. > Because there is only one .h file or one .c file, > there is never any mistakes during duplication. > > If gambas supported #include, it would be possible > to use #include to pull in variable declarations, > and snippets of well trodden code as needed without having > to copy and paste that would otherwise end up with numerous copies > of similar code. Instead there will be just a couple > of files that gets pulled in as needed with a #include. > > Any chance of sneaking in this productivity enhancing feature? :-) > > > > > ______________________________________________________________________________ > This message has been checked for viruses and spam by Corpex using > the ArmourPlate Anti Virus and Anti Spam Scanning Service. > To find out more and see our email archiving service see > http://www.armourplate.com or call Corpex on UK 0845 050 1898. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From joem at ...2671... Sat Jun 9 14:51:35 2012 From: joem at ...2671... (jm) Date: Sat, 09 Jun 2012 13:51:35 +0100 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: References: <1339193770.24311.5.camel@...2672...> Message-ID: <1339246295.25650.4.camel@...2672...> 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. > > 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 yourmodule" then > just write "yourmodule.whateveryouneed". > > This sounds more like design problem of the code, than limitation of Gambas. > > Jussi > > C thrives on #include without showing signs of design problems. Tens of thousands of external lines of code can be pulled in with a dozen #include statements, leaving the code completely manageable, readable and a lot more powerful than any other competing method. The nearest competing method is use of modules and classes but these are nowhere near as powerful for the simple reason explained previously which is that large versions of these objects cannot be initialised without expending large amounts of effort at initialising them. For example, in module_a.module you might have PRIVATE CONST MAXIMUM_CSV_PARAMETERS AS Integer = 100 PRIVATE WordMarker1 AS Integer : '200 further variable declarations and initialisations : PRIVATE sParameterNameArray AS NEW String[MAXIMUM_CSV_PARAMETERS] PRIVATE sParameterValueArray AS NEW String[MAXIMUM_CSV_PARAMETERS] ' 'add more code specific to module_a In module_b.module you might have PRIVATE CONST MAXIMUM_CSV_PARAMETERS AS Integer = 300 PRIVATE WordMarker1 AS Integer : '200 further variable declarations and initialisations : PRIVATE sParameterNameArray AS NEW String[MAXIMUM_CSV_PARAMETERS] PRIVATE sParameterValueArray AS NEW String[MAXIMUM_CSV_PARAMETERS] ' 'add more code specific to module_b It would be simpler to have C like # include to increase the programming power. So in module_a.module the program would read like a C #include: PRIVATE CONST MAXIMUM_CSV_PARAMETERS AS Integer = 100 #include "initialise_csv_variables.include" ' 'add more code specific to module_a and in module_b.module it would read: PRIVATE CONST MAXIMUM_CSV_PARAMETERS AS Integer = 300 #include "initialise_csv_variables.include" ' 'add more code specific to module_b and in a file called initialise_csv_variables.include it would contain: PRIVATE WordMarker1 AS Integer : '200 further variable declarations and initialisations : PRIVATE sParameterNameArray AS NEW String[MAXIMUM_CSV_PARAMETERS] PRIVATE sParameterValueArray AS NEW String[MAXIMUM_CSV_PARAMETERS] The #include files can contain any amount of well trodden proven gambas code which is maintained in only one file. I will argue that adding C like #include functionality saves a ton of work in mega programs which are already working well, but now needs to be expanded even further. Any chance of sneaking in this productivity enhancing feature? :-) > > > On 9 June 2012 01:16, jm 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 is to address programs that are growing > > out of control in size. These are working megalithic programs that > > have had years of code piled on top of other code. > > The code has lost none of their lustre and needs to be > > expanded even more and that bit is being held up > > by this issue: > > > > If I break down programs into modules, then there is a huge > > overhead in passing parameters. > > > > If I break it down into classes, there is still a huge overhead > > in setting up classes and passing data around. > > > > These are programs that require hundred(s) of parameters to be > > set up if they are to pass data around to do one simple thing > > correctly. > > > > I have no problems doing it, but its boring and now becoming > > prone to mistakes in the way the parameters are being set up, > > and the order in which objects are being created. > > It is difficult to keep track of thousands of things at the > > same time. > > > > So I was thinking, it would be better to allow gambas programs > > to grow in size to reduce the number of different ways the > > objects are set up. But that is fatal, because you just can't find stuff > > quickly enough when you got tens of thousands of lines. > > > > I also program in C, and #include is a common way to > > pull in stuff from all over the place. It is a way to > > pull in mega numbers of .h and .c program files from all over the place > > and make a huge program without actually writing uneditable huge > > programs. > > > > The individual .c and .h programs make life so easy to debug > > and mix and match files as you need it by using a #include > > at the time and place you need it. > > Each of the .h and .c programs are separately maintained. > > Because there is only one .h file or one .c file, > > there is never any mistakes during duplication. > > > > If gambas supported #include, it would be possible > > to use #include to pull in variable declarations, > > and snippets of well trodden code as needed without having > > to copy and paste that would otherwise end up with numerous copies > > of similar code. Instead there will be just a couple > > of files that gets pulled in as needed with a #include. > > > > Any chance of sneaking in this productivity enhancing feature? :-) > > > > > > > > > > ______________________________________________________________________________ > > This message has been checked for viruses and spam by Corpex using > > the ArmourPlate Anti Virus and Anti Spam Scanning Service. > > To find out more and see our email archiving service see > > http://www.armourplate.com or call Corpex on UK 0845 050 1898. > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ______________________________________________________________________________ > This message has been checked for viruses and spam by Armourplate > http://www.armourplate.com, the email archiving, anti virus and anti spam > service from Corpex. ______________________________________________________________________________ This message has been checked for viruses and spam by Corpex using the ArmourPlate Anti Virus and Anti Spam Scanning Service. To find out more and see our email archiving service see http://www.armourplate.com or call Corpex on UK 0845 050 1898. From jussi.lahtinen at ...626... Sat Jun 9 15:18:10 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 9 Jun 2012 16:18:10 +0300 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: <1339246295.25650.4.camel@...2672...> References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> Message-ID: > 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 manageable, > readable and a lot more powerful than any other competing method. > Yes, but you use #include with libraries, not with programs that aren't designed for that. Or you have design problem. For example, in module_a.module you might have > > ... > > and in a file called initialise_csv_variables.include it would contain: > > PRIVATE WordMarker1 AS Integer > : > '200 further variable declarations and initialisations > : > PRIVATE sParameterNameArray AS NEW String[MAXIMUM_CSV_PARAMETERS] > PRIVATE sParameterValueArray AS NEW String[MAXIMUM_CSV_PARAMETERS] > > The #include files can contain any amount of well trodden > proven gambas code which is maintained in only one file. > So, basically you would add module/class called initialise_csv_variables, and you use that module/class in modules a and b. > I will argue that adding C like #include functionality saves a ton of > work in mega programs which are already working well, but now > needs to be expanded even further. > I don't understand how. You would still need to write that initialise_csv_variables.include file, you could as well write it as module/class. Jussi From gambas at ...1... Sat Jun 9 15:41:04 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 09 Jun 2012 15:41:04 +0200 Subject: [Gambas-user] New feature in Gambas 3 In-Reply-To: References: <4FB78ADB.3070800@...1...> <4FBA978A.4010608@...1...> <4FBD45B8.1040607@...1...> <4FCAB4A2.2020907@...1...> <4FCBE37A.6030808@...1...> <4FCCFA14.6030508@...1...> <4FCE547F.5090606@...1...> Message-ID: <4FD35270.1070504@...1...> Le 05/06/2012 21:06, Jussi Lahtinen a ?crit : > Yes. > My project is pretty huge. > > Jussi > OK. In revision #4816, you can define the GB_PROFILE_MAX environment variable with the maximum profile file size, in megabytes. The maximum value is 4096 Mb. I hope it will be enough! Regards, -- Beno?t Minisini From gambas at ...1... Sat Jun 9 15:44:01 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 09 Jun 2012 15:44:01 +0200 Subject: [Gambas-user] Window position error on applying stored "geometry" In-Reply-To: References: <4FCB4313.9060606@...1...> <4FCBEAA6.8010907@...1...> <4FCDB4DA.50906@...1...> <4FCE3B73.1070204@...1...> Message-ID: <4FD35321.1020306@...1...> Le 08/06/2012 03:34, RICHARD WALKER a ?crit : > That certainly took longer than it should, but I have finally managed > to get revision #4809 built and manually installed (at least I have a > menu entry and the desktop icon for the ide has revealed itself) and I > have tested my test-bed project in a real dual monitor setup (and in > the pseudo-xinerama Xephyr window), and it works everywhere! > > Thank you, Beno?t, for the fix. May I ask where the problem was found? > I would very much like to have a go at patching the Gambas3 > distributed by Mageia and maybe get it into a Mageia bug-fix update. > > Richard > Gambas 3.2 will be released soon, so maybe it is not worth it? The bug was in gb.gtk. I misunderstood the GDK functions about monitors & screens and how the full screen size must be computed. Now gb.gtk and gb.qt4 should behave the same. Regards, -- Beno?t Minisini From gambas at ...1... Sat Jun 9 15:49:32 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 09 Jun 2012 15:49:32 +0200 Subject: [Gambas-user] Gridview keypress question In-Reply-To: <4FCF3F09.90006@...1823...> References: <4FCF3F09.90006@...1823...> Message-ID: <4FD3546C.7030506@...1...> Le 06/06/2012 13:29, Richard Terry a ?crit : > Hi List, > > I've got a grid with several columns. > > If I use the arrow keys, then the grid focus moves up/down or to the > next/previous column. > > I want to over-ride this keypress behaviour, but can't manage it. > > If iI even try and detect a keypress n this event, nothing happens > > public Sub Gridview1_Keypress() > > print key.code > > end > > I''ve looked at the properties and can't seem to find one which will > allow me to over-ride this behaviour. > Probably something dumb I'm not seeing. > > Any help appreciated. > Yep. The problem comes from the Gambas GUi events internal design. The GridView control is a compound control written in Gambas. Consequently, it will see the keyboard events *before* the GridView user. For native controls, this is the contrary: you get its keyboard events before it handles them. I don't know if I will be able to have the same behaviour in the two cases. But I will try. :-) If you can't wait, there is a workaround: using an Observer on the GridView internal ScrollArea to catch the keyboard events before the GridView sees them. That way: MyObserver = New Observer(MyGridView.Children[0]) As "MyGridViewObserver" ... Public Sub MyGridViewObserver_KeyPress ... End Tell me if that workaround actually works. Regards, -- Beno?t Minisini From gambas at ...1... Sat Jun 9 15:50:45 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 09 Jun 2012 15:50:45 +0200 Subject: [Gambas-user] Configuration issue with gb.desktop In-Reply-To: <20120606181224.GA1252@...2774...> References: <20120606181224.GA1252@...2774...> Message-ID: <4FD354B5.7020602@...1...> Le 06/06/2012 20:12, tobi a ?crit : > Hi, > > I just moved to a new machine and tried to compile gambas3 again. On make, I get with gb.desktop: > > make[5]: Entering directory `/home/woodap/sources/gambas3/gb.desktop/src' > /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pipe > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -ggdb -Os -MT gb_desktop_la-main.lo > -MD -MP -MF .deps/gb_desktop_la-main.Tpo -c -o gb_desktop_la-main.lo `test -f 'main.c' || echo > './'`main.c > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pipe -Wall -Wno-unused-value > -fsigned-char -fvisibility=hidden -g -ggdb -Os -MT gb_desktop_la-main.lo -MD -MP -MF > .deps/gb_desktop_la-main.Tpo -c main.c -fPIC -DPIC -o .libs/gb_desktop_la-main.o > In file included from main.c:26:0: > x11.h:27:22: fatal error: X11/Xlib.h: No such file or directory > compilation terminated. > > Yes! I never had any X on this machine (unlike on the old one where everything got compiled). > Shouldn't the component be disabled by the configure script when required headers are not found? > > Regards, > Tobi > I fixed things in the configuration process in revision #4815. Can you try it? It should correctly disable gb.desktop there X11 is not there. -- Beno?t Minisini From gambas at ...1... Sat Jun 9 15:53:13 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 09 Jun 2012 15:53:13 +0200 Subject: [Gambas-user] rev. 4815 - "Extern" doesn't work ? In-Reply-To: <1339243565.20007.YahooMailClassic@...2691...> References: <1339243565.20007.YahooMailClassic@...2691...> Message-ID: <4FD35549.5040009@...1...> Le 09/06/2012 14:06, Ru Vuott a ?crit : > I feel that I can no longer invoke external functions contained in libraries. > In fact all my programs, that contain calls to external functions by Extern, now they return to me - on the line where there is the external function call - the error: "Illegal function" ! :-O > > Can you control it ? > > Regards > > P.S.: My updated: rev 4815 > I confirm. I will look at it... -- Beno?t Minisini From jussi.lahtinen at ...626... Sat Jun 9 15:57:09 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 9 Jun 2012 16:57:09 +0300 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> Message-ID: Thinking more closely your problem, I think I know what you need. You try to avoid writing *many* lines like this; sParameterNameArray = NEW String[MAXIMUM_CSV_PARAMETERS] That is caused by broken object design, usually because you need to use old code which had different approach than OO. I 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 wrote: > > 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 manageable, >> readable and a lot more powerful than any other competing method. >> > > Yes, but you use #include with libraries, not with programs that aren't > designed for that. > Or you have design problem. > > > > For example, in module_a.module you might have >> >> ... >> >> >> and in a file called initialise_csv_variables.include it would contain: >> >> PRIVATE WordMarker1 AS Integer >> : >> '200 further variable declarations and initialisations >> : >> PRIVATE sParameterNameArray AS NEW String[MAXIMUM_CSV_PARAMETERS] >> PRIVATE sParameterValueArray AS NEW String[MAXIMUM_CSV_PARAMETERS] >> >> The #include files can contain any amount of well trodden >> proven gambas code which is maintained in only one file. >> > > So, basically you would add module/class called initialise_csv_variables, > and you use that module/class in modules a and b. > > > > >> I will argue that adding C like #include functionality saves a ton of >> work in mega programs which are already working well, but now >> needs to be expanded even further. >> > > I don't understand how. > You would still need to write that initialise_csv_variables.include file, > you could as well write it as module/class. > > Jussi > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: IncludeProblem-0.0.1.tar.gz Type: application/x-gzip Size: 5049 bytes Desc: not available URL: From bbruen at ...2308... Sat Jun 9 16:00:47 2012 From: bbruen at ...2308... (Bruce) Date: Sat, 09 Jun 2012 23:30:47 +0930 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: <1339246295.25650.4.camel@...2672...> References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> Message-ID: <1339250447.6758.41.camel@...40...> 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 I'm just too old as well as tired, but I can't grasp the point of taking an object oriented language and trying to jam an old (albeit well tested) non-OO concept into it. Joe, I am having some degree of trouble really understanding your value proposition. Especially the last post (which I have snipped in entirety, sorry). All I can grasp from reading it several times is that you feel that #include has some productivity value in providing what we call inheritance and polymorphism. I am not trying to put you down but I really can't grasp the ideas of "thousands" of parameters and "hundreds" of initialisations. { We, here at paddys-hill have tens of clients (well a few tens anyway ) that use a dozen or so applications, the code base encompasses around two hundred or so classes and modules organized into around thirty components and libraries. The total code size is less than 25,000 lines and I would guess that probably 60% or more of that is comments. At a guess, the "largest" method calls would be 7 parameters, and they are just convenience calls to a class constructor. By far the "largest" chunk of code is a library that downloads the text of around 40 web pages a day (about 40,000 text lines), parses them, normalises them and uploads them to the central database. I just checked and it's 6345 lines of code, so about 2400 working lines, which are mainly involved in text parsing (things like discerning "Mac Donald" and "MacDonald" or "Miss Jane O'Donnel" and "Ms Jan ODonnell" are the same names). The primary application that uses this library runs once a day and adds about 1200 rows to a central postgresql database and can update anywhere between 2 and 10,000 other rows. It takes "about" 10 minutes. The central database has just over 3.2 million rows, the clients each have a sub-mirrored database of who-knows-what size.} Anyway, I hope you can see from the above {} that those numbers you are using are fairly un-emotive to the reader. regards Bruce From gambas at ...1... Sat Jun 9 16:04:31 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 09 Jun 2012 16:04:31 +0200 Subject: [Gambas-user] rev. 4815 - "Extern" doesn't work ? In-Reply-To: <4FD35549.5040009@...1...> References: <1339243565.20007.YahooMailClassic@...2691...> <4FD35549.5040009@...1...> Message-ID: <4FD357EF.3040902@...1...> Le 09/06/2012 15:53, Beno?t Minisini a ?crit : > Le 09/06/2012 14:06, Ru Vuott a ?crit : >> I feel that I can no longer invoke external functions contained in >> libraries. >> In fact all my programs, that contain calls to external functions by >> Extern, now they return to me - on the line where there is the >> external function call - the error: "Illegal function" ! :-O >> >> Can you control it ? >> >> Regards >> >> P.S.: My updated: rev 4815 >> > > I confirm. I will look at it... > OK, fixed in revision #4817. -- Beno?t Minisini From tobiasboege01 at ...1601... Sat Jun 9 16:02:04 2012 From: tobiasboege01 at ...1601... (tobi) Date: Sat, 9 Jun 2012 16:02:04 +0200 Subject: [Gambas-user] Configuration issue with gb.desktop In-Reply-To: <4FD354B5.7020602@...1...> References: <20120606181224.GA1252@...2774...> <4FD354B5.7020602@...1...> Message-ID: <20120609140204.GA739@...2774...> On Sat, 09 Jun 2012, Beno?t Minisini wrote: > Le 06/06/2012 20:12, tobi a ?crit : > > Hi, > > > > I just moved to a new machine and tried to compile gambas3 again. On make, I get with gb.desktop: > > > > make[5]: Entering directory `/home/woodap/sources/gambas3/gb.desktop/src' > > /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pipe > > -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -ggdb -Os -MT gb_desktop_la-main.lo > > -MD -MP -MF .deps/gb_desktop_la-main.Tpo -c -o gb_desktop_la-main.lo `test -f 'main.c' || echo > > './'`main.c > > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pipe -Wall -Wno-unused-value > > -fsigned-char -fvisibility=hidden -g -ggdb -Os -MT gb_desktop_la-main.lo -MD -MP -MF > > .deps/gb_desktop_la-main.Tpo -c main.c -fPIC -DPIC -o .libs/gb_desktop_la-main.o > > In file included from main.c:26:0: > > x11.h:27:22: fatal error: X11/Xlib.h: No such file or directory > > compilation terminated. > > > > Yes! I never had any X on this machine (unlike on the old one where everything got compiled). > > Shouldn't the component be disabled by the configure script when required headers are not found? > > > > Regards, > > Tobi > > > > I fixed things in the configuration process in revision #4815. Can you > try it? It should correctly disable gb.desktop there X11 is not there. > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Yes, disables now. Regards, Tobi From jussi.lahtinen at ...626... Sat Jun 9 17:02:51 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 9 Jun 2012 18:02:51 +0300 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: <1339250447.6758.41.camel@...40...> References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> <1339250447.6758.41.camel@...40...> Message-ID: Bruce, please re-read. I'm against idea of #include being new keyword. Jussi On 9 June 2012 17:00, 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 I'm just too old as well as tired, but I can't grasp the > point of taking an object oriented language and trying to jam an old > (albeit well tested) non-OO concept into it. > > Joe, I am having some degree of trouble really understanding your value > proposition. Especially the last post (which I have snipped in entirety, > sorry). All I can grasp from reading it several times is that you feel > that #include has some productivity value in providing what we call > inheritance and polymorphism. > > I am not trying to put you down but I really can't grasp the ideas of > "thousands" of parameters and "hundreds" of initialisations. > > { We, here at paddys-hill have tens of clients (well a few tens anyway ) > that use a dozen or so applications, the code base encompasses around > two hundred or so classes and modules organized into around thirty > components and libraries. The total code size is less than 25,000 lines > and I would guess that probably 60% or more of that is comments. At a > guess, the "largest" method calls would be 7 parameters, and they are > just convenience calls to a class constructor. By far the "largest" > chunk of code is a library that downloads the text of around 40 web > pages a day (about 40,000 text lines), parses them, normalises them and > uploads them to the central database. I just checked and it's 6345 lines > of code, so about 2400 working lines, which are mainly involved in text > parsing (things like discerning "Mac Donald" and "MacDonald" or "Miss > Jane O'Donnel" and "Ms Jan ODonnell" are the same names). The primary > application that uses this library runs once a day and adds about 1200 > rows to a central postgresql database and can update anywhere between 2 > and 10,000 other rows. It takes "about" 10 minutes. The central > database has just over 3.2 million rows, the clients each have a > sub-mirrored database of who-knows-what size.} > > Anyway, I hope you can see from the above {} that those numbers you are > using are fairly un-emotive to the reader. > > regards > Bruce > > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sat Jun 9 17:05:51 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 9 Jun 2012 18:05:51 +0300 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> <1339250447.6758.41.camel@...40...> Message-ID: Sorry, maybe I need to re-read! Jussi On 9 June 2012 18:02, Jussi Lahtinen wrote: > Bruce, please re-read. I'm against idea of #include being new keyword. > > Jussi > > > > > On 9 June 2012 17:00, 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 I'm just too old as well as tired, but I can't grasp the >> point of taking an object oriented language and trying to jam an old >> (albeit well tested) non-OO concept into it. >> >> Joe, I am having some degree of trouble really understanding your value >> proposition. Especially the last post (which I have snipped in entirety, >> sorry). All I can grasp from reading it several times is that you feel >> that #include has some productivity value in providing what we call >> inheritance and polymorphism. >> >> I am not trying to put you down but I really can't grasp the ideas of >> "thousands" of parameters and "hundreds" of initialisations. >> >> { We, here at paddys-hill have tens of clients (well a few tens anyway ) >> that use a dozen or so applications, the code base encompasses around >> two hundred or so classes and modules organized into around thirty >> components and libraries. The total code size is less than 25,000 lines >> and I would guess that probably 60% or more of that is comments. At a >> guess, the "largest" method calls would be 7 parameters, and they are >> just convenience calls to a class constructor. By far the "largest" >> chunk of code is a library that downloads the text of around 40 web >> pages a day (about 40,000 text lines), parses them, normalises them and >> uploads them to the central database. I just checked and it's 6345 lines >> of code, so about 2400 working lines, which are mainly involved in text >> parsing (things like discerning "Mac Donald" and "MacDonald" or "Miss >> Jane O'Donnel" and "Ms Jan ODonnell" are the same names). The primary >> application that uses this library runs once a day and adds about 1200 >> rows to a central postgresql database and can update anywhere between 2 >> and 10,000 other rows. It takes "about" 10 minutes. The central >> database has just over 3.2 million rows, the clients each have a >> sub-mirrored database of who-knows-what size.} >> >> Anyway, I hope you can see from the above {} that those numbers you are >> using are fairly un-emotive to the reader. >> >> regards >> Bruce >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From jussi.lahtinen at ...626... Sat Jun 9 17:13:46 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 9 Jun 2012 18:13:46 +0300 Subject: [Gambas-user] New feature in Gambas 3 In-Reply-To: <4FD35270.1070504@...1...> References: <4FB78ADB.3070800@...1...> <4FBA978A.4010608@...1...> <4FBD45B8.1040607@...1...> <4FCAB4A2.2020907@...1...> <4FCBE37A.6030808@...1...> <4FCCFA14.6030508@...1...> <4FCE547F.5090606@...1...> <4FD35270.1070504@...1...> Message-ID: 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 wrote: > Le 05/06/2012 21:06, Jussi Lahtinen a ?crit : > > Yes. > > My project is pretty huge. > > > > Jussi > > > > OK. In revision #4816, you can define the GB_PROFILE_MAX environment > variable with the maximum profile file size, in megabytes. > > The maximum value is 4096 Mb. I hope it will be enough! > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Sat Jun 9 17:26:57 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 09 Jun 2012 15:26:57 +0000 Subject: [Gambas-user] Issue 255 in gambas: TextBox_LostFocus event bug? In-Reply-To: <0-6813199134517018827-15455130070928217927-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-15455130070928217927-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-15455130070928217927-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 255 by benoit.m... at ...626...: TextBox_LostFocus event bug? http://code.google.com/p/gambas/issues/detail?id=255 (No comment was entered for this change.) From jussi.lahtinen at ...626... Sat Jun 9 17:27:27 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 9 Jun 2012 18:27:27 +0300 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> Message-ID: 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 wrote: > Thinking more closely your problem, I think I know what you need. > > You try to avoid writing *many* lines like this; > sParameterNameArray = NEW String[MAXIMUM_CSV_PARAMETERS] > > That is caused by broken object design, usually because you need to use > old code which had different approach than OO. > I 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 wrote: > >> >> 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 manageable, >>> readable and a lot more powerful than any other competing method. >>> >> >> Yes, but you use #include with libraries, not with programs that aren't >> designed for that. >> Or you have design problem. >> >> >> >> For example, in module_a.module you might have >>> >>> ... >>> >>> >>> and in a file called initialise_csv_variables.include it would contain: >>> >>> PRIVATE WordMarker1 AS Integer >>> : >>> '200 further variable declarations and initialisations >>> : >>> PRIVATE sParameterNameArray AS NEW String[MAXIMUM_CSV_PARAMETERS] >>> PRIVATE sParameterValueArray AS NEW String[MAXIMUM_CSV_PARAMETERS] >>> >>> The #include files can contain any amount of well trodden >>> proven gambas code which is maintained in only one file. >>> >> >> So, basically you would add module/class called initialise_csv_variables, >> and you use that module/class in modules a and b. >> >> >> >> >>> I will argue that adding C like #include functionality saves a ton of >>> work in mega programs which are already working well, but now >>> needs to be expanded even further. >>> >> >> I don't understand how. >> You would still need to write that initialise_csv_variables.include file, >> you could as well write it as module/class. >> >> Jussi >> >> >> > -------------- next part -------------- A non-text attachment was scrubbed... Name: IncludeProblem-2.0.tar.gz Type: application/x-gzip Size: 5031 bytes Desc: not available URL: From gambas at ...2524... Sat Jun 9 17:32:18 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 09 Jun 2012 15:32:18 +0000 Subject: [Gambas-user] Issue 255 in gambas: TextBox_LostFocus event bug? In-Reply-To: <1-6813199134517018827-15455130070928217927-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-15455130070928217927-gambas=googlecode.com@...2524...> <0-6813199134517018827-15455130070928217927-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-15455130070928217927-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 255 by benoit.m... at ...626...: TextBox_LostFocus event bug? http://code.google.com/p/gambas/issues/detail?id=255 It should be fixed in revision #4818. Can you confirm? From gambas at ...2524... Sat Jun 9 18:09:22 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 09 Jun 2012 16:09:22 +0000 Subject: [Gambas-user] Issue 256 in gambas: When executing a project on a read-only with profiling enabled the program crashes Message-ID: <0-6813199134517018827-1471572296254933759-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 256 by sebi... at ...626...: When executing a project on a read-only with profiling enabled the program crashes http://code.google.com/p/gambas/issues/detail?id=256 If I start a project from a read only location, it crashes without even starting with the following message: gb.profile: cannot create profile file '.prof.5200': Permission denied If the profile file can't be created on the project's folder, either disable profiling or use /tmp to store it. From gambas at ...2524... Sat Jun 9 18:10:22 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 09 Jun 2012 16:10:22 +0000 Subject: [Gambas-user] Issue 255 in gambas: TextBox_LostFocus event bug? In-Reply-To: <2-6813199134517018827-15455130070928217927-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-15455130070928217927-gambas=googlecode.com@...2524...> <0-6813199134517018827-15455130070928217927-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-15455130070928217927-gambas=googlecode.com@...2524...> Comment #3 on issue 255 by sot... at ...626...: TextBox_LostFocus event bug? http://code.google.com/p/gambas/issues/detail?id=255 It is fixed, thanks! From sebikul at ...626... Sat Jun 9 18:20:50 2012 From: sebikul at ...626... (Sebastian Kulesz) Date: Sat, 9 Jun 2012 13:20:50 -0300 Subject: [Gambas-user] GB.JIT Crashes Message-ID: Hi! I'm getting a crash when I place the fast keyword on top of a module. The output: 19PushClassExpression gbx3: jit.h:145: virtual llvm::Value* Expression::codegen_get_value(): Assertion `false && "codegen_get_value not done yet for this type"' failed. If you need the source let me know! Thanks! From adrien.prokopowicz at ...626... Sat Jun 9 19:41:49 2012 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sat, 09 Jun 2012 19:41:49 +0200 Subject: [Gambas-user] Draw.Begin/End execution time Message-ID: <1511116.iZjey2xH93@...2823...> Hi all, in my project I have a cached DrawArea that I need to redraw each time it is resized. My code is like this : Public Sub RefershDrawArea() Draw.Begin($drawArea) 'Drawing methods here ... Draw.End End That works perfectly, but when I launch the profiler, he tells me that the Draw.Begin() method takes a lot of time (around 20 ms). Is there a way to make this call faster ? Or maybe a way to do only one call to Begin() when the user starts resizing and to End() when it stops ? Regards, Adrien. From richard.j.walker at ...247... Sat Jun 9 20:18:51 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Sat, 9 Jun 2012 19:18:51 +0100 Subject: [Gambas-user] Window position error on applying stored "geometry" In-Reply-To: <4FD35321.1020306@...1...> References: <4FCB4313.9060606@...1...> <4FCBEAA6.8010907@...1...> <4FCDB4DA.50906@...1...> <4FCE3B73.1070204@...1...> <4FD35321.1020306@...1...> Message-ID: > > Gambas 3.2 will be released soon, so maybe it is not worth it? > > The bug was in gb.gtk. I misunderstood the GDK functions about monitors > & screens and how the full screen size must be computed. Now gb.gtk and > gb.qt4 should behave the same. I think I might agree that waiting for the 3.2 release would be a practical way to go, but for one thing; Mageia 2 users would be dependent on a "backport" type release to reap all of the benefits. As it is the v3.1.1 in Mageia 2 repository has been retro-fitted with a DrawingArea bug-fix, but in general the update mechanism Mageia operates will not normally go to a new version. I will see if Matteo Pasotti has a view on this - he is one of the packagers. In the meantime I will get to learn a little more about how Gambas is structured by seeing if I can isolate the changes you implemented to fix this issue and, perhaps, get it into a form which can be applied to the 3.1.1 release. Thanks again, Beno?t R From gambas at ...1... Sat Jun 9 20:45:49 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 09 Jun 2012 20:45:49 +0200 Subject: [Gambas-user] Draw.Begin/End execution time In-Reply-To: <1511116.iZjey2xH93@...2823...> References: <1511116.iZjey2xH93@...2823...> Message-ID: <4FD399DD.2000602@...1...> Le 09/06/2012 19:41, Adrien Prokopowicz a ?crit : > Hi all, > > in my project I have a cached DrawArea that I need to redraw each time it is > resized. My code is like this : > > Public Sub RefershDrawArea() > > Draw.Begin($drawArea) > > 'Drawing methods here ... > > Draw.End > > End > > That works perfectly, but when I launch the profiler, he tells me that the > Draw.Begin() method takes a lot of time (around 20 ms). > > Is there a way to make this call faster ? Or maybe a way to do only one call > to Begin() when the user starts resizing and to End() when it stops ? > > Regards, > Adrien. > Please provide a project that shows that! -- Beno?t Minisini From adrien.prokopowicz at ...626... Sat Jun 9 21:05:29 2012 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sat, 09 Jun 2012 21:05:29 +0200 Subject: [Gambas-user] Draw.Begin/End execution time In-Reply-To: <4FD399DD.2000602@...1...> References: <1511116.iZjey2xH93@...2823...> <4FD399DD.2000602@...1...> Message-ID: <10559015.7enTraTSz2@...2823...> Le samedi 9 juin 2012 20:45:49 Beno?t Minisini a ?crit : > Le 09/06/2012 19:41, Adrien Prokopowicz a ?crit : > > Hi all, > > > > in my project I have a cached DrawArea that I need to redraw each time it > > is resized. My code is like this : > > > > Public Sub RefershDrawArea() > > > > Draw.Begin($drawArea) > > > > 'Drawing methods here ... > > > > Draw.End > > > > End > > > > That works perfectly, but when I launch the profiler, he tells me that the > > Draw.Begin() method takes a lot of time (around 20 ms). > > > > Is there a way to make this call faster ? Or maybe a way to do only one > > call to Begin() when the user starts resizing and to End() when it stops > > ? > > > > Regards, > > Adrien. > > Please provide a project that shows that! Here is a little test project. And I just noticed that there isn't this problem with gb.gtk. So for me it's a bug in gb.qt4. -------------- next part -------------- A non-text attachment was scrubbed... Name: TestCacheArea-0.0.1.tar.gz Type: application/x-compressed-tar Size: 4897 bytes Desc: not available URL: From gambas at ...1... Sat Jun 9 22:17:37 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 09 Jun 2012 22:17:37 +0200 Subject: [Gambas-user] Draw.Begin/End execution time In-Reply-To: <10559015.7enTraTSz2@...2823...> References: <1511116.iZjey2xH93@...2823...> <4FD399DD.2000602@...1...> <10559015.7enTraTSz2@...2823...> Message-ID: <4FD3AF61.9060700@...1...> Le 09/06/2012 21:05, Adrien Prokopowicz a ?crit : > Le samedi 9 juin 2012 20:45:49 Beno?t Minisini a ?crit : >> Le 09/06/2012 19:41, Adrien Prokopowicz a ?crit : >>> Hi all, >>> >>> in my project I have a cached DrawArea that I need to redraw each time it >>> is resized. My code is like this : >>> >>> Public Sub RefershDrawArea() >>> >>> Draw.Begin($drawArea) >>> >>> 'Drawing methods here ... >>> >>> Draw.End >>> >>> End >>> >>> That works perfectly, but when I launch the profiler, he tells me that the >>> Draw.Begin() method takes a lot of time (around 20 ms). >>> >>> Is there a way to make this call faster ? Or maybe a way to do only one >>> call to Begin() when the user starts resizing and to End() when it stops >>> ? >>> >>> Regards, >>> Adrien. >> >> Please provide a project that shows that! > > Here is a little test project. > > And I just noticed that there isn't this problem with gb.gtk. So for me it's a > bug in gb.qt4. > On my machine, Draw.Begin with gb.gtk takes about 120 micro-seconds the first time it is called, 50 us the next times. With gb.qt4, it takes about 300 us each time. So I don't understand how it could take 20 ms on your machine: it means that my PC is 66x faster than yours! -- Beno?t Minisini From gambas at ...1... Sat Jun 9 22:46:46 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 09 Jun 2012 22:46:46 +0200 Subject: [Gambas-user] Draw.Begin/End execution time In-Reply-To: <4FD3AF61.9060700@...1...> References: <1511116.iZjey2xH93@...2823...> <4FD399DD.2000602@...1...> <10559015.7enTraTSz2@...2823...> <4FD3AF61.9060700@...1...> Message-ID: <4FD3B636.5020706@...1...> >> Here is a little test project. >> >> And I just noticed that there isn't this problem with gb.gtk. So for >> me it's a >> bug in gb.qt4. >> > > On my machine, Draw.Begin with gb.gtk takes about 120 micro-seconds the > first time it is called, 50 us the next times. With gb.qt4, it takes > about 300 us each time. > > So I don't understand how it could take 20 ms on your machine: it means > that my PC is 66x faster than yours! > I added a little optimization in revision #4819: is it better on your machine? -- Beno?t Minisini From adrien.prokopowicz at ...626... Sat Jun 9 23:24:58 2012 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sat, 09 Jun 2012 23:24:58 +0200 Subject: [Gambas-user] Draw.Begin/End execution time In-Reply-To: <4FD3B636.5020706@...1...> References: <1511116.iZjey2xH93@...2823...> <4FD3AF61.9060700@...1...> <4FD3B636.5020706@...1...> Message-ID: <2498336.Ch99npQRTK@...2823...> Le samedi 9 juin 2012 22:46:46 Beno?t Minisini a ?crit : > >> Here is a little test project. > >> > >> And I just noticed that there isn't this problem with gb.gtk. So for > >> me it's a > >> bug in gb.qt4. > > > > On my machine, Draw.Begin with gb.gtk takes about 120 micro-seconds the > > first time it is called, 50 us the next times. With gb.qt4, it takes > > about 300 us each time. > > > > So I don't understand how it could take 20 ms on your machine: it means > > that my PC is 66x faster than yours! > > I added a little optimization in revision #4819: is it better on your > machine? Yes, this is really better ! It passed from 20ms to 300us, even around 120us sometimes. Thanks ! From vuott at ...325... Sat Jun 9 23:57:30 2012 From: vuott at ...325... (Ru Vuott) Date: Sat, 9 Jun 2012 22:57:30 +0100 (BST) Subject: [Gambas-user] rev. 4815 - "Extern" doesn't work ? In-Reply-To: <4FD357EF.3040902@...1...> Message-ID: <1339279050.89585.YahooMailClassic@...2695...> Mooolto bene, Beno?t ! Very good. Now, it works. Bye Vuotttt --- Sab 9/6/12, Beno?t Minisini ha scritto: > Da: Beno?t Minisini > Oggetto: Re: [Gambas-user] rev. 4815 - "Extern" doesn't work ? > A: "mailing list for gambas users" > Data: Sabato 9 giugno 2012, 16:04 > Le 09/06/2012 15:53, Beno?t Minisini > a ?crit : > > Le 09/06/2012 14:06, Ru Vuott a ?crit : > >> I feel that I can no longer invoke external > functions contained in > >> libraries. > >> In fact all my programs, that contain calls to > external functions by > >> Extern, now they return to me - on the line where > there is the > >> external function call - the error: "Illegal > function" ! :-O > >> > >> Can you control it ? > >> > >> Regards > >> > >> P.S.: My updated: rev 4815 > >> > > > > I confirm. I will look at it... > > > > OK, fixed in revision #4817. > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's > security and > threat landscape has changed and how IT managers can > respond. Discussions > will include endpoint security, mobile security and the > latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From adrien.prokopowicz at ...626... Sun Jun 10 00:02:30 2012 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sun, 10 Jun 2012 00:02:30 +0200 Subject: [Gambas-user] Draw.Begin/End execution time In-Reply-To: <2498336.Ch99npQRTK@...2823...> References: <1511116.iZjey2xH93@...2823...> <4FD3B636.5020706@...1...> <2498336.Ch99npQRTK@...2823...> Message-ID: <1858329.TdqKEs2MBH@...2823...> Le samedi 9 juin 2012 23:24:58 vous avez ?crit : > Le samedi 9 juin 2012 22:46:46 Beno?t Minisini a ?crit : > > >> Here is a little test project. > > >> > > >> And I just noticed that there isn't this problem with gb.gtk. So for > > >> me it's a > > >> bug in gb.qt4. > > > > > > On my machine, Draw.Begin with gb.gtk takes about 120 micro-seconds the > > > first time it is called, 50 us the next times. With gb.qt4, it takes > > > about 300 us each time. > > > > > > So I don't understand how it could take 20 ms on your machine: it means > > > that my PC is 66x faster than yours! > > > > I added a little optimization in revision #4819: is it better on your > > machine? > > Yes, this is really better ! It passed from 20ms to 300us, even around 120us > sometimes. Thanks ! I have another little question. In the project I sent you, I added two lines after FillRect() : Draw.Text("Gambas", 50, 50) Draw.Text("Gambas", 100, 100) The first takes around 2 msec, the second only 120usec. Is there any font loading, or something like that, when calling draw.text ? From gambas at ...1... Sun Jun 10 00:32:16 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 10 Jun 2012 00:32:16 +0200 Subject: [Gambas-user] Draw.Begin/End execution time In-Reply-To: <1858329.TdqKEs2MBH@...2823...> References: <1511116.iZjey2xH93@...2823...> <4FD3B636.5020706@...1...> <2498336.Ch99npQRTK@...2823...> <1858329.TdqKEs2MBH@...2823...> Message-ID: <4FD3CEF0.20803@...1...> Le 10/06/2012 00:02, Adrien Prokopowicz a ?crit : > I have another little question. > In the project I sent you, I added two lines after FillRect() : > > Draw.Text("Gambas", 50, 50) > Draw.Text("Gambas", 100, 100) > > The first takes around 2 msec, the second only 120usec. > Is there any font loading, or something like that, when calling draw.text ? > I imagine that Qt loads each font glyph only when it actually needs it. The second time you display "Gambas", the six glyphs are already loaded, and so drawing is faster. -- Beno?t Minisini From adrien.prokopowicz at ...626... Sun Jun 10 01:02:28 2012 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sun, 10 Jun 2012 01:02:28 +0200 Subject: [Gambas-user] Draw.Begin/End execution time In-Reply-To: <4FD3CEF0.20803@...1...> References: <1511116.iZjey2xH93@...2823...> <1858329.TdqKEs2MBH@...2823...> <4FD3CEF0.20803@...1...> Message-ID: <1633039.irRROQ7Eqo@...2823...> Le dimanche 10 juin 2012 00:32:16 Beno?t Minisini a ?crit : > Le 10/06/2012 00:02, Adrien Prokopowicz a ?crit : > > I have another little question. > > > > In the project I sent you, I added two lines after FillRect() : > > Draw.Text("Gambas", 50, 50) > > Draw.Text("Gambas", 100, 100) > > > > The first takes around 2 msec, the second only 120usec. > > Is there any font loading, or something like that, when calling draw.text > > ? > > I imagine that Qt loads each font glyph only when it actually needs it. > > The second time you display "Gambas", the six glyphs are already loaded, > and so drawing is faster. No, I tried to change the text in the second call, and results are the same. But I launched callgrind on my example, and I saw that for a few calls to Draw_text, there is one call to QFontMetrics, that loads the font only once (call to QFontDatabase::load, then to fontconfig). I find the calls to fontconfig very slow, but this is another problem. This one is solved. :-) From emil.lenngren at ...626... Sun Jun 10 01:06:19 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Sun, 10 Jun 2012 01:06:19 +0200 Subject: [Gambas-user] GB.JIT Crashes In-Reply-To: References: Message-ID: Yes please, how does your source code look like? Are you trying to enumerate a class? /Emil 2012/6/9 Sebastian Kulesz > Hi! I'm getting a crash when I place the fast keyword on top of a > module. The output: > > 19PushClassExpression > gbx3: jit.h:145: virtual llvm::Value* Expression::codegen_get_value(): > Assertion `false && "codegen_get_value not done yet for this type"' > failed. > > If you need the source let me know! > > Thanks! > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From richard.j.walker at ...247... Sun Jun 10 03:20:41 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Sun, 10 Jun 2012 02:20:41 +0100 Subject: [Gambas-user] Calling dbus method:how do I handle return values Message-ID: I am trying to call a DBus method which takes one parameter and returns many. The method details are: If I use this: Dim graph_details As New Variant[] If 0 < CurrentGraph Then graph_details = Jack.GetGraph(CurrentGraph) ...then graph_details[0] will return the numeric id for the graph (for example, 223) I don't seem to be able to guess what sort of variable to use for assigning graph_details[1] and [2]. Stepping through the code it seems to suggest that graph_details[1] is a Variant[][]. Same for graph_details[2], but as I am completely and unredeemably confused by array declaration syntax I am no closer to capturing these items. Initially I thought that I could declare two variables to be of type DBusVariant, set type signatures to "a(tsa(tsuu))" and "a(tstststst)", and assign to them. But that is not how this apparently useful type is expected to be used. Anyone know how to achieve this? Richard From oceanosoftlapalma at ...626... Sun Jun 10 11:07:46 2012 From: oceanosoftlapalma at ...626... (=?UTF-8?B?UmljYXJkbyBEw61heiBNYXJ0w61u?=) Date: Sun, 10 Jun 2012 11:07:46 +0200 Subject: [Gambas-user] Transparent expander container and and problem to resize a very height form in the IDE Message-ID: Hi, Please note that maybe is a Ubuntu Unity problem. I'm using ubuntu 12.04 with Unity-2d to test it. After the expanders in the IDE were set to transparent, if you got a a form in the ide higher than your screen view, you can't reduce the size by clicking in white-squares on the form-end place. It's because when you try to click int the white square to resize, the gambas console transparent expander container is activated. To reproduce it, please in the IDE add new blank form. Set manually height to 2000 (the vertical scrollbar is showed). Move down scrollbar to the form end and try to click to resize the form. Regards, Ricardo D?az From gambas at ...2524... Sun Jun 10 17:18:26 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 10 Jun 2012 15:18:26 +0000 Subject: [Gambas-user] Issue 236 in gambas: gb.net.curl fails to connect using https In-Reply-To: <5-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> <0-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> Comment #6 on issue 236 by benoit.m... at ...626...: gb.net.curl fails to connect using https http://code.google.com/p/gambas/issues/detail?id=236 Can you try to call SSL_library_init() explicitly from the Gambas code? Extern SSL_library_init() In "libssl" From gambas at ...2524... Sun Jun 10 16:59:33 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 10 Jun 2012 14:59:33 +0000 Subject: [Gambas-user] Issue 256 in gambas: When executing a project on a read-only with profiling enabled the program crashes In-Reply-To: <1-6813199134517018827-1471572296254933759-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-1471572296254933759-gambas=googlecode.com@...2524...> <0-6813199134517018827-1471572296254933759-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-1471572296254933759-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 256 by benoit.m... at ...626...: When executing a project on a read-only with profiling enabled the program crashes http://code.google.com/p/gambas/issues/detail?id=256 Fixed in revision #4820. From gambas at ...2524... Sun Jun 10 16:32:01 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 10 Jun 2012 14:32:01 +0000 Subject: [Gambas-user] Issue 256 in gambas: When executing a project on a read-only with profiling enabled the program crashes In-Reply-To: <0-6813199134517018827-1471572296254933759-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-1471572296254933759-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-1471572296254933759-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 256 by benoit.m... at ...626...: When executing a project on a read-only with profiling enabled the program crashes http://code.google.com/p/gambas/issues/detail?id=256 (No comment was entered for this change.) From gambas at ...2524... Sun Jun 10 17:03:24 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 10 Jun 2012 15:03:24 +0000 Subject: [Gambas-user] Issue 246 in gambas: Random "DrawingArea is being drawn" error when using new gridview In-Reply-To: <2-6813199134517018827-14267725419706147984-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-14267725419706147984-gambas=googlecode.com@...2524...> <0-6813199134517018827-14267725419706147984-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-14267725419706147984-gambas=googlecode.com@...2524...> Comment #3 on issue 246 by benoit.m... at ...626...: Random "DrawingArea is being drawn" error when using new gridview http://code.google.com/p/gambas/issues/detail?id=246 If, inside the Data event, you change the visibility of a control that is above the GridView, then I think you may trigger a redraw event, and so a recursive call to the Data event. That can lead to infinite recursion and a crash. But normally you should get a stack overflow error. From gambas at ...2524... Sun Jun 10 18:20:32 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 10 Jun 2012 16:20:32 +0000 Subject: [Gambas-user] Issue 236 in gambas: gb.net.curl fails to connect using https In-Reply-To: <6-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> References: <6-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> <0-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> Message-ID: <7-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> Comment #7 on issue 236 by sebi... at ...626...: gb.net.curl fails to connect using https http://code.google.com/p/gambas/issues/detail?id=236 It worked!! I added the Extern declaration and called SSL_library_init() at Form_Open() Any ideas of why this is happening?? Thanks a lot!! From demosthenesk at ...626... Sun Jun 10 22:00:01 2012 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 10 Jun 2012 23:00:01 +0300 Subject: [Gambas-user] Server Socket Example Message-ID: <4FD4FCC1.9090500@...626...> Hi list, i work on a server project similar to ServerSocket example and i have some questions 1) in example i see that there is the use of Tag property for the socket as Public Sub MyServerSocket_Connection(sHost As String) .... Obj.Tag = [$iId, 0, ""] .... End Sub i understand that Tag[0] is the socket id Tag[2] is the socket data what is Tag[1]; 2) it is used in sub Public Sub Socket_Write() to send 10 times data to client, why to send 10 times data? I dont understand it. iInd = hSocket.Tag[1] If iInd < 0 Then Return Do Inc iInd If iInd > 10 Then hSocket.Tag[1] = -1 Return Endif .... Try Print #hSocket, iInd & ":" & hSocket.Tag[2] & Space$(512) & "\n"; Loop Thanks! From joem at ...2671... Mon Jun 11 09:40:14 2012 From: joem at ...2671... (jm) Date: Mon, 11 Jun 2012 08:40:14 +0100 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> Message-ID: <1339400414.29176.6.camel@...2672...> Thank you Jussi. That is just fantastic example that I intend to use for new projects. The point I am trying to make should not have to become an OO v non-OO programming debate. The broadest difference is that #include and its cousins (#define, #undefine, #ifdef, #ifndef, #endif) are to do with preprocessing before a program runs. I cover the argument in next post to Bruce. On Sat, 2012-06-09 at 18:27 +0300, Jussi Lahtinen wrote: > 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 wrote: > > > Thinking more closely your problem, I think I know what you need. > > > > You try to avoid writing *many* lines like this; > > sParameterNameArray = NEW String[MAXIMUM_CSV_PARAMETERS] > > > > That is caused by broken object design, usually because you need to use > > old code which had different approach than OO. > > I 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 wrote: > > > >> > >> 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 manageable, > >>> readable and a lot more powerful than any other competing method. > >>> > >> > >> Yes, but you use #include with libraries, not with programs that aren't > >> designed for that. > >> Or you have design problem. > >> > >> > >> > >> For example, in module_a.module you might have > >>> > >>> ... > >>> > >>> > >>> and in a file called initialise_csv_variables.include it would contain: > >>> > >>> PRIVATE WordMarker1 AS Integer > >>> : > >>> '200 further variable declarations and initialisations > >>> : > >>> PRIVATE sParameterNameArray AS NEW String[MAXIMUM_CSV_PARAMETERS] > >>> PRIVATE sParameterValueArray AS NEW String[MAXIMUM_CSV_PARAMETERS] > >>> > >>> The #include files can contain any amount of well trodden > >>> proven gambas code which is maintained in only one file. > >>> > >> > >> So, basically you would add module/class called initialise_csv_variables, > >> and you use that module/class in modules a and b. > >> > >> > >> > >> > >>> I will argue that adding C like #include functionality saves a ton of > >>> work in mega programs which are already working well, but now > >>> needs to be expanded even further. > >>> > >> > >> I don't understand how. > >> You would still need to write that initialise_csv_variables.include file, > >> you could as well write it as module/class. > >> > >> Jussi > >> > >> > >> > > > ______________________________________________________________________________ > This message has been checked for viruses and spam by Armourplate > http://www.armourplate.com, the email archiving, anti virus and anti spam > service from Corpex. > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ______________________________________________________________________________ This message has been checked for viruses and spam by Corpex using the ArmourPlate Anti Virus and Anti Spam Scanning Service. To find out more and see our email archiving service see http://www.armourplate.com or call Corpex on UK 0845 050 1898. From demosthenesk at ...626... Mon Jun 11 10:59:10 2012 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 11 Jun 2012 11:59:10 +0300 Subject: [Gambas-user] crypt.md5 vs md5sum Message-ID: <4FD5B35E.5060606@...626...> hello, i noticed a difference between crypt.md5 function and command md5sum. Both give different results echo password | md5sum is different from crypt.md5("password") why is that? From gambas at ...2524... Mon Jun 11 14:39:01 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 11 Jun 2012 12:39:01 +0000 Subject: [Gambas-user] Issue 246 in gambas: Random "DrawingArea is being drawn" error when using new gridview In-Reply-To: <3-6813199134517018827-14267725419706147984-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-14267725419706147984-gambas=googlecode.com@...2524...> <0-6813199134517018827-14267725419706147984-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-14267725419706147984-gambas=googlecode.com@...2524...> Comment #4 on issue 246 by Kokok... at ...626...: Random "DrawingArea is being drawn" error when using new gridview http://code.google.com/p/gambas/issues/detail?id=246 In fact, changing visibility inside the data handler may crash the application. But as soon as it closes with error, stack panel is hidden. Last message in console is: QWidget::repaint: Recursive repaint detected From joem at ...2671... Mon Jun 11 10:10:01 2012 From: joem at ...2671... (jm) Date: Mon, 11 Jun 2012 09:10:01 +0100 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: <1339250447.6758.41.camel@...40...> References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> <1339250447.6758.41.camel@...40...> Message-ID: <1339402201.29176.33.camel@...2672...> Hi Bruce, The broadest difference between #include (and its cousins #define, #undefine, #ifdef, #ifndef and #endif) and OO programming is that #include is a preprocessing command that gets to work long before a program gets to run. Using #include and its cousins, the idea is to build big readable programs with the least amount of physical typing effort when used responsibly. I think if it gets pitched as a battle between OO and non-OO programming, the debate is still probably winnable by providing lots of examples where OO programming leads to more work. Basically if all the #include functionality is performed in OO, you got to keep track of objects, and as programs get more complex the syntax will grow which is excessive physical typing and leads to this method of writing programs: object1.object_within_object.object_within_that_object.method(parameters1,..) This can also turn into run time expense by having to dereference stuff. [I guess that will in turn let the OO camp will post ample examples of programming that leads to confusion where a use a of a #include is used irresponsibly and has altered programming behaviour in unexpected ways. This in turn will allow the #include camp to post more example where OO behaviour leads to unexpected results confusing the programmer. Lets not go there!! ] Instead of that, it is simpler to put aside the OO v non-OO debate and focus on merits of gambas having pre-processing functions as a subject in its own right. A #include that bolts together programs as needed. When the run button is pressed on the IDE, the idea is that gambas will do the pre-processing and stitch together the files to make a giant file save it to disk as say file_name_to_run.expanded and then run that expanded file. When debugging, there will have to be some kind of option to switch between expanded version of the file and non-expanded version of the file. Any chance of sneaking 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 I'm just too old as well as tired, but I can't grasp the > point of taking an object oriented language and trying to jam an old > (albeit well tested) non-OO concept into it. > > Joe, I am having some degree of trouble really understanding your value > proposition. Especially the last post (which I have snipped in entirety, > sorry). All I can grasp from reading it several times is that you feel > that #include has some productivity value in providing what we call > inheritance and polymorphism. > > I am not trying to put you down but I really can't grasp the ideas of > "thousands" of parameters and "hundreds" of initialisations. > > { We, here at paddys-hill have tens of clients (well a few tens anyway ) > that use a dozen or so applications, the code base encompasses around > two hundred or so classes and modules organized into around thirty > components and libraries. The total code size is less than 25,000 lines > and I would guess that probably 60% or more of that is comments. At a > guess, the "largest" method calls would be 7 parameters, and they are > just convenience calls to a class constructor. By far the "largest" > chunk of code is a library that downloads the text of around 40 web > pages a day (about 40,000 text lines), parses them, normalises them and > uploads them to the central database. I just checked and it's 6345 lines > of code, so about 2400 working lines, which are mainly involved in text > parsing (things like discerning "Mac Donald" and "MacDonald" or "Miss > Jane O'Donnel" and "Ms Jan ODonnell" are the same names). The primary > application that uses this library runs once a day and adds about 1200 > rows to a central postgresql database and can update anywhere between 2 > and 10,000 other rows. It takes "about" 10 minutes. The central > database has just over 3.2 million rows, the clients each have a > sub-mirrored database of who-knows-what size.} > > Anyway, I hope you can see from the above {} that those numbers you are > using are fairly un-emotive to the reader. > > regards > Bruce > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ______________________________________________________________________________ > This message has been checked for viruses and spam by Armourplate > http://www.armourplate.com, the email archiving, anti virus and anti spam > service from Corpex. ______________________________________________________________________________ This message has been checked for viruses and spam by Corpex using the ArmourPlate Anti Virus and Anti Spam Scanning Service. To find out more and see our email archiving service see http://www.armourplate.com or call Corpex on UK 0845 050 1898. From bbruen at ...2308... Mon Jun 11 16:21:21 2012 From: bbruen at ...2308... (Bruce) Date: Mon, 11 Jun 2012 23:51:21 +0930 Subject: [Gambas-user] A quicky on profiling Message-ID: <1339424481.7537.3.camel@...40...> I note that the average durations have been commented out of the profiling UI. Is there any reason for that? I only ask because I'm looking at a project here that makes over 40,000 calls to a routine and obviously that represents a considerable shunk of the execution time. "Averages" would suit much better. cheers Bruce From oceanosoftlapalma at ...626... Mon Jun 11 12:17:47 2012 From: oceanosoftlapalma at ...626... (=?UTF-8?B?UmljYXJkbyBEw61heiBNYXJ0w61u?=) Date: Mon, 11 Jun 2012 12:17:47 +0200 Subject: [Gambas-user] Possible bug in textarea foreground color Message-ID: Hi, Try to exec this sample and you can see the text inside textarea is not "green". If you select this, then it changes to green. [System] OperatingSystem=Linux Kernel=3.2.0-24-generic Architecture=x86_64 Memory=4046444 kB DistributionVendor=Ubuntu DistributionRelease="Ubuntu 12.04 LTS" Desktop=Gnome [Gambas 2] Version=2.23.1 Path=/usr/bin/gbx2 [Gambas 3] Version=3.2.0 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.8.1 GTK+=libgtk-x11-2.0.so.0.2400.10 Regards, Ricardo D?az From demosthenesk at ...626... Mon Jun 11 14:00:54 2012 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 11 Jun 2012 15:00:54 +0300 Subject: [Gambas-user] chart class like charts in excel or libre office calc Message-ID: <4FD5DDF6.3080108@...626...> i want to ask if there is a chart class to get some data and make charts ? From dag.jarle.johansen at ...626... Mon Jun 11 17:26:30 2012 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Mon, 11 Jun 2012 17:26:30 +0200 Subject: [Gambas-user] sorry, no more linux avaibable Message-ID: I have to stay outside my usuable environment for a while. I will come back to linux and for all to gambas, but please quitt me from the mailing list for a time - I have other problems - I dont figure out how to do it All my love and regards to you From sebikul at ...626... Mon Jun 11 17:39:16 2012 From: sebikul at ...626... (Sebi) Date: Mon, 11 Jun 2012 15:39:16 +0000 Subject: [Gambas-user] crypt.md5 vs md5sum In-Reply-To: <4FD5B35E.5060606@...626...> References: <4FD5B35E.5060606@...626...> Message-ID: <1385139581-1339429157-cardhu_decombobulator_blackberry.rim.net-583502250-@...2864...> You should use echo -n to prevent it from printing a /n character. But anyway, they are different. -----Original Message----- From: Demosthenes Koptsis Date: Mon, 11 Jun 2012 11:59:10 To: mailing list for gambas users Reply-To: mailing list for gambas users Subject: [Gambas-user] crypt.md5 vs md5sum hello, i noticed a difference between crypt.md5 function and command md5sum. Both give different results echo password | md5sum is different from crypt.md5("password") why is that? ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Mon Jun 11 17:42:21 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 11 Jun 2012 18:42:21 +0300 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: <1339402201.29176.33.camel@...2672...> References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> <1339250447.6758.41.camel@...40...> <1339402201.29176.33.camel@...2672...> Message-ID: I think this; "object1.object_within_object.object_within_that_object.method(parameters1,..)" can be avoided with good object design. I still can't see real usage for #include. Also should be noticed that new keywords are justified only if they have general usage. But after all this is decision of Benoit, whether he sees usage for #include or not. Jussi On 11 June 2012 11:10, jm wrote: > Hi Bruce, > > The broadest difference between #include (and its cousins #define, > #undefine, #ifdef, #ifndef and #endif) and OO programming is that > #include is a preprocessing command that gets to work long before a > program gets to run. > > Using #include and its cousins, the idea is to build big readable > programs with the least amount of physical typing effort when used > responsibly. > > I think if it gets pitched as a battle between OO and non-OO > programming, the debate is still probably winnable by providing lots of > examples where OO programming leads to more work. Basically if all the > #include functionality is performed in OO, you got to > keep track of objects, and as programs get more complex the syntax will > grow which is excessive physical typing and leads to this method of > writing programs: > > > object1.object_within_object.object_within_that_object.method(parameters1,..) > > This can also turn into run time expense by having to dereference stuff. > > [I guess that will in turn let the OO camp will post ample examples of > programming that leads to confusion where a use a of a #include > is used irresponsibly and has altered programming behaviour in > unexpected ways. > This in turn will allow the #include camp to post more example where > OO behaviour leads to unexpected results confusing the programmer. > > Lets not go there!! > ] > > Instead of that, it is simpler to put aside the OO v non-OO debate > and focus on merits of gambas having pre-processing functions > as a subject in its own right. > > A #include that bolts together programs as needed. > When the run button is pressed on the IDE, the idea is that gambas will > do the pre-processing and stitch together the files to make a giant file > save it to disk as say file_name_to_run.expanded and then run that > expanded file. > > When debugging, there will have to be some kind of option to switch > between expanded version of the file and non-expanded version of the > file. > > > Any chance of sneaking 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 I'm just too old as well as tired, but I can't grasp the > > point of taking an object oriented language and trying to jam an old > > (albeit well tested) non-OO concept into it. > > > > Joe, I am having some degree of trouble really understanding your value > > proposition. Especially the last post (which I have snipped in entirety, > > sorry). All I can grasp from reading it several times is that you feel > > that #include has some productivity value in providing what we call > > inheritance and polymorphism. > > > > I am not trying to put you down but I really can't grasp the ideas of > > "thousands" of parameters and "hundreds" of initialisations. > > > > { We, here at paddys-hill have tens of clients (well a few tens anyway ) > > that use a dozen or so applications, the code base encompasses around > > two hundred or so classes and modules organized into around thirty > > components and libraries. The total code size is less than 25,000 lines > > and I would guess that probably 60% or more of that is comments. At a > > guess, the "largest" method calls would be 7 parameters, and they are > > just convenience calls to a class constructor. By far the "largest" > > chunk of code is a library that downloads the text of around 40 web > > pages a day (about 40,000 text lines), parses them, normalises them and > > uploads them to the central database. I just checked and it's 6345 lines > > of code, so about 2400 working lines, which are mainly involved in text > > parsing (things like discerning "Mac Donald" and "MacDonald" or "Miss > > Jane O'Donnel" and "Ms Jan ODonnell" are the same names). The primary > > application that uses this library runs once a day and adds about 1200 > > rows to a central postgresql database and can update anywhere between 2 > > and 10,000 other rows. It takes "about" 10 minutes. The central > > database has just over 3.2 million rows, the clients each have a > > sub-mirrored database of who-knows-what size.} > > > > Anyway, I hope you can see from the above {} that those numbers you are > > using are fairly un-emotive to the reader. > > > > regards > > Bruce > > > > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ______________________________________________________________________________ > > This message has been checked for viruses and spam by Armourplate > > http://www.armourplate.com, the email archiving, anti virus and anti > spam > > service from Corpex. > > > > ______________________________________________________________________________ > This message has been checked for viruses and spam by Corpex using > the ArmourPlate Anti Virus and Anti Spam Scanning Service. > To find out more and see our email archiving service see > http://www.armourplate.com or call Corpex on UK 0845 050 1898. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From adrien.prokopowicz at ...626... Mon Jun 11 17:51:53 2012 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Mon, 11 Jun 2012 17:51:53 +0200 Subject: [Gambas-user] crypt.md5 vs md5sum In-Reply-To: <1385139581-1339429157-cardhu_decombobulator_blackberry.rim.net-583502250-@...2864...> References: <4FD5B35E.5060606@...626...> <1385139581-1339429157-cardhu_decombobulator_blackberry.rim.net-583502250-@...2864...> Message-ID: <4253190.E6oNJAd6sX@...2823...> Le lundi 11 juin 2012 15:39:16 Sebi a ?crit : > You should use echo -n to prevent it from printing a /n character. But > anyway, they are different. -----Original Message----- > From: Demosthenes Koptsis > Date: Mon, 11 Jun 2012 11:59:10 > To: mailing list for gambas users > Reply-To: mailing list for gambas users > Subject: [Gambas-user] crypt.md5 vs md5sum > > hello, > > i noticed a difference between crypt.md5 function and command md5sum. > Both give different results > > echo password | md5sum > is different from > crypt.md5("password") > > why is that? > > ---------------------------------------------------------------------------- > -- Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ---------------------------------------------------------------------------- > -- Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user I've already got this problem too. That's because if you don't give any prefix, a random one is used. (see http://gambasdoc.org/help/comp/gb.crypt/crypt/md5?en&v3) But I still don't undersand why... From demosthenesk at ...626... Mon Jun 11 17:55:40 2012 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 11 Jun 2012 18:55:40 +0300 Subject: [Gambas-user] crypt.md5 vs md5sum In-Reply-To: <4253190.E6oNJAd6sX@...2823...> References: <4FD5B35E.5060606@...626...> <1385139581-1339429157-cardhu_decombobulator_blackberry.rim.net-583502250-@...2864...> <4253190.E6oNJAd6sX@...2823...> Message-ID: <4FD614FC.7010508@...626...> even i set a prefix the result is different. and i dont know what prefix to use to have the same result with md5sum? ???? 11/6/2012 18:51, ?/? Adrien Prokopowicz ??????: > > I've already got this problem too. That's because if you don't give any prefix, > a random one is used. (see > http://gambasdoc.org/help/comp/gb.crypt/crypt/md5?en&v3) > > But I still don't undersand why... > > From rmorgan62 at ...626... Mon Jun 11 18:26:07 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 11 Jun 2012 09:26:07 -0700 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> <1339250447.6758.41.camel@...40...> <1339402201.29176.33.camel@...2672...> Message-ID: Hi Folks, Thought I would chime in on this issue. 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.. The include statement in C/C++ was intended to allow libraries of code to be pulled into the current project. Allowing the developer to split a large project up into smaller, more manageable files. While it is used to include header files for libraries, it can be used to include any text file. It is not a part of the formal language in C/C++. But is a compiler re-processor. Contrast this to Ada's use of packages. Package Specifications in Ada at first seem similar to C header and library files. The major difference is that packages are a formal part of the Ada language and as such the compiler knows details about what is in the file and how to use that information. It is not simply included as text the current compilation. In fact many Ada compilers use the package specification file to locate and bind to only the information needed from the package body and any further dependent data/functions those dependencies may need. So the question is not one of programming paradigm or language constructs when it comes to includes. But one of file management. Frankly, I'd love to see something more inline with Ada Packages placed into Gambas. Then you could create something that looked like C/C++ includes but would be much more powerful! However, from a Basic Language stand-point, I don't think packages are very Basic-like... As for includes, I think this could be a useful tool for some but wonder why simply refactoring the program into more manageable class' wouldn't give a better solution. IMHO, doing so would make the project more maintainable over the long haul.... On Mon, Jun 11, 2012 at 8:42 AM, Jussi Lahtinen wrote: > I think this; > > "object1.object_within_object.object_within_that_object.method(parameters1,..)" > can be avoided with good object design. I still can't see real usage for > #include. > Also should be noticed that new keywords are justified only if they have > general usage. > > But after all this is decision of Benoit, whether he sees usage for > #include or not. > > Jussi > > > > > > On 11 June 2012 11:10, jm wrote: > > > Hi Bruce, > > > > The broadest difference between #include (and its cousins #define, > > #undefine, #ifdef, #ifndef and #endif) and OO programming is that > > #include is a preprocessing command that gets to work long before a > > program gets to run. > > > > Using #include and its cousins, the idea is to build big readable > > programs with the least amount of physical typing effort when used > > responsibly. > > > > I think if it gets pitched as a battle between OO and non-OO > > programming, the debate is still probably winnable by providing lots of > > examples where OO programming leads to more work. Basically if all the > > #include functionality is performed in OO, you got to > > keep track of objects, and as programs get more complex the syntax will > > grow which is excessive physical typing and leads to this method of > > writing programs: > > > > > > > object1.object_within_object.object_within_that_object.method(parameters1,..) > > > > This can also turn into run time expense by having to dereference stuff. > > > > [I guess that will in turn let the OO camp will post ample examples of > > programming that leads to confusion where a use a of a #include > > is used irresponsibly and has altered programming behaviour in > > unexpected ways. > > This in turn will allow the #include camp to post more example where > > OO behaviour leads to unexpected results confusing the programmer. > > > > Lets not go there!! > > ] > > > > Instead of that, it is simpler to put aside the OO v non-OO debate > > and focus on merits of gambas having pre-processing functions > > as a subject in its own right. > > > > A #include that bolts together programs as needed. > > When the run button is pressed on the IDE, the idea is that gambas will > > do the pre-processing and stitch together the files to make a giant file > > save it to disk as say file_name_to_run.expanded and then run that > > expanded file. > > > > When debugging, there will have to be some kind of option to switch > > between expanded version of the file and non-expanded version of the > > file. > > > > > > Any chance of sneaking 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 I'm just too old as well as tired, but I can't grasp the > > > point of taking an object oriented language and trying to jam an old > > > (albeit well tested) non-OO concept into it. > > > > > > Joe, I am having some degree of trouble really understanding your value > > > proposition. Especially the last post (which I have snipped in > entirety, > > > sorry). All I can grasp from reading it several times is that you feel > > > that #include has some productivity value in providing what we call > > > inheritance and polymorphism. > > > > > > I am not trying to put you down but I really can't grasp the ideas of > > > "thousands" of parameters and "hundreds" of initialisations. > > > > > > { We, here at paddys-hill have tens of clients (well a few tens anyway > ) > > > that use a dozen or so applications, the code base encompasses around > > > two hundred or so classes and modules organized into around thirty > > > components and libraries. The total code size is less than 25,000 > lines > > > and I would guess that probably 60% or more of that is comments. At a > > > guess, the "largest" method calls would be 7 parameters, and they are > > > just convenience calls to a class constructor. By far the "largest" > > > chunk of code is a library that downloads the text of around 40 web > > > pages a day (about 40,000 text lines), parses them, normalises them and > > > uploads them to the central database. I just checked and it's 6345 > lines > > > of code, so about 2400 working lines, which are mainly involved in text > > > parsing (things like discerning "Mac Donald" and "MacDonald" or "Miss > > > Jane O'Donnel" and "Ms Jan ODonnell" are the same names). The primary > > > application that uses this library runs once a day and adds about 1200 > > > rows to a central postgresql database and can update anywhere between 2 > > > and 10,000 other rows. It takes "about" 10 minutes. The central > > > database has just over 3.2 million rows, the clients each have a > > > sub-mirrored database of who-knows-what size.} > > > > > > Anyway, I hope you can see from the above {} that those numbers you are > > > using are fairly un-emotive to the reader. > > > > > > regards > > > Bruce > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Live Security Virtual Conference > > > Exclusive live event will cover all the ways today's security and > > > threat landscape has changed and how IT managers can respond. > Discussions > > > will include endpoint security, mobile security and the latest in > malware > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ______________________________________________________________________________ > > > This message has been checked for viruses and spam by Armourplate > > > http://www.armourplate.com, the email archiving, anti virus and anti > > spam > > > service from Corpex. > > > > > > > > > ______________________________________________________________________________ > > This message has been checked for viruses and spam by Corpex using > > the ArmourPlate Anti Virus and Anti Spam Scanning Service. > > To find out more and see our email archiving service see > > http://www.armourplate.com or call Corpex on UK 0845 050 1898. > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From jussi.lahtinen at ...626... Mon Jun 11 18:38:35 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 11 Jun 2012 19:38:35 +0300 Subject: [Gambas-user] crypt.md5 vs md5sum In-Reply-To: <4FD614FC.7010508@...626...> References: <4FD5B35E.5060606@...626...> <1385139581-1339429157-cardhu_decombobulator_blackberry.rim.net-583502250-@...2864...> <4253190.E6oNJAd6sX@...2823...> <4FD614FC.7010508@...626...> Message-ID: "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" Shell "echo -n '" & sPassword & "' | md5sum" To sCheckSum sCheckSum = Left$(sCheckSum, 32) Print sCheckSum Jussi On 11 June 2012 18:55, Demosthenes Koptsis wrote: > even i set a prefix the result is different. > > and i dont know what prefix to use to have the same result with md5sum? > > > ???? 11/6/2012 18:51, ?/? Adrien Prokopowicz ??????: > > > > I've already got this problem too. That's because if you don't give any > prefix, > > a random one is used. (see > > http://gambasdoc.org/help/comp/gb.crypt/crypt/md5?en&v3) > > > > But I still don't undersand why... > > > > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Mon Jun 11 19:36:21 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 11 Jun 2012 17:36:21 +0000 Subject: [Gambas-user] Issue 236 in gambas: gb.net.curl fails to connect using https In-Reply-To: <7-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> References: <7-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> <0-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> Message-ID: <8-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #8 on issue 236 by benoit.m... at ...626...: gb.net.curl fails to connect using https http://code.google.com/p/gambas/issues/detail?id=236 It's your idea! :-) You told me that SSL_library_init() must be called, but that libcurl does not do it. I just suggested to call it directly from Gambas. But I can't add that call directly in the gb.net.curl component, because it does not depend on libssl. Just libcurl. Apparently this is a bug in libcurl, so it may be fixed in future release. Don't you think so? From jussi.lahtinen at ...626... Mon Jun 11 19:38:29 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 11 Jun 2012 20:38:29 +0300 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> <1339250447.6758.41.camel@...40...> <1339402201.29176.33.camel@...2672...> Message-ID: > 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 #include is obsolete management choice. The include statement in C/C++ was intended to allow > libraries of code to be pulled into the current project. Here is the main point. In Gambas we already have Extern, Export etc commands for external libraries, whether they are written with Gambas, C or whatever. > Allowing the developer to split a large project up into smaller, more > manageable files. > With OOP I don't think you need to do that with files, you do it with classes. But maybe someone want to write code with non-OO style. > Contrast this to Ada's use of packages. > I don't know Ada, so I cannot say anything it being useful in Gambas. As for includes, I think this could be a useful tool for some but wonder > why simply refactoring the program into > more manageable class' wouldn't give a better solution. IMHO, doing so > would make the project more maintainable over the long haul.... > I agree. Jussi From rmorgan62 at ...626... Mon Jun 11 20:40:42 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 11 Jun 2012 11:40:42 -0700 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> <1339250447.6758.41.camel@...40...> <1339402201.29176.33.camel@...2672...> Message-ID: Hi Jussi, I don't think that OOP by itself replaces #includes. No more than OOP would replace SVN, CVS, Merc, etc.. Look at any reasonably sized C/C++ project and you'll see plenty of includes. I think the real issue here is the language choice. 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. So I think we agree on #includes not being the "best" solution for file management under Gambas, however, I think our reasoning differs... I'd also think that if an old project has grown to the point that someone is looking for a way to manage it's files, then it has matured to a point where refactoring the program would result in better long term management of the project. On Mon, Jun 11, 2012 at 10:38 AM, Jussi Lahtinen wrote: > > 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 #include is obsolete management > choice. > > > > The include statement in C/C++ was intended to allow > > libraries of code to be pulled into the current project. > > > Here is the main point. > In Gambas we already have Extern, Export etc commands for external > libraries, > whether they are written with Gambas, C or whatever. > > > > > > Allowing the developer to split a large project up into smaller, more > > manageable files. > > > > With OOP I don't think you need to do that with files, you do it with > classes. > But maybe someone want to write code with non-OO style. > > > > > > Contrast this to Ada's use of packages. > > > > I don't know Ada, so I cannot say anything it being useful in Gambas. > > > > As for includes, I think this could be a useful tool for some but wonder > > why simply refactoring the program into > > more manageable class' wouldn't give a better solution. IMHO, doing so > > would make the project more maintainable over the long haul.... > > > > I agree. > > > > Jussi > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From tobiasboege01 at ...1601... Mon Jun 11 20:48:45 2012 From: tobiasboege01 at ...1601... (tobi) Date: Mon, 11 Jun 2012 20:48:45 +0200 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> <1339250447.6758.41.camel@...40...> <1339402201.29176.33.camel@...2672...> Message-ID: <20120611184845.GA747@...2774...> On Mon, 11 Jun 2012, Jussi Lahtinen wrote: > > 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 #include is obsolete management > choice. > > > > The include statement in C/C++ was intended to allow > > libraries of code to be pulled into the current project. > > > Here is the main point. > In Gambas we already have Extern, Export etc commands for external > libraries, > whether they are written with Gambas, C or whatever. > > > > > > Allowing the developer to split a large project up into smaller, more > > manageable files. > > > > With OOP I don't think you need to do that with files, you do it with > classes. > But maybe someone want to write code with non-OO style. > > > > > > Contrast this to Ada's use of packages. > > > > I don't know Ada, so I cannot say anything it being useful in Gambas. > > > > As for includes, I think this could be a useful tool for some but wonder > > why simply refactoring the program into > > more manageable class' wouldn't give a better solution. IMHO, doing so > > would make the project more maintainable over the long haul.... > > > > I agree. > > > > Jussi > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Hi, I first didn't want to interfere but there recently was a related thread here. Beno?t stated back then that only the really needed features will be implemented in the Gambas Preprocessor and scolded me for my proposition to use the CPP instead. Nonetheless, if you really want to use the #include directive and other c-style things in your own dark chamber, nobody would care if you maintain your sources split, merge them via #include and then push them through the gbc3. As indirectly quoted above, it is not a solution for future gambas and I would strongly prefer OO over this but if you need it, why not... Uhh, too late to respond to Randall's last post but I totally recommend his last point. Regards, Tobi From jussi.lahtinen at ...626... Mon Jun 11 21:15:26 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 11 Jun 2012 22:15:26 +0300 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> <1339250447.6758.41.camel@...40...> <1339402201.29176.33.camel@...2672...> Message-ID: > 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 understand your point. In some language all classes could be in one big file, then I agree that #include would be useful. So I think we agree on #includes not being the "best" solution for file > management under Gambas, however, I think our reasoning differs... > > I'd also think that if an old project has grown to the point that someone > is looking for a way to manage it's files, then it has matured to a point > where refactoring the program would result in better long term management > of the project. > Yeah, I think we completely agree now, and I think we should stop flooding this list with this topic until Benoit makes his decision. Jussi From richard.j.walker at ...247... Mon Jun 11 21:27:31 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Mon, 11 Jun 2012 20:27:31 +0100 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: <20120611184845.GA747@...2774...> References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> <1339250447.6758.41.camel@...40...> <1339402201.29176.33.camel@...2672...> <20120611184845.GA747@...2774...> Message-ID: With apologies to all-who-know-more-about-this-than-me (or just "all")... Joe, you have a problem with managing a growing Gambas codebase and you think having an #include method in Gambas would help you cope. We are agreed that if it were added then it would operate before the compiler kicks in to make code for the interpreter. That makes me ask the question; why reinvent the wheel? You already have at your disposal a program which fully understands what to do with #include (and all the other pre-processor directives which have been mentioned). Have you tried it out yet? You have another program which is ideally suited to managing the files for large text file processing projects. Why not have a go at knocking up a project definition file using all the #include and #define and #ifdef directives you need. Run that through the C pre-processor, maybe under the direction of a suitable makefile and see if you can create a Gambas project which the ide can then load (for checking?) and compile? This should work just as well for the forms as for the code as it is all just text files in the project. Could that work for you? Richard From willy at ...2734... Mon Jun 11 22:37:35 2012 From: willy at ...2734... (Willy Raets) Date: Mon, 11 Jun 2012 22:37:35 +0200 Subject: [Gambas-user] Question on distribution of Gambas3 libraries Message-ID: <1339447055.2275.7.camel@...2735...> Current situation: If a distribute an application to end users that contain a dependent Gambas3 library I need to make these end users aware of the fact that they first need to install this library or my application would not install. This somehow seems to confuse some end users. My question to the development team: Is it possible to make packaging in Gambas possible in such a way that, in case a Gambas library is used by a project, some sort of multi application package is made that contains both the application and the dependend library? This so that when end users installs the application, the library contained in the package is installed before the application (but all in one install). I'm not a packager and have no idea on these matters, but instaling Gambas (from my point of view) seems to be some sort of multi package as well. I.M.H.O this would enhance the ease of distributing applications to end users a lot and would using Gambas libraries in distributed applications a lot easier. Willy From gambas at ...2524... Tue Jun 12 00:38:52 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 11 Jun 2012 22:38:52 +0000 Subject: [Gambas-user] Issue 236 in gambas: gb.net.curl fails to connect using https In-Reply-To: <8-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> References: <8-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> <0-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> Message-ID: <9-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> Comment #9 on issue 236 by sebi... at ...626...: gb.net.curl fails to connect using https http://code.google.com/p/gambas/issues/detail?id=236 I'm really confused, first because no one else seems to be affected by this bug. And second because curl (a terminal wrapper for libcurl) seems works fine! libcurl apparently depends on openssl, which provides libssl. Could a call to SSL_library_init() be added only when using https? Even tough libcurl should do it if it detects an https connection is requested, calling it would prevent this bug from occurring and hurt nobody. From zl1wtt at ...43... Tue Jun 12 03:31:33 2012 From: zl1wtt at ...43... (Grant Taylor) Date: Mon, 11 Jun 2012 18:31:33 -0700 (PDT) Subject: [Gambas-user] How to display a VU meter Message-ID: <1339464693.87783.YahooMailNeo@...2866...> Hi all, I'm currently work on my multimedia software I have got it working with both Mplayer and VLC. Is there a simple way to write code to work in with the desktop sound mixer to display a VU meter? I need to read both input and output settings to generate a visual display. My aim is monitor sound levels been sent out to my sound card from Mplayer or VLC.? I'm looking around for example on how to do this but not found any so far. I also would like find out more about plugging in and out of sound cards from Gambas? Grant? ? ? ? ? From richard.j.walker at ...247... Tue Jun 12 04:15:33 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Tue, 12 Jun 2012 03:15:33 +0100 Subject: [Gambas-user] How to display a VU meter In-Reply-To: <1339464693.87783.YahooMailNeo@...2866...> References: <1339464693.87783.YahooMailNeo@...2866...> Message-ID: If you were using Jack then I would suggest you simply use an existing meter such as meterbridge (http://plugin.org.uk/meterbridge/) and perhaps embed it in you Gambas program's window. That would give you the choice of DPM, analogue VU or Peak so you could pick whichever suites your layout. If you are using plain Alsa, or even Pulse (see how I managed to repress the shudder?), there may be other existing solutions you could apply in the same way. If you must re-invent the wheel in Gambas then it would be easiest just to normalise the audio data, say in the range 0-1, and send representative updates to something like a progress bar (or two, for stereo). That would give you something to look at while you are hacking out a suitable data snooping and sub-sampling method. Remember that you will be getting thousands of samples per second, but the refresh rate (or the event loop) will be much less often and you might get away with averaging a few hundred milliseconds worth. It is entirely up to you whether you want to emulate a real measurement indicator (such as PPM or VU) or just have something which looks good. In the end, when you have got the right algorithm for your purposes, you can dump the progress bars and work on something prettier. Richard On 12/06/2012, Grant Taylor wrote: > Hi all, > > I'm currently work on my multimedia software I have got it working with both > Mplayer and VLC. Is there a simple way to write code to work in with the > desktop sound mixer to display a VU meter? I need to read both input and > output settings to generate a visual display. My aim is monitor sound levels > been sent out to my sound card from Mplayer or VLC.? I'm looking around for > example on how to do this but not found any so far. I also would like find > out more about plugging in and out of sound cards from Gambas? > > Grant > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From demosthenesk at ...626... Tue Jun 12 08:38:53 2012 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 12 Jun 2012 09:38:53 +0300 Subject: [Gambas-user] Array with multiple types of vars Message-ID: <4FD6E3FD.9080708@...626...> Hi, in server socket example i see that we use the Tag property as an array i changed it a while.... Obj.Tag = [$iId, 0, "", False, sHost] 'Client id, Data id, Data, Valid Client, Remote Ip My question is, can i make such arrays [$iId, 0, "", False, sHost] at Global scope Private/Public arrays? i want to create an array like [Integer, Integer, String, Boolean, String] How can i do that? From bbruen at ...2308... Tue Jun 12 09:41:37 2012 From: bbruen at ...2308... (Bruce) Date: Tue, 12 Jun 2012 17:11:37 +0930 Subject: [Gambas-user] Array with multiple types of vars In-Reply-To: <4FD6E3FD.9080708@...626...> References: <4FD6E3FD.9080708@...626...> Message-ID: <1339486897.7537.19.camel@...40...> On Tue, 2012-06-12 at 09:38 +0300, Demosthenes Koptsis wrote: > Hi, > > in server socket example i see that we use the Tag property as an array > > i changed it a while.... > Obj.Tag = [$iId, 0, "", False, sHost] 'Client id, Data id, Data, > Valid Client, Remote Ip > > My question is, can i make such arrays [$iId, 0, "", False, sHost] at > Global scope Private/Public arrays? > > i want to create an array like > [Integer, Integer, String, Boolean, String] > > How can i do that? You mean like: Private $MyArray as Variant[] ??? or do you want to "enforce" some strong typing on the individual entries? I don't think you can do that. Bruce From emil.lenngren at ...626... Tue Jun 12 11:28:00 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Tue, 12 Jun 2012 10:28:00 +0100 Subject: [Gambas-user] Array with multiple types of vars In-Reply-To: <1339486897.7537.19.camel@...40...> References: <4FD6E3FD.9080708@...626...> <1339486897.7537.19.camel@...40...> Message-ID: You can create a Variant[] that can contain arbitrary data types. You can store a reference to that array both in a .Tag field, and some other global variable. Public MyArray As Variant[] and in your code: MyArray = [1, 2, "yeah"] something.Tag = MyArray 2012/6/12, Bruce : > On Tue, 2012-06-12 at 09:38 +0300, Demosthenes Koptsis wrote: >> Hi, >> >> in server socket example i see that we use the Tag property as an array >> >> i changed it a while.... >> Obj.Tag = [$iId, 0, "", False, sHost] 'Client id, Data id, Data, >> Valid Client, Remote Ip >> >> My question is, can i make such arrays [$iId, 0, "", False, sHost] at >> Global scope Private/Public arrays? >> >> i want to create an array like >> [Integer, Integer, String, Boolean, String] >> >> How can i do that? > > You mean like: > > Private $MyArray as Variant[] > > ??? > > or do you want to "enforce" some strong typing on the individual > entries? I don't think you can do that. > > Bruce > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From joem at ...2671... Tue Jun 12 11:41:50 2012 From: joem at ...2671... (jm) Date: Tue, 12 Jun 2012 10:41:50 +0100 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> <1339250447.6758.41.camel@...40...> <1339402201.29176.33.camel@...2672...> <20120611184845.GA747@...2774...> Message-ID: <1339494110.1810.69.camel@...2672...> Richard, You got same ideas I got! I was going to write a gambas program to do the preprocessing, but backed off because the issue then became which programs do you maintain? The expanded ones that the IDE can run or the compact ones edited in a text editor without highlighting. Lack of highlighting hugely reduces productivity. [That leads to be another question for the knowledgeable. Does Gambas have any way of exporting IDE highlighted code as HTML? It will greatly assist me to have this feature when documenting code. "save highlighed code in html" turns up lots of results in google "gambas save highlighed code in html" turn up nothing relevant] I trying an alternative work around as well where I use huge switch statements. The constant that the switch statement execute are highly verbose. e.g. PRIVATE CONST CHANGE_BASE_COORDINATES_OF_FEET AS Integer = 4 and then calling a function like this: geometry(CHANGE_BASE_COORDINATES_OF_FEET) and then in that function I have a huge switch statement. I use OO almost everywhere, but this technique reduces the amount of OO based dereferencing notation code. Code looks closer to C. Code works well, and expands well. The only thing lacking is the ability to use #include to shovel the big switch functions to some other file to make files even more readable. Because I work in C, gambas, and other languages I am conscious not to use language specific syntax wherever possible. I've prototyped programs in gambas and gone to C this way. So I know it works reasonably well providing you don't get too welded to language specific code. So for many different reasons which can't all be quickly covered in a mailing list, and without getting into the merits of OO only solution, (or bashing OO to justify adding #include) I thought best to ask if C like #include and related pre-processing can be added. It can all coexist and work well when used responsibly for the many different coding styles that exist out there. On Mon, 2012-06-11 at 20:27 +0100, RICHARD WALKER wrote: > With apologies to all-who-know-more-about-this-than-me (or just "all")... > > Joe, you have a problem with managing a growing Gambas codebase and > you think having an #include method in Gambas would help you cope. We > are agreed that if it were added then it would operate before the > compiler kicks in to make code for the interpreter. That makes me ask > the question; why reinvent the wheel? > > You already have at your disposal a program which fully understands > what to do with #include (and all the other pre-processor directives > which have been mentioned). Have you tried it out yet? > > You have another program which is ideally suited to managing the files > for large text file processing projects. Why not have a go at knocking > up a project definition file using all the #include and #define and > #ifdef directives you need. Run that through the C pre-processor, > maybe under the direction of a suitable makefile and see if you can > create a Gambas project which the ide can then load (for checking?) > and compile? > > This should work just as well for the forms as for the code as it is > all just text files in the project. Could that work for you? > > Richard > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ______________________________________________________________________________ > This message has been checked for viruses and spam by Armourplate > http://www.armourplate.com, the email archiving, anti virus and anti spam > service from Corpex. ______________________________________________________________________________ This message has been checked for viruses and spam by Corpex using the ArmourPlate Anti Virus and Anti Spam Scanning Service. To find out more and see our email archiving service see http://www.armourplate.com or call Corpex on UK 0845 050 1898. From sebikul at ...626... Tue Jun 12 11:48:41 2012 From: sebikul at ...626... (Sebi) Date: Tue, 12 Jun 2012 09:48:41 +0000 Subject: [Gambas-user] GB.JIT Crashes In-Reply-To: References: Message-ID: <1507373054-1339494524-cardhu_decombobulator_blackberry.rim.net-1633916275-@...2864...> The source can be found here: http://bazaar.launchpad.net/~sebikul/mundus/trunk/view/head:/.src/Main.module Let me know if you need more info! Thanks!! -----Original Message----- From: Emil Lenngren Date: Sun, 10 Jun 2012 01:06:19 To: mailing list for gambas users Reply-To: mailing list for gambas users Subject: Re: [Gambas-user] GB.JIT Crashes Yes please, how does your source code look like? Are you trying to enumerate a class? /Emil 2012/6/9 Sebastian Kulesz > Hi! I'm getting a crash when I place the fast keyword on top of a > module. The output: > > 19PushClassExpression > gbx3: jit.h:145: virtual llvm::Value* Expression::codegen_get_value(): > Assertion `false && "codegen_get_value not done yet for this type"' > failed. > > If you need the source let me know! > > Thanks! > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From eilert-sprachen at ...221... Tue Jun 12 12:03:40 2012 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 12 Jun 2012 12:03:40 +0200 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> <1339250447.6758.41.camel@...40...> <1339402201.29176.33.camel@...2672...> <20120611184845.GA747@...2774...> Message-ID: <4FD713FC.4020509@...221...> > You already have at your disposal a program which fully understands > what to do with #include (and all the other pre-processor directives > which have been mentioned). Have you tried it out yet? > Is it possible to insert the C pre-processor into the Play-Button function of the Gambas IDE, maybe the way you can insert filters into kprinter? That would be ideal here. Just an idea... :-) Rolf From vuott at ...325... Tue Jun 12 12:18:00 2012 From: vuott at ...325... (Ru Vuott) Date: Tue, 12 Jun 2012 11:18:00 +0100 (BST) Subject: [Gambas-user] R: Array with multiple types of vars In-Reply-To: <4FD6E3FD.9080708@...626...> Message-ID: <1339496280.57291.YahooMailClassic@...2691...> > > i want to create an array like > [Integer, Integer, String, Boolean, String] > > How can i do that? > > ------------------------------------------------------------------------- You could use a Structure type array variable: Public Struct miaStruttura a As Integer b As Integer c As String d As Boolean e As String End Struct public myArr As New miaStruttura[] etc. etc. You could use a special class type array variable: We create a new mySpecial.class, where we have: Public a As Integer Public b As Integer Public c As String Public d As Boolean Public e As String ''' in FMain class we have declaration ad use of variable: Private specialeVar As New MySpecial[] Public Sub etc etc From zl1wtt at ...43... Tue Jun 12 12:46:05 2012 From: zl1wtt at ...43... (Grant Taylor) Date: Tue, 12 Jun 2012 03:46:05 -0700 (PDT) Subject: [Gambas-user] How to display a VU meter Message-ID: <1339497965.79608.YahooMailNeo@...2868...> Hi Richard, I have looked a the jack audio stuff, It looks like I will need to reinvent the wheel. I have put together a Media viewer program in Gambas using the Mplayer plug-in. I need to display two channel VU meter display within this viewer. Do know of any examples of code that will do this? so I can get an understanding of how read information from sound cards devices and get a starting point to work from. I'm just not sure what is involved to read data from the sound mixer to do this. Grant? ? ? ? ? ? From joem at ...2671... Tue Jun 12 13:01:56 2012 From: joem at ...2671... (jm) Date: Tue, 12 Jun 2012 12:01:56 +0100 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: <4FD713FC.4020509@...221...> References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> <1339250447.6758.41.camel@...40...> <1339402201.29176.33.camel@...2672...> <20120611184845.GA747@...2774...> <4FD713FC.4020509@...221...> Message-ID: <1339498916.1810.76.camel@...2672...> On Tue, 2012-06-12 at 12:03 +0200, Rolf-Werner Eilert wrote: > > You already have at your disposal a program which fully understands > > what to do with #include (and all the other pre-processor directives > > which have been mentioned). Have you tried it out yet? > > > > Is it possible to insert the C pre-processor into the Play-Button > function of the Gambas IDE, maybe the way you can insert filters into > kprinter? That would be ideal here. > > Just an idea... :-) > > Rolf Wow! Thinking about it, that is even more powerful to cooperate with external preprocessor than just adding preprocesor functionality on its own. A simple check box in project properties dialog box to enable/disable preprocessing can turn the feature on/off. Some programs you may just not want to allow preprocessing and so checking it off here will allow the compiler to complain bitterly to go get it fixed. ______________________________________________________________________________ This message has been checked for viruses and spam by Corpex using the ArmourPlate Anti Virus and Anti Spam Scanning Service. To find out more and see our email archiving service see http://www.armourplate.com or call Corpex on UK 0845 050 1898. From gambas at ...1... Tue Jun 12 13:41:43 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 12 Jun 2012 13:41:43 +0200 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: <1339498916.1810.76.camel@...2672...> References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> <1339250447.6758.41.camel@...40...> <1339402201.29176.33.camel@...2672...> <20120611184845.GA747@...2774...> <4FD713FC.4020509@...221...> <1339498916.1810.76.camel@...2672...> Message-ID: <4FD72AF7.1090701@...1...> Le 12/06/2012 13:01, jm a ?crit : > On Tue, 2012-06-12 at 12:03 +0200, Rolf-Werner Eilert wrote: >>> You already have at your disposal a program which fully understands >>> what to do with #include (and all the other pre-processor directives >>> which have been mentioned). Have you tried it out yet? >>> >> >> Is it possible to insert the C pre-processor into the Play-Button >> function of the Gambas IDE, maybe the way you can insert filters into >> kprinter? That would be ideal here. >> >> Just an idea... :-) >> >> Rolf > > Wow! > > Thinking about it, that is even more powerful to cooperate > with external preprocessor than just adding preprocesor functionality on > its own. > > A simple check box in project properties dialog box to enable/disable > preprocessing can turn the feature on/off. Some programs you may just > not want to allow preprocessing and so checking it off here will allow > the compiler to complain bitterly to go get it fixed. > Hi, Sorry if I disappoint you, but I'm strongly against any preprocessing feature in Gambas. I'm talking about code subsitution, not the features currently implemented in the Gambas compiler, that just allow compiling one part of the code or another. Why ? Preprocessing is mainly used (in C) for the three following reasons: 1) Function and variable declaration. 2) Writing the same repeating pattern once. 3) Writing generic functions. In interpreted OO languages, and especially in Gambas, these features are not needed: 1) Function and variable declaration are done automatically by the compiler. 2) OO has inheritance. 3) There is no templates (or 'generic') in Gambas as in Java. But you have the Variant datatype. Moreover, preprocessing makes programs mostly unreadable, can create very difficult bugs, make the source code impossible to analyze (bye-bye automatic completion...), and so on. Developing a program is 20% writing it and 80% debugging it. So preprocessing makes that worse. If you need preprocessing in your project, then I think there is a fundamental design flaw in it. I have never need it when writing any big Gambas project. Regards, -- Beno?t Minisini From gambas at ...1... Tue Jun 12 13:51:02 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 12 Jun 2012 13:51:02 +0200 Subject: [Gambas-user] A quicky on profiling In-Reply-To: <1339424481.7537.3.camel@...40...> References: <1339424481.7537.3.camel@...40...> Message-ID: <4FD72D26.2040908@...1...> Le 11/06/2012 16:21, Bruce a ?crit : > I note that the average durations have been commented out of the > profiling UI. > > Is there any reason for that? > > I only ask because I'm looking at a project here that makes over 40,000 > calls to a routine and obviously that represents a considerable shunk of > the execution time. "Averages" would suit much better. > > cheers > Bruce > I found the average not significative. The total time allows you to see the real impact of an optimization. The number of calls allows you to see where you can concentrate your optimization. The relative time helps you when reading big numbers is difficult for you. But I don't see a need for the average time. Do you? -- Beno?t Minisini From gambas at ...2524... Tue Jun 12 13:54:03 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 12 Jun 2012 11:54:03 +0000 Subject: [Gambas-user] Issue 236 in gambas: gb.net.curl fails to connect using https In-Reply-To: <9-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> References: <9-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> <0-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> Message-ID: <10-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> Updates: Status: Accepted Comment #10 on issue 236 by benoit.m... at ...626...: gb.net.curl fails to connect using https http://code.google.com/p/gambas/issues/detail?id=236 I see now. It's just that gb.net.curl does not initialize the curl library correctly! Sorry if I didn't see that sooner, but I didn't write the code. From eilert-sprachen at ...221... Tue Jun 12 16:14:41 2012 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 12 Jun 2012 16:14:41 +0200 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: <4FD72AF7.1090701@...1...> References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> <1339250447.6758.41.camel@...40...> <1339402201.29176.33.camel@...2672...> <20120611184845.GA747@...2774...> <4FD713FC.4020509@...221...> <1339498916.1810.76.camel@...2672...> <4FD72AF7.1090701@...1...> Message-ID: <4FD74ED1.5000105@...221...> Am 12.06.2012 13:41, schrieb Beno?t Minisini: > Le 12/06/2012 13:01, jm a ?crit : >> On Tue, 2012-06-12 at 12:03 +0200, Rolf-Werner Eilert wrote: >>>> You already have at your disposal a program which fully understands >>>> what to do with #include (and all the other pre-processor directives >>>> which have been mentioned). Have you tried it out yet? >>>> >>> >>> Is it possible to insert the C pre-processor into the Play-Button >>> function of the Gambas IDE, maybe the way you can insert filters into >>> kprinter? That would be ideal here. >>> >>> Just an idea... :-) >>> >>> Rolf >> >> Wow! >> >> Thinking about it, that is even more powerful to cooperate >> with external preprocessor than just adding preprocesor functionality on >> its own. >> >> A simple check box in project properties dialog box to enable/disable >> preprocessing can turn the feature on/off. Some programs you may just >> not want to allow preprocessing and so checking it off here will allow >> the compiler to complain bitterly to go get it fixed. >> > > Hi, > > Sorry if I disappoint you, but I'm strongly against any preprocessing > feature in Gambas. > > I'm talking about code subsitution, not the features currently > implemented in the Gambas compiler, that just allow compiling one part > of the code or another. > > Why ? > > Preprocessing is mainly used (in C) for the three following reasons: > > 1) Function and variable declaration. > 2) Writing the same repeating pattern once. > 3) Writing generic functions. > > In interpreted OO languages, and especially in Gambas, these features > are not needed: > > 1) Function and variable declaration are done automatically by the compiler. > 2) OO has inheritance. > 3) There is no templates (or 'generic') in Gambas as in Java. But you > have the Variant datatype. > > Moreover, preprocessing makes programs mostly unreadable, can create > very difficult bugs, make the source code impossible to analyze (bye-bye > automatic completion...), and so on. > > Developing a program is 20% writing it and 80% debugging it. So > preprocessing makes that worse. > > If you need preprocessing in your project, then I think there is a > fundamental design flaw in it. I have never need it when writing any big > Gambas project. > > Regards, > Sigh... the master has spoken :-) Regards Rolf From eilert-sprachen at ...221... Tue Jun 12 16:30:26 2012 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 12 Jun 2012 16:30:26 +0200 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: <4FD72AF7.1090701@...1...> References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> <1339250447.6758.41.camel@...40...> <1339402201.29176.33.camel@...2672...> <20120611184845.GA747@...2774...> <4FD713FC.4020509@...221...> <1339498916.1810.76.camel@...2672...> <4FD72AF7.1090701@...1...> Message-ID: <4FD75282.1040708@...221...> Am 12.06.2012 13:41, schrieb Beno?t Minisini: > Le 12/06/2012 13:01, jm a ?crit : >> On Tue, 2012-06-12 at 12:03 +0200, Rolf-Werner Eilert wrote: >>>> You already have at your disposal a program which fully understands >>>> what to do with #include (and all the other pre-processor directives >>>> which have been mentioned). Have you tried it out yet? >>>> >>> >>> Is it possible to insert the C pre-processor into the Play-Button >>> function of the Gambas IDE, maybe the way you can insert filters into >>> kprinter? That would be ideal here. >>> >>> Just an idea... :-) >>> >>> Rolf >> >> Wow! >> >> Thinking about it, that is even more powerful to cooperate >> with external preprocessor than just adding preprocesor functionality on >> its own. >> >> A simple check box in project properties dialog box to enable/disable >> preprocessing can turn the feature on/off. Some programs you may just >> not want to allow preprocessing and so checking it off here will allow >> the compiler to complain bitterly to go get it fixed. >> > Now, let me add these few thoughts: > > I'm talking about code subsitution, not the features currently > implemented in the Gambas compiler, that just allow compiling one part > of the code or another. (Are there any? Didn't even know that...) > Moreover, preprocessing makes programs mostly unreadable, can create > very difficult bugs, make the source code impossible to analyze (bye-bye > automatic completion...), and so on. Yes, automatic completion would mean browsing all #included files each time to search for keywords, but how do IDEs for C programming handle this? > > Developing a program is 20% writing it and 80% debugging it. So > preprocessing makes that worse. Guess you're darn right here... There's just one more thing that popped into my mind, isn't it that a Gambas class code must adhere to certain rules as to where is what? I mean, you must start with variable declaration and then add the functions. You cannot declare a public variable at the end of the class, right? So, if you could #include another, say "file" into the code, and this file contains variable declarations AND functions, you would get a lot of confusion if it was simply concatenated. Instead, an #include function would have to interpret the code at least a bit up to the point it could distinguish between variable declarations and functions to add the variable declarations to the others and the functions to the others in the temp file. And so we are at the point we would have to code that ourselves and could not simply re-use the C preprocessor. It would at least be another obstacle. Rolf From joem at ...2671... Tue Jun 12 16:30:32 2012 From: joem at ...2671... (jm) Date: Tue, 12 Jun 2012 15:30:32 +0100 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: <4FD72AF7.1090701@...1...> References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> <1339250447.6758.41.camel@...40...> <1339402201.29176.33.camel@...2672...> <20120611184845.GA747@...2774...> <4FD713FC.4020509@...221...> <1339498916.1810.76.camel@...2672...> <4FD72AF7.1090701@...1...> Message-ID: <1339511432.7742.6.camel@...2672...> On Tue, 2012-06-12 at 13:41 +0200, Beno?t Minisini wrote: > Le 12/06/2012 13:01, jm a ?crit : > > On Tue, 2012-06-12 at 12:03 +0200, Rolf-Werner Eilert wrote: > >>> You already have at your disposal a program which fully understands > >>> what to do with #include (and all the other pre-processor directives > >>> which have been mentioned). Have you tried it out yet? > >>> > >> > >> Is it possible to insert the C pre-processor into the Play-Button > >> function of the Gambas IDE, maybe the way you can insert filters into > >> kprinter? That would be ideal here. > >> > >> Just an idea... :-) > >> > >> Rolf > > > > Wow! > > > > Thinking about it, that is even more powerful to cooperate > > with external preprocessor than just adding preprocesor functionality on > > its own. > > > > A simple check box in project properties dialog box to enable/disable > > preprocessing can turn the feature on/off. Some programs you may just > > not want to allow preprocessing and so checking it off here will allow > > the compiler to complain bitterly to go get it fixed. > > > > Hi, > > Sorry if I disappoint you, but I'm strongly against any preprocessing > feature in Gambas. > > I'm talking about code subsitution, not the features currently > implemented in the Gambas compiler, that just allow compiling one part > of the code or another. > > Why ? > > Preprocessing is mainly used (in C) for the three following reasons: > > 1) Function and variable declaration. > 2) Writing the same repeating pattern once. > 3) Writing generic functions. > > In interpreted OO languages, and especially in Gambas, these features > are not needed: > > 1) Function and variable declaration are done automatically by the compiler. > 2) OO has inheritance. > 3) There is no templates (or 'generic') in Gambas as in Java. But you > have the Variant datatype. > > Moreover, preprocessing makes programs mostly unreadable, can create > very difficult bugs, make the source code impossible to analyze (bye-bye > automatic completion...), and so on. > > Developing a program is 20% writing it and 80% debugging it. So > preprocessing makes that worse. > > If you need preprocessing in your project, then I think there is a > fundamental design flaw in it. I have never need it when writing any big > Gambas project. > > Regards, I take it that is a definite no then? :-) If I'm really under pressure, then I'm sure I can go write a lite preprocessor as needed and manage. Any chance of exporting IDE's highlighted code as colorful HTML for documentation purposes? Thank you, best regards. ______________________________________________________________________________ This message has been checked for viruses and spam by Corpex using the ArmourPlate Anti Virus and Anti Spam Scanning Service. To find out more and see our email archiving service see http://www.armourplate.com or call Corpex on UK 0845 050 1898. From rmorgan62 at ...626... Tue Jun 12 16:42:26 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Tue, 12 Jun 2012 07:42:26 -0700 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: <1339511432.7742.6.camel@...2672...> References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> <1339250447.6758.41.camel@...40...> <1339402201.29176.33.camel@...2672...> <20120611184845.GA747@...2774...> <4FD713FC.4020509@...221...> <1339498916.1810.76.camel@...2672...> <4FD72AF7.1090701@...1...> <1339511432.7742.6.camel@...2672...> Message-ID: I don't know about Gambas but Python has many libraries for this. Just google it. If you insist on pre-processing, a simple python script could get it done quickly. I'm a firm believer in using the tool that makes the most sense for the project. Of course, that depends on the person and project.... On Tue, Jun 12, 2012 at 7:30 AM, jm wrote: > On Tue, 2012-06-12 at 13:41 +0200, Beno?t Minisini wrote: > > Le 12/06/2012 13:01, jm a ?crit : > > > On Tue, 2012-06-12 at 12:03 +0200, Rolf-Werner Eilert wrote: > > >>> You already have at your disposal a program which fully understands > > >>> what to do with #include (and all the other pre-processor directives > > >>> which have been mentioned). Have you tried it out yet? > > >>> > > >> > > >> Is it possible to insert the C pre-processor into the Play-Button > > >> function of the Gambas IDE, maybe the way you can insert filters into > > >> kprinter? That would be ideal here. > > >> > > >> Just an idea... :-) > > >> > > >> Rolf > > > > > > Wow! > > > > > > Thinking about it, that is even more powerful to cooperate > > > with external preprocessor than just adding preprocesor functionality > on > > > its own. > > > > > > A simple check box in project properties dialog box to enable/disable > > > preprocessing can turn the feature on/off. Some programs you may just > > > not want to allow preprocessing and so checking it off here will allow > > > the compiler to complain bitterly to go get it fixed. > > > > > > > Hi, > > > > Sorry if I disappoint you, but I'm strongly against any preprocessing > > feature in Gambas. > > > > I'm talking about code subsitution, not the features currently > > implemented in the Gambas compiler, that just allow compiling one part > > of the code or another. > > > > Why ? > > > > Preprocessing is mainly used (in C) for the three following reasons: > > > > 1) Function and variable declaration. > > 2) Writing the same repeating pattern once. > > 3) Writing generic functions. > > > > In interpreted OO languages, and especially in Gambas, these features > > are not needed: > > > > 1) Function and variable declaration are done automatically by the > compiler. > > 2) OO has inheritance. > > 3) There is no templates (or 'generic') in Gambas as in Java. But you > > have the Variant datatype. > > > > Moreover, preprocessing makes programs mostly unreadable, can create > > very difficult bugs, make the source code impossible to analyze (bye-bye > > automatic completion...), and so on. > > > > Developing a program is 20% writing it and 80% debugging it. So > > preprocessing makes that worse. > > > > If you need preprocessing in your project, then I think there is a > > fundamental design flaw in it. I have never need it when writing any big > > Gambas project. > > > > Regards, > > > I take it that is a definite no then? :-) > > If I'm really under pressure, then I'm sure I can go > write a lite preprocessor as needed and manage. > > Any chance of exporting IDE's highlighted code as colorful HTML > for documentation purposes? > > Thank you, best regards. > > > > > ______________________________________________________________________________ > This message has been checked for viruses and spam by Corpex using > the ArmourPlate Anti Virus and Anti Spam Scanning Service. > To find out more and see our email archiving service see > http://www.armourplate.com or call Corpex on UK 0845 050 1898. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From joem at ...2671... Tue Jun 12 16:51:39 2012 From: joem at ...2671... (jm) Date: Tue, 12 Jun 2012 15:51:39 +0100 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: <4FD75282.1040708@...221...> References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> <1339250447.6758.41.camel@...40...> <1339402201.29176.33.camel@...2672...> <20120611184845.GA747@...2774...> <4FD713FC.4020509@...221...> <1339498916.1810.76.camel@...2672...> <4FD72AF7.1090701@...1...> <4FD75282.1040708@...221...> Message-ID: <1339512699.7742.14.camel@...2672...> > Yes, automatic completion would mean browsing all #included files each > time to search for keywords, but how do IDEs for C programming handle this? Netbeans and Eclipse do handle it 'reasonably' well. ______________________________________________________________________________ This message has been checked for viruses and spam by Corpex using the ArmourPlate Anti Virus and Anti Spam Scanning Service. To find out more and see our email archiving service see http://www.armourplate.com or call Corpex on UK 0845 050 1898. From richard.j.walker at ...247... Tue Jun 12 19:04:43 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Tue, 12 Jun 2012 18:04:43 +0100 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: <1339512699.7742.14.camel@...2672...> References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> <1339250447.6758.41.camel@...40...> <1339402201.29176.33.camel@...2672...> <20120611184845.GA747@...2774...> <4FD713FC.4020509@...221...> <1339498916.1810.76.camel@...2672...> <4FD72AF7.1090701@...1...> <4FD75282.1040708@...221...> <1339512699.7742.14.camel@...2672...> Message-ID: Do you need the syntax highlighting to be baked in? Can you not just use Kate (in KDE) or Gedit with a suitable set of rules for their existing highlighting mechanisms? I remember a few years ago when I was using Gambas in a project for my night-class in software engineering I was able to get syntax highlighted code into Open Office and thence into pdf. From Open Office I could move it to html for my "slide" presentation (didn't want to go Powerpoint/Impress route). I probably started by highlighting it in Kate as I remember writing (modifying an existing) rule file. I started by just going through the available syntax highlighters to find one that got me close - probably KBasic - but I don't remember the details. Richard. On 12/06/2012, jm wrote: > >> Yes, automatic completion would mean browsing all #included files each >> time to search for keywords, but how do IDEs for C programming handle >> this? > > Netbeans and Eclipse do handle it 'reasonably' well. > > > > ______________________________________________________________________________ > This message has been checked for viruses and spam by Corpex using > the ArmourPlate Anti Virus and Anti Spam Scanning Service. > To find out more and see our email archiving service see > http://www.armourplate.com or call Corpex on UK 0845 050 1898. > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Jun 12 19:20:05 2012 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Tue, 12 Jun 2012 19:20:05 +0200 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: <1339511432.7742.6.camel@...2672...> References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> <1339250447.6758.41.camel@...40...> <1339402201.29176.33.camel@...2672...> <20120611184845.GA747@...2774...> <4FD713FC.4020509@...221...> <1339498916.1810.76.camel@...2672...> <4FD72AF7.1090701@...1...> <1339511432.7742.6.camel@...2672...> Message-ID: <4FD77A45.8060104@...1...> Le 12/06/2012 16:30, jm a ?crit : > > I take it that is a definite no then? :-) > > If I'm really under pressure, then I'm sure I can go > write a lite preprocessor as needed and manage. > > Any chance of exporting IDE's highlighted code as colorful HTML > for documentation purposes? > > Thank you, best regards. > > Nothing is definite. But I want Gambas to offer the less possible syntactic sugar to the user (it's roughly the opposite of Python & Perl AFAIK). It makes program more readable and debugging is easier. I know that many Gambas programmer have the capacity to create code without tabulations and random variable names, but I can't do nothing against that - at the moment :-) So, to say things differently: preprocessing like the C/C++ preprocessor is far too powerful for my taste. I will reread your mails carefully (I didn't had the time to look the thread entirely yet), but I'm almost sure that you do not need a preprocessor at all. Regards, -- Beno?t Minisini From gambas at ...2524... Tue Jun 12 19:22:10 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 12 Jun 2012 17:22:10 +0000 Subject: [Gambas-user] Issue 236 in gambas: gb.net.curl fails to connect using https In-Reply-To: <10-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> References: <10-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> <0-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> Message-ID: <11-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #11 on issue 236 by benoit.m... at ...626...: gb.net.curl fails to connect using https http://code.google.com/p/gambas/issues/detail?id=236 Curl initialization has been fixed in revision #4823. Tell me if now things work correctly for you. From gambas at ...1... Tue Jun 12 19:24:37 2012 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Tue, 12 Jun 2012 19:24:37 +0200 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: <4FD77A45.8060104@...1...> References: <1339193770.24311.5.camel@...2672...> <1339246295.25650.4.camel@...2672...> <1339250447.6758.41.camel@...40...> <1339402201.29176.33.camel@...2672...> <20120611184845.GA747@...2774...> <4FD713FC.4020509@...221...> <1339498916.1810.76.camel@...2672...> <4FD72AF7.1090701@...1...> <1339511432.7742.6.camel@...2672...> <4FD77A45.8060104@...1...> Message-ID: <4FD77B55.4050400@...1...> > Le 12/06/2012 16:30, jm a ?crit : >> >> Any chance of exporting IDE's highlighted code as colorful HTML >> for documentation purposes? >> As for that, it is not very difficult to implement, as you have access to the internal Gambas highlighter through the gb.eval component. I will see if I can add that feature inside the IDE for you. Regards, -- Beno?t Minisini From richard.j.walker at ...247... Tue Jun 12 20:03:14 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Tue, 12 Jun 2012 19:03:14 +0100 Subject: [Gambas-user] How to display a VU meter In-Reply-To: <1339497965.79608.YahooMailNeo@...2868...> References: <1339497965.79608.YahooMailNeo@...2868...> Message-ID: On 12/06/2012, Grant Taylor wrote: > reinvent the wheel. I have put together a Media viewer program in Gambas > using the Mplayer plug-in. I need to display two channel VU meter > display within this viewer. If you want to use volume unit metering then the best place I can think of to find out how to implement that law is the meterbridge code. I would have said the same thing if you were intending to implement peak programme meters too :-) To quote snippets from Steve Harris meterbridge page: "PPM - Peak Program level Meters. Approximatly conforming to BS 6840-10. VU - Volume Unit meters. Conforming to BS 6840-17:1991." > Do know of any examples of code that will do this? so I can get an > understanding of how read information from sound cards devices and get a > starting point to work from. I'm just not sure what is involved to read data > from the sound mixer to do this. > Kjetil Matheussen has written a program called jack_capture which provides a curses based level indicator for which I believe he got the inspiration from meterbridge. Once you have your data in your program then either of these metering examples should show you how to handle the arithmetic. Gambas uses the SDL library for handling sound and music, but it seems only to expose a very high level view of the process. That is good for simple stuff. Perhaps you could check out the SDL documentation and the Gambas implementation of Channels.Volume. If that can act on the data then maybe it could point the way to how you would read the same data and display it in a meter. On the face of it it looks like the gb.media component might give you a way to implement your meter as a gstreamer plugin. That could be a better way to go - but I am really only guessing ;-( My skills are limited to things like the Gambas front end I am writing for the jack_capture command and if I need metering I will probably embed an instance of meterbridge. Richard From gambas at ...1... Tue Jun 12 20:53:49 2012 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Tue, 12 Jun 2012 20:53:49 +0200 Subject: [Gambas-user] Possible bug in textarea foreground color In-Reply-To: References: Message-ID: <4FD7903D.7040302@...1...> Le 11/06/2012 12:17, Ricardo D?az Mart?n a ?crit : > Hi, > > Try to exec this sample and you can see the text inside textarea is not > "green". If you select this, then it changes to green. Which sample? -- Beno?t Minisini From gambas at ...1... Tue Jun 12 21:02:36 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 12 Jun 2012 21:02:36 +0200 Subject: [Gambas-user] Calling dbus method:how do I handle return values In-Reply-To: References: Message-ID: <4FD7924C.9000204@...1...> Le 10/06/2012 03:20, RICHARD WALKER a ?crit : > I am trying to call a DBus method which takes one parameter and > returns many. The method details are: name="known_graph_version" type="t" direction="in" /> name="current_graph_version" type="t" direction="out" /> name="clients_and_ports" type="a(tsa(tsuu))" direction="out" /> name="connections" type="a(tstststst)" direction="out" /> > > If I use this: Dim graph_details As New Variant[] The 'New' is useless. Jack.GetGraph() will create a new Variant[] an return it. > > If 0< CurrentGraph Then graph_details = Jack.GetGraph(CurrentGraph) > > ...then graph_details[0] will return the numeric id for the graph > (for example, 223) > > > I don't seem to be able to guess what sort of variable to use for > assigning graph_details[1] and [2]. Stepping through the code it > seems to suggest that graph_details[1] is a Variant[][]. Same for > graph_details[2], but as I am completely and unredeemably confused > by array declaration syntax I am no closer to capturing these items. a -> array of (...) -> Variant[] So you will get for "client_and_ports" (graph_details[1]) a Variant[]. Each element of that array will be another Variant[] with three elements. The first one is a Long, the second one a string, and the third one an array of Variant[], each one being another Variant[] with four elements: a Long, a String, and two Integers. For "connections" (graph_details[2]) you will get an array of Variant[], each one being another Variant[] with 9 elements: Long, String, Long, String, Long, String, Long, String and Long. Regards, -- Beno?t Minisini From gambas at ...1... Tue Jun 12 21:10:28 2012 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Tue, 12 Jun 2012 21:10:28 +0200 Subject: [Gambas-user] Transparent expander container and and problem to resize a very height form in the IDE In-Reply-To: References: Message-ID: <4FD79424.80000@...1...> Le 10/06/2012 11:07, Ricardo D?az Mart?n a ?crit : > Hi, > > Please note that maybe is a Ubuntu Unity problem. I'm using ubuntu 12.04 > with Unity-2d to test it. > > After the expanders in the IDE were set to transparent, if you got a a form > in the ide higher than your screen view, you can't reduce the size by > clicking in white-squares on the form-end place. It's because when you try > to click int the white square to resize, the gambas console transparent > expander container is activated. > > To reproduce it, please in the IDE add new blank form. Set manually height > to 2000 (the vertical scrollbar is showed). Move down scrollbar to the form > end and try to click to resize the form. > > Regards, > Ricardo D?az This is "normal". The invisible expander size is greater than the form handle size. So you can't catch it if you hide the bottom panel and if the form editor has only a vertical scrollbar. I have no good solution at the moment. -- Beno?t Minisini From tobiasboege01 at ...1601... Tue Jun 12 21:19:53 2012 From: tobiasboege01 at ...1601... (tobi) Date: Tue, 12 Jun 2012 21:19:53 +0200 Subject: [Gambas-user] C like #include for Gambas In-Reply-To: <4FD75282.1040708@...221...> References: <1339402201.29176.33.camel@...2672...> <20120611184845.GA747@...2774...> <4FD713FC.4020509@...221...> <1339498916.1810.76.camel@...2672...> <4FD72AF7.1090701@...1...> <4FD75282.1040708@...221...> Message-ID: <20120612191953.GA744@...2774...> On Tue, 12 Jun 2012, Rolf-Werner Eilert wrote: > Am 12.06.2012 13:41, schrieb Beno?t Minisini: > > Le 12/06/2012 13:01, jm a ?crit : > >> On Tue, 2012-06-12 at 12:03 +0200, Rolf-Werner Eilert wrote: > >>>> You already have at your disposal a program which fully understands > >>>> what to do with #include (and all the other pre-processor directives > >>>> which have been mentioned). Have you tried it out yet? > >>>> > >>> > >>> Is it possible to insert the C pre-processor into the Play-Button > >>> function of the Gambas IDE, maybe the way you can insert filters into > >>> kprinter? That would be ideal here. > >>> > >>> Just an idea... :-) > >>> > >>> Rolf > >> > >> Wow! > >> > >> Thinking about it, that is even more powerful to cooperate > >> with external preprocessor than just adding preprocesor functionality on > >> its own. > >> > >> A simple check box in project properties dialog box to enable/disable > >> preprocessing can turn the feature on/off. Some programs you may just > >> not want to allow preprocessing and so checking it off here will allow > >> the compiler to complain bitterly to go get it fixed. > >> > > > > Now, let me add these few thoughts: > > > > > I'm talking about code subsitution, not the features currently > > implemented in the Gambas compiler, that just allow compiling one part > > of the code or another. > > (Are there any? Didn't even know that...) > > > Moreover, preprocessing makes programs mostly unreadable, can create > > very difficult bugs, make the source code impossible to analyze (bye-bye > > automatic completion...), and so on. > > Yes, automatic completion would mean browsing all #included files each > time to search for keywords, but how do IDEs for C programming handle this? > You talked about IDEs but also vim as an editor can be made using "ctags" for this purpose Regards, Tobi From ricardo.diaz at ...2869... Tue Jun 12 21:48:45 2012 From: ricardo.diaz at ...2869... (=?UTF-8?B?UmljYXJkbyBEw61heiBNYXJ0w61u?=) Date: Tue, 12 Jun 2012 21:48:45 +0200 Subject: [Gambas-user] Possible bug in textarea foreground color In-Reply-To: <4FD7903D.7040302@...1...> References: <4FD7903D.7040302@...1...> Message-ID: Opps, here it goes! 2012/6/12 Beno?t Minisini > Le 11/06/2012 12:17, Ricardo D?az Mart?n a ?crit : > > Hi, > > > > Try to exec this sample and you can see the text inside textarea is not > > "green". If you select this, then it changes to green. > > Which sample? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- -------------- next part -------------- A non-text attachment was scrubbed... Name: test01-0.0.1.tar.gz Type: application/x-gzip Size: 4868 bytes Desc: not available URL: From gambas at ...1... Tue Jun 12 22:05:40 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 12 Jun 2012 22:05:40 +0200 Subject: [Gambas-user] Possible bug in textarea foreground color In-Reply-To: References: <4FD7903D.7040302@...1...> Message-ID: <4FD7A114.8030309@...1...> Le 12/06/2012 21:48, Ricardo D?az Mart?n a ?crit : > Opps, here it goes! > OK. Bug fixed in revision #4825. Regards, -- Beno?t Minisini From gambas at ...2524... Wed Jun 13 02:04:53 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 13 Jun 2012 00:04:53 +0000 Subject: [Gambas-user] Issue 236 in gambas: gb.net.curl fails to connect using https In-Reply-To: <11-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> References: <11-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> <0-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> Message-ID: <12-6813199134517018827-8936813113906303062-gambas=googlecode.com@...2524...> Comment #12 on issue 236 by sebi... at ...626...: gb.net.curl fails to connect using https http://code.google.com/p/gambas/issues/detail?id=236 Works like a charm. Thanks a lot!! From demosthenesk at ...626... Wed Jun 13 13:29:45 2012 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 13 Jun 2012 14:29:45 +0300 Subject: [Gambas-user] QtBasic = Q7Basic some interesting features Message-ID: <4FD879A9.2010006@...626...> Hello i would like to inform you about a basic language perhaps you may already know. The old KBasic is now Q7Basic http://www.q7basic.org/ This project has some nice features, it is an object oriented Basic compiler which generates equivalent C++ code, managing QT widgets and classes natively ! This means that you write in Basic language Qt code. The compiler makes for you C++ files and a Qt Project that can be opened in QtCreator. ----------------------------------------------------------------------- example for a PushButton with object name "a": Signal on_a_clicked(Checked As Boolean) MsgBox("on_a_clicked") Dim w As QWidget = OpenWindow("window1")' returned qwidget is useable when it is still open only End Signal ----------------------------------------------------------------------- It is object oriented It supports polymorphism It uses ui files and QtDesigner as GUI builder You can use C++ libs in your Basic Source code !!! and more, see the site. Actually has been going to be named QtBasic but this was not able due some copyright laws and the project named Q7Basic. Benoit see it you can evaluate it better and see if there are any nice features for Gambas From bbruen at ...2308... Wed Jun 13 14:19:23 2012 From: bbruen at ...2308... (Bruce) Date: Wed, 13 Jun 2012 21:49:23 +0930 Subject: [Gambas-user] [SPAM] Re: QtBasic = Q7Basic some interesting features In-Reply-To: <4FD879A9.2010006@...626...> References: <4FD879A9.2010006@...626...> Message-ID: <1339589963.5550.97.camel@...40...> On Wed, 2012-06-13 at 14:29 +0300, Demosthenes Koptsis wrote: > Hello i would like to inform you about a basic language perhaps you may > already know. > > The old KBasic is now Q7Basic > http://www.q7basic.org/ > > This project has some nice features, it is an object oriented Basic > compiler which generates equivalent C++ code, managing QT widgets and > classes natively ! > This means that you write in Basic language Qt code. > The compiler makes for you C++ files and a Qt Project that can be opened > in QtCreator. > > ----------------------------------------------------------------------- > example for a PushButton with object name "a": > Signal on_a_clicked(Checked As Boolean) > > MsgBox("on_a_clicked") > > Dim w As QWidget = OpenWindow("window1")' returned qwidget is > useable when it is still open only > > End Signal > > ----------------------------------------------------------------------- > > It is object oriented > It supports polymorphism > It uses ui files and QtDesigner as GUI builder > You can use C++ libs in your Basic Source code !!! > and more, see the site. > > Actually has been going to be named QtBasic but this was not able due > some copyright laws and the project named Q7Basic. > > Benoit see it you can evaluate it better and see if there are any nice > features for Gambas Interesting. Thanks Demosthenes. A quick look-review (may save some others a bit of time): It looks very "early days" yet, no generic database connectivity, etc The forum topics do not give one a very warm feeling Documentation is very flat, no navigation and searching is poor In general, to me it looks like a VB# front end to Qt and little else .. and apparently it's not free (as in beer) But good luck to them. B From eilert-sprachen at ...221... Wed Jun 13 15:32:21 2012 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 13 Jun 2012 15:32:21 +0200 Subject: [Gambas-user] QtBasic = Q7Basic some interesting features In-Reply-To: <4FD879A9.2010006@...626...> References: <4FD879A9.2010006@...626...> Message-ID: <4FD89665.3070905@...221...> Am 13.06.2012 13:29, schrieb Demosthenes Koptsis: > Hello i would like to inform you about a basic language perhaps you may > already know. > > The old KBasic is now Q7Basic > http://www.q7basic.org/ > > This project has some nice features, it is an object oriented Basic > compiler which generates equivalent C++ code, managing QT widgets and > classes natively ! > This means that you write in Basic language Qt code. > The compiler makes for you C++ files and a Qt Project that can be opened > in QtCreator. > > ----------------------------------------------------------------------- > example for a PushButton with object name "a": > Signal on_a_clicked(Checked As Boolean) > > MsgBox("on_a_clicked") > > Dim w As QWidget = OpenWindow("window1")' returned qwidget is > useable when it is still open only > > End Signal > > ----------------------------------------------------------------------- > > It is object oriented > It supports polymorphism > It uses ui files and QtDesigner as GUI builder > You can use C++ libs in your Basic Source code !!! > and more, see the site. > > Actually has been going to be named QtBasic but this was not able due > some copyright laws and the project named Q7Basic. > > Benoit see it you can evaluate it better and see if there are any nice > features for Gambas > I guess I know that guy who has been maintaining this project for quite some years now. Compared to how long he's worked on it, Gambas has by far more matured... When he started, it was intended to be open source. We had a lot of contact then, and I had even started to write and translate the documentation. There was a lively community, and work went on. Then suddenly he decided to make it "his own project" for he had "already invested the major part of the work into it". Everyone left - included me - and I haven't heared much of the project since then. So, just my 2 cents... Regards Rolf From jussi.lahtinen at ...626... Wed Jun 13 17:02:23 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 13 Jun 2012 18:02:23 +0300 Subject: [Gambas-user] QtBasic = Q7Basic some interesting features In-Reply-To: <4FD879A9.2010006@...626...> References: <4FD879A9.2010006@...626...> Message-ID: 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 languages like Gambas are better. Because, example; - How you are supposed to debug program written with Q7Basic (if you don't know C++)? - C/C++ compilation is slow, even without conversion (Q7Basic --> C++). Jussi On 13 June 2012 14:29, Demosthenes Koptsis wrote: > Hello i would like to inform you about a basic language perhaps you may > already know. > > The old KBasic is now Q7Basic > http://www.q7basic.org/ > > This project has some nice features, it is an object oriented Basic > compiler which generates equivalent C++ code, managing QT widgets and > classes natively ! > This means that you write in Basic language Qt code. > The compiler makes for you C++ files and a Qt Project that can be opened > in QtCreator. > > ----------------------------------------------------------------------- > example for a PushButton with object name "a": > Signal on_a_clicked(Checked As Boolean) > > MsgBox("on_a_clicked") > > Dim w As QWidget = OpenWindow("window1")' returned qwidget is > useable when it is still open only > > End Signal > > ----------------------------------------------------------------------- > > It is object oriented > It supports polymorphism > It uses ui files and QtDesigner as GUI builder > You can use C++ libs in your Basic Source code !!! > and more, see the site. > > Actually has been going to be named QtBasic but this was not able due > some copyright laws and the project named Q7Basic. > > Benoit see it you can evaluate it better and see if there are any nice > features for Gambas > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From demosthenesk at ...626... Wed Jun 13 18:21:00 2012 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 13 Jun 2012 19:21:00 +0300 Subject: [Gambas-user] QtBasic = Q7Basic some interesting features In-Reply-To: References: <4FD879A9.2010006@...626...> Message-ID: <4FD8BDEC.2090501@...626...> As i see the project so far is in baby state. First of all it is rewritten from KBasic with some new features to Q7Basic. It is cross platform for Linux, Mac, Windows and can make machine executables. It has poor documentation, yes, and i dont know the rate of growing. I mean that i saw KBasic from 2004 and it has poor growing rate until now, the docs are at the same old poor state etc. Also it lacks of community feedback and contributions, it has no mailing list, just a forum and this makes the growing more difficult. i hope that the idea to be a QtBasic, that is, a Basic binding for Qt is an excellent idea. It supports all objects of Qt. Also the ability to write C++ code inside Basic code is very good feature. You can use any C++ lib and function. Another thing is that the project is open source with dual license, one is GPL and another commercial. But for no linux os it is sold as private open source software. http://www.gnu.org/philosophy/selling.html For Linux OS is given without charge. That is accepted and it is the commercial proposal of Stallman in order to make profit from open source. For me the idea of QtBasic is so attractive and i hope to see good releases. In comparison with Gambas, Gambas is in a mature state and is the working Basic for Linux so far with no serious competition, in my point of view. The feature that transform Basic to C++ is very good. If someone is a Basic Developer only that is no big deal but for a company which wants portabillity it can has all their project to C++ also. The Basic developer stays in basic version with no problem. On 06/13/2012 06:02 PM, Jussi Lahtinen wrote: > 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 languages like Gambas are better. > Because, example; > - How you are supposed to debug program written with Q7Basic (if you don't > know C++)? > - C/C++ compilation is slow, even without conversion (Q7Basic --> C++). > > Jussi > > > > > On 13 June 2012 14:29, Demosthenes Koptsis wrote: > >> Hello i would like to inform you about a basic language perhaps you may >> already know. >> >> The old KBasic is now Q7Basic >> http://www.q7basic.org/ >> >> This project has some nice features, it is an object oriented Basic >> compiler which generates equivalent C++ code, managing QT widgets and >> classes natively ! >> This means that you write in Basic language Qt code. >> The compiler makes for you C++ files and a Qt Project that can be opened >> in QtCreator. >> >> ----------------------------------------------------------------------- >> example for a PushButton with object name "a": >> Signal on_a_clicked(Checked As Boolean) >> >> MsgBox("on_a_clicked") >> >> Dim w As QWidget = OpenWindow("window1")' returned qwidget is >> useable when it is still open only >> >> End Signal >> >> ----------------------------------------------------------------------- >> >> It is object oriented >> It supports polymorphism >> It uses ui files and QtDesigner as GUI builder >> You can use C++ libs in your Basic Source code !!! >> and more, see the site. >> >> Actually has been going to be named QtBasic but this was not able due >> some copyright laws and the project named Q7Basic. >> >> Benoit see it you can evaluate it better and see if there are any nice >> features for Gambas >> >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From karl.reinl at ...9... Thu Jun 14 00:37:33 2012 From: karl.reinl at ...9... (Karl Reinl) Date: Thu, 14 Jun 2012 00:37:33 +0200 Subject: [Gambas-user] update rev. 4818 to 4828 IDE failer Message-ID: <1339627053.4064.6.camel@...40...> 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 DistributionRelease="Linux Mint 12 KDE" Desktop=KDE4 [Gambas 2] Version=2.24.0 Path=/usr/local/bin/gbx2 [Gambas 3] Version=3.2 r4828 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.7.4 GTK+=libgtk-x11-2.0.so.0.2400.6 -- Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: Bildschirmfoto1.png Type: image/png Size: 61940 bytes Desc: not available URL: From vuott at ...325... Thu Jun 14 00:53:02 2012 From: vuott at ...325... (Ru Vuott) Date: Wed, 13 Jun 2012 23:53:02 +0100 (BST) Subject: [Gambas-user] Error with XmlWriter tag in gb.xml In-Reply-To: <4FBD8071.8000003@...1...> Message-ID: <1339627982.67120.YahooMailClassic@...2789...> Hello Benoit, an user of Gambas-it.org Community ask me to write to you about a possible error with XmlWriter tag in gb.xml. He says that he found a problem, linked to the library gb.xml, especially with XMLWriter (but there is probably something with XMLReader). Example, he has to write an xml file, with a series of nested tags, where most of the elements have a single value (Text), such as: valore valore As can be seen, Tag1 and Tag2 have a value, and this is enclosed between the opening of the tag "", and its closure "/ Tag1>". Up to now he believes the logic is straightforward, and he says that this has so far been adopted in all its applications, including pgDesigner (xml file that reads a lot). After downloading the latest version of Gambas3 in source code form, now is the 4827, he found that the reading is something wrong (still unclear), while the writing has an error, that he has encountered in the source class XmlWriter.class, of which he brings the party to the problem: Public Sub StartElement(TagName As String, Optional Attributes As String[], Optional Prefix As String, Optional URI As String) Dim Xmlns, s, sData As String Dim i As Integer = 0 If URI Then Xmlns = " xmlns" If Prefix Then Xmlns &= ":" & Prefix Xmlns &= "=\"" & URI & "\"" Endif If Prefix Then TagName = Prefix & ":" & TagName sData = "<" & TagName If Attributes If (Attributes.Count Mod 2) Then Attributes.Push("") For i = 0 To Attributes.Max Step 2 sData &= " " & Attributes[i] & "=\"" & Attributes[i + 1] & "\"" Next Endif sData &= Xmlns If Not $TagEnded Then 'On ferme le tag pr?c?dent Write(">" & If($indent, "\n", ""), True) Endif $TagEnded = False Write(sData) PileElements.Push(TagName) End Public Sub EndElement() Dim tag As String If Not PileElements.Count Then Return tag = PileElements.Pop() If Not $TagEnded Then 'On ferme le tag pr?c?dent Write(" />" & If($indent, "\n", ""), True) 'Pas de contenu $TagEnded = True Else Write("") Endif End The user says that the code applies faulty logic, or at least partly by an assumption is not entirely correct. The tag is opened and closed by the state of the variable $ TagEnded, not taking into account that there may be a text value in the middle. This causes the incorrect writing of tags, as seen below: it combines the name of the tag with the value itself. The sequence in which the tag is opened and closed, and associated with this value is as an example: DIM oXml As XmlWriter ... oXml.StartElement("Tag1") oXml.Text("valore") oXml.EndElement() With version 3.1.1 it worked, but now our friend user says that with the latest updates do not go anymore. I do not know if the 3.1.1, the later builds contain all the same problem, but certainly the 4827. Well, this is what he wrote and asked me to tell you. I'll communicate to him your answer to this. Bye Vuotttttt From sundar_ima at ...251... Thu Jun 14 06:28:43 2012 From: sundar_ima at ...251... (sundar j) Date: 14 Jun 2012 04:28:43 -0000 Subject: [Gambas-user] =?utf-8?q?Access_global_variable_from_other_=2Eclas?= =?utf-8?q?s?= Message-ID: <1339646816.S.44096.autosave.drafts.old.1339648123.14654@...2802...> I am trying to write a code for accepting user password in a input box/textbox when user click on button from main form. For user input i have created new form named sudo.form and codes are in sudo.class file. This sudo.class accepts user password through textbox (hidden) and store it in global variable named password. sudo form is shown when user click on button from main form. Now my problem is that how do i access/capture this global variable (password) from main program? For example, accessing module variable (from sudo.module) we do it like: Public Sub function() Dim accept as string . . accept = sudo.password Shell "echo " & accept & " | sudo -S somecommand" . . End Right now i do not have a code to post but will come back later. But the general idea which i am trying to do is explained above. From vuott at ...325... Thu Jun 14 10:58:17 2012 From: vuott at ...325... (Ru Vuott) Date: Thu, 14 Jun 2012 09:58:17 +0100 (BST) Subject: [Gambas-user] R: Access global variable from other .class In-Reply-To: <1339646816.S.44096.autosave.drafts.old.1339648123.14654@...2802...> Message-ID: <1339664297.11642.YahooMailClassic@...2695...> I do not know if I understand correctly. However, if you want to access the value of a variable from the parent class, or from another class, you must set this variable as "global" and "Public". In addition, you must set as "public" also controls the form and symbols of the "modules" in the options of ownership of your program. bye --- Gio 14/6/12, sundar j ha scritto: > Da: sundar j > Oggetto: [Gambas-user] Access global variable from other .class > A: "mailing list" > Data: Gioved? 14 giugno 2012, 06:28 > I am trying to write a code for > accepting user password in a input box/textbox when user > click on button from main form. For user input i have > created new form named sudo.form and codes are in sudo.class > file. This sudo.class accepts user password through textbox > (hidden) and store it in global variable named password. > sudo form is shown when user click on button from main form. > Now my problem is that how do i access/capture this global > variable (password) from main program? For example, > accessing module variable (from sudo.module) we do it like: > > Public Sub function() > Dim accept as string > . > . > accept = sudo.password > Shell "echo " & accept & " | sudo -S > somecommand" > . > . > End > > Right now i do not have a code to post but will come back > later. But the general idea which i am trying to do is > explained above. > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's > security and > threat landscape has changed and how IT managers can > respond. Discussions > will include endpoint security, mobile security and the > latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Thu Jun 14 11:34:26 2012 From: vuott at ...325... (Ru Vuott) Date: Thu, 14 Jun 2012 10:34:26 +0100 (BST) Subject: [Gambas-user] Sorting data with ".Sort" in a Gridview In-Reply-To: <4FBD8511.2020200@...1...> Message-ID: <1339666466.6905.YahooMailClassic@...2758...> Hello, ...I'm really not able to figure out how to use ".Sort" to sort the data in a column in a gridview. :-( I made a few attempts and some evidence, but nothing. Can you give me a simple little example of explanation? Thanksss Vuott From rterry at ...1823... Thu Jun 14 12:46:48 2012 From: rterry at ...1823... (Richard Terry) Date: Thu, 14 Jun 2012 20:46:48 +1000 Subject: [Gambas-user] Gridview.row ?tag possible Message-ID: <4FD9C118.3070500@...1823...> Hi Benoit. rightly or wrongly, and there may be a better solution (if so advice please), I'm using a gridview like a column view to display the drugs in my prescription writer, using Richtext, as by using a columnview, the text couldn't contain enough info, and I like to be able to bold a column etc. When I used the columnview, each columnview1.item.key = key to the underlying drugs collection as I could set the columnview key to the database primary key. Using the gridview, as there is no key property to each row, I've had to do a work-around. so question, if it makes sense or is possible, could the gridview row be given a key property? Regards richard From ricardo.diaz at ...2869... Thu Jun 14 13:53:20 2012 From: ricardo.diaz at ...2869... (=?UTF-8?B?UmljYXJkbyBEw61heiBNYXJ0w61u?=) Date: Thu, 14 Jun 2012 13:53:20 +0200 Subject: [Gambas-user] Gridview.row ?tag possible In-Reply-To: <4FD9C118.3070500@...1823...> References: <4FD9C118.3070500@...1823...> Message-ID: It would be great this feature. I explain the way I do. I fill gridview first column with the record key and set the width to 0. So after you got a easy way to get this key. I know there are other ways to do it but this is quite simple. Regards, Ricardo D?az 2012/6/14 Richard Terry > Hi Benoit. > > rightly or wrongly, and there may be a better solution (if so advice > please), I'm using a gridview like a column view to display the drugs in > my prescription writer, using Richtext, as by using a columnview, the > text couldn't contain enough info, and I like to be able to bold a > column etc. > > > When I used the columnview, each columnview1.item.key = key to the > underlying drugs collection as I could set the columnview key to the > database primary key. > > Using the gridview, as there is no key property to each row, I've had to > do a work-around. > > so question, if it makes sense or is possible, could the gridview row be > given a key property? > > Regards > > richard > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From demosthenesk at ...626... Thu Jun 14 17:16:24 2012 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 14 Jun 2012 18:16:24 +0300 Subject: [Gambas-user] Application Error on latest svn Message-ID: <4FDA0048.40302@...626...> Hi list i checkout latest svn 4829 and i get an application error when i start gambas3 see screenshot please help. -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot-1.png Type: image/png Size: 199926 bytes Desc: not available URL: From sebikul at ...626... Thu Jun 14 17:23:15 2012 From: sebikul at ...626... (Sebi) Date: Thu, 14 Jun 2012 15:23:15 +0000 Subject: [Gambas-user] Application Error on latest svn In-Reply-To: <4FDA0048.40302@...626...> References: <4FDA0048.40302@...626...> Message-ID: <619134310-1339687436-cardhu_decombobulator_blackberry.rim.net-213464338-@...2864...> I have the same error, I sent an email to the list yesterday reporting it. Only fix now is to revert to an older commit. -----Original Message----- From: Demosthenes Koptsis Date: Thu, 14 Jun 2012 18:16:24 To: mailing list for gambas users Reply-To: mailing list for gambas users Subject: [Gambas-user] Application Error on latest svn Hi list i checkout latest svn 4829 and i get an application error when i start gambas3 see screenshot please help. From demosthenesk at ...626... Thu Jun 14 18:04:28 2012 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 14 Jun 2012 19:04:28 +0300 Subject: [Gambas-user] Debian install Message-ID: <4FDA0B8C.1080101@...626...> is the page http://gambasdoc.org/help/install/debian?v3&view up to date? i use linux mint which is a debian distro and in past i had some difficulties to install all needed packages to compile gambas3 i used the following apt-get sudo apt-get install build-essential g++ automake autoconf bzip2 debhelper dpatch firebird-dev gettext kdelibs5-dev libbz2-dev libcurl4-openssl-dev libgtk2.0-dev libjpeg62-dev libmysqlclient-dev libpcre3-dev libpng12-dev libpoppler-dev libpq-dev libqt3-compat-headers libqt3-mt-dev librsvg2-dev libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-sound1.2-dev libsdl1.2-dev libsqlite0-dev libsqlite3-dev libssl-dev libxml2-dev libxtst-dev mesa-common-dev unixodbc-dev zlib1g-dev libffi-dev the difs are kdelibs5-dev libcurl4-openssl-dev libmysqlclient-dev i think i did not forgot something From ea7dfh at ...2382... Thu Jun 14 19:33:11 2012 From: ea7dfh at ...2382... (Jesus) Date: Thu, 14 Jun 2012 19:33:11 +0200 Subject: [Gambas-user] R: Access global variable from other .class In-Reply-To: <4FD9F10E.2030204@...2382...> References: <4FD9F10E.2030204@...2382...> Message-ID: <4FDA2057.1050707@...2382...> Resent message. Don't know why the list didn't get it... -------- Mensaje original -------- Asunto: Re: [Gambas-user] R: Access global variable from other .class Fecha: Thu, 14 Jun 2012 16:11:26 +0200 De: Jesus Para: gambas-user at lists.sourceforge.net El 14/06/12 10:58, Ru Vuott escribi?: > I do not know if I understand correctly. However, if you want to access > the value of a variable from the parent class, or from another class, you > must set this variable as "global" and "Public". In addition, you must set > as "public" also controls the form and symbols of the "modules" in the options > of ownership of your program. > > bye Again, this is not a good idea/practice. Controls might remain Private and you might use the OOP approach using Properties and/or getters and setters. This is by far the most reliable and maintainable way to go, IMHO. I don't want to enter in an endless discussion about it, but this is only a good advise. Regards, Jesus > > > > --- Gio 14/6/12, sundar j ha scritto: > >> Da: sundar j >> Oggetto: [Gambas-user] Access global variable from other .class >> A: "mailing list" >> Data: Gioved? 14 giugno 2012, 06:28 >> I am trying to write a code for >> accepting user password in a input box/textbox when user >> click on button from main form. For user input i have >> created new form named sudo.form and codes are in sudo.class >> file. This sudo.class accepts user password through textbox >> (hidden) and store it in global variable named password. >> sudo form is shown when user click on button from main form. >> Now my problem is that how do i access/capture this global >> variable (password) from main program? For example, >> accessing module variable (from sudo.module) we do it like: >> >> Public Sub function() >> Dim accept as string >> . >> . >> accept = sudo.password >> Shell "echo "& accept& " | sudo -S >> somecommand" >> . >> . >> End >> >> Right now i do not have a code to post but will come back >> later. But the general idea which i am trying to do is >> explained above. > -- Jesus Guardon -- Jesus Guardon From karl.reinl at ...9... Thu Jun 14 20:38:40 2012 From: karl.reinl at ...9... (Karl Reinl) Date: Thu, 14 Jun 2012 20:38:40 +0200 Subject: [Gambas-user] fail to start the IDE rev 4828 and 4829 Message-ID: <1339699120.2312.0.camel@...40...> Salut, after update (svn) from rev 4818 to rev 4828 , I can'T start the IDE anymore. This is the shell output : ~/src/gambas/3 $ gambas3 QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: Datei oder Verzeichnis nicht gefunden QFileSystemWatcher: failed to add paths: /home/spuser/.config/ibus/bus FToolBar.LoadConfig.1368: #29: Invalid object 1: FWelcome.Run.33 2: Project.Main.287 ~/src/gambas/3 $ Other gambas3 projects work. Amicalement Charlie From gambas at ...1... Tue Jun 12 20:53:27 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 12 Jun 2012 20:53:27 +0200 Subject: [Gambas-user] Server Socket Example In-Reply-To: <4FD4FCC1.9090500@...626...> References: <4FD4FCC1.9090500@...626...> Message-ID: <4FD79027.6030405@...1...> Le 10/06/2012 22:00, Demosthenes Koptsis a ?crit : > Hi list, > > i work on a server project similar to ServerSocket example and i have > some questions > > 1) in example i see that there is the use of Tag property for the socket as > > Public Sub MyServerSocket_Connection(sHost As String) > .... > Obj.Tag = [$iId, 0, ""] > .... > End Sub > > i understand that > Tag[0] is the socket id > Tag[2] is the socket data > > what is Tag[1]; It is just a hack, to associate a counter with the socket. > > 2) it is used in sub Public Sub Socket_Write() to send 10 times data to > client, > why to send 10 times data? I dont understand it. No reason. The example was used for testing the gb.net component. Maybe some cleanup is needed? :-) -- Beno?t Minisini From demosthenesk at ...626... Wed Jun 13 13:39:28 2012 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 13 Jun 2012 14:39:28 +0300 Subject: [Gambas-user] R: Array with multiple types of vars In-Reply-To: <1339496280.57291.YahooMailClassic@...2691...> References: <1339496280.57291.YahooMailClassic@...2691...> Message-ID: <4FD87BF0.2010600@...626...> ???? 12/6/2012 13:18, ?/? Ru Vuott ??????: > >> i want to create an array like >> [Integer, Integer, String, Boolean, String] >> >> How can i do that? >> >> ------------------------------------------------------------------------- > You could use a Structure type array variable: > > > Public Struct miaStruttura > a As Integer > b As Integer > c As String > d As Boolean > e As String > End Struct > > public myArr As New miaStruttura[] > > etc. etc. > > > You could use a special class type array variable: > > We create a new mySpecial.class, where we have: > > > Public a As Integer > Public b As Integer > Public c As String > Public d As Boolean > Public e As String > > ''' > > in FMain class we have declaration ad use of variable: > > Private specialeVar As New MySpecial[] > > Public Sub etc etc > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Ok, thanks to all of you. Now i can have a starting point. From demosthenesk at ...626... Wed Jun 13 14:43:44 2012 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 13 Jun 2012 15:43:44 +0300 Subject: [Gambas-user] Array with multiple types of vars In-Reply-To: References: <4FD6E3FD.9080708@...626...> <1339486897.7537.19.camel@...40...> Message-ID: <4FD88B00.3050705@...626...> yes that i wanted, a public array with different types of elements. so it can MyArray[0] = 1 MyArray[1] = 1.2 MyArray[2] = "string" MyArray[3] = TRUE thanks. ???? 12/6/2012 12:28, ?/? Emil Lenngren ??????: > You can create a Variant[] that can contain arbitrary data types. You > can store a reference to that array both in a .Tag field, and some > other global variable. > > Public MyArray As Variant[] > > and in your code: > MyArray = [1, 2, "yeah"] > something.Tag = MyArray > > 2012/6/12, Bruce: >> On Tue, 2012-06-12 at 09:38 +0300, Demosthenes Koptsis wrote: >>> Hi, >>> >>> in server socket example i see that we use the Tag property as an array >>> >>> i changed it a while.... >>> Obj.Tag = [$iId, 0, "", False, sHost] 'Client id, Data id, Data, >>> Valid Client, Remote Ip >>> >>> My question is, can i make such arrays [$iId, 0, "", False, sHost] at >>> Global scope Private/Public arrays? >>> >>> i want to create an array like >>> [Integer, Integer, String, Boolean, String] >>> >>> How can i do that? >> You mean like: >> >> Private $MyArray as Variant[] >> >> ??? >> >> or do you want to "enforce" some strong typing on the individual >> entries? I don't think you can do that. >> >> Bruce >> >> >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From richard.j.walker at ...247... Thu Jun 14 01:51:09 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Thu, 14 Jun 2012 00:51:09 +0100 Subject: [Gambas-user] update rev. 4818 to 4828 IDE failer In-Reply-To: <1339627053.4064.6.camel@...40...> References: <1339627053.4064.6.camel@...40...> Message-ID: 1. your log files have zero length. Try uploading them again. 2. just guessing, I had a problem with this before, are your gambas3 libraries all installed in the usual place for 64-bit libraries? Richard On 13/06/2012, Karl Reinl 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 > DistributionRelease="Linux Mint 12 KDE" > Desktop=KDE4 > > [Gambas 2] > Version=2.24.0 > Path=/usr/local/bin/gbx2 > > [Gambas 3] > Version=3.2 r4828 > Path=/usr/local/bin/gbx3 > > [Libraries] > Qt4=libQtCore.so.4.7.4 > GTK+=libgtk-x11-2.0.so.0.2400.6 > > > -- > Amicalement > Charlie > From sebikul at ...626... Thu Jun 14 04:59:42 2012 From: sebikul at ...626... (Sebastian Kulesz) Date: Wed, 13 Jun 2012 23:59:42 -0300 Subject: [Gambas-user] Crash on rev 4829 Message-ID: Hi! Since the commit of the new toolbar code (rev 4828) i can't start the IDE. This is what it prints out: FToolBar.LoadConfig.1368: #29: Invalid object 1: FWelcome.Run.33 2: Project.Main.287 Any ideas? Thanks! From bbruen at ...2308... Thu Jun 14 06:58:58 2012 From: bbruen at ...2308... (Bruce) Date: Thu, 14 Jun 2012 14:28:58 +0930 Subject: [Gambas-user] Access global variable from other .class In-Reply-To: <1339646816.S.44096.autosave.drafts.old.1339648123.14654@...2802...> References: <1339646816.S.44096.autosave.drafts.old.1339648123.14654@...2802...> Message-ID: <1339649938.5550.102.camel@...40...> On Thu, 2012-06-14 at 04:28 +0000, sundar j wrote: > I am trying to write a code for accepting user password in a input box/textbox when user click on button from main form. For user input i have created new form named sudo.form and codes are in sudo.class file. This sudo.class accepts user password through textbox (hidden) and store it in global variable named password. sudo form is shown when user click on button from main form. Now my problem is that how do i access/capture this global variable (password) from main program? For example, accessing module variable (from sudo.module) we do it like: > > Public Sub function() > Dim accept as string > . > . > accept = sudo.password > Shell "echo " & accept & " | sudo -S somecommand" > . > . > End > > Right now i do not have a code to post but will come back later. But the general idea which i am trying to do is explained above. Why not save yourself the bother and just use kdesu, kdesudo, gksu, gksudo or pkexec (whichever fits your distro). As in, for example: Shell "gksu -c somecommand" These all provide the privilege gui and probably much more security than redoing it yourself. hth Bruce From sundar_ima at ...251... Thu Jun 14 07:40:33 2012 From: sundar_ima at ...251... (sundar j) Date: 14 Jun 2012 05:40:33 -0000 Subject: [Gambas-user] =?utf-8?q?Access_global_variable_from_other_=2Eclas?= =?utf-8?q?s?= Message-ID: <1339649980.S.2866.14066.H.TkJydWNlAFJlOiBbR2FtYmFzLXVzZXJdIEFjY2VzcyBnbG9iYWwgdmFyaWFibGUgZnJvbSBvdGhlciAuY2w_.RU.rfs246, rfs246, 302, 692.f4-234-188.old.1339652433.19006@...2802...> I have already tried and tested those option. Thoug it works i kept it as stand by option.  But i want my application to be universal and look native. In addition i want to know more on accessing variables from different class file. From: Bruce <bbruen at ...2308...> Sent: Thu, 14 Jun 2012 10:29:40 To: sundar_ima at ...251..., mailing list for gambas users <gambas-user at lists.sourceforge.net> Subject: Re: [Gambas-user] Access global variable from other .class On Thu, 2012-06-14 at 04:28 +0000, sundar j wrote: > I am trying to write a code for accepting user password in a input box/textbox when user click on button from main form. For user input i have created new form named sudo.form and codes are in sudo.class file. This sudo.class accepts user password through textbox (hidden) and store it in global variable named password. sudo form is shown when user click on button from main form. Now my problem is that how do i access/capture this global variable (password) from main program? For example, accessing module variable (from sudo.module) we do it like: > > Public Sub function() > Dim accept as string > . > . > accept = sudo.password > Shell "echo " &amp; accept &amp; " | sudo -S somecommand" > . > . > End > > Right now i do not have a code to post but will come back later. But the general idea which i am trying to do is explained above. Why not save yourself the bother and just use kdesu, kdesudo, gksu, gksudo or pkexec (whichever fits your distro). As in, for example:        Shell "gksu -c somecommand" These all provide the privilege gui and probably much more security than redoing it yourself. hth Bruce From sebikul at ...626... Thu Jun 14 23:56:51 2012 From: sebikul at ...626... (Sebi) Date: Thu, 14 Jun 2012 21:56:51 +0000 Subject: [Gambas-user] update rev. 4818 to 4828 IDE failer In-Reply-To: References: <1339627053.4064.6.camel@...40...> Message-ID: <2062425879-1339711015-cardhu_decombobulator_blackberry.rim.net-651698574-@...2864...> This bug has already been reported 4 times on the mailing list!! The only fix available now is to revert to a previous commit, and wait. -----Original Message----- From: RICHARD WALKER Date: Thu, 14 Jun 2012 00:51:09 To: ; mailing list for gambas users Reply-To: mailing list for gambas users Subject: Re: [Gambas-user] update rev. 4818 to 4828 IDE failer 1. your log files have zero length. Try uploading them again. 2. just guessing, I had a problem with this before, are your gambas3 libraries all installed in the usual place for 64-bit libraries? Richard On 13/06/2012, Karl Reinl 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 > DistributionRelease="Linux Mint 12 KDE" > Desktop=KDE4 > > [Gambas 2] > Version=2.24.0 > Path=/usr/local/bin/gbx2 > > [Gambas 3] > Version=3.2 r4828 > Path=/usr/local/bin/gbx3 > > [Libraries] > Qt4=libQtCore.so.4.7.4 > GTK+=libgtk-x11-2.0.so.0.2400.6 > > > -- > Amicalement > Charlie > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From vuott at ...325... Thu Jun 14 13:40:03 2012 From: vuott at ...325... (Ru Vuott) Date: Thu, 14 Jun 2012 12:40:03 +0100 (BST) Subject: [Gambas-user] R: Sorting data with ".Sort" in a Gridview In-Reply-To: <1339666466.6905.YahooMailClassic@...2758...> Message-ID: <1339674003.84119.YahooMailClassic@...2789...> Ok: Columns.Sort doesn't... sort ! :-) --- Gio 14/6/12, Ru Vuott ha scritto: > Da: Ru Vuott > Oggetto: [Gambas-user] Sorting data with ".Sort" in a Gridview > A: "mailing list for gambas users" > Data: Gioved? 14 giugno 2012, 11:34 > Hello, > > ...I'm really not able to figure out how to use ".Sort" to > sort the data in a column in a gridview.? :-( > > I made a few attempts and some evidence, but nothing. > > Can you give me a simple little example of explanation? > > Thanksss > > Vuott > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's > security and > threat landscape has changed and how IT managers can > respond. Discussions > will include endpoint security, mobile security and the > latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ea7dfh at ...2382... Thu Jun 14 16:11:26 2012 From: ea7dfh at ...2382... (Jesus) Date: Thu, 14 Jun 2012 16:11:26 +0200 Subject: [Gambas-user] R: Access global variable from other .class In-Reply-To: <1339664297.11642.YahooMailClassic@...2695...> References: <1339664297.11642.YahooMailClassic@...2695...> Message-ID: <4FD9F10E.2030204@...2382...> El 14/06/12 10:58, Ru Vuott escribi?: > I do not know if I understand correctly. However, if you want to access > the value of a variable from the parent class, or from another class, you > must set this variable as "global" and "Public". In addition, you must set > as "public" also controls the form and symbols of the "modules" in the options > of ownership of your program. > > bye Again, this is not a good idea/practice. Controls might remain Private and you might use the OOP approach using Properties and/or getters and setters. This is by far the most reliable and maintainable way to go, IMHO. I don't want to enter in an endless discussion about it, but this is only a good advise. Resgards, Jesus > > > > --- Gio 14/6/12, sundar j ha scritto: > >> Da: sundar j >> Oggetto: [Gambas-user] Access global variable from other .class >> A: "mailing list" >> Data: Gioved? 14 giugno 2012, 06:28 >> I am trying to write a code for >> accepting user password in a input box/textbox when user >> click on button from main form. For user input i have >> created new form named sudo.form and codes are in sudo.class >> file. This sudo.class accepts user password through textbox >> (hidden) and store it in global variable named password. >> sudo form is shown when user click on button from main form. >> Now my problem is that how do i access/capture this global >> variable (password) from main program? For example, >> accessing module variable (from sudo.module) we do it like: >> >> Public Sub function() >> Dim accept as string >> . >> . >> accept = sudo.password >> Shell "echo "& accept& " | sudo -S >> somecommand" >> . >> . >> End >> >> Right now i do not have a code to post but will come back >> later. But the general idea which i am trying to do is >> explained above. > -- Jesus Guardon From demosthenesk at ...626... Thu Jun 14 18:07:29 2012 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 14 Jun 2012 19:07:29 +0300 Subject: [Gambas-user] Fwd: Debian install In-Reply-To: <4FDA0B8C.1080101@...626...> References: <4FDA0B8C.1080101@...626...> Message-ID: <4FDA0C41.4080709@...626...> i did not incude the libs for jit gstreamer if anyone can ... -------- Original Message -------- Subject: Debian install Date: Thu, 14 Jun 2012 19:04:28 +0300 From: Demosthenes Koptsis To: Gambas User List is the page http://gambasdoc.org/help/install/debian?v3&view up to date? i use linux mint which is a debian distro and in past i had some difficulties to install all needed packages to compile gambas3 i used the following apt-get sudo apt-get install build-essential g++ automake autoconf bzip2 debhelper dpatch firebird-dev gettext kdelibs5-dev libbz2-dev libcurl4-openssl-dev libgtk2.0-dev libjpeg62-dev libmysqlclient-dev libpcre3-dev libpng12-dev libpoppler-dev libpq-dev libqt3-compat-headers libqt3-mt-dev librsvg2-dev libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-sound1.2-dev libsdl1.2-dev libsqlite0-dev libsqlite3-dev libssl-dev libxml2-dev libxtst-dev mesa-common-dev unixodbc-dev zlib1g-dev libffi-dev the difs are kdelibs5-dev libcurl4-openssl-dev libmysqlclient-dev i think i did not forgot something From jussi.lahtinen at ...626... Thu Jun 14 19:16:05 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 14 Jun 2012 20:16:05 +0300 Subject: [Gambas-user] Application Error on latest svn In-Reply-To: <4FDA0048.40302@...626...> References: <4FDA0048.40302@...626...> Message-ID: Weird, that same revision works correctly on Xubuntu 12.04 64bit. Jussi On 14 June 2012 18:16, Demosthenes Koptsis wrote: > Hi list i checkout latest svn 4829 and i get an application error when i > start gambas3 > > see screenshot > > please help. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jussi.lahtinen at ...626... Thu Jun 14 19:17:58 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 14 Jun 2012 20:17:58 +0300 Subject: [Gambas-user] update rev. 4818 to 4828 IDE failer In-Reply-To: <1339627053.4064.6.camel@...40...> References: <1339627053.4064.6.camel@...40...> Message-ID: All attached logs are zero size... Jussi On 14 June 2012 01:37, Karl Reinl 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 > DistributionRelease="Linux Mint 12 KDE" > Desktop=KDE4 > > [Gambas 2] > Version=2.24.0 > Path=/usr/local/bin/gbx2 > > [Gambas 3] > Version=3.2 r4828 > Path=/usr/local/bin/gbx3 > > [Libraries] > Qt4=libQtCore.so.4.7.4 > GTK+=libgtk-x11-2.0.so.0.2400.6 > > > -- > Amicalement > Charlie > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From rterry at ...1823... Fri Jun 15 00:07:16 2012 From: rterry at ...1823... (Richard Terry) Date: Fri, 15 Jun 2012 08:07:16 +1000 Subject: [Gambas-user] Gridview.row ?tag possible In-Reply-To: References: <4FD9C118.3070500@...1823...> Message-ID: <4FDA6094.1030706@...1823...> Thanks, good idea, as other's obvious want the feature maybe Benoit can add it? richard > Ricardo D?az Mart?n wrote: It would be great this feature. > I explain the way I do. I fill gridview first column with the record key > and set the width to 0. So after you got a easy way to get this key. I know > there are other ways to do it but this is quite simple. > > Regards, > Ricardo D?az > > > 2012/6/14 Richard Terry > > >> Hi Benoit. >> >> rightly or wrongly, and there may be a better solution (if so advice >> please), I'm using a gridview like a column view to display the drugs in >> my prescription writer, using Richtext, as by using a columnview, the >> text couldn't contain enough info, and I like to be able to bold a >> column etc. >> >> >> When I used the columnview, each columnview1.item.key = key to the >> underlying drugs collection as I could set the columnview key to the >> database primary key. >> >> Using the gridview, as there is no key property to each row, I've had to >> do a work-around. >> >> so question, if it makes sense or is possible, could the gridview row be >> given a key property? >> >> Regards >> >> richard >> >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Jun 15 00:09:13 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 15 Jun 2012 00:09:13 +0200 Subject: [Gambas-user] R: Sorting data with ".Sort" in a Gridview In-Reply-To: <1339674003.84119.YahooMailClassic@...2789...> References: <1339674003.84119.YahooMailClassic@...2789...> Message-ID: <4FDA6109.1060100@...1...> Le 14/06/2012 13:40, Ru Vuott a ?crit : > Ok: > > Columns.Sort doesn't... sort ! > > :-) > No. It just displays the sort symbol in the header (with the Ascending property). You have to sort the data yourself. -- Beno?t Minisini From vuott at ...325... Fri Jun 15 01:34:16 2012 From: vuott at ...325... (Ru Vuott) Date: Fri, 15 Jun 2012 00:34:16 +0100 (BST) Subject: [Gambas-user] R: Sorting data with ".Sort" in a Gridview In-Reply-To: <4FDA6109.1060100@...1...> Message-ID: <1339716856.84615.YahooMailClassic@...2780...> Yes, ok, Benoit, only after sent my message, I studied .Columns.Sort in Documentation. Excuse me. :-) Bye Vuott P.S.: no news, Beno?t, about my previous message: "Error with XmlWriter tag in gb.xml" ? --- Ven 15/6/12, Beno?t Minisini ha scritto: > Da: Beno?t Minisini > Oggetto: Re: [Gambas-user] R: Sorting data with ".Sort" in a Gridview > A: "mailing list for gambas users" > Data: Venerd? 15 giugno 2012, 00:09 > Le 14/06/2012 13:40, Ru Vuott a > ?crit : > > Ok: > > > >???Columns.Sort doesn't... sort ! > > > >? ? :-) > > > > No. It just displays the sort symbol in the header (with the > Ascending > property). You have to sort the data yourself. > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's > security and > threat landscape has changed and how IT managers can > respond. Discussions > will include endpoint security, mobile security and the > latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From adrien.prokopowicz at ...626... Fri Jun 15 01:40:00 2012 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Fri, 15 Jun 2012 01:40:00 +0200 Subject: [Gambas-user] Error with XmlWriter tag in gb.xml In-Reply-To: <1339627982.67120.YahooMailClassic@...2789...> References: <4FBD8071.8000003@...1...> <1339627982.67120.YahooMailClassic@...2789...> Message-ID: Seems like my message wasn't sent. :-) This should be solved in the revision #4826. 2012/6/14 Ru Vuott > Hello Benoit, > > an user of Gambas-it.org Community ask me to write to you about a possible > error with XmlWriter tag in gb.xml. > > He says that he found a problem, linked to the library gb.xml, especially > with XMLWriter (but there is probably something with XMLReader). > Example, he has to write an xml file, with a series of nested tags, where > most of the elements have a single value (Text), such as: > > > valore > valore > > > As can be seen, Tag1 and Tag2 have a value, and this is enclosed between > the opening of the tag "", and its closure "/ Tag1>". > Up to now he believes the logic is straightforward, and he says that this > has so far been adopted in all its applications, including pgDesigner (xml > file that reads a lot). > > After downloading the latest version of Gambas3 in source code form, now > is the 4827, he found that the reading is something wrong (still unclear), > while the writing has an error, that he has encountered in the source class > XmlWriter.class, of which he brings the party to the problem: > > Public Sub StartElement(TagName As String, Optional Attributes As > String[], Optional Prefix As String, Optional URI As String) > > Dim Xmlns, s, sData As String > Dim i As Integer = 0 > If URI Then > Xmlns = " xmlns" > If Prefix Then Xmlns &= ":" & Prefix > Xmlns &= "=\"" & URI & "\"" > Endif > If Prefix Then TagName = Prefix & ":" & TagName > > sData = "<" & TagName > > If Attributes > If (Attributes.Count Mod 2) Then Attributes.Push("") > For i = 0 To Attributes.Max Step 2 > sData &= " " & Attributes[i] & "=\"" & Attributes[i + 1] & "\"" > Next > Endif > > sData &= Xmlns > > If Not $TagEnded Then 'On ferme le tag pr?c?dent > Write(">" & If($indent, "\n", ""), True) > Endif > > $TagEnded = False > > Write(sData) > > PileElements.Push(TagName) > > End > > Public Sub EndElement() > > Dim tag As String > > If Not PileElements.Count Then Return > > tag = PileElements.Pop() > > If Not $TagEnded Then 'On ferme le tag pr?c?dent > Write(" />" & If($indent, "\n", ""), True) 'Pas de contenu > $TagEnded = True > Else > Write("") > Endif > > End > > > The user says that the code applies faulty logic, or at least partly by an > assumption is not entirely correct. The tag is opened and closed by the > state of the variable $ TagEnded, not taking into account that there may be > a text value in the middle. This causes the incorrect writing of tags, as > seen below: > > > > > it combines the name of the tag with the value itself. > The sequence in which the tag is opened and closed, and associated with > this value is as an example: > > DIM oXml As XmlWriter > ... > oXml.StartElement("Tag1") > oXml.Text("valore") > oXml.EndElement() > > > With version 3.1.1 it worked, but now our friend user says that with the > latest updates do not go anymore. I do not know if the 3.1.1, the later > builds contain all the same problem, but certainly the 4827. > > > Well, this is what he wrote and asked me to tell you. I'll communicate to > him your answer to this. > > Bye > Vuotttttt > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Fri Jun 15 01:44:03 2012 From: vuott at ...325... (Ru Vuott) Date: Fri, 15 Jun 2012 00:44:03 +0100 (BST) Subject: [Gambas-user] Error with XmlWriter tag in gb.xml In-Reply-To: Message-ID: <1339717443.79396.YahooMailClassic@...2748...> > > This should be solved in the revision #4826. > Oh, Adrien, thanks, I'll communicate it to that italian Gambas-forum user. From adrien.prokopowicz at ...626... Fri Jun 15 02:21:17 2012 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Fri, 15 Jun 2012 02:21:17 +0200 Subject: [Gambas-user] Error with XmlWriter tag in gb.xml In-Reply-To: <1339717443.79396.YahooMailClassic@...2748...> References: <1339717443.79396.YahooMailClassic@...2748...> Message-ID: Oops, this is the #4829, not the #4826, of course... 2012/6/15 Ru Vuott > > > > > This should be solved in the revision #4826. > > > > Oh, Adrien, thanks, I'll communicate it to that italian Gambas-forum user. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Jun 15 02:35:50 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 15 Jun 2012 02:35:50 +0200 Subject: [Gambas-user] IDE should work again now! Message-ID: <4FDA8366.5080807@...1...> The bug in toolbar management that made the IDE crashing at startup with the "Invalid object" error should have been fixed. In revision #4830. Please confirm! -- Beno?t Minisini From sebikul at ...626... Fri Jun 15 04:06:35 2012 From: sebikul at ...626... (Sebastian Kulesz) Date: Thu, 14 Jun 2012 23:06:35 -0300 Subject: [Gambas-user] IDE should work again now! In-Reply-To: <4FDA8366.5080807@...1...> References: <4FDA8366.5080807@...1...> Message-ID: Fixed for me! Thanks a lot! On Thu, Jun 14, 2012 at 9:35 PM, Beno?t Minisini wrote: > The bug in toolbar management that made the IDE crashing at startup with > the "Invalid object" error should have been fixed. > > In revision #4830. > > Please confirm! > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From sebikul at ...626... Fri Jun 15 04:11:14 2012 From: sebikul at ...626... (Sebastian Kulesz) Date: Thu, 14 Jun 2012 23:11:14 -0300 Subject: [Gambas-user] GB.JIT Crashes In-Reply-To: <1507373054-1339494524-cardhu_decombobulator_blackberry.rim.net-1633916275-@...2864...> References: <1507373054-1339494524-cardhu_decombobulator_blackberry.rim.net-1633916275-@...2864...> Message-ID: The last commit fixed the previous bug, but now i'm getting a weird error. I have a parent class with ~100 childs. When I add "Fast" on the parent the only message I get is: "Stack became corrupted in a JIT function. Please make a bug report." Full output with GB_JIT: http://pastebin.com/gyW56S2H The source can be found here: http://bazaar.launchpad.net/~sebikul/mundus/trunk/view/head:/.src/Module.class Thanks! On Tue, Jun 12, 2012 at 6:48 AM, Sebi wrote: > The source can be found here: > http://bazaar.launchpad.net/~sebikul/mundus/trunk/view/head:/.src/Main.module > > Let me know if you need more info! > > Thanks!! > -----Original Message----- > From: Emil Lenngren > Date: Sun, 10 Jun 2012 01:06:19 > To: mailing list for gambas users > Reply-To: mailing list for gambas users > Subject: Re: [Gambas-user] GB.JIT Crashes > > Yes please, how does your source code look like? Are you trying to > enumerate a class? > > /Emil > > 2012/6/9 Sebastian Kulesz > >> Hi! I'm getting a crash when I place the fast keyword on top of a >> module. The output: >> >> 19PushClassExpression >> gbx3: jit.h:145: virtual llvm::Value* Expression::codegen_get_value(): >> Assertion `false && "codegen_get_value not done yet for this type"' >> failed. >> >> If you need the source let me know! >> >> Thanks! >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From demosthenesk at ...626... Fri Jun 15 07:33:50 2012 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Fri, 15 Jun 2012 08:33:50 +0300 Subject: [Gambas-user] Server Socket Example In-Reply-To: <4FD79027.6030405@...1...> References: <4FD4FCC1.9090500@...626...> <4FD79027.6030405@...1...> Message-ID: <4FDAC93E.9020805@...626...> ???? 12/6/2012 21:53, ?/? Beno?t Minisini ??????: > Le 10/06/2012 22:00, Demosthenes Koptsis a ?crit : >> Hi list, >> >> i work on a server project similar to ServerSocket example and i have >> some questions >> >> 1) in example i see that there is the use of Tag property for the socket as >> >> Public Sub MyServerSocket_Connection(sHost As String) >> .... >> Obj.Tag = [$iId, 0, ""] >> .... >> End Sub >> >> i understand that >> Tag[0] is the socket id >> Tag[2] is the socket data >> >> what is Tag[1]; > It is just a hack, to associate a counter with the socket. > >> 2) it is used in sub Public Sub Socket_Write() to send 10 times data to >> client, >> why to send 10 times data? I dont understand it. > No reason. The example was used for testing the gb.net component. Maybe > some cleanup is needed? :-) > The only reason i find is to have a Return way from Socket_Write(). It checks if the data were sent 10 times and then exit sub. i changed this to check if data were sent 1 time and then exit sub. From vuott at ...325... Fri Jun 15 10:32:20 2012 From: vuott at ...325... (Ru Vuott) Date: Fri, 15 Jun 2012 09:32:20 +0100 (BST) Subject: [Gambas-user] Error with XmlWriter tag in gb.xml In-Reply-To: Message-ID: <1339749140.77132.YahooMailClassic@...2695...> Hello, Adrien, I communicated your report to our friend of italian forum. He answered (obviously he cannot updated and try rev.4829): **** Fixed not think so, because already there are obvious anomalies in the source. Now I'm trying to use XmlDocument instead of XmlReader / XmlWriter, and I think it also works if you have a completely different logic, but closer to other library other languages??. I'm thinking that perhaps the idea of the developer is to eliminate the two classes XmlReader / Writer, in favor of further classes more dynamic ... **** Bye Vuott --- Ven 15/6/12, Adrien Prokopowicz ha scritto: > Da: Adrien Prokopowicz > Oggetto: Re: [Gambas-user] Error with XmlWriter tag in gb.xml > A: "mailing list for gambas users" > Data: Venerd? 15 giugno 2012, 02:21 > Oops, this is the #4829, not the > #4826, of course... > > 2012/6/15 Ru Vuott > > > > > > > > > This should be solved in the revision #4826. > > > > > > > Oh, Adrien, thanks, I'll communicate it to that italian > Gambas-forum user. > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's > security and > > threat landscape has changed and how IT managers can > respond. Discussions > > will include endpoint security, mobile security and the > latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's > security and > threat landscape has changed and how IT managers can > respond. Discussions > will include endpoint security, mobile security and the > latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Fri Jun 15 11:08:51 2012 From: vuott at ...325... (Ru Vuott) Date: Fri, 15 Jun 2012 10:08:51 +0100 (BST) Subject: [Gambas-user] R: IDE should work again now! In-Reply-To: <4FDA8366.5080807@...1...> Message-ID: <1339751331.54263.YahooMailClassic@...2758...> > The bug in toolbar management that > made the IDE crashing at startup with > the "Invalid object" error should have been fixed. > > In revision #4830. > > Please confirm! > > -- > Beno?t Minisini I updated by #4832: It works. bye Vuott From adrien.prokopowicz at ...626... Fri Jun 15 12:18:24 2012 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Fri, 15 Jun 2012 12:18:24 +0200 Subject: [Gambas-user] Error with XmlWriter tag in gb.xml In-Reply-To: <1339749140.77132.YahooMailClassic@...2695...> References: <1339749140.77132.YahooMailClassic@...2695...> Message-ID: 2012/6/15 Ru Vuott > Hello, Adrien, > > I communicated your report to our friend of italian forum. He answered > (obviously he cannot updated and try rev.4829): > > **** > > Fixed not think so, because already there are obvious anomalies in the > source. > > Anomalies ? Where ? > Now I'm trying to use XmlDocument instead of XmlReader / XmlWriter, and I > think it also works if you have a completely different logic, but closer to > other library other languages??. > > I'm thinking that perhaps the idea of the developer is to eliminate the > two classes XmlReader / Writer, in favor of further classes more dynamic ... > The idea is not to "eliminate" XmlReader and XmlWriter. For two reasons : - They still can be very useful. The new XmlReader and XmlWriter are not made for little documents (as said, the others are more dynamic), but they are made for streams. For example, you can "connect" a TCP socket to XmlReader and Writer, and they will read/write the XML for you. Here is a little example with XmlReader (the page is in french, but the program is in english) : http://www.gambasforge.org/code-63-xmltalk.html. - For compatibility reasons. Before the new gb.xml arrived, the XmlDocument/XmlNode classes were very poor (unusable). So, everyone use XmlReader and XmlWriter... Regards, Adrien. From vuott at ...325... Fri Jun 15 12:38:02 2012 From: vuott at ...325... (Ru Vuott) Date: Fri, 15 Jun 2012 11:38:02 +0100 (BST) Subject: [Gambas-user] Error with XmlWriter tag in gb.xml In-Reply-To: Message-ID: <1339756682.17971.YahooMailClassic@...2789...> Thank you, Adrien, I communicated this your note to our friend. Bye Vuottttt --- Ven 15/6/12, Adrien Prokopowicz ha scritto: > Da: Adrien Prokopowicz > Oggetto: Re: [Gambas-user] Error with XmlWriter tag in gb.xml > A: "mailing list for gambas users" > Data: Venerd? 15 giugno 2012, 12:18 > 2012/6/15 Ru Vuott > > > Hello, Adrien, > > > > I communicated your report to our friend of italian > forum. He answered > > (obviously he cannot updated and try rev.4829): > > > > **** > > > > Fixed not think so, because already there are obvious > anomalies in the > > source. > > > > > Anomalies ? Where ? > > > > Now I'm trying to use XmlDocument instead of XmlReader > / XmlWriter, and I > > think it also works if you have a completely different > logic, but closer to > > other library other languages??. > > > > I'm thinking that perhaps the idea of the developer is > to eliminate the > > two classes XmlReader / Writer, in favor of further > classes more dynamic ... > > > > > The idea is not to "eliminate" XmlReader and XmlWriter. For > two reasons : > > - They still can be very useful. The new XmlReader and > XmlWriter are not > made for little documents (as said, the others are more > dynamic), but they > are made for streams. > For example, you can "connect" a TCP socket to XmlReader and > Writer, and > they will read/write the XML for you. Here is a little > example with > XmlReader (the page is in french, but the program is in > english) : > http://www.gambasforge.org/code-63-xmltalk.html. > > - For compatibility reasons. Before the new gb.xml arrived, > the > XmlDocument/XmlNode classes were very poor (unusable). So, > everyone use > XmlReader and XmlWriter... > > > > Regards, > Adrien. > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's > security and > threat landscape has changed and how IT managers can > respond. Discussions > will include endpoint security, mobile security and the > latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From demosthenesk at ...626... Fri Jun 15 12:47:03 2012 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Fri, 15 Jun 2012 13:47:03 +0300 Subject: [Gambas-user] R: IDE should work again now! In-Reply-To: <1339751331.54263.YahooMailClassic@...2758...> References: <1339751331.54263.YahooMailClassic@...2758...> Message-ID: <4FDB12A7.4000503@...626...> yes now working in LMDE svn4832 Thanks! ???? 15/6/2012 12:08, ?/? Ru Vuott ??????: >> The bug in toolbar management that >> made the IDE crashing at startup with >> the "Invalid object" error should have been fixed. >> >> In revision #4830. >> >> Please confirm! >> >> -- >> Beno?t Minisini > > I updated by #4832: It works. > > bye > Vuott > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From emil.lenngren at ...626... Fri Jun 15 13:22:28 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Fri, 15 Jun 2012 13:22:28 +0200 Subject: [Gambas-user] GB.JIT Crashes In-Reply-To: References: <1507373054-1339494524-cardhu_decombobulator_blackberry.rim.net-1633916275-@...2864...> Message-ID: Thank you for your reports. Does it work better in the latest revision? /Emil 2012/6/15 Sebastian Kulesz > The last commit fixed the previous bug, but now i'm getting a weird > error. I have a parent class with ~100 childs. When I add "Fast" on > the parent the only message I get is: > > "Stack became corrupted in a JIT function. Please make a bug report." > > Full output with GB_JIT: http://pastebin.com/gyW56S2H > > > The source can be found here: > > http://bazaar.launchpad.net/~sebikul/mundus/trunk/view/head:/.src/Module.class > > Thanks! > > On Tue, Jun 12, 2012 at 6:48 AM, Sebi wrote: > > The source can be found here: > > > http://bazaar.launchpad.net/~sebikul/mundus/trunk/view/head:/.src/Main.module > > > > Let me know if you need more info! > > > > Thanks!! > > -----Original Message----- > > From: Emil Lenngren > > Date: Sun, 10 Jun 2012 01:06:19 > > To: mailing list for gambas users > > Reply-To: mailing list for gambas users < > gambas-user at lists.sourceforge.net> > > Subject: Re: [Gambas-user] GB.JIT Crashes > > > > Yes please, how does your source code look like? Are you trying to > > enumerate a class? > > > > /Emil > > > > 2012/6/9 Sebastian Kulesz > > > >> Hi! I'm getting a crash when I place the fast keyword on top of a > >> module. The output: > >> > >> 19PushClassExpression > >> gbx3: jit.h:145: virtual llvm::Value* Expression::codegen_get_value(): > >> Assertion `false && "codegen_get_value not done yet for this type"' > >> failed. > >> > >> If you need the source let me know! > >> > >> Thanks! > >> > >> > >> > ------------------------------------------------------------------------------ > >> Live Security Virtual Conference > >> Exclusive live event will cover all the ways today's security and > >> threat landscape has changed and how IT managers can respond. > Discussions > >> will include endpoint security, mobile security and the latest in > malware > >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...2345... Fri Jun 15 19:39:39 2012 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Fri, 15 Jun 2012 19:39:39 +0200 Subject: [Gambas-user] IDE should work again now! In-Reply-To: <4FDA8366.5080807@...1...> References: <4FDA8366.5080807@...1...> Message-ID: <1339781979.3273.1.camel@...40...> Am Freitag, den 15.06.2012, 02:35 +0200 schrieb Beno?t Minisini: > The bug in toolbar management that made the IDE crashing at startup with > the "Invalid object" error should have been fixed. > > In revision #4830. > > Please confirm! > Salut Beno?t, yes, can start the IDE again. -- Amicalement Charlie From jussi.lahtinen at ...626... Fri Jun 15 20:51:11 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 15 Jun 2012 21:51:11 +0300 Subject: [Gambas-user] Access global variable from other .class In-Reply-To: <1339649938.5550.102.camel@...40...> References: <1339646816.S.44096.autosave.drafts.old.1339648123.14654@...2802...> <1339649938.5550.102.camel@...40...> Message-ID: 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 wrote: > On Thu, 2012-06-14 at 04:28 +0000, sundar j wrote: > > I am trying to write a code for accepting user password in a input > box/textbox when user click on button from main form. For user input i have > created new form named sudo.form and codes are in sudo.class file. This > sudo.class accepts user password through textbox (hidden) and store it in > global variable named password. sudo form is shown when user click on > button from main form. Now my problem is that how do i access/capture this > global variable (password) from main program? For example, accessing module > variable (from sudo.module) we do it like: > > > > Public Sub function() > > Dim accept as string > > . > > . > > accept = sudo.password > > Shell "echo " & accept & " | sudo -S somecommand" > > . > > . > > End > > > > Right now i do not have a code to post but will come back later. But the > general idea which i am trying to do is explained above. > > Why not save yourself the bother and just use kdesu, kdesudo, gksu, > gksudo or pkexec (whichever fits your distro). > > As in, for example: > > Shell "gksu -c somecommand" > > > These all provide the privilege gui and probably much more security than > redoing it yourself. > > hth > Bruce > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tobiasboege01 at ...1601... Fri Jun 15 20:47:40 2012 From: tobiasboege01 at ...1601... (tobi) Date: Fri, 15 Jun 2012 20:47:40 +0200 Subject: [Gambas-user] Access global variable from other .class In-Reply-To: References: <1339646816.S.44096.autosave.drafts.old.1339648123.14654@...2802...> <1339649938.5550.102.camel@...40...> Message-ID: <20120615184740.GF749@...2774...> On Fri, 15 Jun 2012, Jussi Lahtinen wrote: > 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 wrote: > > > On Thu, 2012-06-14 at 04:28 +0000, sundar j wrote: > > > I am trying to write a code for accepting user password in a input > > box/textbox when user click on button from main form. For user input i have > > created new form named sudo.form and codes are in sudo.class file. This > > sudo.class accepts user password through textbox (hidden) and store it in > > global variable named password. sudo form is shown when user click on > > button from main form. Now my problem is that how do i access/capture this > > global variable (password) from main program? For example, accessing module > > variable (from sudo.module) we do it like: > > > > > > Public Sub function() > > > Dim accept as string > > > . > > > . > > > accept = sudo.password > > > Shell "echo " & accept & " | sudo -S somecommand" > > > . > > > . > > > End > > > > > > Right now i do not have a code to post but will come back later. But the > > general idea which i am trying to do is explained above. > > > > Why not save yourself the bother and just use kdesu, kdesudo, gksu, > > gksudo or pkexec (whichever fits your distro). > > > > As in, for example: > > > > Shell "gksu -c somecommand" > > > > > > These all provide the privilege gui and probably much more security than > > redoing it yourself. > > > > hth > > Bruce > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user 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. Regards, Tobi From jussi.lahtinen at ...626... Fri Jun 15 22:43:37 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 15 Jun 2012 23:43:37 +0300 Subject: [Gambas-user] Access global variable from other .class In-Reply-To: <20120615184740.GF749@...2774...> References: <1339646816.S.44096.autosave.drafts.old.1339648123.14654@...2802...> <1339649938.5550.102.camel@...40...> <20120615184740.GF749@...2774...> Message-ID: > 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 is: " xdg-su: no graphical method available for invoking 'whoami' as 'root'" I have gksudo installed ( in /usr/bin/gksudo ) and working. So perhaps Gambas ships broken version of this script..? Also "xdg-screensaver activate" doesn't work (Desktop.ScreenSaver.Activate). Either the version of that script already installed to my system (xdg-su wasn't installed at all). Xubuntu 12.04 64 bit. Screensaver in use is XScreenSaver 5.15, and GKsu is version 2.0.2. Jussi From tobiasboege01 at ...1601... Fri Jun 15 22:49:50 2012 From: tobiasboege01 at ...1601... (tobi) Date: Fri, 15 Jun 2012 22:49:50 +0200 Subject: [Gambas-user] Access global variable from other .class In-Reply-To: References: <1339646816.S.44096.autosave.drafts.old.1339648123.14654@...2802...> <1339649938.5550.102.camel@...40...> <20120615184740.GF749@...2774...> Message-ID: <20120615204950.GL749@...2774...> 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... > > But there seems to be bugs. > > I tried 'Desktop.RunAsRoot("whoami")'. > All I got is: " xdg-su: no graphical method available for invoking 'whoami' > as 'root'" > > I have gksudo installed ( in /usr/bin/gksudo ) and working. > So perhaps Gambas ships broken version of this script..? > > Also "xdg-screensaver activate" doesn't work (Desktop.ScreenSaver.Activate). > Either the version of that script already installed to my system (xdg-su > wasn't installed at all). > > Xubuntu 12.04 64 bit. > Screensaver in use is XScreenSaver 5.15, and GKsu is version 2.0.2. > > Jussi > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Yes, I was surprised, too, when I saw lately how gb.desktop grew since I last had a look at it. There seem to be a lot of people who want to run programs as root, it's always the same problem to solve... I don't know about the scripts, I personally didn't need them so far but they are distributed in the gb.desktop/src/gb.desktop/xdg-utils/ directory in the source tree. If there is a bug, you might be able to spot it yourself - at least xdg-su seems not really complicated, even to me who is not used to shell scripting to that extend. Regards, Tobi From jussi.lahtinen at ...626... Fri Jun 15 23:23:59 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 16 Jun 2012 00:23:59 +0300 Subject: [Gambas-user] Access global variable from other .class In-Reply-To: <20120615204950.GL749@...2774...> References: <1339646816.S.44096.autosave.drafts.old.1339648123.14654@...2802...> <1339649938.5550.102.camel@...40...> <20120615184740.GF749@...2774...> <20120615204950.GL749@...2774...> Message-ID: OK, I'm stupid. Desktop.ScreenSaver.Activate() doesn't do anything because I have disabled screensaver, so the blank screen I see after 6 min idle, is actually monitor turning off. I will investigate what is wrong with xdg-su... Jussi On 15 June 2012 23:49, tobi 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... > > > > But there seems to be bugs. > > > > I tried 'Desktop.RunAsRoot("whoami")'. > > All I got is: " xdg-su: no graphical method available for invoking > 'whoami' > > as 'root'" > > > > I have gksudo installed ( in /usr/bin/gksudo ) and working. > > So perhaps Gambas ships broken version of this script..? > > > > Also "xdg-screensaver activate" doesn't work > (Desktop.ScreenSaver.Activate). > > Either the version of that script already installed to my system (xdg-su > > wasn't installed at all). > > > > Xubuntu 12.04 64 bit. > > Screensaver in use is XScreenSaver 5.15, and GKsu is version 2.0.2. > > > > Jussi > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Yes, I was surprised, too, when I saw lately how gb.desktop grew since I > last had a look at it. > There seem to be a lot of people who want to run programs as root, it's > always the same problem to > solve... > > I don't know about the scripts, I personally didn't need them so far but > they are distributed in the > gb.desktop/src/gb.desktop/xdg-utils/ directory in the source tree. If > there is a bug, you might be > able to spot it yourself - at least xdg-su seems not really complicated, > even to me who is not used > to shell scripting to that extend. > > Regards, > Tobi > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sat Jun 16 00:17:35 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 16 Jun 2012 01:17:35 +0300 Subject: [Gambas-user] Access global variable from other .class In-Reply-To: References: <1339646816.S.44096.autosave.drafts.old.1339648123.14654@...2802...> <1339649938.5550.102.camel@...40...> <20120615184740.GF749@...2774...> <20120615204950.GL749@...2774...> Message-ID: 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 wrote: > OK, I'm stupid. > Desktop.ScreenSaver.Activate() doesn't do anything because I have disabled > screensaver, > so the blank screen I see after 6 min idle, is actually monitor turning > off. > > I will investigate what is wrong with xdg-su... > > Jussi > > > > > > On 15 June 2012 23:49, tobi 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... >> > >> > But there seems to be bugs. >> > >> > I tried 'Desktop.RunAsRoot("whoami")'. >> > All I got is: " xdg-su: no graphical method available for invoking >> 'whoami' >> > as 'root'" >> > >> > I have gksudo installed ( in /usr/bin/gksudo ) and working. >> > So perhaps Gambas ships broken version of this script..? >> > >> > Also "xdg-screensaver activate" doesn't work >> (Desktop.ScreenSaver.Activate). >> > Either the version of that script already installed to my system (xdg-su >> > wasn't installed at all). >> > >> > Xubuntu 12.04 64 bit. >> > Screensaver in use is XScreenSaver 5.15, and GKsu is version 2.0.2. >> > >> > Jussi >> > >> ------------------------------------------------------------------------------ >> > Live Security Virtual Conference >> > Exclusive live event will cover all the ways today's security and >> > threat landscape has changed and how IT managers can respond. >> Discussions >> > will include endpoint security, mobile security and the latest in >> malware >> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> Yes, I was surprised, too, when I saw lately how gb.desktop grew since I >> last had a look at it. >> There seem to be a lot of people who want to run programs as root, it's >> always the same problem to >> solve... >> >> I don't know about the scripts, I personally didn't need them so far but >> they are distributed in the >> gb.desktop/src/gb.desktop/xdg-utils/ directory in the source tree. If >> there is a bug, you might be >> able to spot it yourself - at least xdg-su seems not really complicated, >> even to me who is not used >> to shell scripting to that extend. >> >> Regards, >> Tobi >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > -------------- next part -------------- A non-text attachment was scrubbed... Name: xdg-su Type: application/octet-stream Size: 10145 bytes Desc: not available URL: From adrien.prokopowicz at ...626... Sat Jun 16 00:21:05 2012 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sat, 16 Jun 2012 00:21:05 +0200 Subject: [Gambas-user] Error with XmlWriter tag in gb.xml In-Reply-To: <1339756682.17971.YahooMailClassic@...2789...> References: <1339756682.17971.YahooMailClassic@...2789...> Message-ID: I have read the discussion on gambas-it, I reply directly here, so that it will avoid you a trip. (And sorry for the bad translation, I don't speak Italian, thanks Google...) For the management of small documents ... but what does that mean? Or are > they great, or treat them? For the parser, small documents are files < 10 MB. Beyond this, the DOM parser might eat a lot of memory, but the Reader will parse larger files fwithout problem (1 GB if you want). Just to put it simply, even after an open (file), or a OpenStream (), it > seems that they read, and yet make no parsing of the xml content, returning > 0 in all properties. This obviously makes it a little difficult to decode > the data ... do not you think? When you call Open(), the file is just opened like an Gambas Open, but nothing is loaded/parsed until you call Read(). That's why all is Null. It 'true that, as a response to, these classes are still incomplete, and > therefore still not stable, so better not use them. If you found a problem, please report it, with the code and the file that is loaded, otherwise it won't ever be stable. I downloaded the latest version of the source of Gambas3 (4833), but the > anomalies persist. > > The following is the code I'm using, and that is a purified extract of the > original one used in pgDesigner3, for reading the configuration file, which > worked before and now I go more. There are some print to understand what they contain variables, but they > are all empty. I tried your code with the lastest revision, and with the provided file, and here is the output : [0],[],[0],[],[0] 0 Read = 1 [1],[pgDesigner3 ],[1],[],[3] 1 Element::pgDesigner3 Type Config Version 3.0.0 Date 06/09/2012 11:56:06.713 Read = 1 [2],[APPLICATION],[1],[],[0] 2 Element::APPLICATION Read = 1 [3],[Debug],[1],[],[0] 3 Element::Debug Read = 2 [3],[#text],[2],[ALL],[0] 3 Text::ALL [and so on...] For me, it works, doesn't it ? Regards, Adrien. From vuott at ...325... Sat Jun 16 01:07:33 2012 From: vuott at ...325... (Ru Vuott) Date: Sat, 16 Jun 2012 00:07:33 +0100 (BST) Subject: [Gambas-user] Error with XmlWriter tag in gb.xml In-Reply-To: Message-ID: <1339801653.65376.YahooMailClassic@...2748...> Hello Adrien, > I have read the discussion on > gambas-it, I reply directly here, so that it > will avoid you a trip. > good idea, ...but I didn't find your reply there. :-( Did you write it in the discussion called: "Errore con i tag XmlWriter in gb.xml" ? However, I'll copy this your message there, so our friend can read it. Bye Vuottttttt From vuott at ...325... Sat Jun 16 01:16:10 2012 From: vuott at ...325... (Ru Vuott) Date: Sat, 16 Jun 2012 00:16:10 +0100 (BST) Subject: [Gambas-user] Error with XmlWriter tag in gb.xml - BIS In-Reply-To: Message-ID: <1339802170.91017.YahooMailClassic@...2691...> Hello Adrien, in Gambas-it.org Forum I saw a new message of our friend (md9327). He writes: **** I downloaded the latest version of the source of Gambas3 (4833), but the anomalies persist. The following is the code I'm using, and that is a purified extract of the original one used in pgDesigner3, for reading the configuration file, which worked before and now I go more: Public Sub Main() Dim reader As New XmlReader Dim s As String[] reader.Open("/home/luigi/tmp/text.xml") While (Not reader.Eof) s = [reader.Node.Depth, reader.Node.Name, reader.Node.Type, reader.Node.Value, reader.Node.Attributes.Count] Print "[" & s.Join("],[") & "]" Print reader.Node.Dep Select Case reader.Node.Type Case XmlReaderNodeType.Element Print "Element::" & reader.Node.Name, reader.Node.Value For Each reader.Node.Attributes Print reader.Node.Name, reader.Node.Value Next Case XmlReaderNodeType.EndElement Print "EndElement::" Case XmlReaderNodeType.Text Print "Text::" & reader.Node.Value End Select Print "Read = " & reader.Read() 'return EndStream Wend End There are some print to understand what they contain variables, but they are all empty. The problems do not change, both with Open (), which with FromString (). I have also used the test file contained in the source of gambas "text.xml", the content of which is very simple: HelloBouh Hellow St? cercando di localizzare il problema nei sorgenti di gambas3 ma non riesco a trovare il bandolo della matassa, in quanto parte ? in linguaggio gambas, parte ? in C, parte ? di libreria esterna... **** He wrote that. Ciao Vuottttttttt From adrien.prokopowicz at ...626... Sat Jun 16 01:18:37 2012 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sat, 16 Jun 2012 01:18:37 +0200 Subject: [Gambas-user] Error with XmlWriter tag in gb.xml - BIS In-Reply-To: <1339802170.91017.YahooMailClassic@...2691...> References: <1339802170.91017.YahooMailClassic@...2691...> Message-ID: Yes, I know. I replied the two messages in one. 2012/6/16 Ru Vuott > Hello Adrien, > > in Gambas-it.org Forum I saw a new message of our friend (md9327). > He writes: > > **** > I downloaded the latest version of the source of Gambas3 (4833), but the > anomalies persist. > The following is the code I'm using, and that is a purified extract of the > original one used in pgDesigner3, for reading the configuration file, which > worked before and now I go more: > > Public Sub Main() > Dim reader As New XmlReader > Dim s As String[] > > reader.Open("/home/luigi/tmp/text.xml") > While (Not reader.Eof) > s = [reader.Node.Depth, > reader.Node.Name, > reader.Node.Type, > reader.Node.Value, > reader.Node.Attributes.Count] > Print "[" & s.Join("],[") & "]" > Print reader.Node.Dep > > Select Case reader.Node.Type > Case XmlReaderNodeType.Element > Print "Element::" & reader.Node.Name, reader.Node.Value > For Each reader.Node.Attributes > Print reader.Node.Name, reader.Node.Value > Next > Case XmlReaderNodeType.EndElement > Print "EndElement::" > Case XmlReaderNodeType.Text > Print "Text::" & reader.Node.Value > End Select > Print "Read = " & reader.Read() 'return EndStream > Wend > End > > There are some print to understand what they contain variables, but they > are all empty. The problems do not change, both with Open (), which with > FromString (). > I have also used the test file contained in the source of gambas > "text.xml", the content of which is very simple: > > > HelloBouh > > Hellow > > St? cercando di localizzare il problema nei sorgenti di gambas3 ma non > riesco a trovare il bandolo della matassa, in quanto parte ? in linguaggio > gambas, parte ? in C, parte ? di libreria esterna... > **** > > He wrote that. > > > Ciao > Vuottttttttt > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From adrien.prokopowicz at ...626... Sat Jun 16 01:18:54 2012 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sat, 16 Jun 2012 01:18:54 +0200 Subject: [Gambas-user] Error with XmlWriter tag in gb.xml In-Reply-To: <1339801653.65376.YahooMailClassic@...2748...> References: <1339801653.65376.YahooMailClassic@...2748...> Message-ID: I haven't replied on gambas-it, just here, on the mailing-list. Can I speak English on this thread ? That could avoid a lot of bad translations Italian/English. 2012/6/16 Ru Vuott > Hello Adrien, > > > I have read the discussion on > > gambas-it, I reply directly here, so that it > > will avoid you a trip. > > > > good idea, ...but I didn't find your reply there. :-( > Did you write it in the discussion called: "Errore con i tag XmlWriter in > gb.xml" ? > > However, I'll copy this your message there, so our friend can read it. > > Bye > Vuottttttt > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Sat Jun 16 01:20:00 2012 From: vuott at ...325... (Ru Vuott) Date: Sat, 16 Jun 2012 00:20:00 +0100 (BST) Subject: [Gambas-user] Error with XmlWriter tag in gb.xml - BIS In-Reply-To: <1339802170.91017.YahooMailClassic@...2691...> Message-ID: <1339802400.83362.YahooMailClassic@...2748...> Ooops, adrien, I forgot translate this part: > > Sto cercando di localizzare il problema nei sorgenti di > gambas3 ma non riesco a trovare il bandolo della matassa, in > quanto parte ? in linguaggio gambas, parte ? in C, parte > ? di libreria esterna... It is: **** I'm trying to locate the source of the problem gambas3 but I can not find the key to the problem, as is the Gambas language, is in part C, the external library is ... **** From vuott at ...325... Sat Jun 16 01:22:16 2012 From: vuott at ...325... (Ru Vuott) Date: Sat, 16 Jun 2012 00:22:16 +0100 (BST) Subject: [Gambas-user] Error with XmlWriter tag in gb.xml - TER In-Reply-To: Message-ID: <1339802536.7213.YahooMailClassic@...2695...> ..Ah, OK, Adrien. I wrote your message in the forum, so our friend'll can read it. ...I'm a ping-pong ball. :-) Bye Vuott From vuott at ...325... Sat Jun 16 01:26:08 2012 From: vuott at ...325... (Ru Vuott) Date: Sat, 16 Jun 2012 00:26:08 +0100 (BST) Subject: [Gambas-user] Error with XmlWriter tag in gb.xml In-Reply-To: Message-ID: <1339802768.95314.YahooMailClassic@...2780...> > I haven't replied on gambas-it, just > here, on the mailing-list. > Can I speak English on this thread ? That could avoid a lot > of bad > translations Italian/English. > However,...I believe there aren't problems... I wrote all your messages in english, like you have written them. I could see that our friend knows English. From bbruen at ...2308... Sat Jun 16 03:44:27 2012 From: bbruen at ...2308... (Bruce) Date: Sat, 16 Jun 2012 11:14:27 +0930 Subject: [Gambas-user] Access global variable from other .class In-Reply-To: References: <1339646816.S.44096.autosave.drafts.old.1339648123.14654@...2802...> <1339649938.5550.102.camel@...40...> <20120615184740.GF749@...2774...> <20120615204950.GL749@...2774...> Message-ID: <1339811067.6723.28.camel@...40...> On Sat, 2012-06-16 at 01:17 +0300, Jussi Lahtinen wrote: > 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 > Jussi, No, xdg-su is no longer part of xdg-utils. There is a whole lot of ***xdg-su and xdg-su*** scripts in the wild, some are xdg compliant, some are not so. AFAIK the last portland release was 1.1.0 about a year or more ago. Even that had some signs of "wear-and-tear" in that the release notes and readme files seem fairly out of date. I had some problems last year using gb.desktop on an LXDE system that resulted in me looking very deeply into the xdg situation. At that time pcman (the LXDE originator) had spent considerable effort getting LXDE recognised by the scripts. What I could not understand then was how things "just worked" when I ran the xdg-utils from a terminal and just didn't when invoked through gb.desktop. I then found that gambas is using an internal set of these utilities. So these need to be maintained! (As you have just done with the xdg-su script.) 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. Which gets me back to your > "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." The fact is, there isn't and one of the major reasons is the old ongoing su/sudo argument and how certain distros implement their own policies regarding this. (I don't intend on pursuing that argument further here) So, the following is a set of comments on the various utilities around now: GKSU/GKSUDO Pro: Easy to use, can handle complex command strings*, easy to configure the authorisation gui to suit Con: There are some security issues, the major one to me is that it escalates the current user's privilege, not the current process. Even more of an issue is that the escalation actually remains in force for a period of time after the gksu command is finished. Also, there is currently some talk in gnome circles (fairy rings?) that gksu will be replaced. KDESU/KDESUDO Pro: Easy to use, can handle complex command strings. Con: Some security issues, authorisation gui is not configurable. PKEXE Pro: Presumeably desktop agnostic but actually restricted to distros the implement policykit. Con: Can only handle single commands. Creates a session running as root with the working directory set to /root rather than escalating current user or process privileges (some may see this as a Pro, I disagree.) Also the authorisation gui is not configurable and it displays more information than some may like (like the real path of the command that is going to be executed.) It also cannot run gui commands. xdg-su Pro: Integrated with Gambas through gb.desktop Con: Supported desktops! Needs maintenance within gambas! Unknown: What does it actually escalate? A quick look at several of the versions around indicate that many rely on su? * a complex command string being something like 'cd /home/blah/blah;echo pwd; make install; echo "Success!"' One final comment, GKSU, KDESU and PKEXE all run happily on my LXDE box and perform "correctly" (i.e. within the constraints expressed above). But on my CentOS test box, only pkexe works. :-( Bruce From sebikul at ...626... Sat Jun 16 04:12:57 2012 From: sebikul at ...626... (Sebastian Kulesz) Date: Fri, 15 Jun 2012 23:12:57 -0300 Subject: [Gambas-user] GB.JIT Crashes In-Reply-To: References: <1507373054-1339494524-cardhu_decombobulator_blackberry.rim.net-1633916275-@...2864...> Message-ID: It does!! Thank you!!! I am seeing a lot of compilation warnings while building gb.jit. I read you are coding under x64, so you may be missing some. Here is the output I get from [0], maybe this can help you. [0] http://pastebin.com/YPq5QYch output of: Linux sebi 3.4.2-2-ARCH #1 SMP PREEMPT Tue Jun 12 07:19:42 UTC 2012 i686 GNU/Linux output of: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-linux-gnu/4.7.0/lto-wrapper Target: i686-pc-linux-gnu Configured with: /build/src/gcc-4.7-20120505/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --enable-libstdcxx-time --enable-gnu-unique-object --enable-linker-build-id --with-ppl --enable-cloog-backend=isl --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --with-linker-hash-style=gnu --disable-multilib --disable-libssp --disable-build-with-cxx --disable-build-poststage1-with-cxx --enable-checking=release Thread model: posix gcc version 4.7.0 20120505 (prerelease) (GCC) Hope it helps ;) Thanks again! On Fri, Jun 15, 2012 at 8:22 AM, Emil Lenngren wrote: > Thank you for your reports. Does it work better in the latest revision? > > /Emil > > 2012/6/15 Sebastian Kulesz > >> The last commit fixed the previous bug, but now i'm getting a weird >> error. I have a parent class with ~100 childs. When I add "Fast" on >> the parent the only message I get is: >> >> "Stack became corrupted in a JIT function. Please make a bug report." >> >> Full output with GB_JIT: http://pastebin.com/gyW56S2H >> >> >> The source can be found here: >> >> http://bazaar.launchpad.net/~sebikul/mundus/trunk/view/head:/.src/Module.class >> >> Thanks! >> >> On Tue, Jun 12, 2012 at 6:48 AM, Sebi wrote: >> > The source can be found here: >> > >> http://bazaar.launchpad.net/~sebikul/mundus/trunk/view/head:/.src/Main.module >> > >> > Let me know if you need more info! >> > >> > Thanks!! >> > -----Original Message----- >> > From: Emil Lenngren >> > Date: Sun, 10 Jun 2012 01:06:19 >> > To: mailing list for gambas users >> > Reply-To: mailing list for gambas users < >> gambas-user at lists.sourceforge.net> >> > Subject: Re: [Gambas-user] GB.JIT Crashes >> > >> > Yes please, how does your source code look like? Are you trying to >> > enumerate a class? >> > >> > /Emil >> > >> > 2012/6/9 Sebastian Kulesz >> > >> >> Hi! I'm getting a crash when I place the fast keyword on top of a >> >> module. The output: >> >> >> >> 19PushClassExpression >> >> gbx3: jit.h:145: virtual llvm::Value* Expression::codegen_get_value(): >> >> Assertion `false && "codegen_get_value not done yet for this type"' >> >> failed. >> >> >> >> If you need the source let me know! >> >> >> >> Thanks! >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Live Security Virtual Conference >> >> Exclusive live event will cover all the ways today's security and >> >> threat landscape has changed and how IT managers can respond. >> Discussions >> >> will include endpoint security, mobile security and the latest in >> malware >> >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > >> ------------------------------------------------------------------------------ >> > Live Security Virtual Conference >> > Exclusive live event will cover all the ways today's security and >> > threat landscape has changed and how IT managers can respond. Discussions >> > will include endpoint security, mobile security and the latest in malware >> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bbruen at ...2308... Sat Jun 16 04:46:20 2012 From: bbruen at ...2308... (Bruce) Date: Sat, 16 Jun 2012 12:16:20 +0930 Subject: [Gambas-user] Cxxx_moc.cpp version fails when making gb.qt4 Message-ID: <1339814780.6723.35.camel@...40...> I have updated qt to 4.8.2 and now I cannot build gambas3. It fails at the "make" step after make[3]: Entering directory `/home/bb/trunk/gb.qt4/src' the error displayed is: "This file was generated using the moc from 4.7.3. It" "cannot be used with the include files from this version of Qt." "(The moc has changed too much.)" I presume that I have to rebuild all the moc classes in gb.qt4/src using the newer Qt toolkit. But I don't know how to go about that, any clues? tia Bruce and I was having such a good week too :-( From bbruen at ...2308... Sat Jun 16 05:33:37 2012 From: bbruen at ...2308... (Bruce) Date: Sat, 16 Jun 2012 13:03:37 +0930 Subject: [Gambas-user] Cxxx_moc.cpp version fails when making gb.qt4 In-Reply-To: <1339814780.6723.35.camel@...40...> References: <1339814780.6723.35.camel@...40...> Message-ID: <1339817617.6723.36.camel@...40...> On Sat, 2012-06-16 at 12:16 +0930, Bruce wrote: > I have updated qt to 4.8.2 and now I cannot build gambas3. It fails at > the "make" step after > make[3]: Entering directory `/home/bb/trunk/gb.qt4/src' > > the error displayed is: > "This file was generated using the moc from 4.7.3. It" > "cannot be used with the include files from this version of Qt." > "(The moc has changed too much.)" > > I presume that I have to rebuild all the moc classes in gb.qt4/src using > the newer Qt toolkit. But I don't know how to go about that, any clues? > > tia > Bruce > and I was having such a good week too :-( > Nevermind, make clean seems to have fixed it. Bruce From adrien.prokopowicz at ...626... Fri Jun 15 02:17:50 2012 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Fri, 15 Jun 2012 02:17:50 +0200 Subject: [Gambas-user] Error with XmlWriter tag in gb.xml In-Reply-To: <1339717443.79396.YahooMailClassic@...2748...> References: <1339717443.79396.YahooMailClassic@...2748...> Message-ID: <6090665.zYbCOO6eQu@...2823...> Le vendredi 15 juin 2012 00:44:03 Ru Vuott a ?crit : > > This should be solved in the revision #4826. > > Oh, Adrien, thanks, I'll communicate it to that italian Gambas-forum user. > > ---------------------------------------------------------------------------- > -- Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Oops, I meant the #4829, not the #4826. From adrien.prokopowicz at ...626... Thu Jun 14 01:16:06 2012 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Thu, 14 Jun 2012 01:16:06 +0200 Subject: [Gambas-user] Error with XmlWriter tag in gb.xml In-Reply-To: <1339627982.67120.YahooMailClassic@...2789...> References: <1339627982.67120.YahooMailClassic@...2789...> Message-ID: <1450847.mMyTWFeCIj@...2823...> Le mercredi 13 juin 2012 23:53:02 Ru Vuott a ?crit : > Hello Benoit, > > an user of Gambas-it.org Community ask me to write to you about a possible > error with XmlWriter tag in gb.xml. > > He says that he found a problem, linked to the library gb.xml, especially > with XMLWriter (but there is probably something with XMLReader). Example, > he has to write an xml file, with a series of nested tags, where most of > the elements have a single value (Text), such as: > > > valore > valore > > > As can be seen, Tag1 and Tag2 have a value, and this is enclosed between the > opening of the tag "", and its closure "/ Tag1>". Up to now he > believes the logic is straightforward, and he says that this has so far > been adopted in all its applications, including pgDesigner (xml file that > reads a lot). > > After downloading the latest version of Gambas3 in source code form, now is > the 4827, he found that the reading is something wrong (still unclear), > while the writing has an error, that he has encountered in the source class > XmlWriter.class, of which he brings the party to the problem: > > Public Sub StartElement(TagName As String, Optional Attributes As String[], > Optional Prefix As String, Optional URI As String) > > Dim Xmlns, s, sData As String > Dim i As Integer = 0 > If URI Then > Xmlns = " xmlns" > If Prefix Then Xmlns &= ":" & Prefix > Xmlns &= "=\"" & URI & "\"" > Endif > If Prefix Then TagName = Prefix & ":" & TagName > > sData = "<" & TagName > > If Attributes > If (Attributes.Count Mod 2) Then Attributes.Push("") > For i = 0 To Attributes.Max Step 2 > sData &= " " & Attributes[i] & "=\"" & Attributes[i + 1] & "\"" > Next > Endif > > sData &= Xmlns > > If Not $TagEnded Then 'On ferme le tag pr?c?dent > Write(">" & If($indent, "\n", ""), True) > Endif > > $TagEnded = False > > Write(sData) > > PileElements.Push(TagName) > > End > > Public Sub EndElement() > > Dim tag As String > > If Not PileElements.Count Then Return > > tag = PileElements.Pop() > > If Not $TagEnded Then 'On ferme le tag pr?c?dent > Write(" />" & If($indent, "\n", ""), True) 'Pas de contenu > $TagEnded = True > Else > Write("") > Endif > > End > > > The user says that the code applies faulty logic, or at least partly by an > assumption is not entirely correct. The tag is opened and closed by the > state of the variable $ TagEnded, not taking into account that there may be > a text value in the middle. This causes the incorrect writing of tags, as > seen below: > > > > > it combines the name of the tag with the value itself. > The sequence in which the tag is opened and closed, and associated with this > value is as an example: > > DIM oXml As XmlWriter > ... > oXml.StartElement("Tag1") > oXml.Text("valore") > oXml.EndElement() > > > With version 3.1.1 it worked, but now our friend user says that with the > latest updates do not go anymore. I do not know if the 3.1.1, the later > builds contain all the same problem, but certainly the 4827. > > > Well, this is what he wrote and asked me to tell you. I'll communicate to > him your answer to this. > > Bye > Vuotttttt > > > ---------------------------------------------------------------------------- > -- Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Hi, This should be solved in the revision #4829. Regards, Adrien. From adrien.prokopowicz at ...626... Tue Jun 12 23:52:39 2012 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Tue, 12 Jun 2012 23:52:39 +0200 Subject: [Gambas-user] [gb.eval.highlight] Spaces and syntax highlighting Message-ID: <18350867.xnLu4H6rEi@...2823...> Hi, I noticed that the Higlight.Analyze() method doesn't like when the Gambas code hasn't spaces between operators, commas and a few other ones. There is a good example of that problem here : http://www.gambasforge.org/wiki/testHighlight Maybe this behaviour is intended, in order to keep Gambas code clean, but I haven't found any function to add these spaces, like in the IDE. Do you know where I can find this ? Regards, Adrien. From jussi.lahtinen at ...626... Sat Jun 16 15:24:42 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 16 Jun 2012 16:24:42 +0300 Subject: [Gambas-user] Access global variable from other .class In-Reply-To: <1339811067.6723.28.camel@...40...> References: <1339646816.S.44096.autosave.drafts.old.1339648123.14654@...2802...> <1339649938.5550.102.camel@...40...> <20120615184740.GF749@...2774...> <20120615204950.GL749@...2774...> <1339811067.6723.28.camel@...40...> Message-ID: > 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 intentionally implemented feature to gain higher privileges. http://en.wikipedia.org/wiki/Privilege_escalation The fact is, there isn't and one of the major reasons is the old ongoing > su/sudo argument and how certain distros implement their own policies > regarding this. (I don't intend on pursuing that argument further here) > Is there some desktop distro without graphical sudo!? > GKSU/GKSUDO > Pro: Easy to use, can handle complex command strings*, easy to configure > the authorisation gui to suit > Con: There are some security issues, the major one to me is that it > escalates the current user's privilege, not the current process. Not true if you use gksudo or gksu with -c. Even more of an issue is that the escalation actually remains in force for a > period of time after the gksu command is finished. > It is applied only if next commands are used also with sudo/etc. Also this time is fully configurable, and if you want you can force it to stop immediately with "sudo -k". * a complex command string being something like > 'cd /home/blah/blah;echo pwd; make install; echo "Success!"' > I think you mean 'cd /home/blah/blah;echo pwd; make install && echo "Success!"'. ;) Jussi From jussi.lahtinen at ...626... Sat Jun 16 17:04:31 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 16 Jun 2012 18:04:31 +0300 Subject: [Gambas-user] Bug with JIT and external functions Message-ID: See attachment. If you comment out "Fast" from mTest, all works perfectly. Gambas 3 rev 4837 @ Xubuntu 12.04 64bit Jussi -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTester-0.9.28.tar.gz Type: application/x-gzip Size: 17184 bytes Desc: not available URL: From emil.lenngren at ...626... Sun Jun 17 01:47:00 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Sun, 17 Jun 2012 01:47:00 +0200 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: Message-ID: Hi. What error do you get? The "extern" part seems to work fine for me... /Emil 2012/6/16 Jussi Lahtinen > See attachment. > If you comment out "Fast" from mTest, all works perfectly. > > Gambas 3 rev 4837 @ Xubuntu 12.04 64bit > > Jussi > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jussi.lahtinen at ...626... Sun Jun 17 02:01:01 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 17 Jun 2012 03:01:01 +0300 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: Message-ID: >From this (integer to integer): Dim iResult As Integer = mTest.DoTests() Type mismatch: wanted Standard type, got Class instead in FMain:9. Jussi On 17 June 2012 02:47, Emil Lenngren wrote: > Hi. What error do you get? The "extern" part seems to work fine for me... > > /Emil > > 2012/6/16 Jussi Lahtinen > > > See attachment. > > If you comment out "Fast" from mTest, all works perfectly. > > > > Gambas 3 rev 4837 @ Xubuntu 12.04 64bit > > > > Jussi > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From emil.lenngren at ...626... Sun Jun 17 02:23:44 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Sun, 17 Jun 2012 02:23:44 +0200 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: Message-ID: That has nothing to do with extern ;) The code you are trying to execute is "Try oo = [TestClass1]". As that code is always illegal, the jit throws an error directly at compile time, before running the code. That should help people 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 > >From this (integer to integer): > Dim iResult As Integer = mTest.DoTests() > > Type mismatch: wanted Standard type, got Class instead in FMain:9. > > Jussi > > > > > On 17 June 2012 02:47, Emil Lenngren wrote: > > > Hi. What error do you get? The "extern" part seems to work fine for me... > > > > /Emil > > > > 2012/6/16 Jussi Lahtinen > > > > > See attachment. > > > If you comment out "Fast" from mTest, all works perfectly. > > > > > > Gambas 3 rev 4837 @ Xubuntu 12.04 64bit > > > > > > Jussi > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Live Security Virtual Conference > > > Exclusive live event will cover all the ways today's security and > > > threat landscape has changed and how IT managers can respond. > Discussions > > > will include endpoint security, mobile security and the latest in > malware > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sun Jun 17 02:32:01 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 17 Jun 2012 03:32:01 +0300 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: Message-ID: 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 misleading as it points to the line I copy&pasted. I will investigate more... Jussi On 17 June 2012 03:23, Emil Lenngren wrote: > That has nothing to do with extern ;) > The code you are trying to execute is "Try oo = [TestClass1]". > > As that code is always illegal, the jit throws an error directly at compile > time, before running the code. That should help people 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 > > > >From this (integer to integer): > > Dim iResult As Integer = mTest.DoTests() > > > > Type mismatch: wanted Standard type, got Class instead in FMain:9. > > > > Jussi > > > > > > > > > > On 17 June 2012 02:47, Emil Lenngren wrote: > > > > > Hi. What error do you get? The "extern" part seems to work fine for > me... > > > > > > /Emil > > > > > > 2012/6/16 Jussi Lahtinen > > > > > > > See attachment. > > > > If you comment out "Fast" from mTest, all works perfectly. > > > > > > > > Gambas 3 rev 4837 @ Xubuntu 12.04 64bit > > > > > > > > Jussi > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Live Security Virtual Conference > > > > Exclusive live event will cover all the ways today's security and > > > > threat landscape has changed and how IT managers can respond. > > Discussions > > > > will include endpoint security, mobile security and the latest in > > malware > > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Live Security Virtual Conference > > > Exclusive live event will cover all the ways today's security and > > > threat landscape has changed and how IT managers can respond. > Discussions > > > will include endpoint security, mobile security and the latest in > malware > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From emil.lenngren at ...626... Sun Jun 17 02:39:05 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Sun, 17 Jun 2012 02:39:05 +0200 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: Message-ID: The IDE is strange... If I run gbx3 from the terminal, a correct stack backtrace is shown. The IDE seems to miss a stack frame. I don't know why... /Emil 2012/6/17 Jussi Lahtinen > 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 misleading as it points to the line I > copy&pasted. > > I will investigate more... > > Jussi > > > > > On 17 June 2012 03:23, Emil Lenngren wrote: > > > That has nothing to do with extern ;) > > The code you are trying to execute is "Try oo = [TestClass1]". > > > > As that code is always illegal, the jit throws an error directly at > compile > > time, before running the code. That should help people 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 > > > > > >From this (integer to integer): > > > Dim iResult As Integer = mTest.DoTests() > > > > > > Type mismatch: wanted Standard type, got Class instead in FMain:9. > > > > > > Jussi > > > > > > > > > > > > > > > On 17 June 2012 02:47, Emil Lenngren wrote: > > > > > > > Hi. What error do you get? The "extern" part seems to work fine for > > me... > > > > > > > > /Emil > > > > > > > > 2012/6/16 Jussi Lahtinen > > > > > > > > > See attachment. > > > > > If you comment out "Fast" from mTest, all works perfectly. > > > > > > > > > > Gambas 3 rev 4837 @ Xubuntu 12.04 64bit > > > > > > > > > > Jussi > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > Live Security Virtual Conference > > > > > Exclusive live event will cover all the ways today's security and > > > > > threat landscape has changed and how IT managers can respond. > > > Discussions > > > > > will include endpoint security, mobile security and the latest in > > > malware > > > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Live Security Virtual Conference > > > > Exclusive live event will cover all the ways today's security and > > > > threat landscape has changed and how IT managers can respond. > > Discussions > > > > will include endpoint security, mobile security and the latest in > > malware > > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Live Security Virtual Conference > > > Exclusive live event will cover all the ways today's security and > > > threat landscape has changed and how IT managers can respond. > Discussions > > > will include endpoint security, mobile security and the latest in > malware > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sun Jun 17 02:54:45 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 17 Jun 2012 03:54:45 +0300 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: Message-ID: Yeah, terminal gives other position... With my actual project, I got error message; wanted string, got blaablaaClass instead. And that error message comes from function (from other module without Fast) which takes two objects are parameters. So either terminal isn't showing the real stack, or there is something else wrong... But my time is up, I'll see it tomorrow (with latest revision). Jussi On 17 June 2012 03:39, Emil Lenngren wrote: > The IDE is strange... > If I run gbx3 from the terminal, a correct stack backtrace is shown. The > IDE seems to miss a stack frame. I don't know why... > > /Emil > > 2012/6/17 Jussi Lahtinen > > > 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 misleading as it points to the line I > > copy&pasted. > > > > I will investigate more... > > > > Jussi > > > > > > > > > > On 17 June 2012 03:23, Emil Lenngren wrote: > > > > > That has nothing to do with extern ;) > > > The code you are trying to execute is "Try oo = [TestClass1]". > > > > > > As that code is always illegal, the jit throws an error directly at > > compile > > > time, before running the code. That should help people 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 > > > > > > > >From this (integer to integer): > > > > Dim iResult As Integer = mTest.DoTests() > > > > > > > > Type mismatch: wanted Standard type, got Class instead in FMain:9. > > > > > > > > Jussi > > > > > > > > > > > > > > > > > > > > On 17 June 2012 02:47, Emil Lenngren > wrote: > > > > > > > > > Hi. What error do you get? The "extern" part seems to work fine for > > > me... > > > > > > > > > > /Emil > > > > > > > > > > 2012/6/16 Jussi Lahtinen > > > > > > > > > > > See attachment. > > > > > > If you comment out "Fast" from mTest, all works perfectly. > > > > > > > > > > > > Gambas 3 rev 4837 @ Xubuntu 12.04 64bit > > > > > > > > > > > > Jussi > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > Live Security Virtual Conference > > > > > > Exclusive live event will cover all the ways today's security and > > > > > > threat landscape has changed and how IT managers can respond. > > > > Discussions > > > > > > will include endpoint security, mobile security and the latest in > > > > malware > > > > > > threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > _______________________________________________ > > > > > > Gambas-user mailing list > > > > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > Live Security Virtual Conference > > > > > Exclusive live event will cover all the ways today's security and > > > > > threat landscape has changed and how IT managers can respond. > > > Discussions > > > > > will include endpoint security, mobile security and the latest in > > > malware > > > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Live Security Virtual Conference > > > > Exclusive live event will cover all the ways today's security and > > > > threat landscape has changed and how IT managers can respond. > > Discussions > > > > will include endpoint security, mobile security and the latest in > > malware > > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Live Security Virtual Conference > > > Exclusive live event will cover all the ways today's security and > > > threat landscape has changed and how IT managers can respond. > Discussions > > > will include endpoint security, mobile security and the latest in > malware > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Sun Jun 17 08:22:35 2012 From: bbruen at ...2308... (Bruce) Date: Sun, 17 Jun 2012 15:52:35 +0930 Subject: [Gambas-user] How do I override an Array class? Message-ID: <1339914155.5185.16.camel@...40...> I would like to override the Variant[] class to extend it with a small set of special interest methods. The gambas IDE complains when I try to call my class "Variant[]". I cannot find anything in the help that seems to preclude this, apart from the class naming rules. Is this possible? (More detail: I am trying to restructure a large parsing project that works with hundreds of arrays of tokens, there is a huge amount of redundant code in it that repeats the same operations on the array. What I first tried doing was creating a class that inherits Variant[] and adds a few of the required methods, called "MyVariant". Then going through the parser project and replacing each As Variant[] with As MyVariant. This has raised a problem (of my own making!) where the classes in the parser inherit others in the project, I need to change the declarations in each inheritance chain in a single step. This makes it fairly difficult to isolate each use of the redundant code and change it to use the standardised code in MyVariant. So, I figured that if I could just override the Variant[] class then I could work on one of the parser classes at a time, clean it up and move on and not be bugged by the continual compile/fix/compile/fix cycles I am causing while not even getting far with the real goal.) Bruce From bbruen at ...2308... Sun Jun 17 12:59:29 2012 From: bbruen at ...2308... (Bruce) Date: Sun, 17 Jun 2012 20:29:29 +0930 Subject: [Gambas-user] Components and libraries and forms. Weird Sunday Message-ID: <1339930769.5185.32.camel@...40...> 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 not sure what this method is for, nor can I find it anywhere in the IDE code. But it does have a strange effect... In the client project Dim myform as New LibraryForm1 myform.$Load() myform.ShowDialog (where LibraryForm1 is the form exposed in the library) results in a form with twice its' contents. Strange. 2) Using a component that depends on a library I accidentally installed a project that was suppose to be a library as a component today. That all went well, but as you would expect the client project falls over, "Can't find class blahblah etc." The point being, shouldn't there be some sort of rule somewhere that stops a project being compiled (and therefore installed) as a component when it depends on libraries? Enough. and good night. Bruce From tobiasboege01 at ...1601... Sun Jun 17 13:45:00 2012 From: tobiasboege01 at ...1601... (tobi) Date: Sun, 17 Jun 2012 13:45:00 +0200 Subject: [Gambas-user] How do I override an Array class? In-Reply-To: <1339914155.5185.16.camel@...40...> References: <1339914155.5185.16.camel@...40...> Message-ID: <20120617114500.GB761@...2774...> On Sun, 17 Jun 2012, Bruce wrote: > I would like to override the Variant[] class to extend it with a small > set of special interest methods. > > The gambas IDE complains when I try to call my class "Variant[]". > > I cannot find anything in the help that seems to preclude this, apart > from the class naming rules. > > Is this possible? > > > (More detail: I am trying to restructure a large parsing project that > works with hundreds of arrays of tokens, there is a huge amount of > redundant code in it that repeats the same operations on the array. > What I first tried doing was creating a class that inherits Variant[] > and adds a few of the required methods, called "MyVariant". Then going > through the parser project and replacing each As Variant[] with As > MyVariant. This has raised a problem (of my own making!) where the > classes in the parser inherit others in the project, I need to change > the declarations in each inheritance chain in a single step. This makes > it fairly difficult to isolate each use of the redundant code and change > it to use the standardised code in MyVariant. > So, I figured that if I could just override the Variant[] class then I > could work on one of the parser classes at a time, clean it up and move > on and not be bugged by the continual compile/fix/compile/fix cycles I > am causing while not even getting far with the real goal.) > > Bruce > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user I have done overriding Variant[] successfully (extended it by a specific Sort() method) but it caused an interpreter complaint (I do not use the IDE) until (excluding) rev #4715 so it would be interesting what message you get and what revision you use... (and maybe what the critical code looks like) Regards, Tobi From bbruen at ...2308... Sun Jun 17 14:38:09 2012 From: bbruen at ...2308... (Bruce) Date: Sun, 17 Jun 2012 22:08:09 +0930 Subject: [Gambas-user] How do I override an Array class? In-Reply-To: <20120617114500.GB761@...2774...> References: <1339914155.5185.16.camel@...40...> <20120617114500.GB761@...2774...> Message-ID: <1339936689.5185.62.camel@...40...> On Sun, 2012-06-17 at 13:45 +0200, tobi wrote: > I have done overriding Variant[] successfully (extended it by a specific Sort() method) but it > caused an interpreter complaint (I do not use the IDE) until (excluding) rev #4715 so it would be > interesting what message you get and what revision you use... (and maybe what the critical code > looks like) > > Regards, > Tobi > (I do not use the IDE) Aha! Good point. Maybe that would solve my issue. I have only been trying to do this within the IDE. Will try that tomorrow. > (extended it by a specific Sort() method) I haven't tried to sort Variants[] yet. (That is further down the track in this particular exercise.) > (and maybe what the critical code > looks like) There is no critical code that fails, just achieving the class override in the IDE so far is the issue. Currently, I'm just trying to simplify things like converting a Variant[] containing, say a string and two strings with integer values in them, like ["Hello","1","24"] to ["Hello",1,24]. Weird? No. The parser code only sees string values and spends a lot of time (and considerable code) converting a recognised pattern into a usable pattern example. What I am trying to achieve is things in my Variant[] override like adding a Decode method that will return a converted String[] to a Variant[]: Public Function Decode(ivar as String[], pattern as Integer[]) as Variant[] (simplified and all error checking removed) select Case pattern ... case [gb.string, gb.integer, gb.integer] return [ivar[0],Val(ivar[1]),val(ivar[2])] ... End Why? Because there are at least 20 or 400 or 40 gazillion chunks of code in the parser classes that do things like this inline. Why? Not because of a bad design, more because of a lack of design in the first place... and it just grew. The time has come to grasp the proverbial bull by his (ahem) and fix it. back later Bruce From gambas at ...1... Sun Jun 17 15:38:22 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 17 Jun 2012 15:38:22 +0200 Subject: [Gambas-user] [gb.eval.highlight] Spaces and syntax highlighting In-Reply-To: <18350867.xnLu4H6rEi@...2823...> References: <18350867.xnLu4H6rEi@...2823...> Message-ID: <4FDDDDCE.3070102@...1...> Le 12/06/2012 23:52, Adrien Prokopowicz a ?crit : > Hi, > > I noticed that the Higlight.Analyze() method doesn't like when the Gambas code > hasn't spaces between operators, commas and a few other ones. > > There is a good example of that problem here : > http://www.gambasforge.org/wiki/testHighlight > > Maybe this behaviour is intended, in order to keep Gambas code clean, but I > haven't found any function to add these spaces, like in the IDE. > Do you know where I can find this ? > > Regards, > Adrien. > Do you have some code to show? Maybe you don't use the Analyze() method correctly... -- Beno?t Minisini From gambas at ...1... Sun Jun 17 15:39:32 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 17 Jun 2012 15:39:32 +0200 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: Message-ID: <4FDDDE14.7030208@...1...> Le 17/06/2012 02:54, Jussi Lahtinen a ?crit : > Yeah, terminal gives other position... > With my actual project, I got error message; wanted string, got > blaablaaClass instead. > And that error message comes from function (from other module without Fast) > which takes two objects are parameters. > > So either terminal isn't showing the real stack, or there is something else > wrong... > > But my time is up, I'll see it tomorrow (with latest revision). > > Jussi > > The incorrect line number problem, as reported by the debugger (and not when you run the program normally!), should be fixed in revision #4841. Regards, -- Beno?t Minisini From gambas at ...1... Sun Jun 17 15:45:33 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 17 Jun 2012 15:45:33 +0200 Subject: [Gambas-user] How do I override an Array class? In-Reply-To: <1339914155.5185.16.camel@...40...> References: <1339914155.5185.16.camel@...40...> Message-ID: <4FDDDF7D.1030905@...1...> Le 17/06/2012 08:22, Bruce a ?crit : > I would like to override the Variant[] class to extend it with a small > set of special interest methods. > > The gambas IDE complains when I try to call my class "Variant[]". > > I cannot find anything in the help that seems to preclude this, apart > from the class naming rules. > > Is this possible? > > > (More detail: I am trying to restructure a large parsing project that > works with hundreds of arrays of tokens, there is a huge amount of > redundant code in it that repeats the same operations on the array. > What I first tried doing was creating a class that inherits Variant[] > and adds a few of the required methods, called "MyVariant". Then going > through the parser project and replacing each As Variant[] with As > MyVariant. This has raised a problem (of my own making!) where the > classes in the parser inherit others in the project, I need to change > the declarations in each inheritance chain in a single step. This makes > it fairly difficult to isolate each use of the redundant code and change > it to use the standardised code in MyVariant. > So, I figured that if I could just override the Variant[] class then I > could work on one of the parser classes at a time, clean it up and move > on and not be bugged by the continual compile/fix/compile/fix cycles I > am causing while not even getting far with the real goal.) > > Bruce > You can't override Variant[] because '[' and ']' are not allowed in project file names. You can do that by creating the source file by hand, but you may have problems - This is the reason why it is forbidden. :-) I don't see what the real problem is with replacing all occurences of Variant[] by something like "MyTokenArray". -- Beno?t Minisini From tobiasboege01 at ...1601... Sun Jun 17 15:40:44 2012 From: tobiasboege01 at ...1601... (tobi) Date: Sun, 17 Jun 2012 15:40:44 +0200 Subject: [Gambas-user] How do I override an Array class? In-Reply-To: <4FDDDF7D.1030905@...1...> References: <1339914155.5185.16.camel@...40...> <4FDDDF7D.1030905@...1...> Message-ID: <20120617134043.GC761@...2774...> On Sun, 17 Jun 2012, Beno?t Minisini wrote: > Le 17/06/2012 08:22, Bruce a ?crit : > > I would like to override the Variant[] class to extend it with a small > > set of special interest methods. > > > > The gambas IDE complains when I try to call my class "Variant[]". > > > > I cannot find anything in the help that seems to preclude this, apart > > from the class naming rules. > > > > Is this possible? > > > > > > (More detail: I am trying to restructure a large parsing project that > > works with hundreds of arrays of tokens, there is a huge amount of > > redundant code in it that repeats the same operations on the array. > > What I first tried doing was creating a class that inherits Variant[] > > and adds a few of the required methods, called "MyVariant". Then going > > through the parser project and replacing each As Variant[] with As > > MyVariant. This has raised a problem (of my own making!) where the > > classes in the parser inherit others in the project, I need to change > > the declarations in each inheritance chain in a single step. This makes > > it fairly difficult to isolate each use of the redundant code and change > > it to use the standardised code in MyVariant. > > So, I figured that if I could just override the Variant[] class then I > > could work on one of the parser classes at a time, clean it up and move > > on and not be bugged by the continual compile/fix/compile/fix cycles I > > am causing while not even getting far with the real goal.) > > > > Bruce > > > > You can't override Variant[] because '[' and ']' are not allowed in > project file names. > > You can do that by creating the source file by hand, but you may have > problems - This is the reason why it is forbidden. :-) > > I don't see what the real problem is with replacing all occurences of > Variant[] by something like "MyTokenArray". > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Wow, didn't know that. Is there any piece of documentation to quote when telling this someone? Regards, Tobi From adrien.prokopowicz at ...626... Sun Jun 17 15:49:50 2012 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sun, 17 Jun 2012 15:49:50 +0200 Subject: [Gambas-user] [gb.eval.highlight] Spaces and syntax highlighting In-Reply-To: <4FDDDDCE.3070102@...1...> References: <18350867.xnLu4H6rEi@...2823...> <4FDDDDCE.3070102@...1...> Message-ID: <2114665.vRi6TnuKEv@...2822...> Le dimanche 17 juin 2012 15:38:22 Beno?t Minisini a ?crit : > Le 12/06/2012 23:52, Adrien Prokopowicz a ?crit : > > Hi, > > > > I noticed that the Higlight.Analyze() method doesn't like when the Gambas code > > hasn't spaces between operators, commas and a few other ones. > > > > There is a good example of that problem here : > > http://www.gambasforge.org/wiki/testHighlight > > > > Maybe this behaviour is intended, in order to keep Gambas code clean, but I > > haven't found any function to add these spaces, like in the IDE. > > Do you know where I can find this ? > > > > Regards, > > Adrien. > > > > Do you have some code to show? Maybe you don't use the Analyze() method > correctly... > > Here is the function that makes the conversion Gambas string -> html : Public Sub GambasToHtml(sValue As String) As XmlElement Dim sLignes, s, sCode As String Dim i, nbLignes, lenligne As Integer Dim sTypes As String[] = ["", "normal", "keyword", "function", "operator", "symbol", "number", "string", "comment", "", "", "datatype", "", "", "", "", "error", "help", "preprocessor"] Dim Positions, Types, Lengths As New Integer[] Dim lignes As String[] Dim tableau As New HtmlTable Dim elmt As XmlElement Dim conteneur As New XmlElement("code") If Not sValue Then Return 'sret = "
" tableau.ClassName = "code" tableau[0, 0].ClassName = "numlignes" tableau[0, 1].ClassName = "code" tableau[0, 1].AppendChild(conteneur) sValue = Replace$(sValue, "\r\n", "\n") 'Compatibilit? win/mac/linux sValue = Trim$(sValue) 'Espaces ind?sirables lignes = Split(sValue, "\r\n", "", False) For Each s In lignes Highlight.Analyze(s) If Highlight.Positions.Count = 0 Then conteneur.AppendText(s) conteneur.AppendFromText("
") 'sCode &= s & "
" Inc nbLignes Continue Endif Positions = Highlight.Positions Types = Highlight.Types Lengths.Clear() For i = 0 To Highlight.Symbols.Max Lengths.Push(Len(Highlight.Symbols[i])) Next lenligne = Len(s) For i = 1 To lenligne If Positions.Count <= 0 'sCode &= String.Mid(s, i, 1) conteneur.AppendText(Mid(s, i, 1)) Else If i = (Positions[0] + 1) 'sCode &= "" & String.Mid$(s, Positions[0] + 1, Lengths[0]) & "" elmt = New XmlElement("span") elmt.ClassName = sTypes[Types[0]] elmt.TextContent = Mid$(s, Positions[0] + 1, Lengths[0]) conteneur.AppendChild(elmt) i += (Lengths[0] - 1) Positions.Extract(0) Lengths.Extract(0) Types.Extract(0) ' Else If Mid$(s, i, 1) = " " ' 'sCode &= " " ' tableau[0, 1].AppendFromText(" ") Else 'sCode &= String.Mid$(s, i, 1) conteneur.AppendText(String.Mid(s, i, 1)) Endif Next 'sCode &= "
" conteneur.AppendFromText("
") Inc nbLignes Next For i = 1 To nbLignes sLignes &= (i & "
\n") Next tableau[0, 0].AppendFromText(sLignes) ' sCode = Replace$(sCode, "&", "&") ' sCode = Replace$(sCode, "<", "<") ' sCode = Replace$(sCode, ">", ">") ' sCode = RegexpReplace(sCode, "<(/?(span|br).*)>", "<&1>") ' sCode = Replace$(sCode, "&nbsp;", " ") ' sRet &= "
" ' sret &= sCode ' sRet &= "
" ' Return XmlElement.FromText(sRet)[0] elmt = New XmlElement("div") elmt.ClassName = "code" elmt.AppendChild(tableau) Return elmt End The full code is available here : (svn checkout) https://gambasforge.svn.sourceforge.net/svnroot/gambasforge/trunk Regards, Adrien. From gambas at ...1... Sun Jun 17 15:55:04 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 17 Jun 2012 15:55:04 +0200 Subject: [Gambas-user] How do I override an Array class? In-Reply-To: <20120617134043.GC761@...2774...> References: <1339914155.5185.16.camel@...40...> <4FDDDF7D.1030905@...1...> <20120617134043.GC761@...2774...> Message-ID: <4FDDE1B8.6070007@...1...> Le 17/06/2012 15:40, tobi a ?crit : > On Sun, 17 Jun 2012, Beno?t Minisini wrote: >> Le 17/06/2012 08:22, Bruce a ?crit : >>> I would like to override the Variant[] class to extend it with a small >>> set of special interest methods. >>> >>> The gambas IDE complains when I try to call my class "Variant[]". >>> >>> I cannot find anything in the help that seems to preclude this, apart >>> from the class naming rules. >>> >>> Is this possible? >>> >>> >>> (More detail: I am trying to restructure a large parsing project that >>> works with hundreds of arrays of tokens, there is a huge amount of >>> redundant code in it that repeats the same operations on the array. >>> What I first tried doing was creating a class that inherits Variant[] >>> and adds a few of the required methods, called "MyVariant". Then going >>> through the parser project and replacing each As Variant[] with As >>> MyVariant. This has raised a problem (of my own making!) where the >>> classes in the parser inherit others in the project, I need to change >>> the declarations in each inheritance chain in a single step. This makes >>> it fairly difficult to isolate each use of the redundant code and change >>> it to use the standardised code in MyVariant. >>> So, I figured that if I could just override the Variant[] class then I >>> could work on one of the parser classes at a time, clean it up and move >>> on and not be bugged by the continual compile/fix/compile/fix cycles I >>> am causing while not even getting far with the real goal.) >>> >>> Bruce >>> >> >> You can't override Variant[] because '[' and ']' are not allowed in >> project file names. >> >> You can do that by creating the source file by hand, but you may have >> problems - This is the reason why it is forbidden. :-) >> >> I don't see what the real problem is with replacing all occurences of >> Variant[] by something like "MyTokenArray". >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > Wow, didn't know that. Is there any piece of documentation to quote when telling this someone? > > Regards, > Tobi > Didn't know what? -- Beno?t Minisini From tobiasboege01 at ...1601... Sun Jun 17 15:49:43 2012 From: tobiasboege01 at ...1601... (tobi) Date: Sun, 17 Jun 2012 15:49:43 +0200 Subject: [Gambas-user] How do I override an Array class? In-Reply-To: <4FDDE1B8.6070007@...1...> References: <1339914155.5185.16.camel@...40...> <4FDDDF7D.1030905@...1...> <20120617134043.GC761@...2774...> <4FDDE1B8.6070007@...1...> Message-ID: <20120617134943.GD761@...2774...> On Sun, 17 Jun 2012, Beno?t Minisini wrote: > Le 17/06/2012 15:40, tobi a ?crit : > > On Sun, 17 Jun 2012, Beno?t Minisini wrote: > >> Le 17/06/2012 08:22, Bruce a ?crit : > >>> I would like to override the Variant[] class to extend it with a small > >>> set of special interest methods. > >>> > >>> The gambas IDE complains when I try to call my class "Variant[]". > >>> > >>> I cannot find anything in the help that seems to preclude this, apart > >>> from the class naming rules. > >>> > >>> Is this possible? > >>> > >>> > >>> (More detail: I am trying to restructure a large parsing project that > >>> works with hundreds of arrays of tokens, there is a huge amount of > >>> redundant code in it that repeats the same operations on the array. > >>> What I first tried doing was creating a class that inherits Variant[] > >>> and adds a few of the required methods, called "MyVariant". Then going > >>> through the parser project and replacing each As Variant[] with As > >>> MyVariant. This has raised a problem (of my own making!) where the > >>> classes in the parser inherit others in the project, I need to change > >>> the declarations in each inheritance chain in a single step. This makes > >>> it fairly difficult to isolate each use of the redundant code and change > >>> it to use the standardised code in MyVariant. > >>> So, I figured that if I could just override the Variant[] class then I > >>> could work on one of the parser classes at a time, clean it up and move > >>> on and not be bugged by the continual compile/fix/compile/fix cycles I > >>> am causing while not even getting far with the real goal.) > >>> > >>> Bruce > >>> > >> > >> You can't override Variant[] because '[' and ']' are not allowed in > >> project file names. > >> > >> You can do that by creating the source file by hand, but you may have > >> problems - This is the reason why it is forbidden. :-) > >> > >> I don't see what the real problem is with replacing all occurences of > >> Variant[] by something like "MyTokenArray". > >> > >> -- > >> Beno?t Minisini > >> > >> ------------------------------------------------------------------------------ > >> Live Security Virtual Conference > >> Exclusive live event will cover all the ways today's security and > >> threat landscape has changed and how IT managers can respond. Discussions > >> will include endpoint security, mobile security and the latest in malware > >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > Wow, didn't know that. Is there any piece of documentation to quote when telling this someone? > > > > Regards, > > Tobi > > > > Didn't know what? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user That '[', ']' are not allowed in project file names. So the only reason for which I was able to override Variant[] was because I didn't use the IDE? From gambas at ...1... Sun Jun 17 16:02:47 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 17 Jun 2012 16:02:47 +0200 Subject: [Gambas-user] How do I override an Array class? In-Reply-To: <20120617134943.GD761@...2774...> References: <1339914155.5185.16.camel@...40...> <4FDDDF7D.1030905@...1...> <20120617134043.GC761@...2774...> <4FDDE1B8.6070007@...1...> <20120617134943.GD761@...2774...> Message-ID: <4FDDE387.3070008@...1...> Le 17/06/2012 15:49, tobi a ?crit : >>> >> >> Didn't know what? >> > > That '[', ']' are not allowed in project file names. So the only reason for which I was able to > override Variant[] was because I didn't use the IDE? > At the moment, I think that it works. But I may change in the future. This is the reason why the compiler allows it. It does not care. But the interpreter have a special treatment with classes whose name ends with '[' and ']'. I try to avoid breaking projects as Gambas evolves as much as possible. So, as a security, I prefer to allow the less possible characters in class names. Regards, -- Beno?t Minisini From gambas at ...1... Sun Jun 17 17:53:05 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 17 Jun 2012 17:53:05 +0200 Subject: [Gambas-user] Access global variable from other .class In-Reply-To: <1339811067.6723.28.camel@...40...> References: <1339646816.S.44096.autosave.drafts.old.1339648123.14654@...2802...> <1339649938.5550.102.camel@...40...> <20120615184740.GF749@...2774...> <20120615204950.GL749@...2774...> <1339811067.6723.28.camel@...40...> Message-ID: <4FDDFD61.6070507@...1...> Le 16/06/2012 03:44, Bruce a ?crit : > On Sat, 2012-06-16 at 01:17 +0300, Jussi Lahtinen wrote: >> 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 >> > Jussi, > > No, xdg-su is no longer part of xdg-utils. There is a whole lot of > ***xdg-su and xdg-su*** scripts in the wild, some are xdg compliant, > some are not so. > > AFAIK the last portland release was 1.1.0 about a year or more ago. > Even that had some signs of "wear-and-tear" in that the release notes > and readme files seem fairly out of date. > > I had some problems last year using gb.desktop on an LXDE system that > resulted in me looking very deeply into the xdg situation. At that time > pcman (the LXDE originator) had spent considerable effort getting LXDE > recognised by the scripts. What I could not understand then was how > things "just worked" when I ran the xdg-utils from a terminal and just > didn't when invoked through gb.desktop. I then found that gambas is > using an internal set of these utilities. So these need to be > maintained! (As you have just done with the xdg-su script.) > > 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. > > Which gets me back to your >> "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." > > The fact is, there isn't and one of the major reasons is the old ongoing > su/sudo argument and how certain distros implement their own policies > regarding this. (I don't intend on pursuing that argument further here) > > So, the following is a set of comments on the various utilities around > now: > > GKSU/GKSUDO > Pro: Easy to use, can handle complex command strings*, easy to configure > the authorisation gui to suit > Con: There are some security issues, the major one to me is that it > escalates the current user's privilege, not the current process. Even > more of an issue is that the escalation actually remains in force for a > period of time after the gksu command is finished. > Also, there is currently some talk in gnome circles (fairy rings?) that > gksu will be replaced. > > KDESU/KDESUDO > Pro: Easy to use, can handle complex command strings. > Con: Some security issues, authorisation gui is not configurable. > > PKEXE > Pro: Presumeably desktop agnostic but actually restricted to distros the > implement policykit. > Con: Can only handle single commands. Creates a session running as root > with the working directory set to /root rather than escalating current > user or process privileges (some may see this as a Pro, I disagree.) > Also the authorisation gui is not configurable and it displays more > information than some may like (like the real path of the command that > is going to be executed.) > It also cannot run gui commands. > > xdg-su > Pro: Integrated with Gambas through gb.desktop > Con: Supported desktops! Needs maintenance within gambas! > Unknown: What does it actually escalate? A quick look at several of the > versions around indicate that many rely on su? > > * a complex command string being something like > 'cd /home/blah/blah;echo pwd; make install; echo "Success!"' > > One final comment, GKSU, KDESU and PKEXE all run happily on my LXDE box > and perform "correctly" (i.e. within the constraints expressed above). > But on my CentOS test box, only pkexe works. :-( > > Bruce > 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... -- Beno?t Minisini From emil.lenngren at ...626... Sun Jun 17 18:01:02 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Sun, 17 Jun 2012 18:01:02 +0200 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: <4FDDDE14.7030208@...1...> References: <4FDDDE14.7030208@...1...> Message-ID: Yes, it works now :) 2012/6/17 Beno?t Minisini > Le 17/06/2012 02:54, Jussi Lahtinen a ?crit : > > Yeah, terminal gives other position... > > With my actual project, I got error message; wanted string, got > > blaablaaClass instead. > > And that error message comes from function (from other module without > Fast) > > which takes two objects are parameters. > > > > So either terminal isn't showing the real stack, or there is something > else > > wrong... > > > > But my time is up, I'll see it tomorrow (with latest revision). > > > > Jussi > > > > > > The incorrect line number problem, as reported by the debugger (and not > when you run the program normally!), should be fixed in revision #4841. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From emil.lenngren at ...626... Sun Jun 17 18:06:35 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Sun, 17 Jun 2012 18:06:35 +0200 Subject: [Gambas-user] How do I override an Array class? In-Reply-To: <4FDDE387.3070008@...1...> References: <1339914155.5185.16.camel@...40...> <4FDDDF7D.1030905@...1...> <20120617134043.GC761@...2774...> <4FDDE1B8.6070007@...1...> <20120617134943.GD761@...2774...> <4FDDE387.3070008@...1...> Message-ID: Instead of overriding, why not simply create a module that does things with your array instead? Instead of Public Function Decode(ivar as String[], pattern as Integer[]) as Variant[] in some new array-class, you can simply have Public Function Decode(array As Variant[], ivar as String[], pattern as Integer[]) as Variant[] in the new module. /Emil 2012/6/17 Beno?t Minisini > Le 17/06/2012 15:49, tobi a ?crit : > >>> > >> > >> Didn't know what? > >> > > > > That '[', ']' are not allowed in project file names. So the only reason > for which I was able to > > override Variant[] was because I didn't use the IDE? > > > > At the moment, I think that it works. But I may change in the future. > > This is the reason why the compiler allows it. It does not care. > > But the interpreter have a special treatment with classes whose name > ends with '[' and ']'. > > I try to avoid breaking projects as Gambas evolves as much as possible. > So, as a security, I prefer to allow the less possible characters in > class names. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sun Jun 17 18:27:45 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 17 Jun 2012 19:27:45 +0300 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: Yes, it really works now. And I found a lot of errors by me. But for some reason JIT raises compare method when it shouldn't, and when I tried to isolate the problem I got crash (signal 11). This seems not to be related to compare method, so just ignore name of the attached project. I will look it more closely when this is fixed. Jussi On 17 June 2012 19:01, Emil Lenngren wrote: > Yes, it works now :) > > 2012/6/17 Beno?t Minisini > > > Le 17/06/2012 02:54, Jussi Lahtinen a ?crit : > > > Yeah, terminal gives other position... > > > With my actual project, I got error message; wanted string, got > > > blaablaaClass instead. > > > And that error message comes from function (from other module without > > Fast) > > > which takes two objects are parameters. > > > > > > So either terminal isn't showing the real stack, or there is something > > else > > > wrong... > > > > > > But my time is up, I'll see it tomorrow (with latest revision). > > > > > > Jussi > > > > > > > > > > The incorrect line number problem, as reported by the debugger (and not > > when you run the program normally!), should be fixed in revision #4841. > > > > Regards, > > > > -- > > Beno?t Minisini > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: JITCompareBug-0.0.1.tar.gz Type: application/x-gzip Size: 4883 bytes Desc: not available URL: From emil.lenngren at ...626... Sun Jun 17 19:24:18 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Sun, 17 Jun 2012 19:24:18 +0200 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: It should be fixed in revision #4843! /Emil 2012/6/17 Jussi Lahtinen > Yes, it really works now. And I found a lot of errors by me. > > But for some reason JIT raises compare method when it shouldn't, > and when I tried to isolate the problem I got crash (signal 11). > This seems not to be related to compare method, so just ignore name of the > attached project. > I will look it more closely when this is fixed. > > Jussi > > > > > On 17 June 2012 19:01, Emil Lenngren wrote: > > > Yes, it works now :) > > > > 2012/6/17 Beno?t Minisini > > > > > Le 17/06/2012 02:54, Jussi Lahtinen a ?crit : > > > > Yeah, terminal gives other position... > > > > With my actual project, I got error message; wanted string, got > > > > blaablaaClass instead. > > > > And that error message comes from function (from other module without > > > Fast) > > > > which takes two objects are parameters. > > > > > > > > So either terminal isn't showing the real stack, or there is > something > > > else > > > > wrong... > > > > > > > > But my time is up, I'll see it tomorrow (with latest revision). > > > > > > > > Jussi > > > > > > > > > > > > > > The incorrect line number problem, as reported by the debugger (and not > > > when you run the program normally!), should be fixed in revision #4841. > > > > > > Regards, > > > > > > -- > > > Beno?t Minisini > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Live Security Virtual Conference > > > Exclusive live event will cover all the ways today's security and > > > threat landscape has changed and how IT managers can respond. > Discussions > > > will include endpoint security, mobile security and the latest in > malware > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...1... Sun Jun 17 19:59:32 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 17 Jun 2012 19:59:32 +0200 Subject: [Gambas-user] [gb.eval.highlight] Spaces and syntax highlighting In-Reply-To: <2114665.vRi6TnuKEv@...2822...> References: <18350867.xnLu4H6rEi@...2823...> <4FDDDDCE.3070102@...1...> <2114665.vRi6TnuKEv@...2822...> Message-ID: <4FDE1B04.6000906@...1...> Le 17/06/2012 15:49, Adrien Prokopowicz a ?crit : > Le dimanche 17 juin 2012 15:38:22 Beno?t Minisini a ?crit : >> Le 12/06/2012 23:52, Adrien Prokopowicz a ?crit : >>> Hi, >>> >>> I noticed that the Higlight.Analyze() method doesn't like when the Gambas code >>> hasn't spaces between operators, commas and a few other ones. >>> >>> There is a good example of that problem here : >>> http://www.gambasforge.org/wiki/testHighlight >>> >>> Maybe this behaviour is intended, in order to keep Gambas code clean, but I >>> haven't found any function to add these spaces, like in the IDE. >>> Do you know where I can find this ? >>> >>> Regards, >>> Adrien. >>> >> >> Do you have some code to show? Maybe you don't use the Analyze() method >> correctly... >> >> > > Here is the function that makes the conversion Gambas string -> html : > > Public Sub GambasToHtml(sValue As String) As XmlElement > > Dim sLignes, s, sCode As String > Dim i, nbLignes, lenligne As Integer > Dim sTypes As String[] = ["", "normal", "keyword", "function", "operator", "symbol", "number", "string", "comment", "", "", "datatype", "", "", "", "", "error", "help", "preprocessor"] > Dim Positions, Types, Lengths As New Integer[] > Dim lignes As String[] > Dim tableau As New HtmlTable > Dim elmt As XmlElement > Dim conteneur As New XmlElement("code") > > If Not sValue Then Return > 'sret = "
" > tableau.ClassName = "code" > tableau[0, 0].ClassName = "numlignes" > tableau[0, 1].ClassName = "code" > tableau[0, 1].AppendChild(conteneur) > sValue = Replace$(sValue, "\r\n", "\n") 'Compatibilit? win/mac/linux > sValue = Trim$(sValue) 'Espaces ind?sirables > lignes = Split(sValue, "\r\n", "", False) > For Each s In lignes > > Highlight.Analyze(s) > > If Highlight.Positions.Count = 0 Then > conteneur.AppendText(s) > conteneur.AppendFromText("
") > 'sCode&= s& "
" > Inc nbLignes > Continue > Endif > Positions = Highlight.Positions > Types = Highlight.Types > Lengths.Clear() > > For i = 0 To Highlight.Symbols.Max > Lengths.Push(Len(Highlight.Symbols[i])) > Next > > lenligne = Len(s) > > For i = 1 To lenligne > If Positions.Count<= 0 > 'sCode&= String.Mid(s, i, 1) > conteneur.AppendText(Mid(s, i, 1)) > Else If i = (Positions[0] + 1) > 'sCode&= ""& String.Mid$(s, Positions[0] + 1, Lengths[0])& "" > elmt = New XmlElement("span") > elmt.ClassName = sTypes[Types[0]] > elmt.TextContent = Mid$(s, Positions[0] + 1, Lengths[0]) > conteneur.AppendChild(elmt) > i += (Lengths[0] - 1) > Positions.Extract(0) > Lengths.Extract(0) > Types.Extract(0) > ' Else If Mid$(s, i, 1) = " " > ' 'sCode&= " " > ' tableau[0, 1].AppendFromText(" ") > Else > 'sCode&= String.Mid$(s, i, 1) > conteneur.AppendText(String.Mid(s, i, 1)) > Endif > Next > 'sCode&= "
" > conteneur.AppendFromText("
") > Inc nbLignes > > Next > > For i = 1 To nbLignes > sLignes&= (i& "
\n") > Next > > tableau[0, 0].AppendFromText(sLignes) > > ' sCode = Replace$(sCode, "&","&") > ' sCode = Replace$(sCode, "<","<") > ' sCode = Replace$(sCode, ">",">") > ' sCode = RegexpReplace(sCode, "<(/?(span|br).*)>", "<&1>") > ' sCode = Replace$(sCode, "&nbsp;", " ") > ' sRet&= "
" > ' sret&= sCode > ' sRet&= "
" > ' Return XmlElement.FromText(sRet)[0] > elmt = New XmlElement("div") > elmt.ClassName = "code" > elmt.AppendChild(tableau) > Return elmt > > End > > > The full code is available here : (svn checkout) > https://gambasforge.svn.sourceforge.net/svnroot/gambasforge/trunk > > > Regards, > Adrien. The Positions are relative to the string returned by Highlight.TextAfter. In other words, you just have to add a "s = Highlight.TextAfter" line just after the Highlight.Analyze call. Beware that there was a bug: the value returned by Highlight.TextAfter was the original string when the Rewrite argument of Highlight.Analyze() was FALSE. Use revision #4844 that fixes that bug. Otherwise, I suggest you set the Rewrite argument. Regards, -- Beno?t Minisini From gambas at ...2524... Sun Jun 17 20:11:21 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 17 Jun 2012 18:11:21 +0000 Subject: [Gambas-user] Issue 253 in gambas: GTK++ toolkit only In-Reply-To: <5-6813199134517018827-16987846535652209861-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-16987846535652209861-gambas=googlecode.com@...2524...> <0-6813199134517018827-16987846535652209861-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-16987846535652209861-gambas=googlecode.com@...2524...> Updates: Status: Started Comment #6 on issue 253 by benoit.m... at ...626...: GTK++ toolkit only http://code.google.com/p/gambas/issues/detail?id=253 (No comment was entered for this change.) From jussi.lahtinen at ...626... Sun Jun 17 22:36:36 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 17 Jun 2012 23:36:36 +0300 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: 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::addGlobalMapping(const llvm::GlobalValue*, void*): Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping 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 wrote: > It should be fixed in revision #4843! > > /Emil > > 2012/6/17 Jussi Lahtinen > > > Yes, it really works now. And I found a lot of errors by me. > > > > But for some reason JIT raises compare method when it shouldn't, > > and when I tried to isolate the problem I got crash (signal 11). > > This seems not to be related to compare method, so just ignore name of > the > > attached project. > > I will look it more closely when this is fixed. > > > > Jussi > > > > > > > > > > On 17 June 2012 19:01, Emil Lenngren wrote: > > > > > Yes, it works now :) > > > > > > 2012/6/17 Beno?t Minisini > > > > > > > Le 17/06/2012 02:54, Jussi Lahtinen a ?crit : > > > > > Yeah, terminal gives other position... > > > > > With my actual project, I got error message; wanted string, got > > > > > blaablaaClass instead. > > > > > And that error message comes from function (from other module > without > > > > Fast) > > > > > which takes two objects are parameters. > > > > > > > > > > So either terminal isn't showing the real stack, or there is > > something > > > > else > > > > > wrong... > > > > > > > > > > But my time is up, I'll see it tomorrow (with latest revision). > > > > > > > > > > Jussi > > > > > > > > > > > > > > > > > > The incorrect line number problem, as reported by the debugger (and > not > > > > when you run the program normally!), should be fixed in revision > #4841. > > > > > > > > Regards, > > > > > > > > -- > > > > Beno?t Minisini > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Live Security Virtual Conference > > > > Exclusive live event will cover all the ways today's security and > > > > threat landscape has changed and how IT managers can respond. > > Discussions > > > > will include endpoint security, mobile security and the latest in > > malware > > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Live Security Virtual Conference > > > Exclusive live event will cover all the ways today's security and > > > threat landscape has changed and how IT managers can respond. > Discussions > > > will include endpoint security, mobile security and the latest in > malware > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Mon Jun 18 04:46:08 2012 From: bbruen at ...2308... (Bruce) Date: Mon, 18 Jun 2012 12:16:08 +0930 Subject: [Gambas-user] How do I override an Array class? In-Reply-To: References: <1339914155.5185.16.camel@...40...> <4FDDDF7D.1030905@...1...> <20120617134043.GC761@...2774...> <4FDDE1B8.6070007@...1...> <20120617134943.GD761@...2774...> <4FDDE387.3070008@...1...> Message-ID: <1339987568.5185.102.camel@...40...> 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? > > Instead of > Public Function Decode(ivar as String[], pattern as Integer[]) as > Variant[] > > in some new array-class, > > you can simply have > Public Function Decode(array As Variant[], ivar as String[], pattern as > Integer[]) as > Variant[] > > in the new module. > > /Emil Yes, that's a good observation. In this case however, it was doing something like that that has got me the mess I am now trying to unravel. This particular project is huge, over 18,000 lines of code, 16 modules and 35 classes. It has become that way because there was a fundamental design error made when it first started, that error was no-one did any design work on it. We have been patching and adding to it for the last 4 years (yes it started out as a gb2 project) instead of fixing the real problem. Executionally is is pretty simple. It takes a large unstructured text file and parses it, returning a structured set of extracted data and some information regarding bits that it could not handle but "look" interesting. For example, the input might be the content of a newsletter from one of the horse auctioneers listing upcoming auctions. Because these are written by different people each time, we get different token strings each time. So, for example, it tries to recognize and decode series of tokens that may represent a date. Things like "next Tuesday", "Tuesday next" "this Tuesday", etc. It also reports things that it cannot handle, say "at Tuesday next week's ..." would get reported as "Found occurrence of (date)(date) at token 234", since someone has coded a rule that two concurrent (date) tokens are not "sensible". Structurally, it is a mess. Different classes contain inline code to do the same things and, even worse, different classes use different modules containing functions that do the same thing. Recently we finally hit the inheritance tree depth limit. So we can no longer do what we have been doing, which is tack on another class to handle some newly discovered rules. One of our people has taken on the job of designing the whole thing from scratch as a rule based parser. I as punishment for my original sin, have taken on the task of trying to clean up the existing code so we can see what it is really doing in terms of token series analysis and parsing rules. So what I was looking for was a way to simply pull out the "mechanical" bits of the inline code (and module function calls) that obfuscate the real intent of a specific method. At several points in this monster's history, we have tried to do things like rationalise the set of modules into one super-module. Unfortunately, that resulted in sets of functions ("Decode1(int,int,int) as Date", "Decode2(int,str,int) as Date",.... "Decode39(str,int,str,int) as Date) all doing slightly different things, which just made things worse. And I haven't mentioned parsing peoples names yet! ("MacDonald", "McDonald","Mac Donald", etc) Anyway, thanks everyone for your input. Bruce From gambas at ...1... Mon Jun 18 12:19:49 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 18 Jun 2012 12:19:49 +0200 Subject: [Gambas-user] Components and libraries and forms. Weird Sunday In-Reply-To: <1339930769.5185.32.camel@...40...> References: <1339930769.5185.32.camel@...40...> Message-ID: <4FDF00C5.6060908@...1...> 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 > not sure what this method is for, nor can I find it anywhere in the IDE > code. But it does have a strange effect... > > In the client project > > Dim myform as New LibraryForm1 > myform.$Load() > myform.ShowDialog > > (where LibraryForm1 is the form exposed in the library) > results in a form with twice its' contents. Strange. '$load' is the method that creates the controls in a form. It is called automatically from the constructor. So if you call it yourself, you have twice the controls. The name of this method may change at my will unexpectedly, so don't rely on it. This is why it is not documented. > > > 2) Using a component that depends on a library > > I accidentally installed a project that was suppose to be a library as a > component today. That all went well, but as you would expect the client > project falls over, "Can't find class blahblah etc." The point being, > shouldn't there be some sort of rule somewhere that stops a project > being compiled (and therefore installed) as a component when it depends > on libraries? I don't understand. Is it a component or not? And why shouldn't a component depend on a library? -- Beno?t Minisini From bbruen at ...2308... Mon Jun 18 12:41:14 2012 From: bbruen at ...2308... (Bruce) Date: Mon, 18 Jun 2012 20:11:14 +0930 Subject: [Gambas-user] Components and libraries and forms. Weird Sunday In-Reply-To: <4FDF00C5.6060908@...1...> References: <1339930769.5185.32.camel@...40...> <4FDF00C5.6060908@...1...> Message-ID: <1340016074.5185.114.camel@...40...> 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 when using that library in the IDE in > > another project, I see a "magical" method called $Load is exposed. I'm > > not sure what this method is for, nor can I find it anywhere in the IDE > > code. But it does have a strange effect... > > > > In the client project > > > > Dim myform as New LibraryForm1 > > myform.$Load() > > myform.ShowDialog > > > > (where LibraryForm1 is the form exposed in the library) > > results in a form with twice its' contents. Strange. > > '$load' is the method that creates the controls in a form. It is called > automatically from the constructor. So if you call it yourself, you have > twice the controls. > Sounds fair enough. I didn't explain properly, perhaps the attached screenshot will help. My question was aimed at its' appearance in the autocomplete popup in the IDE. (FAbout is a form in a library.) > The name of this method may change at my will unexpectedly, so don't > rely on it. This is why it is not documented. > > > > > > 2) Using a component that depends on a library > > > > I accidentally installed a project that was suppose to be a library as a > > component today. That all went well, but as you would expect the client > > project falls over, "Can't find class blahblah etc." The point being, > > shouldn't there be some sort of rule somewhere that stops a project > > being compiled (and therefore installed) as a component when it depends > > on libraries? > > I don't understand. Is it a component or not? And why shouldn't a > component depend on a library? > We try not to elevate our libraries to component status until they are well and truly "concrete stable", then they can go and live in /usr/local/lib/gambas3 (and etc) quite legally. Until then they are in a constant state of flux and live in /user/local/bin/phapps/ (which is where our apps live, so there all the library dependencies are resolved and we comply with the "libraries must be in the same directory as the executable" rule. That's all. So when I accidentally made it a component, it cannot find the dependant libraries, because they are elsewhere. No big problem. I was just thinking. Bruce -------------- next part -------------- A non-text attachment was scrubbed... Name: shot1.png Type: image/png Size: 43821 bytes Desc: not available URL: From gambas at ...1... Mon Jun 18 13:12:30 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 18 Jun 2012 13:12:30 +0200 Subject: [Gambas-user] Components and libraries and forms. Weird Sunday In-Reply-To: <1340016074.5185.114.camel@...40...> References: <1339930769.5185.32.camel@...40...> <4FDF00C5.6060908@...1...> <1340016074.5185.114.camel@...40...> Message-ID: <4FDF0D1E.9050406@...1...> 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 when using that library in the IDE in >>> another project, I see a "magical" method called $Load is exposed. I'm >>> not sure what this method is for, nor can I find it anywhere in the IDE >>> code. But it does have a strange effect... >>> >>> In the client project >>> >>> Dim myform as New LibraryForm1 >>> myform.$Load() >>> myform.ShowDialog >>> >>> (where LibraryForm1 is the form exposed in the library) >>> results in a form with twice its' contents. Strange. >> >> '$load' is the method that creates the controls in a form. It is called >> automatically from the constructor. So if you call it yourself, you have >> twice the controls. >> > Sounds fair enough. I didn't explain properly, perhaps the attached > screenshot will help. My question was aimed at its' appearance in the > autocomplete popup in the IDE. (FAbout is a form in a library.) > OK. This method should not be public but private, this is a mistake in the compiler. I will fix it... -- Beno?t Minisini From emil.lenngren at ...626... Mon Jun 18 13:24:30 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Mon, 18 Jun 2012 13:24:30 +0200 Subject: [Gambas-user] How do I override an Array class? In-Reply-To: <1339987568.5185.102.camel@...40...> References: <1339914155.5185.16.camel@...40...> <4FDDDF7D.1030905@...1...> <20120617134043.GC761@...2774...> <4FDDE1B8.6070007@...1...> <20120617134943.GD761@...2774...> <4FDDE387.3070008@...1...> <1339987568.5185.102.camel@...40...> Message-ID: 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? > > > > Instead of > > Public Function Decode(ivar as String[], pattern as Integer[]) as > > Variant[] > > > > in some new array-class, > > > > you can simply have > > Public Function Decode(array As Variant[], ivar as String[], pattern as > > Integer[]) as > > Variant[] > > > > in the new module. > > > > /Emil > Yes, that's a good observation. In this case however, it was doing > something like that that has got me the mess I am now trying to unravel. > > This particular project is huge, over 18,000 lines of code, 16 modules > and 35 classes. It has become that way because there was a fundamental > design error made when it first started, that error was no-one did any > design work on it. We have been patching and adding to it for the last > 4 years (yes it started out as a gb2 project) instead of fixing the real > problem. > > Executionally is is pretty simple. It takes a large unstructured text > file and parses it, returning a structured set of extracted data and > some information regarding bits that it could not handle but "look" > interesting. For example, the input might be the content of a > newsletter from one of the horse auctioneers listing upcoming auctions. > Because these are written by different people each time, we get > different token strings each time. So, for example, it tries to > recognize and decode series of tokens that may represent a date. Things > like "next Tuesday", "Tuesday next" "this Tuesday", etc. It also > reports things that it cannot handle, say "at Tuesday next week's ..." > would get reported as "Found occurrence of (date)(date) at token 234", > since someone has coded a rule that two concurrent (date) tokens are not > "sensible". > > Structurally, it is a mess. Different classes contain inline code to do > the same things and, even worse, different classes use different modules > containing functions that do the same thing. > > Recently we finally hit the inheritance tree depth limit. So we can no > longer do what we have been doing, which is tack on another class to > handle some newly discovered rules. > > One of our people has taken on the job of designing the whole thing from > scratch as a rule based parser. I as punishment for my original sin, > have taken on the task of trying to clean up the existing code so we can > see what it is really doing in terms of token series analysis and > parsing rules. > > So what I was looking for was a way to simply pull out the "mechanical" > bits of the inline code (and module function calls) that obfuscate the > real intent of a specific method. > > At several points in this monster's history, we have tried to do things > like rationalise the set of modules into one super-module. > Unfortunately, that resulted in sets of functions ("Decode1(int,int,int) > as Date", "Decode2(int,str,int) as Date",.... "Decode39(str,int,str,int) > as Date) all doing slightly different things, which just made things > worse. And I haven't mentioned parsing peoples names yet! ("MacDonald", > "McDonald","Mac Donald", etc) > > Anyway, thanks everyone for your input. > Bruce > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Jun 18 13:32:11 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 18 Jun 2012 13:32:11 +0200 Subject: [Gambas-user] How do I override an Array class? In-Reply-To: References: <1339914155.5185.16.camel@...40...> <4FDDDF7D.1030905@...1...> <20120617134043.GC761@...2774...> <4FDDE1B8.6070007@...1...> <20120617134943.GD761@...2774...> <4FDDE387.3070008@...1...> <1339987568.5185.102.camel@...40...> Message-ID: <4FDF11BB.9050802@...1...> 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 inheritance level, you may have a problem somewhere in your design... -- Beno?t Minisini From emil.lenngren at ...626... Mon Jun 18 14:32:21 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Mon, 18 Jun 2012 14:32:21 +0200 Subject: [Gambas-user] How do I override an Array class? In-Reply-To: <4FDF11BB.9050802@...1...> References: <1339914155.5185.16.camel@...40...> <4FDDDF7D.1030905@...1...> <20120617134043.GC761@...2774...> <4FDDE1B8.6070007@...1...> <20120617134943.GD761@...2774...> <4FDDE387.3070008@...1...> <1339987568.5185.102.camel@...40...> <4FDF11BB.9050802@...1...> Message-ID: 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 at, then declare a variable-size array (directly on the stack, not with malloc) with the depth as size, then fill it with all parents. /Emil 2012/6/18 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 inheritance level, you may have a > problem somewhere in your design... > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Mon Jun 18 14:46:19 2012 From: bbruen at ...2308... (Bruce) Date: Mon, 18 Jun 2012 22:16:19 +0930 Subject: [Gambas-user] How do I override an Array class? In-Reply-To: References: <1339914155.5185.16.camel@...40...> <4FDDDF7D.1030905@...1...> <20120617134043.GC761@...2774...> <4FDDE1B8.6070007@...1...> <20120617134943.GD761@...2774...> <4FDDE387.3070008@...1...> <1339987568.5185.102.camel@...40...> <4FDF11BB.9050802@...1...> Message-ID: <1340023579.5185.118.camel@...40...> 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 depth-independent. > First see at what depth the current class is at, then declare a > variable-size array (directly on the stack, not with malloc) with the depth > as size, then fill it with all parents. > > /Emil > (Very quietly and humbly.) If the limit was 8 instead of 16 then I would only be in half the mess I'm in now! Just joking :-) Bruce From gambas at ...1... Mon Jun 18 14:51:57 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 18 Jun 2012 14:51:57 +0200 Subject: [Gambas-user] How do I override an Array class? In-Reply-To: References: <1339914155.5185.16.camel@...40...> <4FDDDF7D.1030905@...1...> <20120617134043.GC761@...2774...> <4FDDE1B8.6070007@...1...> <20120617134943.GD761@...2774...> <4FDDE387.3070008@...1...> <1339987568.5185.102.camel@...40...> <4FDF11BB.9050802@...1...> Message-ID: <4FDF246D.60309@...1...> 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-independent. > First see at what depth the current class is at, then declare a > variable-size array (directly on the stack, not with malloc) with the depth > as size, then fill it with all parents. > > /Emil > > I know, but I didn't want to use heavy allocation routines or alloca() when I wrote that code. But now I see that the inheritance algorithm is used only by _new and _free, I can do that. Maybe after 3.2, as I will try to clean up that code in the same move. Regards, -- Beno?t Minisini From emil.lenngren at ...626... Mon Jun 18 14:54:02 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Mon, 18 Jun 2012 14:54:02 +0200 Subject: [Gambas-user] How do I override an Array class? In-Reply-To: <1340023579.5185.118.camel@...40...> References: <1339914155.5185.16.camel@...40...> <4FDDDF7D.1030905@...1...> <20120617134043.GC761@...2774...> <4FDDE1B8.6070007@...1...> <20120617134943.GD761@...2774...> <4FDDE387.3070008@...1...> <1339987568.5185.102.camel@...40...> <4FDF11BB.9050802@...1...> <1340023579.5185.118.camel@...40...> Message-ID: 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 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 at, then declare a > > variable-size array (directly on the stack, not with malloc) with the > depth > > as size, then fill it with all parents. > > > > /Emil > > > (Very quietly and humbly.) > If the limit was 8 instead of 16 then I would only be in half the mess > I'm in now! > Just joking :-) > Bruce > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Mon Jun 18 15:09:54 2012 From: bbruen at ...2308... (Bruce) Date: Mon, 18 Jun 2012 22:39:54 +0930 Subject: [Gambas-user] More on overriding native classes Message-ID: <1340024994.5185.135.camel@...40...> 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 command line project in the IDE. Add a new class "Application" with the following contents ' Gambas class file Create Static Inherits Application Export Static Public Hello As String = "Hello from South Australia" Save and reload the project. In MMain.Main type the following: ?appl[Enter].he ( see screenshot appended) Now that, to me, looks like we have successfully overridden the Application class, but look what happens when you run it. Similar things happen with Error and Class. Probably more. To keep this one short, why would I want to override Application? So I can get at more of what is in the .project file, sort of more "introspection" than is currently there. Any thoughts or comments? (This is a discussion post, not a bug. That is unless I've got it totally worng agian. Which given my recent strike rate could be a possibility.) Bruce -------------- next part -------------- A non-text attachment was scrubbed... Name: shot3.png Type: image/png Size: 16209 bytes Desc: not available URL: From emil.lenngren at ...626... Mon Jun 18 15:12:23 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Mon, 18 Jun 2012 15:12:23 +0200 Subject: [Gambas-user] How do I override an Array class? In-Reply-To: <4FDF246D.60309@...1...> References: <1339914155.5185.16.camel@...40...> <4FDDDF7D.1030905@...1...> <20120617134043.GC761@...2774...> <4FDDE1B8.6070007@...1...> <20120617134943.GD761@...2774...> <4FDDE387.3070008@...1...> <1339987568.5185.102.camel@...40...> <4FDF11BB.9050802@...1...> <4FDF246D.60309@...1...> Message-ID: 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 (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 at, then declare a > > variable-size array (directly on the stack, not with malloc) with the > depth > > as size, then fill it with all parents. > > > > /Emil > > > > > > I know, but I didn't want to use heavy allocation routines or alloca() > when I wrote that code. > > But now I see that the inheritance algorithm is used only by _new and > _free, I can do that. Maybe after 3.2, as I will try to clean up that > code in the same move. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Mon Jun 18 15:27:20 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 18 Jun 2012 13:27:20 +0000 Subject: [Gambas-user] Issue 257 in gambas: Database password retrieval error and abort in IDE Message-ID: <0-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 257 by r... at ...1740...: 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 out the gambasforge code to learn how to write a cgi with gambas3. When I click on the database connection inside the project treeview, I get: _Desktop_Passwords._get.62: Unable to get password 1: FMain.tvwProject_Menu.233 And the IDE aborts... 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): [System] OperatingSystem=Linux Kernel=2.6.38-14-generic Architecture=x86_64 Memory=3787800 kB DistributionVendor=Ubuntu DistributionRelease="Ubuntu 11.04" Desktop=Gnome [Gambas 2] Version=2.24.0 Path=/usr/local/bin/gbx2 [Gambas 3] Version=3.2.0 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.7.2 GTK+=libgtk-x11-2.0.so.0.2400.4 Gambas 3 version is trunk at rev 4846 From bbruen at ...2308... Mon Jun 18 15:29:45 2012 From: bbruen at ...2308... (Bruce) Date: Mon, 18 Jun 2012 22:59:45 +0930 Subject: [Gambas-user] More on overriding native classes In-Reply-To: <1340024994.5185.135.camel@...40...> References: <1340024994.5185.135.camel@...40...> Message-ID: <1340026185.5185.143.camel@...40...> 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 > > Static Public Hello As String = "Hello from South Australia" > > Save and reload the project. > In MMain.Main type the following: > > ?appl[Enter].he > > ( see screenshot appended) > Now that, to me, looks like we have successfully overridden the > Application class, but look what happens when you run it. > Let me rephrase that (sometimes the keyboard is quicker than the mind.) 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 Static Public Hello As String = "Hello from South Australia" Save and reload the project. In MMain.Main type the following: ?appl[Enter].he ( see new! screenshot appended) Now that, to me, looks like we have successfully overridden the Application class, but look what happens when you run it. What you should see is a very correct error message saying that Hello is an unknown method in Application. That is because it hasn't been exported. But when I go back and export the class, then I get the Multiple Inheritance error. B From gambas at ...2524... Mon Jun 18 15:39:13 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 18 Jun 2012 13:39:13 +0000 Subject: [Gambas-user] Issue 257 in gambas: Database password retrieval error and abort in IDE In-Reply-To: <0-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...> Comment #1 on issue 257 by r... at ...1740...: 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. From gambas at ...2524... Mon Jun 18 16:00:28 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 18 Jun 2012 14:00:28 +0000 Subject: [Gambas-user] Issue 258 in gambas: Expander and slider combo issues Message-ID: <0-6813199134517018827-1049706297444050431-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 258 by r... at ...1740...: 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 width of the expander and the looks of it's handles is changed. I believe with an optional property to set it to old behavior. I noticed while working with Gambas's IDE on a large project, that the slider function is completely lost (for the project treeview), if you hover the mouse over it to drag it, the expander handles always appear, and the mouse pointer changes to <>, ie, you cannot slide the slider in any way. Only moving your mouse over to the treeview window (not above the slider) and using the scrollwheel works on my system. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): [System] OperatingSystem=Linux Kernel=2.6.38-14-generic Architecture=x86_64 Memory=3787800 kB DistributionVendor=Ubuntu DistributionRelease="Ubuntu 11.04" Desktop=Gnome [Gambas 2] Version=2.24.0 Path=/usr/local/bin/gbx2 [Gambas 3] Version=3.2.0 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.7.2 GTK+=libgtk-x11-2.0.so.0.2400.4 Gambas 3 version is trunk at rev 4846 Can the original behavior be restored, the current one looks great, but doesn't work, or add more spacing between expander and slider in IDE GUI? From bbruen at ...2308... Mon Jun 18 16:12:49 2012 From: bbruen at ...2308... (Bruce) Date: Mon, 18 Jun 2012 23:42:49 +0930 Subject: [Gambas-user] Access global variable from other .class In-Reply-To: References: <1339646816.S.44096.autosave.drafts.old.1339648123.14654@...2802...> <1339649938.5550.102.camel@...40...> <20120615184740.GF749@...2774...> <20120615204950.GL749@...2774...> <1339811067.6723.28.camel@...40...> Message-ID: <1340028769.5185.156.camel@...40...> 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 through it at it stands is not going to be a > > great success. > > > > Privilege escalation means exploitation, not use of intentionally > implemented feature to gain higher privileges. > http://en.wikipedia.org/wiki/Privilege_escalation > Yes, but when I was young it meant the latter. :-) (That was before "bad" hackers made their appearance on the planet. They've even stolen our language, sheesh!) > > > The fact is, there isn't and one of the major reasons is the old ongoing > > su/sudo argument and how certain distros implement their own policies > > regarding this. (I don't intend on pursuing that argument further here) > > > > Is there some desktop distro without graphical sudo!? > As far as know, at least CentOS doesn't have a graphical authorisation utility for sudo. > > > > > > GKSU/GKSUDO > > Pro: Easy to use, can handle complex command strings*, easy to configure > > the authorisation gui to suit > > Con: There are some security issues, the major one to me is that it > > escalates the current user's privilege, not the current process. > > > Not true if you use gksudo or gksu with -c. > 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. > > > Even more of an issue is that the escalation actually remains in force for a > > period of time after the gksu command is finished. > > > > It is applied only if next commands are used also with sudo/etc. > Also this time is fully configurable, and if you want you can force it to > stop immediately with "sudo -k". > Hmm. I have seen gksu (not gksudo) run in a terminal to do something and then followed by a privileged command that was not denied. Again, this was on a mandriva derived distro. e.g. $ gksu whoami /root $ ifconfig ... > > * a complex command string being something like > > 'cd /home/blah/blah;echo pwd; make install; echo "Success!"' > > > > I think you mean 'cd /home/blah/blah;echo pwd; make install && echo > "Success!"'. > ;) > Probably, but around here we do not accept failure :-) > > Jussi From jussi.lahtinen at ...626... Mon Jun 18 19:01:33 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 18 Jun 2012 20:01:33 +0300 Subject: [Gambas-user] Access global variable from other .class In-Reply-To: <1340028769.5185.156.camel@...40...> References: <1339646816.S.44096.autosave.drafts.old.1339648123.14654@...2802...> <1339649938.5550.102.camel@...40...> <20120615184740.GF749@...2774...> <20120615204950.GL749@...2774...> <1339811067.6723.28.camel@...40...> <1340028769.5185.156.camel@...40...> Message-ID: > 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 (not gksudo) run in a terminal to do something and > then followed by a privileged command that was not denied. Again, this > was on a mandriva derived distro. > e.g. > $ gksu whoami > /root > $ ifconfig ... > Yes, that is possible with gksu or su. But behaviour of these commands is configurable. So, I don't see this as problem. Usually good advice is to use sudo, with it, elevated privileges are used only if next command also start with sudo. Jussi From jussi.lahtinen at ...626... Mon Jun 18 19:15:29 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 18 Jun 2012 20:15:29 +0300 Subject: [Gambas-user] Access global variable from other .class In-Reply-To: <4FDDFD61.6070507@...1...> References: <1339646816.S.44096.autosave.drafts.old.1339648123.14654@...2802...> <1339649938.5550.102.camel@...40...> <20120615184740.GF749@...2774...> <20120615204950.GL749@...2774...> <1339811067.6723.28.camel@...40...> <4FDDFD61.6070507@...1...> Message-ID: > 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 if you need to change to some other user, but the keyword in Gambas is RunAsRoot. Is there something where sudo would fail? Jussi From gambas at ...1... Mon Jun 18 19:22:16 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 18 Jun 2012 19:22:16 +0200 Subject: [Gambas-user] Access global variable from other .class In-Reply-To: References: <1339646816.S.44096.autosave.drafts.old.1339648123.14654@...2802...> <1339649938.5550.102.camel@...40...> <20120615184740.GF749@...2774...> <20120615204950.GL749@...2774...> <1339811067.6723.28.camel@...40...> <4FDDFD61.6070507@...1...> Message-ID: <4FDF63C8.2060500@...1...> 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 Ubuntu as default, you cannot do "su root". > So su is useful only if you need to change to some other user, but the > keyword in Gambas is RunAsRoot. > > Is there something where sudo would fail? > > Jussi Some systems do not use sudo. Maybe they find it unsecure. -- Beno?t Minisini From tobiasboege01 at ...1601... Mon Jun 18 19:28:59 2012 From: tobiasboege01 at ...1601... (tobi) Date: Mon, 18 Jun 2012 19:28:59 +0200 Subject: [Gambas-user] Access global variable from other .class In-Reply-To: <4FDF63C8.2060500@...1...> References: <20120615184740.GF749@...2774...> <20120615204950.GL749@...2774...> <1339811067.6723.28.camel@...40...> <4FDDFD61.6070507@...1...> <4FDF63C8.2060500@...1...> Message-ID: <20120618172859.GC751@...2774...> 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 run into need for su, I always use sudo. > > Example in Ubuntu as default, you cannot do "su root". > > So su is useful only if you need to change to some other user, but the > > keyword in Gambas is RunAsRoot. > > > > Is there something where sudo would fail? > > > > Jussi > > Some systems do not use sudo. Maybe they find it unsecure. > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user So, it was talked about a pure Gambas way of asking for the password. To address Beno?t's recent thought: Why not have a form like this: +Run as Root---------------------+ | | | Choose method: [ComboBox: ] | | | Sudo | | | | Su | | | | | Password: [TextBox... ] | | [Button: OK] | +--------------------------------+ This way, the experienced, aware user could choose (not really if it was detected by the class that no "sudo" was found in PATH...) and the others most likely have sudo installed. It would equally well end the discussion of the preferred graphical frontend - only disadvantage I can see: in this draft, there is no configuration possible, except for the method of privilege elevation. Regards, Tobi From support at ...2529... Mon Jun 18 19:41:10 2012 From: support at ...2529... (John Spikowski) Date: Mon, 18 Jun 2012 10:41:10 -0700 Subject: [Gambas-user] Access global variable from other .class In-Reply-To: <4FDF63C8.2060500@...1...> References: <1339646816.S.44096.autosave.drafts.old.1339648123.14654@...2802...> <1339649938.5550.102.camel@...40...> <20120615184740.GF749@...2774...> <20120615204950.GL749@...2774...> <1339811067.6723.28.camel@...40...> <4FDDFD61.6070507@...1...> <4FDF63C8.2060500@...1...> Message-ID: <1340041270.3259.9.camel@...1833...> 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 with shared object (.so) extension modules. (un-rooted) If anyone is interested in the Android platform with local and remote device scripting, give ScriptBasic a try. Here is a thread about my new Samsung Galaxy Tab 2 10.1 and migrating from a Android emulator to the real thing. http://www.scriptbasic.org/forum/index.php/topic,249.msg901.html#msg901 From jussi.lahtinen at ...626... Mon Jun 18 19:58:22 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 18 Jun 2012 20:58:22 +0300 Subject: [Gambas-user] Access global variable from other .class In-Reply-To: <4FDF63C8.2060500@...1...> References: <1339646816.S.44096.autosave.drafts.old.1339648123.14654@...2802...> <1339649938.5550.102.camel@...40...> <20120615184740.GF749@...2774...> <20120615204950.GL749@...2774...> <1339811067.6723.28.camel@...40...> <4FDDFD61.6070507@...1...> <4FDF63C8.2060500@...1...> Message-ID: > 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 that system can be tolerated by anyone. Jussi From jussi.lahtinen at ...626... Mon Jun 18 20:52:54 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 18 Jun 2012 21:52:54 +0300 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: 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::addGlobalMapping(const llvm::GlobalValue*, void*): > Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping 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 wrote: > >> It should be fixed in revision #4843! >> >> /Emil >> >> 2012/6/17 Jussi Lahtinen >> >> > Yes, it really works now. And I found a lot of errors by me. >> > >> > But for some reason JIT raises compare method when it shouldn't, >> > and when I tried to isolate the problem I got crash (signal 11). >> > This seems not to be related to compare method, so just ignore name of >> the >> > attached project. >> > I will look it more closely when this is fixed. >> > >> > Jussi >> > >> > >> > >> > >> > On 17 June 2012 19:01, Emil Lenngren wrote: >> > >> > > Yes, it works now :) >> > > >> > > 2012/6/17 Beno?t Minisini >> > > >> > > > Le 17/06/2012 02:54, Jussi Lahtinen a ?crit : >> > > > > Yeah, terminal gives other position... >> > > > > With my actual project, I got error message; wanted string, got >> > > > > blaablaaClass instead. >> > > > > And that error message comes from function (from other module >> without >> > > > Fast) >> > > > > which takes two objects are parameters. >> > > > > >> > > > > So either terminal isn't showing the real stack, or there is >> > something >> > > > else >> > > > > wrong... >> > > > > >> > > > > But my time is up, I'll see it tomorrow (with latest revision). >> > > > > >> > > > > Jussi >> > > > > >> > > > > >> > > > >> > > > The incorrect line number problem, as reported by the debugger (and >> not >> > > > when you run the program normally!), should be fixed in revision >> #4841. >> > > > >> > > > Regards, >> > > > >> > > > -- >> > > > Beno?t Minisini >> > > > >> > > > >> > > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > > Live Security Virtual Conference >> > > > Exclusive live event will cover all the ways today's security and >> > > > threat landscape has changed and how IT managers can respond. >> > Discussions >> > > > will include endpoint security, mobile security and the latest in >> > malware >> > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > > _______________________________________________ >> > > > Gambas-user mailing list >> > > > Gambas-user at lists.sourceforge.net >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > >> > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > Live Security Virtual Conference >> > > Exclusive live event will cover all the ways today's security and >> > > threat landscape has changed and how IT managers can respond. >> Discussions >> > > will include endpoint security, mobile security and the latest in >> malware >> > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > _______________________________________________ >> > > Gambas-user mailing list >> > > Gambas-user at lists.sourceforge.net >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > >> > >> > >> > >> ------------------------------------------------------------------------------ >> > Live Security Virtual Conference >> > Exclusive live event will cover all the ways today's security and >> > threat landscape has changed and how IT managers can respond. >> Discussions >> > will include endpoint security, mobile security and the latest in >> malware >> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > -------------- next part -------------- A non-text attachment was scrubbed... Name: JITStreamBug-0.0.1.tar.gz Type: application/x-gzip Size: 4930 bytes Desc: not available URL: From emil.lenngren at ...626... Mon Jun 18 21:08:00 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Mon, 18 Jun 2012 21:08:00 +0200 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: 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 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::addGlobalMapping(const llvm::GlobalValue*, void*): > > Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping 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 wrote: > > > >> It should be fixed in revision #4843! > >> > >> /Emil > >> > >> 2012/6/17 Jussi Lahtinen > >> > >> > Yes, it really works now. And I found a lot of errors by me. > >> > > >> > But for some reason JIT raises compare method when it shouldn't, > >> > and when I tried to isolate the problem I got crash (signal 11). > >> > This seems not to be related to compare method, so just ignore name of > >> the > >> > attached project. > >> > I will look it more closely when this is fixed. > >> > > >> > Jussi > >> > > >> > > >> > > >> > > >> > On 17 June 2012 19:01, Emil Lenngren wrote: > >> > > >> > > Yes, it works now :) > >> > > > >> > > 2012/6/17 Beno?t Minisini > >> > > > >> > > > Le 17/06/2012 02:54, Jussi Lahtinen a ?crit : > >> > > > > Yeah, terminal gives other position... > >> > > > > With my actual project, I got error message; wanted string, got > >> > > > > blaablaaClass instead. > >> > > > > And that error message comes from function (from other module > >> without > >> > > > Fast) > >> > > > > which takes two objects are parameters. > >> > > > > > >> > > > > So either terminal isn't showing the real stack, or there is > >> > something > >> > > > else > >> > > > > wrong... > >> > > > > > >> > > > > But my time is up, I'll see it tomorrow (with latest revision). > >> > > > > > >> > > > > Jussi > >> > > > > > >> > > > > > >> > > > > >> > > > The incorrect line number problem, as reported by the debugger > (and > >> not > >> > > > when you run the program normally!), should be fixed in revision > >> #4841. > >> > > > > >> > > > Regards, > >> > > > > >> > > > -- > >> > > > Beno?t Minisini > >> > > > > >> > > > > >> > > > > >> > > > >> > > >> > ------------------------------------------------------------------------------ > >> > > > Live Security Virtual Conference > >> > > > Exclusive live event will cover all the ways today's security and > >> > > > threat landscape has changed and how IT managers can respond. > >> > Discussions > >> > > > will include endpoint security, mobile security and the latest in > >> > malware > >> > > > threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >> > > > _______________________________________________ > >> > > > Gambas-user mailing list > >> > > > Gambas-user at lists.sourceforge.net > >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > >> > > > >> > > > >> > > >> > ------------------------------------------------------------------------------ > >> > > Live Security Virtual Conference > >> > > Exclusive live event will cover all the ways today's security and > >> > > threat landscape has changed and how IT managers can respond. > >> Discussions > >> > > will include endpoint security, mobile security and the latest in > >> malware > >> > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >> > > _______________________________________________ > >> > > Gambas-user mailing list > >> > > Gambas-user at lists.sourceforge.net > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > >> > > >> > > >> > > >> > ------------------------------------------------------------------------------ > >> > Live Security Virtual Conference > >> > Exclusive live event will cover all the ways today's security and > >> > threat landscape has changed and how IT managers can respond. > >> Discussions > >> > will include endpoint security, mobile security and the latest in > >> malware > >> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > > >> > >> > ------------------------------------------------------------------------------ > >> Live Security Virtual Conference > >> Exclusive live event will cover all the ways today's security and > >> threat landscape has changed and how IT managers can respond. > Discussions > >> will include endpoint security, mobile security and the latest in > malware > >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jussi.lahtinen at ...626... Mon Jun 18 21:15:27 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 18 Jun 2012 22:15:27 +0300 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: 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 || Addr == 0) && "GlobalMapping already established!"' failed. Program received signal SIGABRT, Aborted. 0x00007ffff7130445 in __GI_raise (sig=) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) bt #0 0x00007ffff7130445 in __GI_raise (sig=) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #1 0x00007ffff7133bab in __GI_abort () at abort.c:91 #2 0x00007ffff712910e in __assert_fail_base (fmt=, assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) && \"GlobalMapping already established!\"", file=0x7fffed43c55b "ExecutionEngine.cpp", line=, function=) at assert.c:94 #3 0x00007ffff71291b2 in __GI___assert_fail ( assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) && \"GlobalMapping already established!\"", file=0x7fffed43c55b "ExecutionEngine.cpp", line=165, function=0x7fffed43d7a0 "void llvm::ExecutionEngine::addGlobalMapping(const llvm::GlobalValue*, void*)") at assert.c:103 #4 0x00007fffeca84aae in llvm::ExecutionEngine::addGlobalMapping(llvm::GlobalValue const*, void*) () from /usr/lib/libLLVM-3.2svn.so #5 0x00007fffedc85ec7 in register_global_symbol (address=0x40ebf6, value=0x8b2500, name=...) at jit_codegen.cpp:242 #6 register_global_symbol (name=..., value=0x8b2500, address=0x40ebf6) at jit_codegen.cpp:240 #7 0x00007fffedc8600e in get_global_function_real ( name=0x7fffedcb9e57 "CLASS_free", func=0x40ebf6, ret=, args=, vararg=) at jit_codegen.cpp:276 #8 0x00007fffedc8a9dc in operator() (this=) at jit_codegen.cpp:991 ---Type to continue, or q to quit--- #9 gen_if > (func=..., cond=0x8999d0, if_name=, cont_name=) at jit_codegen.cpp:562 #10 unref_object_no_nullcheck (ptr=0x898ca8) at jit_codegen.cpp:993 #11 0x00007fffedc9a44c in codegen_get_value (this=0x8abba0) at jit_codegen.cpp:1566 #12 PushPureObjectVariableExpression::codegen_get_value (this=0x8abba0) at jit_codegen.cpp:1545 #13 0x00007fffedca3f0d in SubrExpression::codegen_get_value (this=0x86a450) at jit_codegen.cpp:5898 #14 0x00007fffedc8c21d in DropExpression::codegen (this=0x86a4a0) at jit_codegen.cpp:1257 #15 0x00007fffedca6fa7 in codegen_statements () at jit_codegen.cpp:855 #16 JIT_codegen () at jit_codegen.cpp:6490 #17 0x00007fffedcadc64 in JIT_compile_and_execute () at jit_compile.cpp:119 #18 0x000000000040a2fb in EXEC_jit_function_loop () at gbx_exec.c:871 #19 0x000000000040ab22 in EXEC_function_real () at gbx_exec.c:862 #20 0x000000000041e86d in raise_event (observer=, object=, func_id=, nparam=) at gbx_api.c:711 #21 0x000000000041efa6 in GB_Raise (object=0x8b95c8, event_id=16, nparam=0) at gbx_api.c:842 #22 0x00007ffff5fce3d3 in gb_raise_button_Click (sender=) Jussi On 18 June 2012 22:08, Emil Lenngren 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 > > > 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::addGlobalMapping(const llvm::GlobalValue*, > void*): > > > Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping 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 wrote: > > > > > >> It should be fixed in revision #4843! > > >> > > >> /Emil > > >> > > >> 2012/6/17 Jussi Lahtinen > > >> > > >> > Yes, it really works now. And I found a lot of errors by me. > > >> > > > >> > But for some reason JIT raises compare method when it shouldn't, > > >> > and when I tried to isolate the problem I got crash (signal 11). > > >> > This seems not to be related to compare method, so just ignore name > of > > >> the > > >> > attached project. > > >> > I will look it more closely when this is fixed. > > >> > > > >> > Jussi > > >> > > > >> > > > >> > > > >> > > > >> > On 17 June 2012 19:01, Emil Lenngren > wrote: > > >> > > > >> > > Yes, it works now :) > > >> > > > > >> > > 2012/6/17 Beno?t Minisini > > >> > > > > >> > > > Le 17/06/2012 02:54, Jussi Lahtinen a ?crit : > > >> > > > > Yeah, terminal gives other position... > > >> > > > > With my actual project, I got error message; wanted string, > got > > >> > > > > blaablaaClass instead. > > >> > > > > And that error message comes from function (from other module > > >> without > > >> > > > Fast) > > >> > > > > which takes two objects are parameters. > > >> > > > > > > >> > > > > So either terminal isn't showing the real stack, or there is > > >> > something > > >> > > > else > > >> > > > > wrong... > > >> > > > > > > >> > > > > But my time is up, I'll see it tomorrow (with latest > revision). > > >> > > > > > > >> > > > > Jussi > > >> > > > > > > >> > > > > > > >> > > > > > >> > > > The incorrect line number problem, as reported by the debugger > > (and > > >> not > > >> > > > when you run the program normally!), should be fixed in revision > > >> #4841. > > >> > > > > > >> > > > Regards, > > >> > > > > > >> > > > -- > > >> > > > Beno?t Minisini > > >> > > > > > >> > > > > > >> > > > > > >> > > > > >> > > > >> > > > ------------------------------------------------------------------------------ > > >> > > > Live Security Virtual Conference > > >> > > > Exclusive live event will cover all the ways today's security > and > > >> > > > threat landscape has changed and how IT managers can respond. > > >> > Discussions > > >> > > > will include endpoint security, mobile security and the latest > in > > >> > malware > > >> > > > threats. > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > >> > > > _______________________________________________ > > >> > > > Gambas-user mailing list > > >> > > > Gambas-user at lists.sourceforge.net > > >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > > > >> > > > > >> > > > > >> > > > >> > > > ------------------------------------------------------------------------------ > > >> > > Live Security Virtual Conference > > >> > > Exclusive live event will cover all the ways today's security and > > >> > > threat landscape has changed and how IT managers can respond. > > >> Discussions > > >> > > will include endpoint security, mobile security and the latest in > > >> malware > > >> > > threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > >> > > _______________________________________________ > > >> > > Gambas-user mailing list > > >> > > Gambas-user at lists.sourceforge.net > > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > > >> > > > >> > > > >> > > > >> > > > ------------------------------------------------------------------------------ > > >> > Live Security Virtual Conference > > >> > Exclusive live event will cover all the ways today's security and > > >> > threat landscape has changed and how IT managers can respond. > > >> Discussions > > >> > will include endpoint security, mobile security and the latest in > > >> malware > > >> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > >> > _______________________________________________ > > >> > Gambas-user mailing list > > >> > Gambas-user at lists.sourceforge.net > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > >> > > > >> > > >> > > > ------------------------------------------------------------------------------ > > >> Live Security Virtual Conference > > >> Exclusive live event will cover all the ways today's security and > > >> threat landscape has changed and how IT managers can respond. > > Discussions > > >> will include endpoint security, mobile security and the latest in > > malware > > >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > >> _______________________________________________ > > >> Gambas-user mailing list > > >> Gambas-user at lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From emil.lenngren at ...626... Mon Jun 18 21:34:58 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Mon, 18 Jun 2012 21:34:58 +0200 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: 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::addGlobalMapping(const llvm::GlobalValue*, void*): > Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping already > established!"' failed. > > Program received signal SIGABRT, Aborted. > 0x00007ffff7130445 in __GI_raise (sig=) > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. > (gdb) bt > #0 0x00007ffff7130445 in __GI_raise (sig=) > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > #1 0x00007ffff7133bab in __GI_abort () at abort.c:91 > #2 0x00007ffff712910e in __assert_fail_base (fmt=, > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) && \"GlobalMapping > already established!\"", file=0x7fffed43c55b "ExecutionEngine.cpp", > line=, function=) at assert.c:94 > #3 0x00007ffff71291b2 in __GI___assert_fail ( > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) && \"GlobalMapping > already established!\"", file=0x7fffed43c55b "ExecutionEngine.cpp", > line=165, > function=0x7fffed43d7a0 "void > llvm::ExecutionEngine::addGlobalMapping(const llvm::GlobalValue*, void*)") > at assert.c:103 > #4 0x00007fffeca84aae in > llvm::ExecutionEngine::addGlobalMapping(llvm::GlobalValue const*, void*) () > from /usr/lib/libLLVM-3.2svn.so > #5 0x00007fffedc85ec7 in register_global_symbol (address=0x40ebf6, > value=0x8b2500, name=...) at jit_codegen.cpp:242 > #6 register_global_symbol (name=..., value=0x8b2500, address=0x40ebf6) > at jit_codegen.cpp:240 > #7 0x00007fffedc8600e in get_global_function_real ( > name=0x7fffedcb9e57 "CLASS_free", func=0x40ebf6, ret=, > args=, vararg=) at jit_codegen.cpp:276 > #8 0x00007fffedc8a9dc in operator() (this=) > at jit_codegen.cpp:991 > ---Type to continue, or q to quit--- > #9 gen_if > (func=..., > cond=0x8999d0, if_name=, cont_name=) > at jit_codegen.cpp:562 > #10 unref_object_no_nullcheck (ptr=0x898ca8) at jit_codegen.cpp:993 > #11 0x00007fffedc9a44c in codegen_get_value (this=0x8abba0) > at jit_codegen.cpp:1566 > #12 PushPureObjectVariableExpression::codegen_get_value (this=0x8abba0) > at jit_codegen.cpp:1545 > #13 0x00007fffedca3f0d in SubrExpression::codegen_get_value (this=0x86a450) > at jit_codegen.cpp:5898 > #14 0x00007fffedc8c21d in DropExpression::codegen (this=0x86a4a0) > at jit_codegen.cpp:1257 > #15 0x00007fffedca6fa7 in codegen_statements () at jit_codegen.cpp:855 > #16 JIT_codegen () at jit_codegen.cpp:6490 > #17 0x00007fffedcadc64 in JIT_compile_and_execute () at jit_compile.cpp:119 > #18 0x000000000040a2fb in EXEC_jit_function_loop () at gbx_exec.c:871 > #19 0x000000000040ab22 in EXEC_function_real () at gbx_exec.c:862 > #20 0x000000000041e86d in raise_event (observer=, > object=, func_id=, nparam=) > at gbx_api.c:711 > #21 0x000000000041efa6 in GB_Raise (object=0x8b95c8, event_id=16, nparam=0) > at gbx_api.c:842 > #22 0x00007ffff5fce3d3 in gb_raise_button_Click (sender=) > > Jussi > > > > On 18 June 2012 22:08, Emil Lenngren 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 > > > > > 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::addGlobalMapping(const llvm::GlobalValue*, > > void*): > > > > Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping 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 > wrote: > > > > > > > >> It should be fixed in revision #4843! > > > >> > > > >> /Emil > > > >> > > > >> 2012/6/17 Jussi Lahtinen > > > >> > > > >> > Yes, it really works now. And I found a lot of errors by me. > > > >> > > > > >> > But for some reason JIT raises compare method when it shouldn't, > > > >> > and when I tried to isolate the problem I got crash (signal 11). > > > >> > This seems not to be related to compare method, so just ignore > name > > of > > > >> the > > > >> > attached project. > > > >> > I will look it more closely when this is fixed. > > > >> > > > > >> > Jussi > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > On 17 June 2012 19:01, Emil Lenngren > > wrote: > > > >> > > > > >> > > Yes, it works now :) > > > >> > > > > > >> > > 2012/6/17 Beno?t Minisini > > > >> > > > > > >> > > > Le 17/06/2012 02:54, Jussi Lahtinen a ?crit : > > > >> > > > > Yeah, terminal gives other position... > > > >> > > > > With my actual project, I got error message; wanted string, > > got > > > >> > > > > blaablaaClass instead. > > > >> > > > > And that error message comes from function (from other > module > > > >> without > > > >> > > > Fast) > > > >> > > > > which takes two objects are parameters. > > > >> > > > > > > > >> > > > > So either terminal isn't showing the real stack, or there is > > > >> > something > > > >> > > > else > > > >> > > > > wrong... > > > >> > > > > > > > >> > > > > But my time is up, I'll see it tomorrow (with latest > > revision). > > > >> > > > > > > > >> > > > > Jussi > > > >> > > > > > > > >> > > > > > > > >> > > > > > > >> > > > The incorrect line number problem, as reported by the debugger > > > (and > > > >> not > > > >> > > > when you run the program normally!), should be fixed in > revision > > > >> #4841. > > > >> > > > > > > >> > > > Regards, > > > >> > > > > > > >> > > > -- > > > >> > > > Beno?t Minisini > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > > > > ------------------------------------------------------------------------------ > > > >> > > > Live Security Virtual Conference > > > >> > > > Exclusive live event will cover all the ways today's security > > and > > > >> > > > threat landscape has changed and how IT managers can respond. > > > >> > Discussions > > > >> > > > will include endpoint security, mobile security and the latest > > in > > > >> > malware > > > >> > > > threats. > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > >> > > > _______________________________________________ > > > >> > > > Gambas-user mailing list > > > >> > > > Gambas-user at lists.sourceforge.net > > > >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >> > > > > > > >> > > > > > >> > > > > > >> > > > > >> > > > > > > ------------------------------------------------------------------------------ > > > >> > > Live Security Virtual Conference > > > >> > > Exclusive live event will cover all the ways today's security > and > > > >> > > threat landscape has changed and how IT managers can respond. > > > >> Discussions > > > >> > > will include endpoint security, mobile security and the latest > in > > > >> malware > > > >> > > threats. > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > >> > > _______________________________________________ > > > >> > > Gambas-user mailing list > > > >> > > Gambas-user at lists.sourceforge.net > > > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >> > > > > > >> > > > > >> > > > > >> > > > > >> > > > > > > ------------------------------------------------------------------------------ > > > >> > Live Security Virtual Conference > > > >> > Exclusive live event will cover all the ways today's security and > > > >> > threat landscape has changed and how IT managers can respond. > > > >> Discussions > > > >> > will include endpoint security, mobile security and the latest in > > > >> malware > > > >> > threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > >> > _______________________________________________ > > > >> > Gambas-user mailing list > > > >> > Gambas-user at lists.sourceforge.net > > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >> > > > > >> > > > > >> > > > >> > > > > > > ------------------------------------------------------------------------------ > > > >> Live Security Virtual Conference > > > >> Exclusive live event will cover all the ways today's security and > > > >> threat landscape has changed and how IT managers can respond. > > > Discussions > > > >> will include endpoint security, mobile security and the latest in > > > malware > > > >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > >> _______________________________________________ > > > >> Gambas-user mailing list > > > >> Gambas-user at lists.sourceforge.net > > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >> > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Live Security Virtual Conference > > > Exclusive live event will cover all the ways today's security and > > > threat landscape has changed and how IT managers can respond. > Discussions > > > will include endpoint security, mobile security and the latest in > malware > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Tue Jun 19 02:14:18 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 19 Jun 2012 00:14:18 +0000 Subject: [Gambas-user] Issue 258 in gambas: Expander and slider combo issues In-Reply-To: <0-6813199134517018827-1049706297444050431-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-1049706297444050431-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-1049706297444050431-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-TRUNK Comment #1 on issue 258 by benoit.m... at ...626...: Expander and slider combo issues http://code.google.com/p/gambas/issues/detail?id=258 Can you provide me a screenshot of your problem? From gambas at ...2524... Tue Jun 19 02:17:49 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 19 Jun 2012 00:17:49 +0000 Subject: [Gambas-user] Issue 257 in gambas: Database password retrieval error and abort in IDE In-Reply-To: <1-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...> <0-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-TRUNK Comment #2 on issue 257 by benoit.m... at ...626...: 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 ? From gambas at ...2524... Tue Jun 19 11:07:03 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 19 Jun 2012 09:07:03 +0000 Subject: [Gambas-user] Issue 258 in gambas: Expander and slider combo issues In-Reply-To: <1-6813199134517018827-1049706297444050431-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-1049706297444050431-gambas=googlecode.com@...2524...> <0-6813199134517018827-1049706297444050431-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-1049706297444050431-gambas=googlecode.com@...2524...> Comment #2 on issue 258 by r... at ...1740...: Expander and slider combo issues http://code.google.com/p/gambas/issues/detail?id=258 See attached file, the area in which I can control the slider instead of the expander, is only the 2-3 mm's between the red arrows...quite unworkable, I know it's a ubuntu issue, to make window drag handles so small, but it's the default theme and not workable. So please don let the expander overlap the slider. Attachments: expander.jpg 264 KB From gambas at ...2524... Tue Jun 19 11:09:03 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 19 Jun 2012 09:09:03 +0000 Subject: [Gambas-user] Issue 257 in gambas: Database password retrieval error and abort in IDE In-Reply-To: <2-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...> <0-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...> Comment #3 on issue 257 by r... at ...1740...: Database password retrieval error and abort in IDE http://code.google.com/p/gambas/issues/detail?id=257 I'm running Ubuntu 11.04, so I'm still at the default Gnome 2.32.1 I know I must upgrade but I have a hard time getting to install Gambas2 then. From gambas at ...2524... Tue Jun 19 11:20:35 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 19 Jun 2012 09:20:35 +0000 Subject: [Gambas-user] Issue 258 in gambas: Expander and slider combo issues In-Reply-To: <2-6813199134517018827-1049706297444050431-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-1049706297444050431-gambas=googlecode.com@...2524...> <0-6813199134517018827-1049706297444050431-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-1049706297444050431-gambas=googlecode.com@...2524...> Updates: Status: Accepted Comment #3 on issue 258 by benoit.m... at ...626...: Expander and slider combo issues http://code.google.com/p/gambas/issues/detail?id=258 OK, I see. The SidePanel handle width is proportional to the font size. As you use a big font, it covers almost entirely the scrollbar. I will give the SidePanel handle a fixed width, and later I will add an option in the IDE to let choose between transparent or opaque SidePanel (like before) From gambas at ...2524... Tue Jun 19 11:26:07 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 19 Jun 2012 09:26:07 +0000 Subject: [Gambas-user] Issue 257 in gambas: Database password retrieval error and abort in IDE In-Reply-To: <3-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...> <0-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...> Comment #4 on issue 257 by benoit.m... at ...626...: Database password retrieval error and abort in IDE http://code.google.com/p/gambas/issues/detail?id=257 So that's not that (gnome keyring is a Gnome2 thing). Do you see any reason why your gnome keyring cannot be accessed? From sundar_ima at ...251... Tue Jun 19 16:41:19 2012 From: sundar_ima at ...251... (sundar j) Date: 19 Jun 2012 14:41:19 -0000 Subject: [Gambas-user] =?utf-8?q?Package_creation__failed_to_include_gamba?= =?utf-8?q?s_dependencies=2E?= Message-ID: <20120619144119.19453.qmail@...2871...> Some how i managed to complete my first project in gambas. Now I am trying to build a .deb package for Ubuntu but struck there. As indicated by Google this question has been asked many time in various forum and threads and (they) found solution. However the solution did not work for me. The question is, how do you make installation package from gambas which can run on other system which does not have gambas installed? I tried to make the .deb package from kubuntu 12.04 with gambas 3.1 installed. The result says success after creating package but when i tried to install it on ubuntu 12.04 it failed with following dependency errors:- sundar at ...2870...:~$ sudo dpkg -i multibootusb_4.7-1_all.deb [sudo] password for sundar: Selecting previously unselected package multibootusb. (Reading database ... 218672 files and directories currently installed.) Unpacking multibootusb (from multibootusb_4.7-1_all.deb) ... dpkg: dependency problems prevent configuration of multibootusb: multibootusb depends on gambas3-runtime (>= 3.0.90); however: Package gambas3-runtime is not installed. multibootusb depends on gambas3-runtime (= 3.0.90); however: Package gambas3-gb-image is not installed. multibootusb depends on gambas3-gb-image (= 3.0.90); however: Package gambas3-gb-gui is not installed. multibootusb depends on gambas3-gb-gui (= 3.0.90); however: Package gambas3-gb-form is not installed. multibootusb depends on gambas3-gb-form (= 0.9.23); however: Package pmount is not installed. multibootusb depends on fuseiso (>= 20070702); however: Package fuseiso is not installed. dpkg: error processing multibootusb (--install): dependency problems - leaving unconfigured Processing triggers for desktop-file-utils ... Processing triggers for bamfdaemon ... Rebuilding /usr/share/applications/bamf.index... Processing triggers for gnome-menus ... Errors were encountered while processing: multibootusb So does gambas include (gambas) dependency packages like gambas3-runtime when we select installation package from IDE? If not what is the solution to it? Why cant there be an official guide/tutorial on creating packages from IDE? I also found another strange issue with the created package. I installed created package on Kubuntu with out dependency error. But when i tried to run from menu it shows error message "This application has raised an unexpected error and must abort" [45] File or directory does not exist. Fmain._new.10 However it works when i run executable from application directory. Regards, Lt J Sundar From jussi.lahtinen at ...626... Tue Jun 19 20:02:53 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 19 Jun 2012 21:02:53 +0300 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: Yes, it works now! Jussi On 18 June 2012 22:34, Emil Lenngren wrote: > 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::addGlobalMapping(const llvm::GlobalValue*, void*): > > Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping already > > established!"' failed. > > > > Program received signal SIGABRT, Aborted. > > 0x00007ffff7130445 in __GI_raise (sig=) > > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > > 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. > > (gdb) bt > > #0 0x00007ffff7130445 in __GI_raise (sig=) > > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > > #1 0x00007ffff7133bab in __GI_abort () at abort.c:91 > > #2 0x00007ffff712910e in __assert_fail_base (fmt=, > > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) && > \"GlobalMapping > > already established!\"", file=0x7fffed43c55b "ExecutionEngine.cpp", > > line=, function=) at assert.c:94 > > #3 0x00007ffff71291b2 in __GI___assert_fail ( > > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) && > \"GlobalMapping > > already established!\"", file=0x7fffed43c55b "ExecutionEngine.cpp", > > line=165, > > function=0x7fffed43d7a0 "void > > llvm::ExecutionEngine::addGlobalMapping(const llvm::GlobalValue*, > void*)") > > at assert.c:103 > > #4 0x00007fffeca84aae in > > llvm::ExecutionEngine::addGlobalMapping(llvm::GlobalValue const*, void*) > () > > from /usr/lib/libLLVM-3.2svn.so > > #5 0x00007fffedc85ec7 in register_global_symbol (address=0x40ebf6, > > value=0x8b2500, name=...) at jit_codegen.cpp:242 > > #6 register_global_symbol (name=..., value=0x8b2500, address=0x40ebf6) > > at jit_codegen.cpp:240 > > #7 0x00007fffedc8600e in get_global_function_real ( > > name=0x7fffedcb9e57 "CLASS_free", func=0x40ebf6, ret=, > > args=, vararg=) at jit_codegen.cpp:276 > > #8 0x00007fffedc8a9dc in operator() (this=) > > at jit_codegen.cpp:991 > > ---Type to continue, or q to quit--- > > #9 gen_if > > (func=..., > > cond=0x8999d0, if_name=, cont_name=) > > at jit_codegen.cpp:562 > > #10 unref_object_no_nullcheck (ptr=0x898ca8) at jit_codegen.cpp:993 > > #11 0x00007fffedc9a44c in codegen_get_value (this=0x8abba0) > > at jit_codegen.cpp:1566 > > #12 PushPureObjectVariableExpression::codegen_get_value (this=0x8abba0) > > at jit_codegen.cpp:1545 > > #13 0x00007fffedca3f0d in SubrExpression::codegen_get_value > (this=0x86a450) > > at jit_codegen.cpp:5898 > > #14 0x00007fffedc8c21d in DropExpression::codegen (this=0x86a4a0) > > at jit_codegen.cpp:1257 > > #15 0x00007fffedca6fa7 in codegen_statements () at jit_codegen.cpp:855 > > #16 JIT_codegen () at jit_codegen.cpp:6490 > > #17 0x00007fffedcadc64 in JIT_compile_and_execute () at > jit_compile.cpp:119 > > #18 0x000000000040a2fb in EXEC_jit_function_loop () at gbx_exec.c:871 > > #19 0x000000000040ab22 in EXEC_function_real () at gbx_exec.c:862 > > #20 0x000000000041e86d in raise_event (observer=, > > object=, func_id=, nparam= out>) > > at gbx_api.c:711 > > #21 0x000000000041efa6 in GB_Raise (object=0x8b95c8, event_id=16, > nparam=0) > > at gbx_api.c:842 > > #22 0x00007ffff5fce3d3 in gb_raise_button_Click (sender=) > > > > Jussi > > > > > > > > On 18 June 2012 22:08, Emil Lenngren 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 > > > > > > > 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::addGlobalMapping(const llvm::GlobalValue*, > > > void*): > > > > > Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping 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 > > wrote: > > > > > > > > > >> It should be fixed in revision #4843! > > > > >> > > > > >> /Emil > > > > >> > > > > >> 2012/6/17 Jussi Lahtinen > > > > >> > > > > >> > Yes, it really works now. And I found a lot of errors by me. > > > > >> > > > > > >> > But for some reason JIT raises compare method when it shouldn't, > > > > >> > and when I tried to isolate the problem I got crash (signal 11). > > > > >> > This seems not to be related to compare method, so just ignore > > name > > > of > > > > >> the > > > > >> > attached project. > > > > >> > I will look it more closely when this is fixed. > > > > >> > > > > > >> > Jussi > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > On 17 June 2012 19:01, Emil Lenngren > > > wrote: > > > > >> > > > > > >> > > Yes, it works now :) > > > > >> > > > > > > >> > > 2012/6/17 Beno?t Minisini > > > > >> > > > > > > >> > > > Le 17/06/2012 02:54, Jussi Lahtinen a ?crit : > > > > >> > > > > Yeah, terminal gives other position... > > > > >> > > > > With my actual project, I got error message; wanted > string, > > > got > > > > >> > > > > blaablaaClass instead. > > > > >> > > > > And that error message comes from function (from other > > module > > > > >> without > > > > >> > > > Fast) > > > > >> > > > > which takes two objects are parameters. > > > > >> > > > > > > > > >> > > > > So either terminal isn't showing the real stack, or there > is > > > > >> > something > > > > >> > > > else > > > > >> > > > > wrong... > > > > >> > > > > > > > > >> > > > > But my time is up, I'll see it tomorrow (with latest > > > revision). > > > > >> > > > > > > > > >> > > > > Jussi > > > > >> > > > > > > > > >> > > > > > > > > >> > > > > > > > >> > > > The incorrect line number problem, as reported by the > debugger > > > > (and > > > > >> not > > > > >> > > > when you run the program normally!), should be fixed in > > revision > > > > >> #4841. > > > > >> > > > > > > > >> > > > Regards, > > > > >> > > > > > > > >> > > > -- > > > > >> > > > Beno?t Minisini > > > > >> > > > > > > > >> > > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > > > > > > > ------------------------------------------------------------------------------ > > > > >> > > > Live Security Virtual Conference > > > > >> > > > Exclusive live event will cover all the ways today's > security > > > and > > > > >> > > > threat landscape has changed and how IT managers can > respond. > > > > >> > Discussions > > > > >> > > > will include endpoint security, mobile security and the > latest > > > in > > > > >> > malware > > > > >> > > > threats. > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > >> > > > _______________________________________________ > > > > >> > > > Gambas-user mailing list > > > > >> > > > Gambas-user at lists.sourceforge.net > > > > >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > >> > > > > > > > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > > > > > > > ------------------------------------------------------------------------------ > > > > >> > > Live Security Virtual Conference > > > > >> > > Exclusive live event will cover all the ways today's security > > and > > > > >> > > threat landscape has changed and how IT managers can respond. > > > > >> Discussions > > > > >> > > will include endpoint security, mobile security and the latest > > in > > > > >> malware > > > > >> > > threats. > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > >> > > _______________________________________________ > > > > >> > > Gambas-user mailing list > > > > >> > > Gambas-user at lists.sourceforge.net > > > > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > >> > > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > > > > > > ------------------------------------------------------------------------------ > > > > >> > Live Security Virtual Conference > > > > >> > Exclusive live event will cover all the ways today's security > and > > > > >> > threat landscape has changed and how IT managers can respond. > > > > >> Discussions > > > > >> > will include endpoint security, mobile security and the latest > in > > > > >> malware > > > > >> > threats. > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > >> > _______________________________________________ > > > > >> > Gambas-user mailing list > > > > >> > Gambas-user at lists.sourceforge.net > > > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > >> > > > > > >> > > > > > >> > > > > >> > > > > > > > > > > ------------------------------------------------------------------------------ > > > > >> Live Security Virtual Conference > > > > >> Exclusive live event will cover all the ways today's security and > > > > >> threat landscape has changed and how IT managers can respond. > > > > Discussions > > > > >> will include endpoint security, mobile security and the latest in > > > > malware > > > > >> threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > >> _______________________________________________ > > > > >> Gambas-user mailing list > > > > >> Gambas-user at lists.sourceforge.net > > > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Live Security Virtual Conference > > > > Exclusive live event will cover all the ways today's security and > > > > threat landscape has changed and how IT managers can respond. > > Discussions > > > > will include endpoint security, mobile security and the latest in > > malware > > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Live Security Virtual Conference > > > Exclusive live event will cover all the ways today's security and > > > threat landscape has changed and how IT managers can respond. > Discussions > > > will include endpoint security, mobile security and the latest in > malware > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Tue Jun 19 20:38:02 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 19 Jun 2012 21:38:02 +0300 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: More bugs... Make shared library (just dummy example [or just use binary that is included with project source]); #include int yEta(int x1, int y1, int x2, int y2) {return (int) hypot(x1-x2,y1-y2);} Then run the attached project. With JIT, number of arguments is counted wrong. Jussi On 19 June 2012 21:02, Jussi Lahtinen wrote: > Yes, it works now! > > Jussi > > > > > On 18 June 2012 22:34, Emil Lenngren wrote: > >> 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::addGlobalMapping(const llvm::GlobalValue*, >> void*): >> > Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping already >> > established!"' failed. >> > >> > Program received signal SIGABRT, Aborted. >> > 0x00007ffff7130445 in __GI_raise (sig=) >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 >> > 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or >> directory. >> > (gdb) bt >> > #0 0x00007ffff7130445 in __GI_raise (sig=) >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 >> > #1 0x00007ffff7133bab in __GI_abort () at abort.c:91 >> > #2 0x00007ffff712910e in __assert_fail_base (fmt=, >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) && >> \"GlobalMapping >> > already established!\"", file=0x7fffed43c55b "ExecutionEngine.cpp", >> > line=, function=) at assert.c:94 >> > #3 0x00007ffff71291b2 in __GI___assert_fail ( >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) && >> \"GlobalMapping >> > already established!\"", file=0x7fffed43c55b "ExecutionEngine.cpp", >> > line=165, >> > function=0x7fffed43d7a0 "void >> > llvm::ExecutionEngine::addGlobalMapping(const llvm::GlobalValue*, >> void*)") >> > at assert.c:103 >> > #4 0x00007fffeca84aae in >> > llvm::ExecutionEngine::addGlobalMapping(llvm::GlobalValue const*, >> void*) () >> > from /usr/lib/libLLVM-3.2svn.so >> > #5 0x00007fffedc85ec7 in register_global_symbol (address=0x40ebf6, >> > value=0x8b2500, name=...) at jit_codegen.cpp:242 >> > #6 register_global_symbol (name=..., value=0x8b2500, address=0x40ebf6) >> > at jit_codegen.cpp:240 >> > #7 0x00007fffedc8600e in get_global_function_real ( >> > name=0x7fffedcb9e57 "CLASS_free", func=0x40ebf6, ret=, >> > args=, vararg=) at jit_codegen.cpp:276 >> > #8 0x00007fffedc8a9dc in operator() (this=) >> > at jit_codegen.cpp:991 >> > ---Type to continue, or q to quit--- >> > #9 gen_if > >> (func=..., >> > cond=0x8999d0, if_name=, cont_name=) >> > at jit_codegen.cpp:562 >> > #10 unref_object_no_nullcheck (ptr=0x898ca8) at jit_codegen.cpp:993 >> > #11 0x00007fffedc9a44c in codegen_get_value (this=0x8abba0) >> > at jit_codegen.cpp:1566 >> > #12 PushPureObjectVariableExpression::codegen_get_value (this=0x8abba0) >> > at jit_codegen.cpp:1545 >> > #13 0x00007fffedca3f0d in SubrExpression::codegen_get_value >> (this=0x86a450) >> > at jit_codegen.cpp:5898 >> > #14 0x00007fffedc8c21d in DropExpression::codegen (this=0x86a4a0) >> > at jit_codegen.cpp:1257 >> > #15 0x00007fffedca6fa7 in codegen_statements () at jit_codegen.cpp:855 >> > #16 JIT_codegen () at jit_codegen.cpp:6490 >> > #17 0x00007fffedcadc64 in JIT_compile_and_execute () at >> jit_compile.cpp:119 >> > #18 0x000000000040a2fb in EXEC_jit_function_loop () at gbx_exec.c:871 >> > #19 0x000000000040ab22 in EXEC_function_real () at gbx_exec.c:862 >> > #20 0x000000000041e86d in raise_event (observer=, >> > object=, func_id=, nparam=> out>) >> > at gbx_api.c:711 >> > #21 0x000000000041efa6 in GB_Raise (object=0x8b95c8, event_id=16, >> nparam=0) >> > at gbx_api.c:842 >> > #22 0x00007ffff5fce3d3 in gb_raise_button_Click (sender=) >> > >> > Jussi >> > >> > >> > >> > On 18 June 2012 22:08, Emil Lenngren 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 >> > > >> > > > 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::addGlobalMapping(const llvm::GlobalValue*, >> > > void*): >> > > > > Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping 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 >> > wrote: >> > > > > >> > > > >> It should be fixed in revision #4843! >> > > > >> >> > > > >> /Emil >> > > > >> >> > > > >> 2012/6/17 Jussi Lahtinen >> > > > >> >> > > > >> > Yes, it really works now. And I found a lot of errors by me. >> > > > >> > >> > > > >> > But for some reason JIT raises compare method when it >> shouldn't, >> > > > >> > and when I tried to isolate the problem I got crash (signal >> 11). >> > > > >> > This seems not to be related to compare method, so just ignore >> > name >> > > of >> > > > >> the >> > > > >> > attached project. >> > > > >> > I will look it more closely when this is fixed. >> > > > >> > >> > > > >> > Jussi >> > > > >> > >> > > > >> > >> > > > >> > >> > > > >> > >> > > > >> > On 17 June 2012 19:01, Emil Lenngren >> > > wrote: >> > > > >> > >> > > > >> > > Yes, it works now :) >> > > > >> > > >> > > > >> > > 2012/6/17 Beno?t Minisini >> > > > >> > > >> > > > >> > > > Le 17/06/2012 02:54, Jussi Lahtinen a ?crit : >> > > > >> > > > > Yeah, terminal gives other position... >> > > > >> > > > > With my actual project, I got error message; wanted >> string, >> > > got >> > > > >> > > > > blaablaaClass instead. >> > > > >> > > > > And that error message comes from function (from other >> > module >> > > > >> without >> > > > >> > > > Fast) >> > > > >> > > > > which takes two objects are parameters. >> > > > >> > > > > >> > > > >> > > > > So either terminal isn't showing the real stack, or >> there is >> > > > >> > something >> > > > >> > > > else >> > > > >> > > > > wrong... >> > > > >> > > > > >> > > > >> > > > > But my time is up, I'll see it tomorrow (with latest >> > > revision). >> > > > >> > > > > >> > > > >> > > > > Jussi >> > > > >> > > > > >> > > > >> > > > > >> > > > >> > > > >> > > > >> > > > The incorrect line number problem, as reported by the >> debugger >> > > > (and >> > > > >> not >> > > > >> > > > when you run the program normally!), should be fixed in >> > revision >> > > > >> #4841. >> > > > >> > > > >> > > > >> > > > Regards, >> > > > >> > > > >> > > > >> > > > -- >> > > > >> > > > Beno?t Minisini >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > >> > > > >> > >> > > > >> >> > > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > > >> > > > Live Security Virtual Conference >> > > > >> > > > Exclusive live event will cover all the ways today's >> security >> > > and >> > > > >> > > > threat landscape has changed and how IT managers can >> respond. >> > > > >> > Discussions >> > > > >> > > > will include endpoint security, mobile security and the >> latest >> > > in >> > > > >> > malware >> > > > >> > > > threats. >> > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > > >> > > > _______________________________________________ >> > > > >> > > > Gambas-user mailing list >> > > > >> > > > Gambas-user at lists.sourceforge.net >> > > > >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > >> > > > >> > > > >> > > >> > > > >> > > >> > > > >> > >> > > > >> >> > > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > > >> > > Live Security Virtual Conference >> > > > >> > > Exclusive live event will cover all the ways today's security >> > and >> > > > >> > > threat landscape has changed and how IT managers can respond. >> > > > >> Discussions >> > > > >> > > will include endpoint security, mobile security and the >> latest >> > in >> > > > >> malware >> > > > >> > > threats. >> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > > >> > > _______________________________________________ >> > > > >> > > Gambas-user mailing list >> > > > >> > > Gambas-user at lists.sourceforge.net >> > > > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > >> > > >> > > > >> > >> > > > >> > >> > > > >> > >> > > > >> >> > > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > > >> > Live Security Virtual Conference >> > > > >> > Exclusive live event will cover all the ways today's security >> and >> > > > >> > threat landscape has changed and how IT managers can respond. >> > > > >> Discussions >> > > > >> > will include endpoint security, mobile security and the latest >> in >> > > > >> malware >> > > > >> > threats. >> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > > >> > _______________________________________________ >> > > > >> > Gambas-user mailing list >> > > > >> > Gambas-user at lists.sourceforge.net >> > > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > >> > >> > > > >> > >> > > > >> >> > > > >> >> > > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > > >> Live Security Virtual Conference >> > > > >> Exclusive live event will cover all the ways today's security and >> > > > >> threat landscape has changed and how IT managers can respond. >> > > > Discussions >> > > > >> will include endpoint security, mobile security and the latest in >> > > > malware >> > > > >> threats. >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > > >> _______________________________________________ >> > > > >> Gambas-user mailing list >> > > > >> Gambas-user at lists.sourceforge.net >> > > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > >> >> > > > > >> > > > > >> > > > >> > > > >> > > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > > Live Security Virtual Conference >> > > > Exclusive live event will cover all the ways today's security and >> > > > threat landscape has changed and how IT managers can respond. >> > Discussions >> > > > will include endpoint security, mobile security and the latest in >> > malware >> > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > > _______________________________________________ >> > > > Gambas-user mailing list >> > > > Gambas-user at lists.sourceforge.net >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > >> > > > >> > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > Live Security Virtual Conference >> > > Exclusive live event will cover all the ways today's security and >> > > threat landscape has changed and how IT managers can respond. >> Discussions >> > > will include endpoint security, mobile security and the latest in >> malware >> > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > _______________________________________________ >> > > Gambas-user mailing list >> > > Gambas-user at lists.sourceforge.net >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > >> > >> > >> ------------------------------------------------------------------------------ >> > Live Security Virtual Conference >> > Exclusive live event will cover all the ways today's security and >> > threat landscape has changed and how IT managers can respond. >> Discussions >> > will include endpoint security, mobile security and the latest in >> malware >> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > -------------- next part -------------- A non-text attachment was scrubbed... Name: JITBug-0.0.4.tar.gz Type: application/x-gzip Size: 8081 bytes Desc: not available URL: From emil.lenngren at ...626... Tue Jun 19 20:58:35 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Tue, 19 Jun 2012 20:58:35 +0200 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: 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 > More bugs... > > Make shared library (just dummy example [or just use binary that is > included with project source]); > > #include > > int yEta(int x1, int y1, int x2, int y2) > {return (int) hypot(x1-x2,y1-y2);} > > > Then run the attached project. > With JIT, number of arguments is counted wrong. > > > Jussi > > > > > > > > > On 19 June 2012 21:02, Jussi Lahtinen wrote: > > > Yes, it works now! > > > > Jussi > > > > > > > > > > On 18 June 2012 22:34, Emil Lenngren wrote: > > > >> 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::addGlobalMapping(const llvm::GlobalValue*, > >> void*): > >> > Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping already > >> > established!"' failed. > >> > > >> > Program received signal SIGABRT, Aborted. > >> > 0x00007ffff7130445 in __GI_raise (sig=) > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > >> > 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or > >> directory. > >> > (gdb) bt > >> > #0 0x00007ffff7130445 in __GI_raise (sig=) > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > >> > #1 0x00007ffff7133bab in __GI_abort () at abort.c:91 > >> > #2 0x00007ffff712910e in __assert_fail_base (fmt=, > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) && > >> \"GlobalMapping > >> > already established!\"", file=0x7fffed43c55b "ExecutionEngine.cpp", > >> > line=, function=) at assert.c:94 > >> > #3 0x00007ffff71291b2 in __GI___assert_fail ( > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) && > >> \"GlobalMapping > >> > already established!\"", file=0x7fffed43c55b "ExecutionEngine.cpp", > >> > line=165, > >> > function=0x7fffed43d7a0 "void > >> > llvm::ExecutionEngine::addGlobalMapping(const llvm::GlobalValue*, > >> void*)") > >> > at assert.c:103 > >> > #4 0x00007fffeca84aae in > >> > llvm::ExecutionEngine::addGlobalMapping(llvm::GlobalValue const*, > >> void*) () > >> > from /usr/lib/libLLVM-3.2svn.so > >> > #5 0x00007fffedc85ec7 in register_global_symbol (address=0x40ebf6, > >> > value=0x8b2500, name=...) at jit_codegen.cpp:242 > >> > #6 register_global_symbol (name=..., value=0x8b2500, > address=0x40ebf6) > >> > at jit_codegen.cpp:240 > >> > #7 0x00007fffedc8600e in get_global_function_real ( > >> > name=0x7fffedcb9e57 "CLASS_free", func=0x40ebf6, ret= out>, > >> > args=, vararg=) at > jit_codegen.cpp:276 > >> > #8 0x00007fffedc8a9dc in operator() (this=) > >> > at jit_codegen.cpp:991 > >> > ---Type to continue, or q to quit--- > >> > #9 gen_if > > >> (func=..., > >> > cond=0x8999d0, if_name=, cont_name=) > >> > at jit_codegen.cpp:562 > >> > #10 unref_object_no_nullcheck (ptr=0x898ca8) at jit_codegen.cpp:993 > >> > #11 0x00007fffedc9a44c in codegen_get_value (this=0x8abba0) > >> > at jit_codegen.cpp:1566 > >> > #12 PushPureObjectVariableExpression::codegen_get_value > (this=0x8abba0) > >> > at jit_codegen.cpp:1545 > >> > #13 0x00007fffedca3f0d in SubrExpression::codegen_get_value > >> (this=0x86a450) > >> > at jit_codegen.cpp:5898 > >> > #14 0x00007fffedc8c21d in DropExpression::codegen (this=0x86a4a0) > >> > at jit_codegen.cpp:1257 > >> > #15 0x00007fffedca6fa7 in codegen_statements () at jit_codegen.cpp:855 > >> > #16 JIT_codegen () at jit_codegen.cpp:6490 > >> > #17 0x00007fffedcadc64 in JIT_compile_and_execute () at > >> jit_compile.cpp:119 > >> > #18 0x000000000040a2fb in EXEC_jit_function_loop () at gbx_exec.c:871 > >> > #19 0x000000000040ab22 in EXEC_function_real () at gbx_exec.c:862 > >> > #20 0x000000000041e86d in raise_event (observer=, > >> > object=, func_id=, nparam= >> out>) > >> > at gbx_api.c:711 > >> > #21 0x000000000041efa6 in GB_Raise (object=0x8b95c8, event_id=16, > >> nparam=0) > >> > at gbx_api.c:842 > >> > #22 0x00007ffff5fce3d3 in gb_raise_button_Click (sender= out>) > >> > > >> > Jussi > >> > > >> > > >> > > >> > On 18 June 2012 22:08, Emil Lenngren 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 > >> > > > >> > > > 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::addGlobalMapping(const > llvm::GlobalValue*, > >> > > void*): > >> > > > > Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping 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 > >> > wrote: > >> > > > > > >> > > > >> It should be fixed in revision #4843! > >> > > > >> > >> > > > >> /Emil > >> > > > >> > >> > > > >> 2012/6/17 Jussi Lahtinen > >> > > > >> > >> > > > >> > Yes, it really works now. And I found a lot of errors by me. > >> > > > >> > > >> > > > >> > But for some reason JIT raises compare method when it > >> shouldn't, > >> > > > >> > and when I tried to isolate the problem I got crash (signal > >> 11). > >> > > > >> > This seems not to be related to compare method, so just > ignore > >> > name > >> > > of > >> > > > >> the > >> > > > >> > attached project. > >> > > > >> > I will look it more closely when this is fixed. > >> > > > >> > > >> > > > >> > Jussi > >> > > > >> > > >> > > > >> > > >> > > > >> > > >> > > > >> > > >> > > > >> > On 17 June 2012 19:01, Emil Lenngren < > emil.lenngren at ...626...> > >> > > wrote: > >> > > > >> > > >> > > > >> > > Yes, it works now :) > >> > > > >> > > > >> > > > >> > > 2012/6/17 Beno?t Minisini > >> > > > >> > > > >> > > > >> > > > Le 17/06/2012 02:54, Jussi Lahtinen a ?crit : > >> > > > >> > > > > Yeah, terminal gives other position... > >> > > > >> > > > > With my actual project, I got error message; wanted > >> string, > >> > > got > >> > > > >> > > > > blaablaaClass instead. > >> > > > >> > > > > And that error message comes from function (from other > >> > module > >> > > > >> without > >> > > > >> > > > Fast) > >> > > > >> > > > > which takes two objects are parameters. > >> > > > >> > > > > > >> > > > >> > > > > So either terminal isn't showing the real stack, or > >> there is > >> > > > >> > something > >> > > > >> > > > else > >> > > > >> > > > > wrong... > >> > > > >> > > > > > >> > > > >> > > > > But my time is up, I'll see it tomorrow (with latest > >> > > revision). > >> > > > >> > > > > > >> > > > >> > > > > Jussi > >> > > > >> > > > > > >> > > > >> > > > > > >> > > > >> > > > > >> > > > >> > > > The incorrect line number problem, as reported by the > >> debugger > >> > > > (and > >> > > > >> not > >> > > > >> > > > when you run the program normally!), should be fixed in > >> > revision > >> > > > >> #4841. > >> > > > >> > > > > >> > > > >> > > > Regards, > >> > > > >> > > > > >> > > > >> > > > -- > >> > > > >> > > > Beno?t Minisini > >> > > > >> > > > > >> > > > >> > > > > >> > > > >> > > > > >> > > > >> > > > >> > > > >> > > >> > > > >> > >> > > > > >> > > > >> > > >> > ------------------------------------------------------------------------------ > >> > > > >> > > > Live Security Virtual Conference > >> > > > >> > > > Exclusive live event will cover all the ways today's > >> security > >> > > and > >> > > > >> > > > threat landscape has changed and how IT managers can > >> respond. > >> > > > >> > Discussions > >> > > > >> > > > will include endpoint security, mobile security and the > >> latest > >> > > in > >> > > > >> > malware > >> > > > >> > > > threats. > >> > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >> > > > >> > > > _______________________________________________ > >> > > > >> > > > Gambas-user mailing list > >> > > > >> > > > Gambas-user at lists.sourceforge.net > >> > > > >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > >> > > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > >> > > > >> > >> > > > > >> > > > >> > > >> > ------------------------------------------------------------------------------ > >> > > > >> > > Live Security Virtual Conference > >> > > > >> > > Exclusive live event will cover all the ways today's > security > >> > and > >> > > > >> > > threat landscape has changed and how IT managers can > respond. > >> > > > >> Discussions > >> > > > >> > > will include endpoint security, mobile security and the > >> latest > >> > in > >> > > > >> malware > >> > > > >> > > threats. > >> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >> > > > >> > > _______________________________________________ > >> > > > >> > > Gambas-user mailing list > >> > > > >> > > Gambas-user at lists.sourceforge.net > >> > > > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > >> > > > >> > > > >> > > >> > > > >> > > >> > > > >> > > >> > > > >> > >> > > > > >> > > > >> > > >> > ------------------------------------------------------------------------------ > >> > > > >> > Live Security Virtual Conference > >> > > > >> > Exclusive live event will cover all the ways today's security > >> and > >> > > > >> > threat landscape has changed and how IT managers can respond. > >> > > > >> Discussions > >> > > > >> > will include endpoint security, mobile security and the > latest > >> in > >> > > > >> malware > >> > > > >> > threats. > >> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >> > > > >> > _______________________________________________ > >> > > > >> > Gambas-user mailing list > >> > > > >> > Gambas-user at lists.sourceforge.net > >> > > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > >> > > >> > > > >> > > >> > > > >> > >> > > > >> > >> > > > > >> > > > >> > > >> > ------------------------------------------------------------------------------ > >> > > > >> Live Security Virtual Conference > >> > > > >> Exclusive live event will cover all the ways today's security > and > >> > > > >> threat landscape has changed and how IT managers can respond. > >> > > > Discussions > >> > > > >> will include endpoint security, mobile security and the latest > in > >> > > > malware > >> > > > >> threats. > >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >> > > > >> _______________________________________________ > >> > > > >> Gambas-user mailing list > >> > > > >> Gambas-user at lists.sourceforge.net > >> > > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > >> > >> > > > > > >> > > > > > >> > > > > >> > > > > >> > > > > >> > > > >> > > >> > ------------------------------------------------------------------------------ > >> > > > Live Security Virtual Conference > >> > > > Exclusive live event will cover all the ways today's security and > >> > > > threat landscape has changed and how IT managers can respond. > >> > Discussions > >> > > > will include endpoint security, mobile security and the latest in > >> > malware > >> > > > threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >> > > > _______________________________________________ > >> > > > Gambas-user mailing list > >> > > > Gambas-user at lists.sourceforge.net > >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > >> > > > > >> > > > >> > > > >> > > >> > ------------------------------------------------------------------------------ > >> > > Live Security Virtual Conference > >> > > Exclusive live event will cover all the ways today's security and > >> > > threat landscape has changed and how IT managers can respond. > >> Discussions > >> > > will include endpoint security, mobile security and the latest in > >> malware > >> > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >> > > _______________________________________________ > >> > > Gambas-user mailing list > >> > > Gambas-user at lists.sourceforge.net > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > >> > > >> > > >> > ------------------------------------------------------------------------------ > >> > Live Security Virtual Conference > >> > Exclusive live event will cover all the ways today's security and > >> > threat landscape has changed and how IT managers can respond. > >> Discussions > >> > will include endpoint security, mobile security and the latest in > >> malware > >> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > >> > ------------------------------------------------------------------------------ > >> Live Security Virtual Conference > >> Exclusive live event will cover all the ways today's security and > >> threat landscape has changed and how IT managers can respond. > Discussions > >> will include endpoint security, mobile security and the latest in > malware > >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jussi.lahtinen at ...626... Tue Jun 19 21:42:35 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 19 Jun 2012 22:42:35 +0300 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: No problem, I'm glad to help making Gambas more robust, when ever I have time to do so! And testing things seems to be easy contribution for me... My project has about 120 000 lines of code. And I try JIT with every module and class of it. So I think I will find more bugs... But in some point I must wait support for callbacks to finish that. Jussi On 19 June 2012 21:58, Emil Lenngren 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 > > > More bugs... > > > > Make shared library (just dummy example [or just use binary that is > > included with project source]); > > > > #include > > > > int yEta(int x1, int y1, int x2, int y2) > > {return (int) hypot(x1-x2,y1-y2);} > > > > > > Then run the attached project. > > With JIT, number of arguments is counted wrong. > > > > > > Jussi > > > > > > > > > > > > > > > > > > On 19 June 2012 21:02, Jussi Lahtinen wrote: > > > > > Yes, it works now! > > > > > > Jussi > > > > > > > > > > > > > > > On 18 June 2012 22:34, Emil Lenngren wrote: > > > > > >> 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::addGlobalMapping(const llvm::GlobalValue*, > > >> void*): > > >> > Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping already > > >> > established!"' failed. > > >> > > > >> > Program received signal SIGABRT, Aborted. > > >> > 0x00007ffff7130445 in __GI_raise (sig=) > > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > > >> > 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or > > >> directory. > > >> > (gdb) bt > > >> > #0 0x00007ffff7130445 in __GI_raise (sig=) > > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > > >> > #1 0x00007ffff7133bab in __GI_abort () at abort.c:91 > > >> > #2 0x00007ffff712910e in __assert_fail_base (fmt=, > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) && > > >> \"GlobalMapping > > >> > already established!\"", file=0x7fffed43c55b "ExecutionEngine.cpp", > > >> > line=, function=) at assert.c:94 > > >> > #3 0x00007ffff71291b2 in __GI___assert_fail ( > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) && > > >> \"GlobalMapping > > >> > already established!\"", file=0x7fffed43c55b "ExecutionEngine.cpp", > > >> > line=165, > > >> > function=0x7fffed43d7a0 "void > > >> > llvm::ExecutionEngine::addGlobalMapping(const llvm::GlobalValue*, > > >> void*)") > > >> > at assert.c:103 > > >> > #4 0x00007fffeca84aae in > > >> > llvm::ExecutionEngine::addGlobalMapping(llvm::GlobalValue const*, > > >> void*) () > > >> > from /usr/lib/libLLVM-3.2svn.so > > >> > #5 0x00007fffedc85ec7 in register_global_symbol (address=0x40ebf6, > > >> > value=0x8b2500, name=...) at jit_codegen.cpp:242 > > >> > #6 register_global_symbol (name=..., value=0x8b2500, > > address=0x40ebf6) > > >> > at jit_codegen.cpp:240 > > >> > #7 0x00007fffedc8600e in get_global_function_real ( > > >> > name=0x7fffedcb9e57 "CLASS_free", func=0x40ebf6, ret= > out>, > > >> > args=, vararg=) at > > jit_codegen.cpp:276 > > >> > #8 0x00007fffedc8a9dc in operator() (this=) > > >> > at jit_codegen.cpp:991 > > >> > ---Type to continue, or q to quit--- > > >> > #9 gen_if > > > >> (func=..., > > >> > cond=0x8999d0, if_name=, cont_name= out>) > > >> > at jit_codegen.cpp:562 > > >> > #10 unref_object_no_nullcheck (ptr=0x898ca8) at jit_codegen.cpp:993 > > >> > #11 0x00007fffedc9a44c in codegen_get_value (this=0x8abba0) > > >> > at jit_codegen.cpp:1566 > > >> > #12 PushPureObjectVariableExpression::codegen_get_value > > (this=0x8abba0) > > >> > at jit_codegen.cpp:1545 > > >> > #13 0x00007fffedca3f0d in SubrExpression::codegen_get_value > > >> (this=0x86a450) > > >> > at jit_codegen.cpp:5898 > > >> > #14 0x00007fffedc8c21d in DropExpression::codegen (this=0x86a4a0) > > >> > at jit_codegen.cpp:1257 > > >> > #15 0x00007fffedca6fa7 in codegen_statements () at > jit_codegen.cpp:855 > > >> > #16 JIT_codegen () at jit_codegen.cpp:6490 > > >> > #17 0x00007fffedcadc64 in JIT_compile_and_execute () at > > >> jit_compile.cpp:119 > > >> > #18 0x000000000040a2fb in EXEC_jit_function_loop () at > gbx_exec.c:871 > > >> > #19 0x000000000040ab22 in EXEC_function_real () at gbx_exec.c:862 > > >> > #20 0x000000000041e86d in raise_event (observer=, > > >> > object=, func_id=, > nparam= > >> out>) > > >> > at gbx_api.c:711 > > >> > #21 0x000000000041efa6 in GB_Raise (object=0x8b95c8, event_id=16, > > >> nparam=0) > > >> > at gbx_api.c:842 > > >> > #22 0x00007ffff5fce3d3 in gb_raise_button_Click (sender= > out>) > > >> > > > >> > Jussi > > >> > > > >> > > > >> > > > >> > On 18 June 2012 22:08, Emil Lenngren > 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 > > >> > > > > >> > > > 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::addGlobalMapping(const > > llvm::GlobalValue*, > > >> > > void*): > > >> > > > > Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping > 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 > > > >> > wrote: > > >> > > > > > > >> > > > >> It should be fixed in revision #4843! > > >> > > > >> > > >> > > > >> /Emil > > >> > > > >> > > >> > > > >> 2012/6/17 Jussi Lahtinen > > >> > > > >> > > >> > > > >> > Yes, it really works now. And I found a lot of errors by > me. > > >> > > > >> > > > >> > > > >> > But for some reason JIT raises compare method when it > > >> shouldn't, > > >> > > > >> > and when I tried to isolate the problem I got crash (signal > > >> 11). > > >> > > > >> > This seems not to be related to compare method, so just > > ignore > > >> > name > > >> > > of > > >> > > > >> the > > >> > > > >> > attached project. > > >> > > > >> > I will look it more closely when this is fixed. > > >> > > > >> > > > >> > > > >> > Jussi > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > On 17 June 2012 19:01, Emil Lenngren < > > emil.lenngren at ...626...> > > >> > > wrote: > > >> > > > >> > > > >> > > > >> > > Yes, it works now :) > > >> > > > >> > > > > >> > > > >> > > 2012/6/17 Beno?t Minisini > > >> > > > >> > > > > >> > > > >> > > > Le 17/06/2012 02:54, Jussi Lahtinen a ?crit : > > >> > > > >> > > > > Yeah, terminal gives other position... > > >> > > > >> > > > > With my actual project, I got error message; wanted > > >> string, > > >> > > got > > >> > > > >> > > > > blaablaaClass instead. > > >> > > > >> > > > > And that error message comes from function (from > other > > >> > module > > >> > > > >> without > > >> > > > >> > > > Fast) > > >> > > > >> > > > > which takes two objects are parameters. > > >> > > > >> > > > > > > >> > > > >> > > > > So either terminal isn't showing the real stack, or > > >> there is > > >> > > > >> > something > > >> > > > >> > > > else > > >> > > > >> > > > > wrong... > > >> > > > >> > > > > > > >> > > > >> > > > > But my time is up, I'll see it tomorrow (with latest > > >> > > revision). > > >> > > > >> > > > > > > >> > > > >> > > > > Jussi > > >> > > > >> > > > > > > >> > > > >> > > > > > > >> > > > >> > > > > > >> > > > >> > > > The incorrect line number problem, as reported by the > > >> debugger > > >> > > > (and > > >> > > > >> not > > >> > > > >> > > > when you run the program normally!), should be fixed in > > >> > revision > > >> > > > >> #4841. > > >> > > > >> > > > > > >> > > > >> > > > Regards, > > >> > > > >> > > > > > >> > > > >> > > > -- > > >> > > > >> > > > Beno?t Minisini > > >> > > > >> > > > > > >> > > > >> > > > > > >> > > > >> > > > > > >> > > > >> > > > > >> > > > >> > > > >> > > > >> > > >> > > > > > >> > > > > >> > > > >> > > > ------------------------------------------------------------------------------ > > >> > > > >> > > > Live Security Virtual Conference > > >> > > > >> > > > Exclusive live event will cover all the ways today's > > >> security > > >> > > and > > >> > > > >> > > > threat landscape has changed and how IT managers can > > >> respond. > > >> > > > >> > Discussions > > >> > > > >> > > > will include endpoint security, mobile security and the > > >> latest > > >> > > in > > >> > > > >> > malware > > >> > > > >> > > > threats. > > >> > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > >> > > > >> > > > _______________________________________________ > > >> > > > >> > > > Gambas-user mailing list > > >> > > > >> > > > Gambas-user at lists.sourceforge.net > > >> > > > >> > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > >> > > > > > >> > > > >> > > > > >> > > > >> > > > > >> > > > >> > > > >> > > > >> > > >> > > > > > >> > > > > >> > > > >> > > > ------------------------------------------------------------------------------ > > >> > > > >> > > Live Security Virtual Conference > > >> > > > >> > > Exclusive live event will cover all the ways today's > > security > > >> > and > > >> > > > >> > > threat landscape has changed and how IT managers can > > respond. > > >> > > > >> Discussions > > >> > > > >> > > will include endpoint security, mobile security and the > > >> latest > > >> > in > > >> > > > >> malware > > >> > > > >> > > threats. > > >> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > >> > > > >> > > _______________________________________________ > > >> > > > >> > > Gambas-user mailing list > > >> > > > >> > > Gambas-user at lists.sourceforge.net > > >> > > > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > >> > > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > >> > > > > > >> > > > > >> > > > >> > > > ------------------------------------------------------------------------------ > > >> > > > >> > Live Security Virtual Conference > > >> > > > >> > Exclusive live event will cover all the ways today's > security > > >> and > > >> > > > >> > threat landscape has changed and how IT managers can > respond. > > >> > > > >> Discussions > > >> > > > >> > will include endpoint security, mobile security and the > > latest > > >> in > > >> > > > >> malware > > >> > > > >> > threats. > > >> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > >> > > > >> > _______________________________________________ > > >> > > > >> > Gambas-user mailing list > > >> > > > >> > Gambas-user at lists.sourceforge.net > > >> > > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > >> > > > >> > > >> > > > > > >> > > > > >> > > > >> > > > ------------------------------------------------------------------------------ > > >> > > > >> Live Security Virtual Conference > > >> > > > >> Exclusive live event will cover all the ways today's security > > and > > >> > > > >> threat landscape has changed and how IT managers can respond. > > >> > > > Discussions > > >> > > > >> will include endpoint security, mobile security and the > latest > > in > > >> > > > malware > > >> > > > >> threats. > > >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > >> > > > >> _______________________________________________ > > >> > > > >> Gambas-user mailing list > > >> > > > >> Gambas-user at lists.sourceforge.net > > >> > > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > >> > > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > >> > > > >> > > > ------------------------------------------------------------------------------ > > >> > > > Live Security Virtual Conference > > >> > > > Exclusive live event will cover all the ways today's security > and > > >> > > > threat landscape has changed and how IT managers can respond. > > >> > Discussions > > >> > > > will include endpoint security, mobile security and the latest > in > > >> > malware > > >> > > > threats. > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > >> > > > _______________________________________________ > > >> > > > Gambas-user mailing list > > >> > > > Gambas-user at lists.sourceforge.net > > >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > > > >> > > > > > >> > > > > >> > > > > >> > > > >> > > > ------------------------------------------------------------------------------ > > >> > > Live Security Virtual Conference > > >> > > Exclusive live event will cover all the ways today's security and > > >> > > threat landscape has changed and how IT managers can respond. > > >> Discussions > > >> > > will include endpoint security, mobile security and the latest in > > >> malware > > >> > > threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > >> > > _______________________________________________ > > >> > > Gambas-user mailing list > > >> > > Gambas-user at lists.sourceforge.net > > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > > >> > > > >> > > > >> > > > ------------------------------------------------------------------------------ > > >> > Live Security Virtual Conference > > >> > Exclusive live event will cover all the ways today's security and > > >> > threat landscape has changed and how IT managers can respond. > > >> Discussions > > >> > will include endpoint security, mobile security and the latest in > > >> malware > > >> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > >> > _______________________________________________ > > >> > Gambas-user mailing list > > >> > Gambas-user at lists.sourceforge.net > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > >> > > >> > > > ------------------------------------------------------------------------------ > > >> Live Security Virtual Conference > > >> Exclusive live event will cover all the ways today's security and > > >> threat landscape has changed and how IT managers can respond. > > Discussions > > >> will include endpoint security, mobile security and the latest in > > malware > > >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > >> _______________________________________________ > > >> Gambas-user mailing list > > >> Gambas-user at lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From emil.lenngren at ...626... Tue Jun 19 21:57:41 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Tue, 19 Jun 2012 21:57:41 +0200 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: If you want a quick workaround, you can have non-fast method that creates a callback, and immediately returns it, like: Private Function GenerateCallback() As Pointer 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 > No problem, I'm glad to help making Gambas more robust, when ever I have > time to do so! > And testing things seems to be easy contribution for me... > > My project has about 120 000 lines of code. And I try JIT with every module > and class of it. > So I think I will find more bugs... But in some point I must wait support > for callbacks to finish that. > > Jussi > > > > On 19 June 2012 21:58, Emil Lenngren 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 > > > > > More bugs... > > > > > > Make shared library (just dummy example [or just use binary that is > > > included with project source]); > > > > > > #include > > > > > > int yEta(int x1, int y1, int x2, int y2) > > > {return (int) hypot(x1-x2,y1-y2);} > > > > > > > > > Then run the attached project. > > > With JIT, number of arguments is counted wrong. > > > > > > > > > Jussi > > > > > > > > > > > > > > > > > > > > > > > > > > > On 19 June 2012 21:02, Jussi Lahtinen > wrote: > > > > > > > Yes, it works now! > > > > > > > > Jussi > > > > > > > > > > > > > > > > > > > > On 18 June 2012 22:34, Emil Lenngren > wrote: > > > > > > > >> 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::addGlobalMapping(const llvm::GlobalValue*, > > > >> void*): > > > >> > Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping already > > > >> > established!"' failed. > > > >> > > > > >> > Program received signal SIGABRT, Aborted. > > > >> > 0x00007ffff7130445 in __GI_raise (sig=) > > > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > > > >> > 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or > > > >> directory. > > > >> > (gdb) bt > > > >> > #0 0x00007ffff7130445 in __GI_raise (sig=) > > > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > > > >> > #1 0x00007ffff7133bab in __GI_abort () at abort.c:91 > > > >> > #2 0x00007ffff712910e in __assert_fail_base (fmt=, > > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) && > > > >> \"GlobalMapping > > > >> > already established!\"", file=0x7fffed43c55b > "ExecutionEngine.cpp", > > > >> > line=, function=) at assert.c:94 > > > >> > #3 0x00007ffff71291b2 in __GI___assert_fail ( > > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) && > > > >> \"GlobalMapping > > > >> > already established!\"", file=0x7fffed43c55b > "ExecutionEngine.cpp", > > > >> > line=165, > > > >> > function=0x7fffed43d7a0 "void > > > >> > llvm::ExecutionEngine::addGlobalMapping(const llvm::GlobalValue*, > > > >> void*)") > > > >> > at assert.c:103 > > > >> > #4 0x00007fffeca84aae in > > > >> > llvm::ExecutionEngine::addGlobalMapping(llvm::GlobalValue const*, > > > >> void*) () > > > >> > from /usr/lib/libLLVM-3.2svn.so > > > >> > #5 0x00007fffedc85ec7 in register_global_symbol > (address=0x40ebf6, > > > >> > value=0x8b2500, name=...) at jit_codegen.cpp:242 > > > >> > #6 register_global_symbol (name=..., value=0x8b2500, > > > address=0x40ebf6) > > > >> > at jit_codegen.cpp:240 > > > >> > #7 0x00007fffedc8600e in get_global_function_real ( > > > >> > name=0x7fffedcb9e57 "CLASS_free", func=0x40ebf6, ret= > > out>, > > > >> > args=, vararg=) at > > > jit_codegen.cpp:276 > > > >> > #8 0x00007fffedc8a9dc in operator() (this=) > > > >> > at jit_codegen.cpp:991 > > > >> > ---Type to continue, or q to quit--- > > > >> > #9 gen_if > > > > >> (func=..., > > > >> > cond=0x8999d0, if_name=, cont_name= > out>) > > > >> > at jit_codegen.cpp:562 > > > >> > #10 unref_object_no_nullcheck (ptr=0x898ca8) at > jit_codegen.cpp:993 > > > >> > #11 0x00007fffedc9a44c in codegen_get_value (this=0x8abba0) > > > >> > at jit_codegen.cpp:1566 > > > >> > #12 PushPureObjectVariableExpression::codegen_get_value > > > (this=0x8abba0) > > > >> > at jit_codegen.cpp:1545 > > > >> > #13 0x00007fffedca3f0d in SubrExpression::codegen_get_value > > > >> (this=0x86a450) > > > >> > at jit_codegen.cpp:5898 > > > >> > #14 0x00007fffedc8c21d in DropExpression::codegen (this=0x86a4a0) > > > >> > at jit_codegen.cpp:1257 > > > >> > #15 0x00007fffedca6fa7 in codegen_statements () at > > jit_codegen.cpp:855 > > > >> > #16 JIT_codegen () at jit_codegen.cpp:6490 > > > >> > #17 0x00007fffedcadc64 in JIT_compile_and_execute () at > > > >> jit_compile.cpp:119 > > > >> > #18 0x000000000040a2fb in EXEC_jit_function_loop () at > > gbx_exec.c:871 > > > >> > #19 0x000000000040ab22 in EXEC_function_real () at gbx_exec.c:862 > > > >> > #20 0x000000000041e86d in raise_event (observer=, > > > >> > object=, func_id=, > > nparam= > > >> out>) > > > >> > at gbx_api.c:711 > > > >> > #21 0x000000000041efa6 in GB_Raise (object=0x8b95c8, event_id=16, > > > >> nparam=0) > > > >> > at gbx_api.c:842 > > > >> > #22 0x00007ffff5fce3d3 in gb_raise_button_Click (sender= > > out>) > > > >> > > > > >> > Jussi > > > >> > > > > >> > > > > >> > > > > >> > On 18 June 2012 22:08, Emil Lenngren > > 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 > > > >> > > > > > >> > > > OK, I found it. See attachment. > > > >> > > > > > > >> > > > Jussi > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > On 17 June 2012 23:36, Jussi Lahtinen < > jussi.lahtinen at ...626... > > > > > > >> > 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::addGlobalMapping(const > > > llvm::GlobalValue*, > > > >> > > void*): > > > >> > > > > Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping > > 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.lenngren at ...626... > > > > > > >> > wrote: > > > >> > > > > > > > >> > > > >> It should be fixed in revision #4843! > > > >> > > > >> > > > >> > > > >> /Emil > > > >> > > > >> > > > >> > > > >> 2012/6/17 Jussi Lahtinen > > > >> > > > >> > > > >> > > > >> > Yes, it really works now. And I found a lot of errors by > > me. > > > >> > > > >> > > > > >> > > > >> > But for some reason JIT raises compare method when it > > > >> shouldn't, > > > >> > > > >> > and when I tried to isolate the problem I got crash > (signal > > > >> 11). > > > >> > > > >> > This seems not to be related to compare method, so just > > > ignore > > > >> > name > > > >> > > of > > > >> > > > >> the > > > >> > > > >> > attached project. > > > >> > > > >> > I will look it more closely when this is fixed. > > > >> > > > >> > > > > >> > > > >> > Jussi > > > >> > > > >> > > > > >> > > > >> > > > > >> > > > >> > > > > >> > > > >> > > > > >> > > > >> > On 17 June 2012 19:01, Emil Lenngren < > > > emil.lenngren at ...626...> > > > >> > > wrote: > > > >> > > > >> > > > > >> > > > >> > > Yes, it works now :) > > > >> > > > >> > > > > > >> > > > >> > > 2012/6/17 Beno?t Minisini < > gambas at ...1...> > > > >> > > > >> > > > > > >> > > > >> > > > Le 17/06/2012 02:54, Jussi Lahtinen a ?crit : > > > >> > > > >> > > > > Yeah, terminal gives other position... > > > >> > > > >> > > > > With my actual project, I got error message; wanted > > > >> string, > > > >> > > got > > > >> > > > >> > > > > blaablaaClass instead. > > > >> > > > >> > > > > And that error message comes from function (from > > other > > > >> > module > > > >> > > > >> without > > > >> > > > >> > > > Fast) > > > >> > > > >> > > > > which takes two objects are parameters. > > > >> > > > >> > > > > > > > >> > > > >> > > > > So either terminal isn't showing the real stack, or > > > >> there is > > > >> > > > >> > something > > > >> > > > >> > > > else > > > >> > > > >> > > > > wrong... > > > >> > > > >> > > > > > > > >> > > > >> > > > > But my time is up, I'll see it tomorrow (with > latest > > > >> > > revision). > > > >> > > > >> > > > > > > > >> > > > >> > > > > Jussi > > > >> > > > >> > > > > > > > >> > > > >> > > > > > > > >> > > > >> > > > > > > >> > > > >> > > > The incorrect line number problem, as reported by the > > > >> debugger > > > >> > > > (and > > > >> > > > >> not > > > >> > > > >> > > > when you run the program normally!), should be fixed > in > > > >> > revision > > > >> > > > >> #4841. > > > >> > > > >> > > > > > > >> > > > >> > > > Regards, > > > >> > > > >> > > > > > > >> > > > >> > > > -- > > > >> > > > >> > > > Beno?t Minisini > > > >> > > > >> > > > > > > >> > > > >> > > > > > > >> > > > >> > > > > > > >> > > > >> > > > > > >> > > > >> > > > > >> > > > >> > > > >> > > > > > > >> > > > > > >> > > > > >> > > > > > > ------------------------------------------------------------------------------ > > > >> > > > >> > > > Live Security Virtual Conference > > > >> > > > >> > > > Exclusive live event will cover all the ways today's > > > >> security > > > >> > > and > > > >> > > > >> > > > threat landscape has changed and how IT managers can > > > >> respond. > > > >> > > > >> > Discussions > > > >> > > > >> > > > will include endpoint security, mobile security and > the > > > >> latest > > > >> > > in > > > >> > > > >> > malware > > > >> > > > >> > > > threats. > > > >> > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > >> > > > >> > > > _______________________________________________ > > > >> > > > >> > > > Gambas-user mailing list > > > >> > > > >> > > > Gambas-user at lists.sourceforge.net > > > >> > > > >> > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >> > > > >> > > > > > > >> > > > >> > > > > > >> > > > >> > > > > > >> > > > >> > > > > >> > > > >> > > > >> > > > > > > >> > > > > > >> > > > > >> > > > > > > ------------------------------------------------------------------------------ > > > >> > > > >> > > Live Security Virtual Conference > > > >> > > > >> > > Exclusive live event will cover all the ways today's > > > security > > > >> > and > > > >> > > > >> > > threat landscape has changed and how IT managers can > > > respond. > > > >> > > > >> Discussions > > > >> > > > >> > > will include endpoint security, mobile security and the > > > >> latest > > > >> > in > > > >> > > > >> malware > > > >> > > > >> > > threats. > > > >> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > >> > > > >> > > _______________________________________________ > > > >> > > > >> > > Gambas-user mailing list > > > >> > > > >> > > Gambas-user at lists.sourceforge.net > > > >> > > > >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >> > > > >> > > > > > >> > > > >> > > > > >> > > > >> > > > > >> > > > >> > > > > >> > > > >> > > > >> > > > > > > >> > > > > > >> > > > > >> > > > > > > ------------------------------------------------------------------------------ > > > >> > > > >> > Live Security Virtual Conference > > > >> > > > >> > Exclusive live event will cover all the ways today's > > security > > > >> and > > > >> > > > >> > threat landscape has changed and how IT managers can > > respond. > > > >> > > > >> Discussions > > > >> > > > >> > will include endpoint security, mobile security and the > > > latest > > > >> in > > > >> > > > >> malware > > > >> > > > >> > threats. > > > >> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > >> > > > >> > _______________________________________________ > > > >> > > > >> > Gambas-user mailing list > > > >> > > > >> > Gambas-user at lists.sourceforge.net > > > >> > > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >> > > > >> > > > > >> > > > >> > > > > >> > > > >> > > > >> > > > >> > > > >> > > > > > > >> > > > > > >> > > > > >> > > > > > > ------------------------------------------------------------------------------ > > > >> > > > >> Live Security Virtual Conference > > > >> > > > >> Exclusive live event will cover all the ways today's > security > > > and > > > >> > > > >> threat landscape has changed and how IT managers can > respond. > > > >> > > > Discussions > > > >> > > > >> will include endpoint security, mobile security and the > > latest > > > in > > > >> > > > malware > > > >> > > > >> threats. > > > >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > >> > > > >> _______________________________________________ > > > >> > > > >> Gambas-user mailing list > > > >> > > > >> Gambas-user at lists.sourceforge.net > > > >> > > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >> > > > >> > > > >> > > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > > > > ------------------------------------------------------------------------------ > > > >> > > > Live Security Virtual Conference > > > >> > > > Exclusive live event will cover all the ways today's security > > and > > > >> > > > threat landscape has changed and how IT managers can respond. > > > >> > Discussions > > > >> > > > will include endpoint security, mobile security and the latest > > in > > > >> > malware > > > >> > > > threats. > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > >> > > > _______________________________________________ > > > >> > > > Gambas-user mailing list > > > >> > > > Gambas-user at lists.sourceforge.net > > > >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > > >> > > > > >> > > > > > > ------------------------------------------------------------------------------ > > > >> > > Live Security Virtual Conference > > > >> > > Exclusive live event will cover all the ways today's security > and > > > >> > > threat landscape has changed and how IT managers can respond. > > > >> Discussions > > > >> > > will include endpoint security, mobile security and the latest > in > > > >> malware > > > >> > > threats. > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > >> > > _______________________________________________ > > > >> > > Gambas-user mailing list > > > >> > > Gambas-user at lists.sourceforge.net > > > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >> > > > > > >> > > > > >> > > > > >> > > > > > > ------------------------------------------------------------------------------ > > > >> > Live Security Virtual Conference > > > >> > Exclusive live event will cover all the ways today's security and > > > >> > threat landscape has changed and how IT managers can respond. > > > >> Discussions > > > >> > will include endpoint security, mobile security and the latest in > > > >> malware > > > >> > threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > >> > _______________________________________________ > > > >> > Gambas-user mailing list > > > >> > Gambas-user at lists.sourceforge.net > > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >> > > > > >> > > > >> > > > > > > ------------------------------------------------------------------------------ > > > >> Live Security Virtual Conference > > > >> Exclusive live event will cover all the ways today's security and > > > >> threat landscape has changed and how IT managers can respond. > > > Discussions > > > >> will include endpoint security, mobile security and the latest in > > > malware > > > >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > >> _______________________________________________ > > > >> Gambas-user mailing list > > > >> Gambas-user at lists.sourceforge.net > > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >> > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Live Security Virtual Conference > > > Exclusive live event will cover all the ways today's security and > > > threat landscape has changed and how IT managers can respond. > Discussions > > > will include endpoint security, mobile security and the latest in > malware > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From emil.lenngren at ...626... Tue Jun 19 23:24:05 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Tue, 19 Jun 2012 23:24:05 +0200 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: It should work in the latest revision :) 2012/6/19 Emil Lenngren > If you want a quick workaround, you can have non-fast method that creates > a callback, and immediately returns it, like: > > Private Function GenerateCallback() As Pointer > 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 > >> No problem, I'm glad to help making Gambas more robust, when ever I have >> time to do so! >> And testing things seems to be easy contribution for me... >> >> My project has about 120 000 lines of code. And I try JIT with every >> module >> and class of it. >> So I think I will find more bugs... But in some point I must wait support >> for callbacks to finish that. >> >> Jussi >> >> >> >> On 19 June 2012 21:58, Emil Lenngren 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 >> > >> > > More bugs... >> > > >> > > Make shared library (just dummy example [or just use binary that is >> > > included with project source]); >> > > >> > > #include >> > > >> > > int yEta(int x1, int y1, int x2, int y2) >> > > {return (int) hypot(x1-x2,y1-y2);} >> > > >> > > >> > > Then run the attached project. >> > > With JIT, number of arguments is counted wrong. >> > > >> > > >> > > Jussi >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > On 19 June 2012 21:02, Jussi Lahtinen >> wrote: >> > > >> > > > Yes, it works now! >> > > > >> > > > Jussi >> > > > >> > > > >> > > > >> > > > >> > > > On 18 June 2012 22:34, Emil Lenngren >> wrote: >> > > > >> > > >> 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::addGlobalMapping(const llvm::GlobalValue*, >> > > >> void*): >> > > >> > Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping already >> > > >> > established!"' failed. >> > > >> > >> > > >> > Program received signal SIGABRT, Aborted. >> > > >> > 0x00007ffff7130445 in __GI_raise (sig=) >> > > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 >> > > >> > 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or >> > > >> directory. >> > > >> > (gdb) bt >> > > >> > #0 0x00007ffff7130445 in __GI_raise (sig=) >> > > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 >> > > >> > #1 0x00007ffff7133bab in __GI_abort () at abort.c:91 >> > > >> > #2 0x00007ffff712910e in __assert_fail_base (fmt=> out>, >> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) && >> > > >> \"GlobalMapping >> > > >> > already established!\"", file=0x7fffed43c55b >> "ExecutionEngine.cpp", >> > > >> > line=, function=) at assert.c:94 >> > > >> > #3 0x00007ffff71291b2 in __GI___assert_fail ( >> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) && >> > > >> \"GlobalMapping >> > > >> > already established!\"", file=0x7fffed43c55b >> "ExecutionEngine.cpp", >> > > >> > line=165, >> > > >> > function=0x7fffed43d7a0 "void >> > > >> > llvm::ExecutionEngine::addGlobalMapping(const llvm::GlobalValue*, >> > > >> void*)") >> > > >> > at assert.c:103 >> > > >> > #4 0x00007fffeca84aae in >> > > >> > llvm::ExecutionEngine::addGlobalMapping(llvm::GlobalValue const*, >> > > >> void*) () >> > > >> > from /usr/lib/libLLVM-3.2svn.so >> > > >> > #5 0x00007fffedc85ec7 in register_global_symbol >> (address=0x40ebf6, >> > > >> > value=0x8b2500, name=...) at jit_codegen.cpp:242 >> > > >> > #6 register_global_symbol (name=..., value=0x8b2500, >> > > address=0x40ebf6) >> > > >> > at jit_codegen.cpp:240 >> > > >> > #7 0x00007fffedc8600e in get_global_function_real ( >> > > >> > name=0x7fffedcb9e57 "CLASS_free", func=0x40ebf6, >> ret=> > > out>, >> > > >> > args=, vararg=) at >> > > jit_codegen.cpp:276 >> > > >> > #8 0x00007fffedc8a9dc in operator() (this=) >> > > >> > at jit_codegen.cpp:991 >> > > >> > ---Type to continue, or q to quit--- >> > > >> > #9 gen_if > >> > > >> (func=..., >> > > >> > cond=0x8999d0, if_name=, cont_name=> > out>) >> > > >> > at jit_codegen.cpp:562 >> > > >> > #10 unref_object_no_nullcheck (ptr=0x898ca8) at >> jit_codegen.cpp:993 >> > > >> > #11 0x00007fffedc9a44c in codegen_get_value (this=0x8abba0) >> > > >> > at jit_codegen.cpp:1566 >> > > >> > #12 PushPureObjectVariableExpression::codegen_get_value >> > > (this=0x8abba0) >> > > >> > at jit_codegen.cpp:1545 >> > > >> > #13 0x00007fffedca3f0d in SubrExpression::codegen_get_value >> > > >> (this=0x86a450) >> > > >> > at jit_codegen.cpp:5898 >> > > >> > #14 0x00007fffedc8c21d in DropExpression::codegen (this=0x86a4a0) >> > > >> > at jit_codegen.cpp:1257 >> > > >> > #15 0x00007fffedca6fa7 in codegen_statements () at >> > jit_codegen.cpp:855 >> > > >> > #16 JIT_codegen () at jit_codegen.cpp:6490 >> > > >> > #17 0x00007fffedcadc64 in JIT_compile_and_execute () at >> > > >> jit_compile.cpp:119 >> > > >> > #18 0x000000000040a2fb in EXEC_jit_function_loop () at >> > gbx_exec.c:871 >> > > >> > #19 0x000000000040ab22 in EXEC_function_real () at gbx_exec.c:862 >> > > >> > #20 0x000000000041e86d in raise_event (observer=, >> > > >> > object=, func_id=, >> > nparam=> > > >> out>) >> > > >> > at gbx_api.c:711 >> > > >> > #21 0x000000000041efa6 in GB_Raise (object=0x8b95c8, event_id=16, >> > > >> nparam=0) >> > > >> > at gbx_api.c:842 >> > > >> > #22 0x00007ffff5fce3d3 in gb_raise_button_Click >> (sender=> > > out>) >> > > >> > >> > > >> > Jussi >> > > >> > >> > > >> > >> > > >> > >> > > >> > On 18 June 2012 22:08, Emil Lenngren >> > 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 >> > > >> > > >> > > >> > > > OK, I found it. See attachment. >> > > >> > > > >> > > >> > > > Jussi >> > > >> > > > >> > > >> > > > >> > > >> > > > >> > > >> > > > >> > > >> > > > On 17 June 2012 23:36, Jussi Lahtinen < >> jussi.lahtinen at ...626... >> > > >> > > >> > 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::addGlobalMapping(const >> > > llvm::GlobalValue*, >> > > >> > > void*): >> > > >> > > > > Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping >> > 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.lenngren at ...626... >> > > >> > > >> > wrote: >> > > >> > > > > >> > > >> > > > >> It should be fixed in revision #4843! >> > > >> > > > >> >> > > >> > > > >> /Emil >> > > >> > > > >> >> > > >> > > > >> 2012/6/17 Jussi Lahtinen >> > > >> > > > >> >> > > >> > > > >> > Yes, it really works now. And I found a lot of errors >> by >> > me. >> > > >> > > > >> > >> > > >> > > > >> > But for some reason JIT raises compare method when it >> > > >> shouldn't, >> > > >> > > > >> > and when I tried to isolate the problem I got crash >> (signal >> > > >> 11). >> > > >> > > > >> > This seems not to be related to compare method, so just >> > > ignore >> > > >> > name >> > > >> > > of >> > > >> > > > >> the >> > > >> > > > >> > attached project. >> > > >> > > > >> > I will look it more closely when this is fixed. >> > > >> > > > >> > >> > > >> > > > >> > Jussi >> > > >> > > > >> > >> > > >> > > > >> > >> > > >> > > > >> > >> > > >> > > > >> > >> > > >> > > > >> > On 17 June 2012 19:01, Emil Lenngren < >> > > emil.lenngren at ...626...> >> > > >> > > wrote: >> > > >> > > > >> > >> > > >> > > > >> > > Yes, it works now :) >> > > >> > > > >> > > >> > > >> > > > >> > > 2012/6/17 Beno?t Minisini < >> gambas at ...1...> >> > > >> > > > >> > > >> > > >> > > > >> > > > Le 17/06/2012 02:54, Jussi Lahtinen a ?crit : >> > > >> > > > >> > > > > Yeah, terminal gives other position... >> > > >> > > > >> > > > > With my actual project, I got error message; >> wanted >> > > >> string, >> > > >> > > got >> > > >> > > > >> > > > > blaablaaClass instead. >> > > >> > > > >> > > > > And that error message comes from function (from >> > other >> > > >> > module >> > > >> > > > >> without >> > > >> > > > >> > > > Fast) >> > > >> > > > >> > > > > which takes two objects are parameters. >> > > >> > > > >> > > > > >> > > >> > > > >> > > > > So either terminal isn't showing the real stack, >> or >> > > >> there is >> > > >> > > > >> > something >> > > >> > > > >> > > > else >> > > >> > > > >> > > > > wrong... >> > > >> > > > >> > > > > >> > > >> > > > >> > > > > But my time is up, I'll see it tomorrow (with >> latest >> > > >> > > revision). >> > > >> > > > >> > > > > >> > > >> > > > >> > > > > Jussi >> > > >> > > > >> > > > > >> > > >> > > > >> > > > > >> > > >> > > > >> > > > >> > > >> > > > >> > > > The incorrect line number problem, as reported by >> the >> > > >> debugger >> > > >> > > > (and >> > > >> > > > >> not >> > > >> > > > >> > > > when you run the program normally!), should be >> fixed in >> > > >> > revision >> > > >> > > > >> #4841. >> > > >> > > > >> > > > >> > > >> > > > >> > > > Regards, >> > > >> > > > >> > > > >> > > >> > > > >> > > > -- >> > > >> > > > >> > > > Beno?t Minisini >> > > >> > > > >> > > > >> > > >> > > > >> > > > >> > > >> > > > >> > > > >> > > >> > > > >> > > >> > > >> > > > >> > >> > > >> > > > >> >> > > >> > > > >> > > >> > > >> > > >> > >> > > >> >> > > >> > >> ------------------------------------------------------------------------------ >> > > >> > > > >> > > > Live Security Virtual Conference >> > > >> > > > >> > > > Exclusive live event will cover all the ways today's >> > > >> security >> > > >> > > and >> > > >> > > > >> > > > threat landscape has changed and how IT managers can >> > > >> respond. >> > > >> > > > >> > Discussions >> > > >> > > > >> > > > will include endpoint security, mobile security and >> the >> > > >> latest >> > > >> > > in >> > > >> > > > >> > malware >> > > >> > > > >> > > > threats. >> > > >> > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > >> > > > >> > > > _______________________________________________ >> > > >> > > > >> > > > Gambas-user mailing list >> > > >> > > > >> > > > Gambas-user at lists.sourceforge.net >> > > >> > > > >> > > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > >> > > > >> > > > >> > > >> > > > >> > > >> > > >> > > > >> > > >> > > >> > > > >> > >> > > >> > > > >> >> > > >> > > > >> > > >> > > >> > > >> > >> > > >> >> > > >> > >> ------------------------------------------------------------------------------ >> > > >> > > > >> > > Live Security Virtual Conference >> > > >> > > > >> > > Exclusive live event will cover all the ways today's >> > > security >> > > >> > and >> > > >> > > > >> > > threat landscape has changed and how IT managers can >> > > respond. >> > > >> > > > >> Discussions >> > > >> > > > >> > > will include endpoint security, mobile security and >> the >> > > >> latest >> > > >> > in >> > > >> > > > >> malware >> > > >> > > > >> > > threats. >> > > >> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > >> > > > >> > > _______________________________________________ >> > > >> > > > >> > > Gambas-user mailing list >> > > >> > > > >> > > Gambas-user at lists.sourceforge.net >> > > >> > > > >> > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > >> > > > >> > > >> > > >> > > > >> > >> > > >> > > > >> > >> > > >> > > > >> > >> > > >> > > > >> >> > > >> > > > >> > > >> > > >> > > >> > >> > > >> >> > > >> > >> ------------------------------------------------------------------------------ >> > > >> > > > >> > Live Security Virtual Conference >> > > >> > > > >> > Exclusive live event will cover all the ways today's >> > security >> > > >> and >> > > >> > > > >> > threat landscape has changed and how IT managers can >> > respond. >> > > >> > > > >> Discussions >> > > >> > > > >> > will include endpoint security, mobile security and the >> > > latest >> > > >> in >> > > >> > > > >> malware >> > > >> > > > >> > threats. >> > > >> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > >> > > > >> > _______________________________________________ >> > > >> > > > >> > Gambas-user mailing list >> > > >> > > > >> > Gambas-user at lists.sourceforge.net >> > > >> > > > >> > >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > >> > > > >> > >> > > >> > > > >> > >> > > >> > > > >> >> > > >> > > > >> >> > > >> > > > >> > > >> > > >> > > >> > >> > > >> >> > > >> > >> ------------------------------------------------------------------------------ >> > > >> > > > >> Live Security Virtual Conference >> > > >> > > > >> Exclusive live event will cover all the ways today's >> security >> > > and >> > > >> > > > >> threat landscape has changed and how IT managers can >> respond. >> > > >> > > > Discussions >> > > >> > > > >> will include endpoint security, mobile security and the >> > latest >> > > in >> > > >> > > > malware >> > > >> > > > >> threats. >> > > >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > >> > > > >> _______________________________________________ >> > > >> > > > >> Gambas-user mailing list >> > > >> > > > >> Gambas-user at lists.sourceforge.net >> > > >> > > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > >> > > > >> >> > > >> > > > > >> > > >> > > > > >> > > >> > > > >> > > >> > > > >> > > >> > > > >> > > >> > > >> > > >> > >> > > >> >> > > >> > >> ------------------------------------------------------------------------------ >> > > >> > > > Live Security Virtual Conference >> > > >> > > > Exclusive live event will cover all the ways today's security >> > and >> > > >> > > > threat landscape has changed and how IT managers can respond. >> > > >> > Discussions >> > > >> > > > will include endpoint security, mobile security and the >> latest >> > in >> > > >> > malware >> > > >> > > > threats. >> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > >> > > > _______________________________________________ >> > > >> > > > Gambas-user mailing list >> > > >> > > > Gambas-user at lists.sourceforge.net >> > > >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > >> > > > >> > > >> > > > >> > > >> > > >> > > >> > > >> > > >> > >> > > >> >> > > >> > >> ------------------------------------------------------------------------------ >> > > >> > > Live Security Virtual Conference >> > > >> > > Exclusive live event will cover all the ways today's security >> and >> > > >> > > threat landscape has changed and how IT managers can respond. >> > > >> Discussions >> > > >> > > will include endpoint security, mobile security and the latest >> in >> > > >> malware >> > > >> > > threats. >> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > >> > > _______________________________________________ >> > > >> > > Gambas-user mailing list >> > > >> > > Gambas-user at lists.sourceforge.net >> > > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > >> > > >> > > >> > >> > > >> > >> > > >> >> > > >> > >> ------------------------------------------------------------------------------ >> > > >> > Live Security Virtual Conference >> > > >> > Exclusive live event will cover all the ways today's security and >> > > >> > threat landscape has changed and how IT managers can respond. >> > > >> Discussions >> > > >> > will include endpoint security, mobile security and the latest in >> > > >> malware >> > > >> > threats. >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > >> > _______________________________________________ >> > > >> > Gambas-user mailing list >> > > >> > Gambas-user at lists.sourceforge.net >> > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > >> > >> > > >> >> > > >> >> > > >> > >> ------------------------------------------------------------------------------ >> > > >> Live Security Virtual Conference >> > > >> Exclusive live event will cover all the ways today's security and >> > > >> threat landscape has changed and how IT managers can respond. >> > > Discussions >> > > >> will include endpoint security, mobile security and the latest in >> > > malware >> > > >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > >> _______________________________________________ >> > > >> Gambas-user mailing list >> > > >> Gambas-user at lists.sourceforge.net >> > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > >> >> > > > >> > > > >> > > >> > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > Live Security Virtual Conference >> > > Exclusive live event will cover all the ways today's security and >> > > threat landscape has changed and how IT managers can respond. >> Discussions >> > > will include endpoint security, mobile security and the latest in >> malware >> > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > _______________________________________________ >> > > Gambas-user mailing list >> > > Gambas-user at lists.sourceforge.net >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > >> > > >> > >> > >> ------------------------------------------------------------------------------ >> > Live Security Virtual Conference >> > Exclusive live event will cover all the ways today's security and >> > threat landscape has changed and how IT managers can respond. >> Discussions >> > will include endpoint security, mobile security and the latest in >> malware >> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From emil.lenngren at ...626... Wed Jun 20 00:10:57 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Wed, 20 Jun 2012 00:10:57 +0200 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: Is revision #4851 useful for you? You can now convert functions in the current running class to pointers. /Emil 2012/6/19 Emil Lenngren > It should work in the latest revision :) > > > 2012/6/19 Emil Lenngren > >> If you want a quick workaround, you can have non-fast method that creates >> a callback, and immediately returns it, like: >> >> Private Function GenerateCallback() As Pointer >> 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 >> >>> No problem, I'm glad to help making Gambas more robust, when ever I have >>> time to do so! >>> And testing things seems to be easy contribution for me... >>> >>> My project has about 120 000 lines of code. And I try JIT with every >>> module >>> and class of it. >>> So I think I will find more bugs... But in some point I must wait support >>> for callbacks to finish that. >>> >>> Jussi >>> >>> >>> >>> On 19 June 2012 21:58, Emil Lenngren 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 >>> > >>> > > More bugs... >>> > > >>> > > Make shared library (just dummy example [or just use binary that is >>> > > included with project source]); >>> > > >>> > > #include >>> > > >>> > > int yEta(int x1, int y1, int x2, int y2) >>> > > {return (int) hypot(x1-x2,y1-y2);} >>> > > >>> > > >>> > > Then run the attached project. >>> > > With JIT, number of arguments is counted wrong. >>> > > >>> > > >>> > > Jussi >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > On 19 June 2012 21:02, Jussi Lahtinen >>> wrote: >>> > > >>> > > > Yes, it works now! >>> > > > >>> > > > Jussi >>> > > > >>> > > > >>> > > > >>> > > > >>> > > > On 18 June 2012 22:34, Emil Lenngren >>> wrote: >>> > > > >>> > > >> 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::addGlobalMapping(const >>> llvm::GlobalValue*, >>> > > >> void*): >>> > > >> > Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping already >>> > > >> > established!"' failed. >>> > > >> > >>> > > >> > Program received signal SIGABRT, Aborted. >>> > > >> > 0x00007ffff7130445 in __GI_raise (sig=) >>> > > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 >>> > > >> > 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or >>> > > >> directory. >>> > > >> > (gdb) bt >>> > > >> > #0 0x00007ffff7130445 in __GI_raise (sig=) >>> > > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 >>> > > >> > #1 0x00007ffff7133bab in __GI_abort () at abort.c:91 >>> > > >> > #2 0x00007ffff712910e in __assert_fail_base (fmt=>> out>, >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) && >>> > > >> \"GlobalMapping >>> > > >> > already established!\"", file=0x7fffed43c55b >>> "ExecutionEngine.cpp", >>> > > >> > line=, function=) at >>> assert.c:94 >>> > > >> > #3 0x00007ffff71291b2 in __GI___assert_fail ( >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) && >>> > > >> \"GlobalMapping >>> > > >> > already established!\"", file=0x7fffed43c55b >>> "ExecutionEngine.cpp", >>> > > >> > line=165, >>> > > >> > function=0x7fffed43d7a0 "void >>> > > >> > llvm::ExecutionEngine::addGlobalMapping(const >>> llvm::GlobalValue*, >>> > > >> void*)") >>> > > >> > at assert.c:103 >>> > > >> > #4 0x00007fffeca84aae in >>> > > >> > llvm::ExecutionEngine::addGlobalMapping(llvm::GlobalValue >>> const*, >>> > > >> void*) () >>> > > >> > from /usr/lib/libLLVM-3.2svn.so >>> > > >> > #5 0x00007fffedc85ec7 in register_global_symbol >>> (address=0x40ebf6, >>> > > >> > value=0x8b2500, name=...) at jit_codegen.cpp:242 >>> > > >> > #6 register_global_symbol (name=..., value=0x8b2500, >>> > > address=0x40ebf6) >>> > > >> > at jit_codegen.cpp:240 >>> > > >> > #7 0x00007fffedc8600e in get_global_function_real ( >>> > > >> > name=0x7fffedcb9e57 "CLASS_free", func=0x40ebf6, >>> ret=>> > > out>, >>> > > >> > args=, vararg=) at >>> > > jit_codegen.cpp:276 >>> > > >> > #8 0x00007fffedc8a9dc in operator() (this=) >>> > > >> > at jit_codegen.cpp:991 >>> > > >> > ---Type to continue, or q to quit--- >>> > > >> > #9 gen_if > >>> > > >> (func=..., >>> > > >> > cond=0x8999d0, if_name=, cont_name=>> > out>) >>> > > >> > at jit_codegen.cpp:562 >>> > > >> > #10 unref_object_no_nullcheck (ptr=0x898ca8) at >>> jit_codegen.cpp:993 >>> > > >> > #11 0x00007fffedc9a44c in codegen_get_value (this=0x8abba0) >>> > > >> > at jit_codegen.cpp:1566 >>> > > >> > #12 PushPureObjectVariableExpression::codegen_get_value >>> > > (this=0x8abba0) >>> > > >> > at jit_codegen.cpp:1545 >>> > > >> > #13 0x00007fffedca3f0d in SubrExpression::codegen_get_value >>> > > >> (this=0x86a450) >>> > > >> > at jit_codegen.cpp:5898 >>> > > >> > #14 0x00007fffedc8c21d in DropExpression::codegen >>> (this=0x86a4a0) >>> > > >> > at jit_codegen.cpp:1257 >>> > > >> > #15 0x00007fffedca6fa7 in codegen_statements () at >>> > jit_codegen.cpp:855 >>> > > >> > #16 JIT_codegen () at jit_codegen.cpp:6490 >>> > > >> > #17 0x00007fffedcadc64 in JIT_compile_and_execute () at >>> > > >> jit_compile.cpp:119 >>> > > >> > #18 0x000000000040a2fb in EXEC_jit_function_loop () at >>> > gbx_exec.c:871 >>> > > >> > #19 0x000000000040ab22 in EXEC_function_real () at >>> gbx_exec.c:862 >>> > > >> > #20 0x000000000041e86d in raise_event (observer=, >>> > > >> > object=, func_id=, >>> > nparam=>> > > >> out>) >>> > > >> > at gbx_api.c:711 >>> > > >> > #21 0x000000000041efa6 in GB_Raise (object=0x8b95c8, >>> event_id=16, >>> > > >> nparam=0) >>> > > >> > at gbx_api.c:842 >>> > > >> > #22 0x00007ffff5fce3d3 in gb_raise_button_Click >>> (sender=>> > > out>) >>> > > >> > >>> > > >> > Jussi >>> > > >> > >>> > > >> > >>> > > >> > >>> > > >> > On 18 June 2012 22:08, Emil Lenngren >>> > 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 >>> > > >> > > >>> > > >> > > > OK, I found it. See attachment. >>> > > >> > > > >>> > > >> > > > Jussi >>> > > >> > > > >>> > > >> > > > >>> > > >> > > > >>> > > >> > > > >>> > > >> > > > On 17 June 2012 23:36, Jussi Lahtinen < >>> jussi.lahtinen at ...626... >>> > > >>> > > >> > 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::addGlobalMapping(const >>> > > llvm::GlobalValue*, >>> > > >> > > void*): >>> > > >> > > > > Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping >>> > 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.lenngren at ...626... >>> > > >>> > > >> > wrote: >>> > > >> > > > > >>> > > >> > > > >> It should be fixed in revision #4843! >>> > > >> > > > >> >>> > > >> > > > >> /Emil >>> > > >> > > > >> >>> > > >> > > > >> 2012/6/17 Jussi Lahtinen >>> > > >> > > > >> >>> > > >> > > > >> > Yes, it really works now. And I found a lot of errors >>> by >>> > me. >>> > > >> > > > >> > >>> > > >> > > > >> > But for some reason JIT raises compare method when it >>> > > >> shouldn't, >>> > > >> > > > >> > and when I tried to isolate the problem I got crash >>> (signal >>> > > >> 11). >>> > > >> > > > >> > This seems not to be related to compare method, so just >>> > > ignore >>> > > >> > name >>> > > >> > > of >>> > > >> > > > >> the >>> > > >> > > > >> > attached project. >>> > > >> > > > >> > I will look it more closely when this is fixed. >>> > > >> > > > >> > >>> > > >> > > > >> > Jussi >>> > > >> > > > >> > >>> > > >> > > > >> > >>> > > >> > > > >> > >>> > > >> > > > >> > >>> > > >> > > > >> > On 17 June 2012 19:01, Emil Lenngren < >>> > > emil.lenngren at ...626...> >>> > > >> > > wrote: >>> > > >> > > > >> > >>> > > >> > > > >> > > Yes, it works now :) >>> > > >> > > > >> > > >>> > > >> > > > >> > > 2012/6/17 Beno?t Minisini < >>> gambas at ...1...> >>> > > >> > > > >> > > >>> > > >> > > > >> > > > Le 17/06/2012 02:54, Jussi Lahtinen a ?crit : >>> > > >> > > > >> > > > > Yeah, terminal gives other position... >>> > > >> > > > >> > > > > With my actual project, I got error message; >>> wanted >>> > > >> string, >>> > > >> > > got >>> > > >> > > > >> > > > > blaablaaClass instead. >>> > > >> > > > >> > > > > And that error message comes from function (from >>> > other >>> > > >> > module >>> > > >> > > > >> without >>> > > >> > > > >> > > > Fast) >>> > > >> > > > >> > > > > which takes two objects are parameters. >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > > So either terminal isn't showing the real stack, >>> or >>> > > >> there is >>> > > >> > > > >> > something >>> > > >> > > > >> > > > else >>> > > >> > > > >> > > > > wrong... >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > > But my time is up, I'll see it tomorrow (with >>> latest >>> > > >> > > revision). >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > > Jussi >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > >>> > > >> > > > >> > > > The incorrect line number problem, as reported by >>> the >>> > > >> debugger >>> > > >> > > > (and >>> > > >> > > > >> not >>> > > >> > > > >> > > > when you run the program normally!), should be >>> fixed in >>> > > >> > revision >>> > > >> > > > >> #4841. >>> > > >> > > > >> > > > >>> > > >> > > > >> > > > Regards, >>> > > >> > > > >> > > > >>> > > >> > > > >> > > > -- >>> > > >> > > > >> > > > Beno?t Minisini >>> > > >> > > > >> > > > >>> > > >> > > > >> > > > >>> > > >> > > > >> > > > >>> > > >> > > > >> > > >>> > > >> > > > >> > >>> > > >> > > > >> >>> > > >> > > > >>> > > >> > > >>> > > >> > >>> > > >> >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > >> > > > >> > > > Live Security Virtual Conference >>> > > >> > > > >> > > > Exclusive live event will cover all the ways >>> today's >>> > > >> security >>> > > >> > > and >>> > > >> > > > >> > > > threat landscape has changed and how IT managers >>> can >>> > > >> respond. >>> > > >> > > > >> > Discussions >>> > > >> > > > >> > > > will include endpoint security, mobile security >>> and the >>> > > >> latest >>> > > >> > > in >>> > > >> > > > >> > malware >>> > > >> > > > >> > > > threats. >>> > > >> > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > >> > > > >> > > > _______________________________________________ >>> > > >> > > > >> > > > Gambas-user mailing list >>> > > >> > > > >> > > > Gambas-user at lists.sourceforge.net >>> > > >> > > > >> > > > >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > >> > > > >> > > > >>> > > >> > > > >> > > >>> > > >> > > > >> > > >>> > > >> > > > >> > >>> > > >> > > > >> >>> > > >> > > > >>> > > >> > > >>> > > >> > >>> > > >> >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > >> > > > >> > > Live Security Virtual Conference >>> > > >> > > > >> > > Exclusive live event will cover all the ways today's >>> > > security >>> > > >> > and >>> > > >> > > > >> > > threat landscape has changed and how IT managers can >>> > > respond. >>> > > >> > > > >> Discussions >>> > > >> > > > >> > > will include endpoint security, mobile security and >>> the >>> > > >> latest >>> > > >> > in >>> > > >> > > > >> malware >>> > > >> > > > >> > > threats. >>> > > >> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > >> > > > >> > > _______________________________________________ >>> > > >> > > > >> > > Gambas-user mailing list >>> > > >> > > > >> > > Gambas-user at lists.sourceforge.net >>> > > >> > > > >> > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > >> > > > >> > > >>> > > >> > > > >> > >>> > > >> > > > >> > >>> > > >> > > > >> > >>> > > >> > > > >> >>> > > >> > > > >>> > > >> > > >>> > > >> > >>> > > >> >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > >> > > > >> > Live Security Virtual Conference >>> > > >> > > > >> > Exclusive live event will cover all the ways today's >>> > security >>> > > >> and >>> > > >> > > > >> > threat landscape has changed and how IT managers can >>> > respond. >>> > > >> > > > >> Discussions >>> > > >> > > > >> > will include endpoint security, mobile security and the >>> > > latest >>> > > >> in >>> > > >> > > > >> malware >>> > > >> > > > >> > threats. >>> > > >> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > >> > > > >> > _______________________________________________ >>> > > >> > > > >> > Gambas-user mailing list >>> > > >> > > > >> > Gambas-user at lists.sourceforge.net >>> > > >> > > > >> > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > >> > > > >> > >>> > > >> > > > >> > >>> > > >> > > > >> >>> > > >> > > > >> >>> > > >> > > > >>> > > >> > > >>> > > >> > >>> > > >> >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > >> > > > >> Live Security Virtual Conference >>> > > >> > > > >> Exclusive live event will cover all the ways today's >>> security >>> > > and >>> > > >> > > > >> threat landscape has changed and how IT managers can >>> respond. >>> > > >> > > > Discussions >>> > > >> > > > >> will include endpoint security, mobile security and the >>> > latest >>> > > in >>> > > >> > > > malware >>> > > >> > > > >> threats. >>> > > >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > >> > > > >> _______________________________________________ >>> > > >> > > > >> Gambas-user mailing list >>> > > >> > > > >> Gambas-user at lists.sourceforge.net >>> > > >> > > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > >> > > > >> >>> > > >> > > > > >>> > > >> > > > > >>> > > >> > > > >>> > > >> > > > >>> > > >> > > > >>> > > >> > > >>> > > >> > >>> > > >> >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > >> > > > Live Security Virtual Conference >>> > > >> > > > Exclusive live event will cover all the ways today's >>> security >>> > and >>> > > >> > > > threat landscape has changed and how IT managers can >>> respond. >>> > > >> > Discussions >>> > > >> > > > will include endpoint security, mobile security and the >>> latest >>> > in >>> > > >> > malware >>> > > >> > > > threats. >>> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > >> > > > _______________________________________________ >>> > > >> > > > Gambas-user mailing list >>> > > >> > > > Gambas-user at lists.sourceforge.net >>> > > >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > >> > > > >>> > > >> > > > >>> > > >> > > >>> > > >> > > >>> > > >> > >>> > > >> >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > >> > > Live Security Virtual Conference >>> > > >> > > Exclusive live event will cover all the ways today's security >>> and >>> > > >> > > threat landscape has changed and how IT managers can respond. >>> > > >> Discussions >>> > > >> > > will include endpoint security, mobile security and the >>> latest in >>> > > >> malware >>> > > >> > > threats. >>> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > >> > > _______________________________________________ >>> > > >> > > Gambas-user mailing list >>> > > >> > > Gambas-user at lists.sourceforge.net >>> > > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > >> > > >>> > > >> > >>> > > >> > >>> > > >> >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > >> > Live Security Virtual Conference >>> > > >> > Exclusive live event will cover all the ways today's security >>> and >>> > > >> > threat landscape has changed and how IT managers can respond. >>> > > >> Discussions >>> > > >> > will include endpoint security, mobile security and the latest >>> in >>> > > >> malware >>> > > >> > threats. >>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > >> > _______________________________________________ >>> > > >> > Gambas-user mailing list >>> > > >> > Gambas-user at lists.sourceforge.net >>> > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > >> > >>> > > >> >>> > > >> >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > >> Live Security Virtual Conference >>> > > >> Exclusive live event will cover all the ways today's security and >>> > > >> threat landscape has changed and how IT managers can respond. >>> > > Discussions >>> > > >> will include endpoint security, mobile security and the latest in >>> > > malware >>> > > >> threats. >>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > >> _______________________________________________ >>> > > >> Gambas-user mailing list >>> > > >> Gambas-user at lists.sourceforge.net >>> > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > >> >>> > > > >>> > > > >>> > > >>> > > >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > Live Security Virtual Conference >>> > > Exclusive live event will cover all the ways today's security and >>> > > threat landscape has changed and how IT managers can respond. >>> Discussions >>> > > will include endpoint security, mobile security and the latest in >>> malware >>> > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > _______________________________________________ >>> > > Gambas-user mailing list >>> > > Gambas-user at lists.sourceforge.net >>> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > >>> > > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > Live Security Virtual Conference >>> > Exclusive live event will cover all the ways today's security and >>> > threat landscape has changed and how IT managers can respond. >>> Discussions >>> > will include endpoint security, mobile security and the latest in >>> malware >>> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > _______________________________________________ >>> > Gambas-user mailing list >>> > Gambas-user at lists.sourceforge.net >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > >>> >>> ------------------------------------------------------------------------------ >>> Live Security Virtual Conference >>> Exclusive live event will cover all the ways today's security and >>> threat landscape has changed and how IT managers can respond. Discussions >>> will include endpoint security, mobile security and the latest in malware >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> > From adrien.prokopowicz at ...626... Wed Jun 20 01:08:23 2012 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Wed, 20 Jun 2012 01:08:23 +0200 Subject: [Gambas-user] [gb.eval.highlight] Spaces and syntax highlighting In-Reply-To: <4FDE1B04.6000906@...1...> References: <18350867.xnLu4H6rEi@...2823...> <2114665.vRi6TnuKEv@...2822...> <4FDE1B04.6000906@...1...> Message-ID: <2076373.tKPB2omyrV@...2823...> Le dimanche 17 juin 2012 19:59:32 Beno?t Minisini a ?crit : > Le 17/06/2012 15:49, Adrien Prokopowicz a ?crit : > > Le dimanche 17 juin 2012 15:38:22 Beno?t Minisini a ?crit : > >> Le 12/06/2012 23:52, Adrien Prokopowicz a ?crit : > >>> Hi, > >>> > >>> I noticed that the Higlight.Analyze() method doesn't like when the > >>> Gambas code hasn't spaces between operators, commas and a few other > >>> ones. > >>> > >>> There is a good example of that problem here : > >>> http://www.gambasforge.org/wiki/testHighlight > >>> > >>> Maybe this behaviour is intended, in order to keep Gambas code clean, > >>> but I > >>> haven't found any function to add these spaces, like in the IDE. > >>> Do you know where I can find this ? > >>> > >>> Regards, > >>> Adrien. > >> > >> Do you have some code to show? Maybe you don't use the Analyze() method > >> correctly... > > > > Here is the function that makes the conversion Gambas string -> html : > > > > Public Sub GambasToHtml(sValue As String) As XmlElement > > > > Dim sLignes, s, sCode As String > > Dim i, nbLignes, lenligne As Integer > > Dim sTypes As String[] = ["", "normal", "keyword", "function", > > "operator", "symbol", "number", "string", "comment", "", "", > > "datatype", "", "", "", "", "error", "help", "preprocessor"] Dim > > Positions, Types, Lengths As New Integer[] > > Dim lignes As String[] > > Dim tableau As New HtmlTable > > Dim elmt As XmlElement > > Dim conteneur As New XmlElement("code") > > > > If Not sValue Then Return > > 'sret = "
" > > tableau.ClassName = "code" > > tableau[0, 0].ClassName = "numlignes" > > tableau[0, 1].ClassName = "code" > > tableau[0, 1].AppendChild(conteneur) > > sValue = Replace$(sValue, "\r\n", "\n") 'Compatibilit? win/mac/linux > > sValue = Trim$(sValue) 'Espaces ind?sirables > > lignes = Split(sValue, "\r\n", "", False) > > For Each s In lignes > > > > Highlight.Analyze(s) > > > > If Highlight.Positions.Count = 0 Then > > > > conteneur.AppendText(s) > > conteneur.AppendFromText("
") > > 'sCode&= s& "
" > > Inc nbLignes > > Continue > > > > Endif > > Positions = Highlight.Positions > > Types = Highlight.Types > > Lengths.Clear() > > > > For i = 0 To Highlight.Symbols.Max > > > > Lengths.Push(Len(Highlight.Symbols[i])) > > > > Next > > > > lenligne = Len(s) > > > > For i = 1 To lenligne > > > > If Positions.Count<= 0 > > > > 'sCode&= String.Mid(s, i, 1) > > conteneur.AppendText(Mid(s, i, 1)) > > > > Else If i = (Positions[0] + 1) > > > > 'sCode&= ""& > > String.Mid$(s, Positions[0] + 1, Lengths[0])& "" elmt = > > New XmlElement("span") > > elmt.ClassName = sTypes[Types[0]] > > elmt.TextContent = Mid$(s, Positions[0] + 1, Lengths[0]) > > conteneur.AppendChild(elmt) > > i += (Lengths[0] - 1) > > Positions.Extract(0) > > Lengths.Extract(0) > > Types.Extract(0) > > > > ' Else If Mid$(s, i, 1) = " " > > ' 'sCode&= " " > > ' tableau[0, 1].AppendFromText(" ") > > Else > > > > 'sCode&= String.Mid$(s, i, 1) > > conteneur.AppendText(String.Mid(s, i, 1)) > > > > Endif > > > > Next > > 'sCode&= "
" > > conteneur.AppendFromText("
") > > Inc nbLignes > > > > Next > > > > For i = 1 To nbLignes > > > > sLignes&= (i& "
\n") > > > > Next > > > > tableau[0, 0].AppendFromText(sLignes) > > > > ' sCode = Replace$(sCode, "&","&") > > ' sCode = Replace$(sCode, "<","<") > > ' sCode = Replace$(sCode, ">",">") > > ' sCode = RegexpReplace(sCode, "<(/?(span|br).*)>", "<&1>") > > ' sCode = Replace$(sCode, "&nbsp;", " ") > > ' sRet&= "
" > > ' sret&= sCode > > ' sRet&= "
" > > ' Return XmlElement.FromText(sRet)[0] > > elmt = New XmlElement("div") > > elmt.ClassName = "code" > > elmt.AppendChild(tableau) > > Return elmt > > > > End > > > > > > The full code is available here : (svn checkout) > > https://gambasforge.svn.sourceforge.net/svnroot/gambasforge/trunk > > > > > > Regards, > > Adrien. > > The Positions are relative to the string returned by > Highlight.TextAfter. In other words, you just have to add a "s = > Highlight.TextAfter" line just after the Highlight.Analyze call. > > Beware that there was a bug: the value returned by Highlight.TextAfter > was the original string when the Rewrite argument of Highlight.Analyze() > was FALSE. Use revision #4844 that fixes that bug. > > Otherwise, I suggest you set the Rewrite argument. > > Regards, It works with s = Highlight.TextAfter, thanks ! Regards, Adrien. From sotema at ...626... Wed Jun 20 08:33:15 2012 From: sotema at ...626... (Emanuele Sottocorno) Date: Wed, 20 Jun 2012 08:33:15 +0200 Subject: [Gambas-user] Error with XmlWriter tag in gb.xml (indent) Message-ID: <1340173995.1823.24.camel@...2516...> Hi Adrien, as you suggested in your reply in Gambas-It forum I'll try to make the analysis easier, facing one problem at a time. Inside the attached tar you can find a very simple project that produce a very little xml file and the outputs produced by gb.xml vs gb.libxml. Open both file with cat/more to see the problem. The file generated with gb.xml is badly indent. Having a large file this can become unreadable. -------------- next part -------------- A non-text attachment was scrubbed... Name: xmlwrite.tar.gz Type: application/x-compressed-tar Size: 4825 bytes Desc: not available URL: From sotema at ...626... Wed Jun 20 09:42:19 2012 From: sotema at ...626... (Emanuele Sottocorno) Date: Wed, 20 Jun 2012 09:42:19 +0200 Subject: [Gambas-user] Error with XmlWriter tag in gb.xml (indent) Message-ID: <1340178139.3340.13.camel@...2516...> Forgot to mention... open the file with a browser and you can see the space between the tag and the value: value From gambas at ...2524... Wed Jun 20 17:39:42 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 20 Jun 2012 15:39:42 +0000 Subject: [Gambas-user] Issue 257 in gambas: Database password retrieval error and abort in IDE In-Reply-To: <4-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...> <0-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...> Comment #5 on issue 257 by r... at ...1740...: Database password retrieval error and abort in IDE http://code.google.com/p/gambas/issues/detail?id=257 No, I use it for my svn commit passwords, so it works as the user I run gambas3 with. Looking at the source code I find, this return fails: Case "GNOME", "LXDE" Return _Keyring.GetPassword(Key) How can I test this? From jussi.lahtinen at ...626... Wed Jun 20 18:06:54 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 20 Jun 2012 19:06:54 +0300 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: So far everything seems to work! I'll continue further testing later. Jussi On 20 June 2012 01:10, Emil Lenngren wrote: > Is revision #4851 useful for you? > You can now convert functions in the current running class to pointers. > > /Emil > > 2012/6/19 Emil Lenngren > > > It should work in the latest revision :) > > > > > > 2012/6/19 Emil Lenngren > > > >> If you want a quick workaround, you can have non-fast method that > creates > >> a callback, and immediately returns it, like: > >> > >> Private Function GenerateCallback() As Pointer > >> 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 > >> > >>> No problem, I'm glad to help making Gambas more robust, when ever I > have > >>> time to do so! > >>> And testing things seems to be easy contribution for me... > >>> > >>> My project has about 120 000 lines of code. And I try JIT with every > >>> module > >>> and class of it. > >>> So I think I will find more bugs... But in some point I must wait > support > >>> for callbacks to finish that. > >>> > >>> Jussi > >>> > >>> > >>> > >>> On 19 June 2012 21:58, Emil Lenngren 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 > >>> > > >>> > > More bugs... > >>> > > > >>> > > Make shared library (just dummy example [or just use binary that is > >>> > > included with project source]); > >>> > > > >>> > > #include > >>> > > > >>> > > int yEta(int x1, int y1, int x2, int y2) > >>> > > {return (int) hypot(x1-x2,y1-y2);} > >>> > > > >>> > > > >>> > > Then run the attached project. > >>> > > With JIT, number of arguments is counted wrong. > >>> > > > >>> > > > >>> > > Jussi > >>> > > > >>> > > > >>> > > > >>> > > > >>> > > > >>> > > > >>> > > > >>> > > > >>> > > On 19 June 2012 21:02, Jussi Lahtinen > >>> wrote: > >>> > > > >>> > > > Yes, it works now! > >>> > > > > >>> > > > Jussi > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > On 18 June 2012 22:34, Emil Lenngren > >>> wrote: > >>> > > > > >>> > > >> 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::addGlobalMapping(const > >>> llvm::GlobalValue*, > >>> > > >> void*): > >>> > > >> > Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping > already > >>> > > >> > established!"' failed. > >>> > > >> > > >>> > > >> > Program received signal SIGABRT, Aborted. > >>> > > >> > 0x00007ffff7130445 in __GI_raise (sig=) > >>> > > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > >>> > > >> > 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or > >>> > > >> directory. > >>> > > >> > (gdb) bt > >>> > > >> > #0 0x00007ffff7130445 in __GI_raise (sig=) > >>> > > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > >>> > > >> > #1 0x00007ffff7133bab in __GI_abort () at abort.c:91 > >>> > > >> > #2 0x00007ffff712910e in __assert_fail_base (fmt= >>> out>, > >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) && > >>> > > >> \"GlobalMapping > >>> > > >> > already established!\"", file=0x7fffed43c55b > >>> "ExecutionEngine.cpp", > >>> > > >> > line=, function=) at > >>> assert.c:94 > >>> > > >> > #3 0x00007ffff71291b2 in __GI___assert_fail ( > >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) && > >>> > > >> \"GlobalMapping > >>> > > >> > already established!\"", file=0x7fffed43c55b > >>> "ExecutionEngine.cpp", > >>> > > >> > line=165, > >>> > > >> > function=0x7fffed43d7a0 "void > >>> > > >> > llvm::ExecutionEngine::addGlobalMapping(const > >>> llvm::GlobalValue*, > >>> > > >> void*)") > >>> > > >> > at assert.c:103 > >>> > > >> > #4 0x00007fffeca84aae in > >>> > > >> > llvm::ExecutionEngine::addGlobalMapping(llvm::GlobalValue > >>> const*, > >>> > > >> void*) () > >>> > > >> > from /usr/lib/libLLVM-3.2svn.so > >>> > > >> > #5 0x00007fffedc85ec7 in register_global_symbol > >>> (address=0x40ebf6, > >>> > > >> > value=0x8b2500, name=...) at jit_codegen.cpp:242 > >>> > > >> > #6 register_global_symbol (name=..., value=0x8b2500, > >>> > > address=0x40ebf6) > >>> > > >> > at jit_codegen.cpp:240 > >>> > > >> > #7 0x00007fffedc8600e in get_global_function_real ( > >>> > > >> > name=0x7fffedcb9e57 "CLASS_free", func=0x40ebf6, > >>> ret= >>> > > out>, > >>> > > >> > args=, vararg=) at > >>> > > jit_codegen.cpp:276 > >>> > > >> > #8 0x00007fffedc8a9dc in operator() (this= pointer>) > >>> > > >> > at jit_codegen.cpp:991 > >>> > > >> > ---Type to continue, or q to quit--- > >>> > > >> > #9 > gen_if > > >>> > > >> (func=..., > >>> > > >> > cond=0x8999d0, if_name=, > cont_name= >>> > out>) > >>> > > >> > at jit_codegen.cpp:562 > >>> > > >> > #10 unref_object_no_nullcheck (ptr=0x898ca8) at > >>> jit_codegen.cpp:993 > >>> > > >> > #11 0x00007fffedc9a44c in codegen_get_value (this=0x8abba0) > >>> > > >> > at jit_codegen.cpp:1566 > >>> > > >> > #12 PushPureObjectVariableExpression::codegen_get_value > >>> > > (this=0x8abba0) > >>> > > >> > at jit_codegen.cpp:1545 > >>> > > >> > #13 0x00007fffedca3f0d in SubrExpression::codegen_get_value > >>> > > >> (this=0x86a450) > >>> > > >> > at jit_codegen.cpp:5898 > >>> > > >> > #14 0x00007fffedc8c21d in DropExpression::codegen > >>> (this=0x86a4a0) > >>> > > >> > at jit_codegen.cpp:1257 > >>> > > >> > #15 0x00007fffedca6fa7 in codegen_statements () at > >>> > jit_codegen.cpp:855 > >>> > > >> > #16 JIT_codegen () at jit_codegen.cpp:6490 > >>> > > >> > #17 0x00007fffedcadc64 in JIT_compile_and_execute () at > >>> > > >> jit_compile.cpp:119 > >>> > > >> > #18 0x000000000040a2fb in EXEC_jit_function_loop () at > >>> > gbx_exec.c:871 > >>> > > >> > #19 0x000000000040ab22 in EXEC_function_real () at > >>> gbx_exec.c:862 > >>> > > >> > #20 0x000000000041e86d in raise_event (observer= out>, > >>> > > >> > object=, func_id=, > >>> > nparam= >>> > > >> out>) > >>> > > >> > at gbx_api.c:711 > >>> > > >> > #21 0x000000000041efa6 in GB_Raise (object=0x8b95c8, > >>> event_id=16, > >>> > > >> nparam=0) > >>> > > >> > at gbx_api.c:842 > >>> > > >> > #22 0x00007ffff5fce3d3 in gb_raise_button_Click > >>> (sender= >>> > > out>) > >>> > > >> > > >>> > > >> > Jussi > >>> > > >> > > >>> > > >> > > >>> > > >> > > >>> > > >> > On 18 June 2012 22:08, Emil Lenngren > > >>> > 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 > >>> > > >> > > > >>> > > >> > > > OK, I found it. See attachment. > >>> > > >> > > > > >>> > > >> > > > Jussi > >>> > > >> > > > > >>> > > >> > > > > >>> > > >> > > > > >>> > > >> > > > > >>> > > >> > > > On 17 June 2012 23:36, Jussi Lahtinen < > >>> jussi.lahtinen at ...626... > >>> > > > >>> > > >> > 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::addGlobalMapping(const > >>> > > llvm::GlobalValue*, > >>> > > >> > > void*): > >>> > > >> > > > > Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping > >>> > 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.lenngren at ...626... > >>> > > > >>> > > >> > wrote: > >>> > > >> > > > > > >>> > > >> > > > >> It should be fixed in revision #4843! > >>> > > >> > > > >> > >>> > > >> > > > >> /Emil > >>> > > >> > > > >> > >>> > > >> > > > >> 2012/6/17 Jussi Lahtinen > >>> > > >> > > > >> > >>> > > >> > > > >> > Yes, it really works now. And I found a lot of > errors > >>> by > >>> > me. > >>> > > >> > > > >> > > >>> > > >> > > > >> > But for some reason JIT raises compare method when it > >>> > > >> shouldn't, > >>> > > >> > > > >> > and when I tried to isolate the problem I got crash > >>> (signal > >>> > > >> 11). > >>> > > >> > > > >> > This seems not to be related to compare method, so > just > >>> > > ignore > >>> > > >> > name > >>> > > >> > > of > >>> > > >> > > > >> the > >>> > > >> > > > >> > attached project. > >>> > > >> > > > >> > I will look it more closely when this is fixed. > >>> > > >> > > > >> > > >>> > > >> > > > >> > Jussi > >>> > > >> > > > >> > > >>> > > >> > > > >> > > >>> > > >> > > > >> > > >>> > > >> > > > >> > > >>> > > >> > > > >> > On 17 June 2012 19:01, Emil Lenngren < > >>> > > emil.lenngren at ...626...> > >>> > > >> > > wrote: > >>> > > >> > > > >> > > >>> > > >> > > > >> > > Yes, it works now :) > >>> > > >> > > > >> > > > >>> > > >> > > > >> > > 2012/6/17 Beno?t Minisini < > >>> gambas at ...1...> > >>> > > >> > > > >> > > > >>> > > >> > > > >> > > > Le 17/06/2012 02:54, Jussi Lahtinen a ?crit : > >>> > > >> > > > >> > > > > Yeah, terminal gives other position... > >>> > > >> > > > >> > > > > With my actual project, I got error message; > >>> wanted > >>> > > >> string, > >>> > > >> > > got > >>> > > >> > > > >> > > > > blaablaaClass instead. > >>> > > >> > > > >> > > > > And that error message comes from function > (from > >>> > other > >>> > > >> > module > >>> > > >> > > > >> without > >>> > > >> > > > >> > > > Fast) > >>> > > >> > > > >> > > > > which takes two objects are parameters. > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > > So either terminal isn't showing the real > stack, > >>> or > >>> > > >> there is > >>> > > >> > > > >> > something > >>> > > >> > > > >> > > > else > >>> > > >> > > > >> > > > > wrong... > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > > But my time is up, I'll see it tomorrow (with > >>> latest > >>> > > >> > > revision). > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > > Jussi > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > The incorrect line number problem, as reported by > >>> the > >>> > > >> debugger > >>> > > >> > > > (and > >>> > > >> > > > >> not > >>> > > >> > > > >> > > > when you run the program normally!), should be > >>> fixed in > >>> > > >> > revision > >>> > > >> > > > >> #4841. > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > Regards, > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > -- > >>> > > >> > > > >> > > > Beno?t Minisini > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > >>> > > >> > > > >> > > >>> > > >> > > > >> > >>> > > >> > > > > >>> > > >> > > > >>> > > >> > > >>> > > >> > >>> > > > >>> > > >>> > ------------------------------------------------------------------------------ > >>> > > >> > > > >> > > > Live Security Virtual Conference > >>> > > >> > > > >> > > > Exclusive live event will cover all the ways > >>> today's > >>> > > >> security > >>> > > >> > > and > >>> > > >> > > > >> > > > threat landscape has changed and how IT managers > >>> can > >>> > > >> respond. > >>> > > >> > > > >> > Discussions > >>> > > >> > > > >> > > > will include endpoint security, mobile security > >>> and the > >>> > > >> latest > >>> > > >> > > in > >>> > > >> > > > >> > malware > >>> > > >> > > > >> > > > threats. > >>> > > >> > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >>> > > >> > > > >> > > > _______________________________________________ > >>> > > >> > > > >> > > > Gambas-user mailing list > >>> > > >> > > > >> > > > Gambas-user at lists.sourceforge.net > >>> > > >> > > > >> > > > > >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > >>> > > >> > > > >> > > > >>> > > >> > > > >> > > >>> > > >> > > > >> > >>> > > >> > > > > >>> > > >> > > > >>> > > >> > > >>> > > >> > >>> > > > >>> > > >>> > ------------------------------------------------------------------------------ > >>> > > >> > > > >> > > Live Security Virtual Conference > >>> > > >> > > > >> > > Exclusive live event will cover all the ways > today's > >>> > > security > >>> > > >> > and > >>> > > >> > > > >> > > threat landscape has changed and how IT managers > can > >>> > > respond. > >>> > > >> > > > >> Discussions > >>> > > >> > > > >> > > will include endpoint security, mobile security and > >>> the > >>> > > >> latest > >>> > > >> > in > >>> > > >> > > > >> malware > >>> > > >> > > > >> > > threats. > >>> > > >> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >>> > > >> > > > >> > > _______________________________________________ > >>> > > >> > > > >> > > Gambas-user mailing list > >>> > > >> > > > >> > > Gambas-user at lists.sourceforge.net > >>> > > >> > > > >> > > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > > >> > > > >> > > > >>> > > >> > > > >> > > >>> > > >> > > > >> > > >>> > > >> > > > >> > > >>> > > >> > > > >> > >>> > > >> > > > > >>> > > >> > > > >>> > > >> > > >>> > > >> > >>> > > > >>> > > >>> > ------------------------------------------------------------------------------ > >>> > > >> > > > >> > Live Security Virtual Conference > >>> > > >> > > > >> > Exclusive live event will cover all the ways today's > >>> > security > >>> > > >> and > >>> > > >> > > > >> > threat landscape has changed and how IT managers can > >>> > respond. > >>> > > >> > > > >> Discussions > >>> > > >> > > > >> > will include endpoint security, mobile security and > the > >>> > > latest > >>> > > >> in > >>> > > >> > > > >> malware > >>> > > >> > > > >> > threats. > >>> > > >> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >>> > > >> > > > >> > _______________________________________________ > >>> > > >> > > > >> > Gambas-user mailing list > >>> > > >> > > > >> > Gambas-user at lists.sourceforge.net > >>> > > >> > > > >> > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > > >> > > > >> > > >>> > > >> > > > >> > > >>> > > >> > > > >> > >>> > > >> > > > >> > >>> > > >> > > > > >>> > > >> > > > >>> > > >> > > >>> > > >> > >>> > > > >>> > > >>> > ------------------------------------------------------------------------------ > >>> > > >> > > > >> Live Security Virtual Conference > >>> > > >> > > > >> Exclusive live event will cover all the ways today's > >>> security > >>> > > and > >>> > > >> > > > >> threat landscape has changed and how IT managers can > >>> respond. > >>> > > >> > > > Discussions > >>> > > >> > > > >> will include endpoint security, mobile security and the > >>> > latest > >>> > > in > >>> > > >> > > > malware > >>> > > >> > > > >> threats. > >>> > > >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >>> > > >> > > > >> _______________________________________________ > >>> > > >> > > > >> Gambas-user mailing list > >>> > > >> > > > >> Gambas-user at lists.sourceforge.net > >>> > > >> > > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > > >> > > > >> > >>> > > >> > > > > > >>> > > >> > > > > > >>> > > >> > > > > >>> > > >> > > > > >>> > > >> > > > > >>> > > >> > > > >>> > > >> > > >>> > > >> > >>> > > > >>> > > >>> > ------------------------------------------------------------------------------ > >>> > > >> > > > Live Security Virtual Conference > >>> > > >> > > > Exclusive live event will cover all the ways today's > >>> security > >>> > and > >>> > > >> > > > threat landscape has changed and how IT managers can > >>> respond. > >>> > > >> > Discussions > >>> > > >> > > > will include endpoint security, mobile security and the > >>> latest > >>> > in > >>> > > >> > malware > >>> > > >> > > > threats. > >>> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >>> > > >> > > > _______________________________________________ > >>> > > >> > > > Gambas-user mailing list > >>> > > >> > > > Gambas-user at lists.sourceforge.net > >>> > > >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > > >> > > > > >>> > > >> > > > > >>> > > >> > > > >>> > > >> > > > >>> > > >> > > >>> > > >> > >>> > > > >>> > > >>> > ------------------------------------------------------------------------------ > >>> > > >> > > Live Security Virtual Conference > >>> > > >> > > Exclusive live event will cover all the ways today's > security > >>> and > >>> > > >> > > threat landscape has changed and how IT managers can > respond. > >>> > > >> Discussions > >>> > > >> > > will include endpoint security, mobile security and the > >>> latest in > >>> > > >> malware > >>> > > >> > > threats. > >>> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >>> > > >> > > _______________________________________________ > >>> > > >> > > Gambas-user mailing list > >>> > > >> > > Gambas-user at lists.sourceforge.net > >>> > > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > > >> > > > >>> > > >> > > >>> > > >> > > >>> > > >> > >>> > > > >>> > > >>> > ------------------------------------------------------------------------------ > >>> > > >> > Live Security Virtual Conference > >>> > > >> > Exclusive live event will cover all the ways today's security > >>> and > >>> > > >> > threat landscape has changed and how IT managers can respond. > >>> > > >> Discussions > >>> > > >> > will include endpoint security, mobile security and the latest > >>> in > >>> > > >> malware > >>> > > >> > threats. > >>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >>> > > >> > _______________________________________________ > >>> > > >> > Gambas-user mailing list > >>> > > >> > Gambas-user at lists.sourceforge.net > >>> > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > > >> > > >>> > > >> > >>> > > >> > >>> > > > >>> > > >>> > ------------------------------------------------------------------------------ > >>> > > >> Live Security Virtual Conference > >>> > > >> Exclusive live event will cover all the ways today's security > and > >>> > > >> threat landscape has changed and how IT managers can respond. > >>> > > Discussions > >>> > > >> will include endpoint security, mobile security and the latest > in > >>> > > malware > >>> > > >> threats. > >>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >>> > > >> _______________________________________________ > >>> > > >> Gambas-user mailing list > >>> > > >> Gambas-user at lists.sourceforge.net > >>> > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > > >> > >>> > > > > >>> > > > > >>> > > > >>> > > > >>> > > > >>> > > >>> > ------------------------------------------------------------------------------ > >>> > > Live Security Virtual Conference > >>> > > Exclusive live event will cover all the ways today's security and > >>> > > threat landscape has changed and how IT managers can respond. > >>> Discussions > >>> > > will include endpoint security, mobile security and the latest in > >>> malware > >>> > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >>> > > _______________________________________________ > >>> > > Gambas-user mailing list > >>> > > Gambas-user at lists.sourceforge.net > >>> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > > > >>> > > > >>> > > >>> > > >>> > ------------------------------------------------------------------------------ > >>> > Live Security Virtual Conference > >>> > Exclusive live event will cover all the ways today's security and > >>> > threat landscape has changed and how IT managers can respond. > >>> Discussions > >>> > will include endpoint security, mobile security and the latest in > >>> malware > >>> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >>> > _______________________________________________ > >>> > Gambas-user mailing list > >>> > Gambas-user at lists.sourceforge.net > >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > > >>> > >>> > ------------------------------------------------------------------------------ > >>> Live Security Virtual Conference > >>> Exclusive live event will cover all the ways today's security and > >>> threat landscape has changed and how IT managers can respond. > Discussions > >>> will include endpoint security, mobile security and the latest in > malware > >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > >> > >> > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From emil.lenngren at ...626... Wed Jun 20 18:14:57 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Wed, 20 Jun 2012 18:14:57 +0200 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: Tomorrow I will travel away for a week so I cannot do anything then, but just keep sending emails and I will reply when I come home :) /Emil 2012/6/20 Jussi Lahtinen > So far everything seems to work! > I'll continue further testing later. > > Jussi > > > > On 20 June 2012 01:10, Emil Lenngren wrote: > > > Is revision #4851 useful for you? > > You can now convert functions in the current running class to pointers. > > > > /Emil > > > > 2012/6/19 Emil Lenngren > > > > > It should work in the latest revision :) > > > > > > > > > 2012/6/19 Emil Lenngren > > > > > >> If you want a quick workaround, you can have non-fast method that > > creates > > >> a callback, and immediately returns it, like: > > >> > > >> Private Function GenerateCallback() As Pointer > > >> 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 > > >> > > >>> No problem, I'm glad to help making Gambas more robust, when ever I > > have > > >>> time to do so! > > >>> And testing things seems to be easy contribution for me... > > >>> > > >>> My project has about 120 000 lines of code. And I try JIT with every > > >>> module > > >>> and class of it. > > >>> So I think I will find more bugs... But in some point I must wait > > support > > >>> for callbacks to finish that. > > >>> > > >>> Jussi > > >>> > > >>> > > >>> > > >>> On 19 June 2012 21:58, Emil Lenngren > 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 > > >>> > > > >>> > > More bugs... > > >>> > > > > >>> > > Make shared library (just dummy example [or just use binary that > is > > >>> > > included with project source]); > > >>> > > > > >>> > > #include > > >>> > > > > >>> > > int yEta(int x1, int y1, int x2, int y2) > > >>> > > {return (int) hypot(x1-x2,y1-y2);} > > >>> > > > > >>> > > > > >>> > > Then run the attached project. > > >>> > > With JIT, number of arguments is counted wrong. > > >>> > > > > >>> > > > > >>> > > Jussi > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > On 19 June 2012 21:02, Jussi Lahtinen > > >>> wrote: > > >>> > > > > >>> > > > Yes, it works now! > > >>> > > > > > >>> > > > Jussi > > >>> > > > > > >>> > > > > > >>> > > > > > >>> > > > > > >>> > > > On 18 June 2012 22:34, Emil Lenngren > > >>> wrote: > > >>> > > > > > >>> > > >> 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::addGlobalMapping(const > > >>> llvm::GlobalValue*, > > >>> > > >> void*): > > >>> > > >> > Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping > > already > > >>> > > >> > established!"' failed. > > >>> > > >> > > > >>> > > >> > Program received signal SIGABRT, Aborted. > > >>> > > >> > 0x00007ffff7130445 in __GI_raise (sig=) > > >>> > > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > > >>> > > >> > 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file > or > > >>> > > >> directory. > > >>> > > >> > (gdb) bt > > >>> > > >> > #0 0x00007ffff7130445 in __GI_raise (sig=) > > >>> > > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > > >>> > > >> > #1 0x00007ffff7133bab in __GI_abort () at abort.c:91 > > >>> > > >> > #2 0x00007ffff712910e in __assert_fail_base (fmt= > >>> out>, > > >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) && > > >>> > > >> \"GlobalMapping > > >>> > > >> > already established!\"", file=0x7fffed43c55b > > >>> "ExecutionEngine.cpp", > > >>> > > >> > line=, function=) at > > >>> assert.c:94 > > >>> > > >> > #3 0x00007ffff71291b2 in __GI___assert_fail ( > > >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) && > > >>> > > >> \"GlobalMapping > > >>> > > >> > already established!\"", file=0x7fffed43c55b > > >>> "ExecutionEngine.cpp", > > >>> > > >> > line=165, > > >>> > > >> > function=0x7fffed43d7a0 "void > > >>> > > >> > llvm::ExecutionEngine::addGlobalMapping(const > > >>> llvm::GlobalValue*, > > >>> > > >> void*)") > > >>> > > >> > at assert.c:103 > > >>> > > >> > #4 0x00007fffeca84aae in > > >>> > > >> > llvm::ExecutionEngine::addGlobalMapping(llvm::GlobalValue > > >>> const*, > > >>> > > >> void*) () > > >>> > > >> > from /usr/lib/libLLVM-3.2svn.so > > >>> > > >> > #5 0x00007fffedc85ec7 in register_global_symbol > > >>> (address=0x40ebf6, > > >>> > > >> > value=0x8b2500, name=...) at jit_codegen.cpp:242 > > >>> > > >> > #6 register_global_symbol (name=..., value=0x8b2500, > > >>> > > address=0x40ebf6) > > >>> > > >> > at jit_codegen.cpp:240 > > >>> > > >> > #7 0x00007fffedc8600e in get_global_function_real ( > > >>> > > >> > name=0x7fffedcb9e57 "CLASS_free", func=0x40ebf6, > > >>> ret= > >>> > > out>, > > >>> > > >> > args=, vararg=) at > > >>> > > jit_codegen.cpp:276 > > >>> > > >> > #8 0x00007fffedc8a9dc in operator() (this= > pointer>) > > >>> > > >> > at jit_codegen.cpp:991 > > >>> > > >> > ---Type to continue, or q to quit--- > > >>> > > >> > #9 > > gen_if > > > >>> > > >> (func=..., > > >>> > > >> > cond=0x8999d0, if_name=, > > cont_name= > >>> > out>) > > >>> > > >> > at jit_codegen.cpp:562 > > >>> > > >> > #10 unref_object_no_nullcheck (ptr=0x898ca8) at > > >>> jit_codegen.cpp:993 > > >>> > > >> > #11 0x00007fffedc9a44c in codegen_get_value (this=0x8abba0) > > >>> > > >> > at jit_codegen.cpp:1566 > > >>> > > >> > #12 PushPureObjectVariableExpression::codegen_get_value > > >>> > > (this=0x8abba0) > > >>> > > >> > at jit_codegen.cpp:1545 > > >>> > > >> > #13 0x00007fffedca3f0d in SubrExpression::codegen_get_value > > >>> > > >> (this=0x86a450) > > >>> > > >> > at jit_codegen.cpp:5898 > > >>> > > >> > #14 0x00007fffedc8c21d in DropExpression::codegen > > >>> (this=0x86a4a0) > > >>> > > >> > at jit_codegen.cpp:1257 > > >>> > > >> > #15 0x00007fffedca6fa7 in codegen_statements () at > > >>> > jit_codegen.cpp:855 > > >>> > > >> > #16 JIT_codegen () at jit_codegen.cpp:6490 > > >>> > > >> > #17 0x00007fffedcadc64 in JIT_compile_and_execute () at > > >>> > > >> jit_compile.cpp:119 > > >>> > > >> > #18 0x000000000040a2fb in EXEC_jit_function_loop () at > > >>> > gbx_exec.c:871 > > >>> > > >> > #19 0x000000000040ab22 in EXEC_function_real () at > > >>> gbx_exec.c:862 > > >>> > > >> > #20 0x000000000041e86d in raise_event (observer= > out>, > > >>> > > >> > object=, func_id=, > > >>> > nparam= > >>> > > >> out>) > > >>> > > >> > at gbx_api.c:711 > > >>> > > >> > #21 0x000000000041efa6 in GB_Raise (object=0x8b95c8, > > >>> event_id=16, > > >>> > > >> nparam=0) > > >>> > > >> > at gbx_api.c:842 > > >>> > > >> > #22 0x00007ffff5fce3d3 in gb_raise_button_Click > > >>> (sender= > >>> > > out>) > > >>> > > >> > > > >>> > > >> > Jussi > > >>> > > >> > > > >>> > > >> > > > >>> > > >> > > > >>> > > >> > On 18 June 2012 22:08, Emil Lenngren < > emil.lenngren at ...626... > > > > > >>> > 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 > > >>> > > >> > > > > >>> > > >> > > > OK, I found it. See attachment. > > >>> > > >> > > > > > >>> > > >> > > > Jussi > > >>> > > >> > > > > > >>> > > >> > > > > > >>> > > >> > > > > > >>> > > >> > > > > > >>> > > >> > > > On 17 June 2012 23:36, Jussi Lahtinen < > > >>> jussi.lahtinen at ...626... > > >>> > > > > >>> > > >> > 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::addGlobalMapping(const > > >>> > > llvm::GlobalValue*, > > >>> > > >> > > void*): > > >>> > > >> > > > > Assertion `(CurVal == 0 || Addr == 0) && > "GlobalMapping > > >>> > 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.lenngren at ...626... > > >>> > > > > >>> > > >> > wrote: > > >>> > > >> > > > > > > >>> > > >> > > > >> It should be fixed in revision #4843! > > >>> > > >> > > > >> > > >>> > > >> > > > >> /Emil > > >>> > > >> > > > >> > > >>> > > >> > > > >> 2012/6/17 Jussi Lahtinen > > >>> > > >> > > > >> > > >>> > > >> > > > >> > Yes, it really works now. And I found a lot of > > errors > > >>> by > > >>> > me. > > >>> > > >> > > > >> > > > >>> > > >> > > > >> > But for some reason JIT raises compare method when > it > > >>> > > >> shouldn't, > > >>> > > >> > > > >> > and when I tried to isolate the problem I got crash > > >>> (signal > > >>> > > >> 11). > > >>> > > >> > > > >> > This seems not to be related to compare method, so > > just > > >>> > > ignore > > >>> > > >> > name > > >>> > > >> > > of > > >>> > > >> > > > >> the > > >>> > > >> > > > >> > attached project. > > >>> > > >> > > > >> > I will look it more closely when this is fixed. > > >>> > > >> > > > >> > > > >>> > > >> > > > >> > Jussi > > >>> > > >> > > > >> > > > >>> > > >> > > > >> > > > >>> > > >> > > > >> > > > >>> > > >> > > > >> > > > >>> > > >> > > > >> > On 17 June 2012 19:01, Emil Lenngren < > > >>> > > emil.lenngren at ...626...> > > >>> > > >> > > wrote: > > >>> > > >> > > > >> > > > >>> > > >> > > > >> > > Yes, it works now :) > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > 2012/6/17 Beno?t Minisini < > > >>> gambas at ...1...> > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > Le 17/06/2012 02:54, Jussi Lahtinen a ?crit : > > >>> > > >> > > > >> > > > > Yeah, terminal gives other position... > > >>> > > >> > > > >> > > > > With my actual project, I got error message; > > >>> wanted > > >>> > > >> string, > > >>> > > >> > > got > > >>> > > >> > > > >> > > > > blaablaaClass instead. > > >>> > > >> > > > >> > > > > And that error message comes from function > > (from > > >>> > other > > >>> > > >> > module > > >>> > > >> > > > >> without > > >>> > > >> > > > >> > > > Fast) > > >>> > > >> > > > >> > > > > which takes two objects are parameters. > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > > So either terminal isn't showing the real > > stack, > > >>> or > > >>> > > >> there is > > >>> > > >> > > > >> > something > > >>> > > >> > > > >> > > > else > > >>> > > >> > > > >> > > > > wrong... > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > > But my time is up, I'll see it tomorrow (with > > >>> latest > > >>> > > >> > > revision). > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > > Jussi > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > The incorrect line number problem, as reported > by > > >>> the > > >>> > > >> debugger > > >>> > > >> > > > (and > > >>> > > >> > > > >> not > > >>> > > >> > > > >> > > > when you run the program normally!), should be > > >>> fixed in > > >>> > > >> > revision > > >>> > > >> > > > >> #4841. > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > Regards, > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > -- > > >>> > > >> > > > >> > > > Beno?t Minisini > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > >>> > > >> > > > >> > > >>> > > >> > > > > > >>> > > >> > > > > >>> > > >> > > > >>> > > >> > > >>> > > > > >>> > > > >>> > > > ------------------------------------------------------------------------------ > > >>> > > >> > > > >> > > > Live Security Virtual Conference > > >>> > > >> > > > >> > > > Exclusive live event will cover all the ways > > >>> today's > > >>> > > >> security > > >>> > > >> > > and > > >>> > > >> > > > >> > > > threat landscape has changed and how IT > managers > > >>> can > > >>> > > >> respond. > > >>> > > >> > > > >> > Discussions > > >>> > > >> > > > >> > > > will include endpoint security, mobile security > > >>> and the > > >>> > > >> latest > > >>> > > >> > > in > > >>> > > >> > > > >> > malware > > >>> > > >> > > > >> > > > threats. > > >>> > > >> > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > >>> > > >> > > > >> > > > _______________________________________________ > > >>> > > >> > > > >> > > > Gambas-user mailing list > > >>> > > >> > > > >> > > > Gambas-user at lists.sourceforge.net > > >>> > > >> > > > >> > > > > > >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > >>> > > >> > > > >> > > >>> > > >> > > > > > >>> > > >> > > > > >>> > > >> > > > >>> > > >> > > >>> > > > > >>> > > > >>> > > > ------------------------------------------------------------------------------ > > >>> > > >> > > > >> > > Live Security Virtual Conference > > >>> > > >> > > > >> > > Exclusive live event will cover all the ways > > today's > > >>> > > security > > >>> > > >> > and > > >>> > > >> > > > >> > > threat landscape has changed and how IT managers > > can > > >>> > > respond. > > >>> > > >> > > > >> Discussions > > >>> > > >> > > > >> > > will include endpoint security, mobile security > and > > >>> the > > >>> > > >> latest > > >>> > > >> > in > > >>> > > >> > > > >> malware > > >>> > > >> > > > >> > > threats. > > >>> > > >> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > >>> > > >> > > > >> > > _______________________________________________ > > >>> > > >> > > > >> > > Gambas-user mailing list > > >>> > > >> > > > >> > > Gambas-user at lists.sourceforge.net > > >>> > > >> > > > >> > > > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > >>> > > >> > > > >> > > > >>> > > >> > > > >> > > > >>> > > >> > > > >> > > >>> > > >> > > > > > >>> > > >> > > > > >>> > > >> > > > >>> > > >> > > >>> > > > > >>> > > > >>> > > > ------------------------------------------------------------------------------ > > >>> > > >> > > > >> > Live Security Virtual Conference > > >>> > > >> > > > >> > Exclusive live event will cover all the ways > today's > > >>> > security > > >>> > > >> and > > >>> > > >> > > > >> > threat landscape has changed and how IT managers > can > > >>> > respond. > > >>> > > >> > > > >> Discussions > > >>> > > >> > > > >> > will include endpoint security, mobile security and > > the > > >>> > > latest > > >>> > > >> in > > >>> > > >> > > > >> malware > > >>> > > >> > > > >> > threats. > > >>> > > >> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > >>> > > >> > > > >> > _______________________________________________ > > >>> > > >> > > > >> > Gambas-user mailing list > > >>> > > >> > > > >> > Gambas-user at lists.sourceforge.net > > >>> > > >> > > > >> > > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >>> > > >> > > > >> > > > >>> > > >> > > > >> > > > >>> > > >> > > > >> > > >>> > > >> > > > >> > > >>> > > >> > > > > > >>> > > >> > > > > >>> > > >> > > > >>> > > >> > > >>> > > > > >>> > > > >>> > > > ------------------------------------------------------------------------------ > > >>> > > >> > > > >> Live Security Virtual Conference > > >>> > > >> > > > >> Exclusive live event will cover all the ways today's > > >>> security > > >>> > > and > > >>> > > >> > > > >> threat landscape has changed and how IT managers can > > >>> respond. > > >>> > > >> > > > Discussions > > >>> > > >> > > > >> will include endpoint security, mobile security and > the > > >>> > latest > > >>> > > in > > >>> > > >> > > > malware > > >>> > > >> > > > >> threats. > > >>> > > >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > >>> > > >> > > > >> _______________________________________________ > > >>> > > >> > > > >> Gambas-user mailing list > > >>> > > >> > > > >> Gambas-user at lists.sourceforge.net > > >>> > > >> > > > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >>> > > >> > > > >> > > >>> > > >> > > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > >>> > > >> > > > > > >>> > > >> > > > > > >>> > > >> > > > > >>> > > >> > > > >>> > > >> > > >>> > > > > >>> > > > >>> > > > ------------------------------------------------------------------------------ > > >>> > > >> > > > Live Security Virtual Conference > > >>> > > >> > > > Exclusive live event will cover all the ways today's > > >>> security > > >>> > and > > >>> > > >> > > > threat landscape has changed and how IT managers can > > >>> respond. > > >>> > > >> > Discussions > > >>> > > >> > > > will include endpoint security, mobile security and the > > >>> latest > > >>> > in > > >>> > > >> > malware > > >>> > > >> > > > threats. > > >>> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > >>> > > >> > > > _______________________________________________ > > >>> > > >> > > > Gambas-user mailing list > > >>> > > >> > > > Gambas-user at lists.sourceforge.net > > >>> > > >> > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >>> > > >> > > > > > >>> > > >> > > > > > >>> > > >> > > > > >>> > > >> > > > > >>> > > >> > > > >>> > > >> > > >>> > > > > >>> > > > >>> > > > ------------------------------------------------------------------------------ > > >>> > > >> > > Live Security Virtual Conference > > >>> > > >> > > Exclusive live event will cover all the ways today's > > security > > >>> and > > >>> > > >> > > threat landscape has changed and how IT managers can > > respond. > > >>> > > >> Discussions > > >>> > > >> > > will include endpoint security, mobile security and the > > >>> latest in > > >>> > > >> malware > > >>> > > >> > > threats. > > >>> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > >>> > > >> > > _______________________________________________ > > >>> > > >> > > Gambas-user mailing list > > >>> > > >> > > Gambas-user at lists.sourceforge.net > > >>> > > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >>> > > >> > > > > >>> > > >> > > > >>> > > >> > > > >>> > > >> > > >>> > > > > >>> > > > >>> > > > ------------------------------------------------------------------------------ > > >>> > > >> > Live Security Virtual Conference > > >>> > > >> > Exclusive live event will cover all the ways today's > security > > >>> and > > >>> > > >> > threat landscape has changed and how IT managers can > respond. > > >>> > > >> Discussions > > >>> > > >> > will include endpoint security, mobile security and the > latest > > >>> in > > >>> > > >> malware > > >>> > > >> > threats. > > >>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > >>> > > >> > _______________________________________________ > > >>> > > >> > Gambas-user mailing list > > >>> > > >> > Gambas-user at lists.sourceforge.net > > >>> > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >>> > > >> > > > >>> > > >> > > >>> > > >> > > >>> > > > > >>> > > > >>> > > > ------------------------------------------------------------------------------ > > >>> > > >> Live Security Virtual Conference > > >>> > > >> Exclusive live event will cover all the ways today's security > > and > > >>> > > >> threat landscape has changed and how IT managers can respond. > > >>> > > Discussions > > >>> > > >> will include endpoint security, mobile security and the latest > > in > > >>> > > malware > > >>> > > >> threats. > > >>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > >>> > > >> _______________________________________________ > > >>> > > >> Gambas-user mailing list > > >>> > > >> Gambas-user at lists.sourceforge.net > > >>> > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >>> > > >> > > >>> > > > > > >>> > > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > >>> > > > ------------------------------------------------------------------------------ > > >>> > > Live Security Virtual Conference > > >>> > > Exclusive live event will cover all the ways today's security and > > >>> > > threat landscape has changed and how IT managers can respond. > > >>> Discussions > > >>> > > will include endpoint security, mobile security and the latest in > > >>> malware > > >>> > > threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > >>> > > _______________________________________________ > > >>> > > Gambas-user mailing list > > >>> > > Gambas-user at lists.sourceforge.net > > >>> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >>> > > > > >>> > > > > >>> > > > >>> > > > >>> > > > ------------------------------------------------------------------------------ > > >>> > Live Security Virtual Conference > > >>> > Exclusive live event will cover all the ways today's security and > > >>> > threat landscape has changed and how IT managers can respond. > > >>> Discussions > > >>> > will include endpoint security, mobile security and the latest in > > >>> malware > > >>> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > >>> > _______________________________________________ > > >>> > Gambas-user mailing list > > >>> > Gambas-user at lists.sourceforge.net > > >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >>> > > > >>> > > >>> > > > ------------------------------------------------------------------------------ > > >>> Live Security Virtual Conference > > >>> Exclusive live event will cover all the ways today's security and > > >>> threat landscape has changed and how IT managers can respond. > > Discussions > > >>> will include endpoint security, mobile security and the latest in > > malware > > >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > >>> _______________________________________________ > > >>> Gambas-user mailing list > > >>> Gambas-user at lists.sourceforge.net > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >>> > > >> > > >> > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From willy at ...2734... Wed Jun 20 18:10:22 2012 From: willy at ...2734... (Willy Raets) Date: Wed, 20 Jun 2012 18:10:22 +0200 Subject: [Gambas-user] Pixels and Debian Message-ID: <1340208622.3044.24.camel@...2735...> Hi all, I've been testing some of my applications written on Ubuntu 10.10 on other distributions. I have noticed that on Debian 6.0.3 and 4 (unlike on Ubuntu 10.04 and 10.10 or Lubuntu 12.04) strange things happen, both with Gambas 2.24 and 3.1 written applications. What happens is all pixel related it seems. Some examples you can simply reproduce: 1. If I place a 48x48 png in a PictureBox of 48x48 (property Stretch set to False) the image displays correct in Ubuntu and Lubuntu but seems to be to big for the PictureBox when run on Debian. 2. A form with width set to 1014 doesn't fit on Debian with a screen resolution of 1024 width! It does on Ubuntu and Lubuntu 3. When drawing a text on a DrawArea of width 384 and the Draw.Text X position is 50 the text fits in the Drawing area on Ubuntu/Lubuntu (there is even space left over between the end of the text and the end of the DrawArea), but on Debian the end of the text is not within the DrawArea and thus cut off! Anyone else has this problem? Is it a bug in Debian or both Gambas 2 and 3 Willy From jussi.lahtinen at ...626... Wed Jun 20 18:38:26 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 20 Jun 2012 19:38:26 +0300 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: Yeah, I'm also leaving to countryside for Midsummer parties... but I made quick test, and I found another bug (see attachment). Similar problem with argument counting. Jussi On 20 June 2012 19:14, Emil Lenngren wrote: > Tomorrow I will travel away for a week so I cannot do anything then, but > just keep sending emails and I will reply when I come home :) > > /Emil > > 2012/6/20 Jussi Lahtinen > > > So far everything seems to work! > > I'll continue further testing later. > > > > Jussi > > > > > > > > On 20 June 2012 01:10, Emil Lenngren wrote: > > > > > Is revision #4851 useful for you? > > > You can now convert functions in the current running class to pointers. > > > > > > /Emil > > > > > > 2012/6/19 Emil Lenngren > > > > > > > It should work in the latest revision :) > > > > > > > > > > > > 2012/6/19 Emil Lenngren > > > > > > > >> If you want a quick workaround, you can have non-fast method that > > > creates > > > >> a callback, and immediately returns it, like: > > > >> > > > >> Private Function GenerateCallback() As Pointer > > > >> 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 > > > >> > > > >>> No problem, I'm glad to help making Gambas more robust, when ever I > > > have > > > >>> time to do so! > > > >>> And testing things seems to be easy contribution for me... > > > >>> > > > >>> My project has about 120 000 lines of code. And I try JIT with > every > > > >>> module > > > >>> and class of it. > > > >>> So I think I will find more bugs... But in some point I must wait > > > support > > > >>> for callbacks to finish that. > > > >>> > > > >>> Jussi > > > >>> > > > >>> > > > >>> > > > >>> On 19 June 2012 21:58, Emil Lenngren > > 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 > > > >>> > > > > >>> > > More bugs... > > > >>> > > > > > >>> > > Make shared library (just dummy example [or just use binary > that > > is > > > >>> > > included with project source]); > > > >>> > > > > > >>> > > #include > > > >>> > > > > > >>> > > int yEta(int x1, int y1, int x2, int y2) > > > >>> > > {return (int) hypot(x1-x2,y1-y2);} > > > >>> > > > > > >>> > > > > > >>> > > Then run the attached project. > > > >>> > > With JIT, number of arguments is counted wrong. > > > >>> > > > > > >>> > > > > > >>> > > Jussi > > > >>> > > > > > >>> > > > > > >>> > > > > > >>> > > > > > >>> > > > > > >>> > > > > > >>> > > > > > >>> > > > > > >>> > > On 19 June 2012 21:02, Jussi Lahtinen < > jussi.lahtinen at ...626...> > > > >>> wrote: > > > >>> > > > > > >>> > > > Yes, it works now! > > > >>> > > > > > > >>> > > > Jussi > > > >>> > > > > > > >>> > > > > > > >>> > > > > > > >>> > > > > > > >>> > > > On 18 June 2012 22:34, Emil Lenngren < > emil.lenngren at ...626...> > > > >>> wrote: > > > >>> > > > > > > >>> > > >> 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::addGlobalMapping(const > > > >>> llvm::GlobalValue*, > > > >>> > > >> void*): > > > >>> > > >> > Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping > > > already > > > >>> > > >> > established!"' failed. > > > >>> > > >> > > > > >>> > > >> > Program received signal SIGABRT, Aborted. > > > >>> > > >> > 0x00007ffff7130445 in __GI_raise (sig=) > > > >>> > > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > > > >>> > > >> > 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such > file > > or > > > >>> > > >> directory. > > > >>> > > >> > (gdb) bt > > > >>> > > >> > #0 0x00007ffff7130445 in __GI_raise (sig=) > > > >>> > > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > > > >>> > > >> > #1 0x00007ffff7133bab in __GI_abort () at abort.c:91 > > > >>> > > >> > #2 0x00007ffff712910e in __assert_fail_base > (fmt= > > >>> out>, > > > >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) && > > > >>> > > >> \"GlobalMapping > > > >>> > > >> > already established!\"", file=0x7fffed43c55b > > > >>> "ExecutionEngine.cpp", > > > >>> > > >> > line=, function=) at > > > >>> assert.c:94 > > > >>> > > >> > #3 0x00007ffff71291b2 in __GI___assert_fail ( > > > >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) && > > > >>> > > >> \"GlobalMapping > > > >>> > > >> > already established!\"", file=0x7fffed43c55b > > > >>> "ExecutionEngine.cpp", > > > >>> > > >> > line=165, > > > >>> > > >> > function=0x7fffed43d7a0 "void > > > >>> > > >> > llvm::ExecutionEngine::addGlobalMapping(const > > > >>> llvm::GlobalValue*, > > > >>> > > >> void*)") > > > >>> > > >> > at assert.c:103 > > > >>> > > >> > #4 0x00007fffeca84aae in > > > >>> > > >> > llvm::ExecutionEngine::addGlobalMapping(llvm::GlobalValue > > > >>> const*, > > > >>> > > >> void*) () > > > >>> > > >> > from /usr/lib/libLLVM-3.2svn.so > > > >>> > > >> > #5 0x00007fffedc85ec7 in register_global_symbol > > > >>> (address=0x40ebf6, > > > >>> > > >> > value=0x8b2500, name=...) at jit_codegen.cpp:242 > > > >>> > > >> > #6 register_global_symbol (name=..., value=0x8b2500, > > > >>> > > address=0x40ebf6) > > > >>> > > >> > at jit_codegen.cpp:240 > > > >>> > > >> > #7 0x00007fffedc8600e in get_global_function_real ( > > > >>> > > >> > name=0x7fffedcb9e57 "CLASS_free", func=0x40ebf6, > > > >>> ret= > > >>> > > out>, > > > >>> > > >> > args=, vararg=) at > > > >>> > > jit_codegen.cpp:276 > > > >>> > > >> > #8 0x00007fffedc8a9dc in operator() (this= > > pointer>) > > > >>> > > >> > at jit_codegen.cpp:991 > > > >>> > > >> > ---Type to continue, or q to quit--- > > > >>> > > >> > #9 > > > gen_if > > > > >>> > > >> (func=..., > > > >>> > > >> > cond=0x8999d0, if_name=, > > > cont_name= > > >>> > out>) > > > >>> > > >> > at jit_codegen.cpp:562 > > > >>> > > >> > #10 unref_object_no_nullcheck (ptr=0x898ca8) at > > > >>> jit_codegen.cpp:993 > > > >>> > > >> > #11 0x00007fffedc9a44c in codegen_get_value > (this=0x8abba0) > > > >>> > > >> > at jit_codegen.cpp:1566 > > > >>> > > >> > #12 PushPureObjectVariableExpression::codegen_get_value > > > >>> > > (this=0x8abba0) > > > >>> > > >> > at jit_codegen.cpp:1545 > > > >>> > > >> > #13 0x00007fffedca3f0d in > SubrExpression::codegen_get_value > > > >>> > > >> (this=0x86a450) > > > >>> > > >> > at jit_codegen.cpp:5898 > > > >>> > > >> > #14 0x00007fffedc8c21d in DropExpression::codegen > > > >>> (this=0x86a4a0) > > > >>> > > >> > at jit_codegen.cpp:1257 > > > >>> > > >> > #15 0x00007fffedca6fa7 in codegen_statements () at > > > >>> > jit_codegen.cpp:855 > > > >>> > > >> > #16 JIT_codegen () at jit_codegen.cpp:6490 > > > >>> > > >> > #17 0x00007fffedcadc64 in JIT_compile_and_execute () at > > > >>> > > >> jit_compile.cpp:119 > > > >>> > > >> > #18 0x000000000040a2fb in EXEC_jit_function_loop () at > > > >>> > gbx_exec.c:871 > > > >>> > > >> > #19 0x000000000040ab22 in EXEC_function_real () at > > > >>> gbx_exec.c:862 > > > >>> > > >> > #20 0x000000000041e86d in raise_event (observer= > > out>, > > > >>> > > >> > object=, func_id=, > > > >>> > nparam= > > >>> > > >> out>) > > > >>> > > >> > at gbx_api.c:711 > > > >>> > > >> > #21 0x000000000041efa6 in GB_Raise (object=0x8b95c8, > > > >>> event_id=16, > > > >>> > > >> nparam=0) > > > >>> > > >> > at gbx_api.c:842 > > > >>> > > >> > #22 0x00007ffff5fce3d3 in gb_raise_button_Click > > > >>> (sender= > > >>> > > out>) > > > >>> > > >> > > > > >>> > > >> > Jussi > > > >>> > > >> > > > > >>> > > >> > > > > >>> > > >> > > > > >>> > > >> > On 18 June 2012 22:08, Emil Lenngren < > > emil.lenngren at ...626... > > > > > > > >>> > 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 > > > >>> > > >> > > > > > >>> > > >> > > > OK, I found it. See attachment. > > > >>> > > >> > > > > > > >>> > > >> > > > Jussi > > > >>> > > >> > > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > > >>> > > >> > > > On 17 June 2012 23:36, Jussi Lahtinen < > > > >>> jussi.lahtinen at ...626... > > > >>> > > > > > >>> > > >> > 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::addGlobalMapping(const > > > >>> > > llvm::GlobalValue*, > > > >>> > > >> > > void*): > > > >>> > > >> > > > > Assertion `(CurVal == 0 || Addr == 0) && > > "GlobalMapping > > > >>> > 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.lenngren at ...626... > > > >>> > > > > > >>> > > >> > wrote: > > > >>> > > >> > > > > > > > >>> > > >> > > > >> It should be fixed in revision #4843! > > > >>> > > >> > > > >> > > > >>> > > >> > > > >> /Emil > > > >>> > > >> > > > >> > > > >>> > > >> > > > >> 2012/6/17 Jussi Lahtinen > > > > >>> > > >> > > > >> > > > >>> > > >> > > > >> > Yes, it really works now. And I found a lot of > > > errors > > > >>> by > > > >>> > me. > > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > But for some reason JIT raises compare method > when > > it > > > >>> > > >> shouldn't, > > > >>> > > >> > > > >> > and when I tried to isolate the problem I got > crash > > > >>> (signal > > > >>> > > >> 11). > > > >>> > > >> > > > >> > This seems not to be related to compare method, > so > > > just > > > >>> > > ignore > > > >>> > > >> > name > > > >>> > > >> > > of > > > >>> > > >> > > > >> the > > > >>> > > >> > > > >> > attached project. > > > >>> > > >> > > > >> > I will look it more closely when this is fixed. > > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > Jussi > > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > On 17 June 2012 19:01, Emil Lenngren < > > > >>> > > emil.lenngren at ...626...> > > > >>> > > >> > > wrote: > > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > Yes, it works now :) > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > 2012/6/17 Beno?t Minisini < > > > >>> gambas at ...1...> > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > Le 17/06/2012 02:54, Jussi Lahtinen a ?crit : > > > >>> > > >> > > > >> > > > > Yeah, terminal gives other position... > > > >>> > > >> > > > >> > > > > With my actual project, I got error > message; > > > >>> wanted > > > >>> > > >> string, > > > >>> > > >> > > got > > > >>> > > >> > > > >> > > > > blaablaaClass instead. > > > >>> > > >> > > > >> > > > > And that error message comes from function > > > (from > > > >>> > other > > > >>> > > >> > module > > > >>> > > >> > > > >> without > > > >>> > > >> > > > >> > > > Fast) > > > >>> > > >> > > > >> > > > > which takes two objects are parameters. > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > > So either terminal isn't showing the real > > > stack, > > > >>> or > > > >>> > > >> there is > > > >>> > > >> > > > >> > something > > > >>> > > >> > > > >> > > > else > > > >>> > > >> > > > >> > > > > wrong... > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > > But my time is up, I'll see it tomorrow > (with > > > >>> latest > > > >>> > > >> > > revision). > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > > Jussi > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > The incorrect line number problem, as > reported > > by > > > >>> the > > > >>> > > >> debugger > > > >>> > > >> > > > (and > > > >>> > > >> > > > >> not > > > >>> > > >> > > > >> > > > when you run the program normally!), should > be > > > >>> fixed in > > > >>> > > >> > revision > > > >>> > > >> > > > >> #4841. > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > Regards, > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > -- > > > >>> > > >> > > > >> > > > Beno?t Minisini > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > >>> > > >> > > > > > > >>> > > >> > > > > > >>> > > >> > > > > >>> > > >> > > > >>> > > > > > >>> > > > > >>> > > > > > > ------------------------------------------------------------------------------ > > > >>> > > >> > > > >> > > > Live Security Virtual Conference > > > >>> > > >> > > > >> > > > Exclusive live event will cover all the ways > > > >>> today's > > > >>> > > >> security > > > >>> > > >> > > and > > > >>> > > >> > > > >> > > > threat landscape has changed and how IT > > managers > > > >>> can > > > >>> > > >> respond. > > > >>> > > >> > > > >> > Discussions > > > >>> > > >> > > > >> > > > will include endpoint security, mobile > security > > > >>> and the > > > >>> > > >> latest > > > >>> > > >> > > in > > > >>> > > >> > > > >> > malware > > > >>> > > >> > > > >> > > > threats. > > > >>> > > >> > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > >>> > > >> > > > >> > > > > _______________________________________________ > > > >>> > > >> > > > >> > > > Gambas-user mailing list > > > >>> > > >> > > > >> > > > Gambas-user at lists.sourceforge.net > > > >>> > > >> > > > >> > > > > > > >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > >>> > > >> > > > > > > >>> > > >> > > > > > >>> > > >> > > > > >>> > > >> > > > >>> > > > > > >>> > > > > >>> > > > > > > ------------------------------------------------------------------------------ > > > >>> > > >> > > > >> > > Live Security Virtual Conference > > > >>> > > >> > > > >> > > Exclusive live event will cover all the ways > > > today's > > > >>> > > security > > > >>> > > >> > and > > > >>> > > >> > > > >> > > threat landscape has changed and how IT > managers > > > can > > > >>> > > respond. > > > >>> > > >> > > > >> Discussions > > > >>> > > >> > > > >> > > will include endpoint security, mobile security > > and > > > >>> the > > > >>> > > >> latest > > > >>> > > >> > in > > > >>> > > >> > > > >> malware > > > >>> > > >> > > > >> > > threats. > > > >>> > > >> > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > >>> > > >> > > > >> > > _______________________________________________ > > > >>> > > >> > > > >> > > Gambas-user mailing list > > > >>> > > >> > > > >> > > Gambas-user at lists.sourceforge.net > > > >>> > > >> > > > >> > > > > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > >>> > > >> > > > > > > >>> > > >> > > > > > >>> > > >> > > > > >>> > > >> > > > >>> > > > > > >>> > > > > >>> > > > > > > ------------------------------------------------------------------------------ > > > >>> > > >> > > > >> > Live Security Virtual Conference > > > >>> > > >> > > > >> > Exclusive live event will cover all the ways > > today's > > > >>> > security > > > >>> > > >> and > > > >>> > > >> > > > >> > threat landscape has changed and how IT managers > > can > > > >>> > respond. > > > >>> > > >> > > > >> Discussions > > > >>> > > >> > > > >> > will include endpoint security, mobile security > and > > > the > > > >>> > > latest > > > >>> > > >> in > > > >>> > > >> > > > >> malware > > > >>> > > >> > > > >> > threats. > > > >>> > > >> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > >>> > > >> > > > >> > _______________________________________________ > > > >>> > > >> > > > >> > Gambas-user mailing list > > > >>> > > >> > > > >> > Gambas-user at lists.sourceforge.net > > > >>> > > >> > > > >> > > > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > >>> > > >> > > > >> > > > >>> > > >> > > > > > > >>> > > >> > > > > > >>> > > >> > > > > >>> > > >> > > > >>> > > > > > >>> > > > > >>> > > > > > > ------------------------------------------------------------------------------ > > > >>> > > >> > > > >> Live Security Virtual Conference > > > >>> > > >> > > > >> Exclusive live event will cover all the ways > today's > > > >>> security > > > >>> > > and > > > >>> > > >> > > > >> threat landscape has changed and how IT managers > can > > > >>> respond. > > > >>> > > >> > > > Discussions > > > >>> > > >> > > > >> will include endpoint security, mobile security and > > the > > > >>> > latest > > > >>> > > in > > > >>> > > >> > > > malware > > > >>> > > >> > > > >> threats. > > > >>> > > >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > >>> > > >> > > > >> _______________________________________________ > > > >>> > > >> > > > >> Gambas-user mailing list > > > >>> > > >> > > > >> Gambas-user at lists.sourceforge.net > > > >>> > > >> > > > >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >>> > > >> > > > >> > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > >>> > > >> > > > > >>> > > >> > > > >>> > > > > > >>> > > > > >>> > > > > > > ------------------------------------------------------------------------------ > > > >>> > > >> > > > Live Security Virtual Conference > > > >>> > > >> > > > Exclusive live event will cover all the ways today's > > > >>> security > > > >>> > and > > > >>> > > >> > > > threat landscape has changed and how IT managers can > > > >>> respond. > > > >>> > > >> > Discussions > > > >>> > > >> > > > will include endpoint security, mobile security and > the > > > >>> latest > > > >>> > in > > > >>> > > >> > malware > > > >>> > > >> > > > threats. > > > >>> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > >>> > > >> > > > _______________________________________________ > > > >>> > > >> > > > Gambas-user mailing list > > > >>> > > >> > > > Gambas-user at lists.sourceforge.net > > > >>> > > >> > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >>> > > >> > > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > >>> > > >> > > > > > >>> > > >> > > > > >>> > > >> > > > >>> > > > > > >>> > > > > >>> > > > > > > ------------------------------------------------------------------------------ > > > >>> > > >> > > Live Security Virtual Conference > > > >>> > > >> > > Exclusive live event will cover all the ways today's > > > security > > > >>> and > > > >>> > > >> > > threat landscape has changed and how IT managers can > > > respond. > > > >>> > > >> Discussions > > > >>> > > >> > > will include endpoint security, mobile security and the > > > >>> latest in > > > >>> > > >> malware > > > >>> > > >> > > threats. > > > >>> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > >>> > > >> > > _______________________________________________ > > > >>> > > >> > > Gambas-user mailing list > > > >>> > > >> > > Gambas-user at lists.sourceforge.net > > > >>> > > >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >>> > > >> > > > > > >>> > > >> > > > > >>> > > >> > > > > >>> > > >> > > > >>> > > > > > >>> > > > > >>> > > > > > > ------------------------------------------------------------------------------ > > > >>> > > >> > Live Security Virtual Conference > > > >>> > > >> > Exclusive live event will cover all the ways today's > > security > > > >>> and > > > >>> > > >> > threat landscape has changed and how IT managers can > > respond. > > > >>> > > >> Discussions > > > >>> > > >> > will include endpoint security, mobile security and the > > latest > > > >>> in > > > >>> > > >> malware > > > >>> > > >> > threats. > > > >>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > >>> > > >> > _______________________________________________ > > > >>> > > >> > Gambas-user mailing list > > > >>> > > >> > Gambas-user at lists.sourceforge.net > > > >>> > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >>> > > >> > > > > >>> > > >> > > > >>> > > >> > > > >>> > > > > > >>> > > > > >>> > > > > > > ------------------------------------------------------------------------------ > > > >>> > > >> Live Security Virtual Conference > > > >>> > > >> Exclusive live event will cover all the ways today's > security > > > and > > > >>> > > >> threat landscape has changed and how IT managers can > respond. > > > >>> > > Discussions > > > >>> > > >> will include endpoint security, mobile security and the > latest > > > in > > > >>> > > malware > > > >>> > > >> threats. > > > >>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > >>> > > >> _______________________________________________ > > > >>> > > >> Gambas-user mailing list > > > >>> > > >> Gambas-user at lists.sourceforge.net > > > >>> > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >>> > > >> > > > >>> > > > > > > >>> > > > > > > >>> > > > > > >>> > > > > > >>> > > > > > >>> > > > > >>> > > > > > > ------------------------------------------------------------------------------ > > > >>> > > Live Security Virtual Conference > > > >>> > > Exclusive live event will cover all the ways today's security > and > > > >>> > > threat landscape has changed and how IT managers can respond. > > > >>> Discussions > > > >>> > > will include endpoint security, mobile security and the latest > in > > > >>> malware > > > >>> > > threats. > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > >>> > > _______________________________________________ > > > >>> > > Gambas-user mailing list > > > >>> > > Gambas-user at lists.sourceforge.net > > > >>> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >>> > > > > > >>> > > > > > >>> > > > > >>> > > > > >>> > > > > > > ------------------------------------------------------------------------------ > > > >>> > Live Security Virtual Conference > > > >>> > Exclusive live event will cover all the ways today's security and > > > >>> > threat landscape has changed and how IT managers can respond. > > > >>> Discussions > > > >>> > will include endpoint security, mobile security and the latest in > > > >>> malware > > > >>> > threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > >>> > _______________________________________________ > > > >>> > Gambas-user mailing list > > > >>> > Gambas-user at lists.sourceforge.net > > > >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >>> > > > > >>> > > > >>> > > > > > > ------------------------------------------------------------------------------ > > > >>> Live Security Virtual Conference > > > >>> Exclusive live event will cover all the ways today's security and > > > >>> threat landscape has changed and how IT managers can respond. > > > Discussions > > > >>> will include endpoint security, mobile security and the latest in > > > malware > > > >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > >>> _______________________________________________ > > > >>> Gambas-user mailing list > > > >>> Gambas-user at lists.sourceforge.net > > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >>> > > > >> > > > >> > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Live Security Virtual Conference > > > Exclusive live event will cover all the ways today's security and > > > threat landscape has changed and how IT managers can respond. > Discussions > > > will include endpoint security, mobile security and the latest in > malware > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: JITBug2-0.0.1.tar.gz Type: application/x-gzip Size: 4735 bytes Desc: not available URL: From emil.lenngren at ...626... Wed Jun 20 19:14:15 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Wed, 20 Jun 2012 19:14:15 +0200 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: That bug was actually an interpreter bug, but it is now corrected in the latest revision :) /Emil 2012/6/20 Jussi Lahtinen > Yeah, I'm also leaving to countryside for Midsummer parties... but I made > quick test, > and I found another bug (see attachment). > > Similar problem with argument counting. > > Jussi > > > > > > On 20 June 2012 19:14, Emil Lenngren wrote: > > > Tomorrow I will travel away for a week so I cannot do anything then, but > > just keep sending emails and I will reply when I come home :) > > > > /Emil > > > > 2012/6/20 Jussi Lahtinen > > > > > So far everything seems to work! > > > I'll continue further testing later. > > > > > > Jussi > > > > > > > > > > > > On 20 June 2012 01:10, Emil Lenngren wrote: > > > > > > > Is revision #4851 useful for you? > > > > You can now convert functions in the current running class to > pointers. > > > > > > > > /Emil > > > > > > > > 2012/6/19 Emil Lenngren > > > > > > > > > It should work in the latest revision :) > > > > > > > > > > > > > > > 2012/6/19 Emil Lenngren > > > > > > > > > >> If you want a quick workaround, you can have non-fast method that > > > > creates > > > > >> a callback, and immediately returns it, like: > > > > >> > > > > >> Private Function GenerateCallback() As Pointer > > > > >> 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 > > > > >> > > > > >>> No problem, I'm glad to help making Gambas more robust, when > ever I > > > > have > > > > >>> time to do so! > > > > >>> And testing things seems to be easy contribution for me... > > > > >>> > > > > >>> My project has about 120 000 lines of code. And I try JIT with > > every > > > > >>> module > > > > >>> and class of it. > > > > >>> So I think I will find more bugs... But in some point I must wait > > > > support > > > > >>> for callbacks to finish that. > > > > >>> > > > > >>> Jussi > > > > >>> > > > > >>> > > > > >>> > > > > >>> On 19 June 2012 21:58, Emil Lenngren > > > 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 > > > > >>> > > > > > >>> > > More bugs... > > > > >>> > > > > > > >>> > > Make shared library (just dummy example [or just use binary > > that > > > is > > > > >>> > > included with project source]); > > > > >>> > > > > > > >>> > > #include > > > > >>> > > > > > > >>> > > int yEta(int x1, int y1, int x2, int y2) > > > > >>> > > {return (int) hypot(x1-x2,y1-y2);} > > > > >>> > > > > > > >>> > > > > > > >>> > > Then run the attached project. > > > > >>> > > With JIT, number of arguments is counted wrong. > > > > >>> > > > > > > >>> > > > > > > >>> > > Jussi > > > > >>> > > > > > > >>> > > > > > > >>> > > > > > > >>> > > > > > > >>> > > > > > > >>> > > > > > > >>> > > > > > > >>> > > > > > > >>> > > On 19 June 2012 21:02, Jussi Lahtinen < > > jussi.lahtinen at ...626...> > > > > >>> wrote: > > > > >>> > > > > > > >>> > > > Yes, it works now! > > > > >>> > > > > > > > >>> > > > Jussi > > > > >>> > > > > > > > >>> > > > > > > > >>> > > > > > > > >>> > > > > > > > >>> > > > On 18 June 2012 22:34, Emil Lenngren < > > emil.lenngren at ...626...> > > > > >>> wrote: > > > > >>> > > > > > > > >>> > > >> 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::addGlobalMapping(const > > > > >>> llvm::GlobalValue*, > > > > >>> > > >> void*): > > > > >>> > > >> > Assertion `(CurVal == 0 || Addr == 0) && "GlobalMapping > > > > already > > > > >>> > > >> > established!"' failed. > > > > >>> > > >> > > > > > >>> > > >> > Program received signal SIGABRT, Aborted. > > > > >>> > > >> > 0x00007ffff7130445 in __GI_raise (sig=) > > > > >>> > > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > > > > >>> > > >> > 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such > > file > > > or > > > > >>> > > >> directory. > > > > >>> > > >> > (gdb) bt > > > > >>> > > >> > #0 0x00007ffff7130445 in __GI_raise (sig= out>) > > > > >>> > > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > > > > >>> > > >> > #1 0x00007ffff7133bab in __GI_abort () at abort.c:91 > > > > >>> > > >> > #2 0x00007ffff712910e in __assert_fail_base > > (fmt= > > > >>> out>, > > > > >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) > && > > > > >>> > > >> \"GlobalMapping > > > > >>> > > >> > already established!\"", file=0x7fffed43c55b > > > > >>> "ExecutionEngine.cpp", > > > > >>> > > >> > line=, function=) at > > > > >>> assert.c:94 > > > > >>> > > >> > #3 0x00007ffff71291b2 in __GI___assert_fail ( > > > > >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == 0) > && > > > > >>> > > >> \"GlobalMapping > > > > >>> > > >> > already established!\"", file=0x7fffed43c55b > > > > >>> "ExecutionEngine.cpp", > > > > >>> > > >> > line=165, > > > > >>> > > >> > function=0x7fffed43d7a0 "void > > > > >>> > > >> > llvm::ExecutionEngine::addGlobalMapping(const > > > > >>> llvm::GlobalValue*, > > > > >>> > > >> void*)") > > > > >>> > > >> > at assert.c:103 > > > > >>> > > >> > #4 0x00007fffeca84aae in > > > > >>> > > >> > > llvm::ExecutionEngine::addGlobalMapping(llvm::GlobalValue > > > > >>> const*, > > > > >>> > > >> void*) () > > > > >>> > > >> > from /usr/lib/libLLVM-3.2svn.so > > > > >>> > > >> > #5 0x00007fffedc85ec7 in register_global_symbol > > > > >>> (address=0x40ebf6, > > > > >>> > > >> > value=0x8b2500, name=...) at jit_codegen.cpp:242 > > > > >>> > > >> > #6 register_global_symbol (name=..., value=0x8b2500, > > > > >>> > > address=0x40ebf6) > > > > >>> > > >> > at jit_codegen.cpp:240 > > > > >>> > > >> > #7 0x00007fffedc8600e in get_global_function_real ( > > > > >>> > > >> > name=0x7fffedcb9e57 "CLASS_free", func=0x40ebf6, > > > > >>> ret= > > > >>> > > out>, > > > > >>> > > >> > args=, vararg=) at > > > > >>> > > jit_codegen.cpp:276 > > > > >>> > > >> > #8 0x00007fffedc8a9dc in operator() (this= > > > pointer>) > > > > >>> > > >> > at jit_codegen.cpp:991 > > > > >>> > > >> > ---Type to continue, or q to quit--- > > > > >>> > > >> > #9 > > > > gen_if > > > > > >>> > > >> (func=..., > > > > >>> > > >> > cond=0x8999d0, if_name=, > > > > cont_name= > > > >>> > out>) > > > > >>> > > >> > at jit_codegen.cpp:562 > > > > >>> > > >> > #10 unref_object_no_nullcheck (ptr=0x898ca8) at > > > > >>> jit_codegen.cpp:993 > > > > >>> > > >> > #11 0x00007fffedc9a44c in codegen_get_value > > (this=0x8abba0) > > > > >>> > > >> > at jit_codegen.cpp:1566 > > > > >>> > > >> > #12 PushPureObjectVariableExpression::codegen_get_value > > > > >>> > > (this=0x8abba0) > > > > >>> > > >> > at jit_codegen.cpp:1545 > > > > >>> > > >> > #13 0x00007fffedca3f0d in > > SubrExpression::codegen_get_value > > > > >>> > > >> (this=0x86a450) > > > > >>> > > >> > at jit_codegen.cpp:5898 > > > > >>> > > >> > #14 0x00007fffedc8c21d in DropExpression::codegen > > > > >>> (this=0x86a4a0) > > > > >>> > > >> > at jit_codegen.cpp:1257 > > > > >>> > > >> > #15 0x00007fffedca6fa7 in codegen_statements () at > > > > >>> > jit_codegen.cpp:855 > > > > >>> > > >> > #16 JIT_codegen () at jit_codegen.cpp:6490 > > > > >>> > > >> > #17 0x00007fffedcadc64 in JIT_compile_and_execute () at > > > > >>> > > >> jit_compile.cpp:119 > > > > >>> > > >> > #18 0x000000000040a2fb in EXEC_jit_function_loop () at > > > > >>> > gbx_exec.c:871 > > > > >>> > > >> > #19 0x000000000040ab22 in EXEC_function_real () at > > > > >>> gbx_exec.c:862 > > > > >>> > > >> > #20 0x000000000041e86d in raise_event > (observer= > > > out>, > > > > >>> > > >> > object=, func_id=, > > > > >>> > nparam= > > > >>> > > >> out>) > > > > >>> > > >> > at gbx_api.c:711 > > > > >>> > > >> > #21 0x000000000041efa6 in GB_Raise (object=0x8b95c8, > > > > >>> event_id=16, > > > > >>> > > >> nparam=0) > > > > >>> > > >> > at gbx_api.c:842 > > > > >>> > > >> > #22 0x00007ffff5fce3d3 in gb_raise_button_Click > > > > >>> (sender= > > > >>> > > out>) > > > > >>> > > >> > > > > > >>> > > >> > Jussi > > > > >>> > > >> > > > > > >>> > > >> > > > > > >>> > > >> > > > > > >>> > > >> > On 18 June 2012 22:08, Emil Lenngren < > > > emil.lenngren at ...626... > > > > > > > > > >>> > 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 > > > > >>> > > >> > > > > > > >>> > > >> > > > OK, I found it. See attachment. > > > > >>> > > >> > > > > > > > >>> > > >> > > > Jussi > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > On 17 June 2012 23:36, Jussi Lahtinen < > > > > >>> jussi.lahtinen at ...626... > > > > >>> > > > > > > >>> > > >> > 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::addGlobalMapping(const > > > > >>> > > llvm::GlobalValue*, > > > > >>> > > >> > > void*): > > > > >>> > > >> > > > > Assertion `(CurVal == 0 || Addr == 0) && > > > "GlobalMapping > > > > >>> > 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.lenngren at ...626... > > > > >>> > > > > > > >>> > > >> > wrote: > > > > >>> > > >> > > > > > > > > >>> > > >> > > > >> It should be fixed in revision #4843! > > > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> /Emil > > > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> 2012/6/17 Jussi Lahtinen < > jussi.lahtinen at ...626... > > > > > > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > Yes, it really works now. And I found a lot of > > > > errors > > > > >>> by > > > > >>> > me. > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > But for some reason JIT raises compare method > > when > > > it > > > > >>> > > >> shouldn't, > > > > >>> > > >> > > > >> > and when I tried to isolate the problem I got > > crash > > > > >>> (signal > > > > >>> > > >> 11). > > > > >>> > > >> > > > >> > This seems not to be related to compare method, > > so > > > > just > > > > >>> > > ignore > > > > >>> > > >> > name > > > > >>> > > >> > > of > > > > >>> > > >> > > > >> the > > > > >>> > > >> > > > >> > attached project. > > > > >>> > > >> > > > >> > I will look it more closely when this is fixed. > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > Jussi > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > On 17 June 2012 19:01, Emil Lenngren < > > > > >>> > > emil.lenngren at ...626...> > > > > >>> > > >> > > wrote: > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > Yes, it works now :) > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > 2012/6/17 Beno?t Minisini < > > > > >>> gambas at ...1...> > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > Le 17/06/2012 02:54, Jussi Lahtinen a > ?crit : > > > > >>> > > >> > > > >> > > > > Yeah, terminal gives other position... > > > > >>> > > >> > > > >> > > > > With my actual project, I got error > > message; > > > > >>> wanted > > > > >>> > > >> string, > > > > >>> > > >> > > got > > > > >>> > > >> > > > >> > > > > blaablaaClass instead. > > > > >>> > > >> > > > >> > > > > And that error message comes from > function > > > > (from > > > > >>> > other > > > > >>> > > >> > module > > > > >>> > > >> > > > >> without > > > > >>> > > >> > > > >> > > > Fast) > > > > >>> > > >> > > > >> > > > > which takes two objects are parameters. > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > So either terminal isn't showing the real > > > > stack, > > > > >>> or > > > > >>> > > >> there is > > > > >>> > > >> > > > >> > something > > > > >>> > > >> > > > >> > > > else > > > > >>> > > >> > > > >> > > > > wrong... > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > But my time is up, I'll see it tomorrow > > (with > > > > >>> latest > > > > >>> > > >> > > revision). > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > Jussi > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > The incorrect line number problem, as > > reported > > > by > > > > >>> the > > > > >>> > > >> debugger > > > > >>> > > >> > > > (and > > > > >>> > > >> > > > >> not > > > > >>> > > >> > > > >> > > > when you run the program normally!), should > > be > > > > >>> fixed in > > > > >>> > > >> > revision > > > > >>> > > >> > > > >> #4841. > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > Regards, > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > -- > > > > >>> > > >> > > > >> > > > Beno?t Minisini > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > >>> > > >> > > > > >>> > > > > > > >>> > > > > > >>> > > > > > > > > > > ------------------------------------------------------------------------------ > > > > >>> > > >> > > > >> > > > Live Security Virtual Conference > > > > >>> > > >> > > > >> > > > Exclusive live event will cover all the > ways > > > > >>> today's > > > > >>> > > >> security > > > > >>> > > >> > > and > > > > >>> > > >> > > > >> > > > threat landscape has changed and how IT > > > managers > > > > >>> can > > > > >>> > > >> respond. > > > > >>> > > >> > > > >> > Discussions > > > > >>> > > >> > > > >> > > > will include endpoint security, mobile > > security > > > > >>> and the > > > > >>> > > >> latest > > > > >>> > > >> > > in > > > > >>> > > >> > > > >> > malware > > > > >>> > > >> > > > >> > > > threats. > > > > >>> > > >> > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > >>> > > >> > > > >> > > > > > _______________________________________________ > > > > >>> > > >> > > > >> > > > Gambas-user mailing list > > > > >>> > > >> > > > >> > > > Gambas-user at lists.sourceforge.net > > > > >>> > > >> > > > >> > > > > > > > >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > >>> > > >> > > > > >>> > > > > > > >>> > > > > > >>> > > > > > > > > > > ------------------------------------------------------------------------------ > > > > >>> > > >> > > > >> > > Live Security Virtual Conference > > > > >>> > > >> > > > >> > > Exclusive live event will cover all the ways > > > > today's > > > > >>> > > security > > > > >>> > > >> > and > > > > >>> > > >> > > > >> > > threat landscape has changed and how IT > > managers > > > > can > > > > >>> > > respond. > > > > >>> > > >> > > > >> Discussions > > > > >>> > > >> > > > >> > > will include endpoint security, mobile > security > > > and > > > > >>> the > > > > >>> > > >> latest > > > > >>> > > >> > in > > > > >>> > > >> > > > >> malware > > > > >>> > > >> > > > >> > > threats. > > > > >>> > > >> > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > >>> > > >> > > > >> > > > _______________________________________________ > > > > >>> > > >> > > > >> > > Gambas-user mailing list > > > > >>> > > >> > > > >> > > Gambas-user at lists.sourceforge.net > > > > >>> > > >> > > > >> > > > > > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > >>> > > >> > > > > >>> > > > > > > >>> > > > > > >>> > > > > > > > > > > ------------------------------------------------------------------------------ > > > > >>> > > >> > > > >> > Live Security Virtual Conference > > > > >>> > > >> > > > >> > Exclusive live event will cover all the ways > > > today's > > > > >>> > security > > > > >>> > > >> and > > > > >>> > > >> > > > >> > threat landscape has changed and how IT > managers > > > can > > > > >>> > respond. > > > > >>> > > >> > > > >> Discussions > > > > >>> > > >> > > > >> > will include endpoint security, mobile security > > and > > > > the > > > > >>> > > latest > > > > >>> > > >> in > > > > >>> > > >> > > > >> malware > > > > >>> > > >> > > > >> > threats. > > > > >>> > > >> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > >>> > > >> > > > >> > _______________________________________________ > > > > >>> > > >> > > > >> > Gambas-user mailing list > > > > >>> > > >> > > > >> > Gambas-user at lists.sourceforge.net > > > > >>> > > >> > > > >> > > > > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > > >>> > > >> > > > >> > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > >>> > > >> > > > > >>> > > > > > > >>> > > > > > >>> > > > > > > > > > > ------------------------------------------------------------------------------ > > > > >>> > > >> > > > >> Live Security Virtual Conference > > > > >>> > > >> > > > >> Exclusive live event will cover all the ways > > today's > > > > >>> security > > > > >>> > > and > > > > >>> > > >> > > > >> threat landscape has changed and how IT managers > > can > > > > >>> respond. > > > > >>> > > >> > > > Discussions > > > > >>> > > >> > > > >> will include endpoint security, mobile security > and > > > the > > > > >>> > latest > > > > >>> > > in > > > > >>> > > >> > > > malware > > > > >>> > > >> > > > >> threats. > > > > >>> > > >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > >>> > > >> > > > >> _______________________________________________ > > > > >>> > > >> > > > >> Gambas-user mailing list > > > > >>> > > >> > > > >> Gambas-user at lists.sourceforge.net > > > > >>> > > >> > > > >> > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > >>> > > >> > > > >> > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > >>> > > >> > > > > >>> > > > > > > >>> > > > > > >>> > > > > > > > > > > ------------------------------------------------------------------------------ > > > > >>> > > >> > > > Live Security Virtual Conference > > > > >>> > > >> > > > Exclusive live event will cover all the ways today's > > > > >>> security > > > > >>> > and > > > > >>> > > >> > > > threat landscape has changed and how IT managers can > > > > >>> respond. > > > > >>> > > >> > Discussions > > > > >>> > > >> > > > will include endpoint security, mobile security and > > the > > > > >>> latest > > > > >>> > in > > > > >>> > > >> > malware > > > > >>> > > >> > > > threats. > > > > >>> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > >>> > > >> > > > _______________________________________________ > > > > >>> > > >> > > > Gambas-user mailing list > > > > >>> > > >> > > > Gambas-user at lists.sourceforge.net > > > > >>> > > >> > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > >>> > > >> > > > > >>> > > > > > > >>> > > > > > >>> > > > > > > > > > > ------------------------------------------------------------------------------ > > > > >>> > > >> > > Live Security Virtual Conference > > > > >>> > > >> > > Exclusive live event will cover all the ways today's > > > > security > > > > >>> and > > > > >>> > > >> > > threat landscape has changed and how IT managers can > > > > respond. > > > > >>> > > >> Discussions > > > > >>> > > >> > > will include endpoint security, mobile security and > the > > > > >>> latest in > > > > >>> > > >> malware > > > > >>> > > >> > > threats. > > > > >>> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > >>> > > >> > > _______________________________________________ > > > > >>> > > >> > > Gambas-user mailing list > > > > >>> > > >> > > Gambas-user at lists.sourceforge.net > > > > >>> > > >> > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > >>> > > >> > > > > > > >>> > > >> > > > > > >>> > > >> > > > > > >>> > > >> > > > > >>> > > > > > > >>> > > > > > >>> > > > > > > > > > > ------------------------------------------------------------------------------ > > > > >>> > > >> > Live Security Virtual Conference > > > > >>> > > >> > Exclusive live event will cover all the ways today's > > > security > > > > >>> and > > > > >>> > > >> > threat landscape has changed and how IT managers can > > > respond. > > > > >>> > > >> Discussions > > > > >>> > > >> > will include endpoint security, mobile security and the > > > latest > > > > >>> in > > > > >>> > > >> malware > > > > >>> > > >> > threats. > > > > >>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > >>> > > >> > _______________________________________________ > > > > >>> > > >> > Gambas-user mailing list > > > > >>> > > >> > Gambas-user at lists.sourceforge.net > > > > >>> > > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > >>> > > >> > > > > > >>> > > >> > > > > >>> > > >> > > > > >>> > > > > > > >>> > > > > > >>> > > > > > > > > > > ------------------------------------------------------------------------------ > > > > >>> > > >> Live Security Virtual Conference > > > > >>> > > >> Exclusive live event will cover all the ways today's > > security > > > > and > > > > >>> > > >> threat landscape has changed and how IT managers can > > respond. > > > > >>> > > Discussions > > > > >>> > > >> will include endpoint security, mobile security and the > > latest > > > > in > > > > >>> > > malware > > > > >>> > > >> threats. > > > > >>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > >>> > > >> _______________________________________________ > > > > >>> > > >> Gambas-user mailing list > > > > >>> > > >> Gambas-user at lists.sourceforge.net > > > > >>> > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > >>> > > >> > > > > >>> > > > > > > > >>> > > > > > > > >>> > > > > > > >>> > > > > > > >>> > > > > > > >>> > > > > > >>> > > > > > > > > > > ------------------------------------------------------------------------------ > > > > >>> > > Live Security Virtual Conference > > > > >>> > > Exclusive live event will cover all the ways today's security > > and > > > > >>> > > threat landscape has changed and how IT managers can respond. > > > > >>> Discussions > > > > >>> > > will include endpoint security, mobile security and the > latest > > in > > > > >>> malware > > > > >>> > > threats. > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > >>> > > _______________________________________________ > > > > >>> > > Gambas-user mailing list > > > > >>> > > Gambas-user at lists.sourceforge.net > > > > >>> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > >>> > > > > > > >>> > > > > > > >>> > > > > > >>> > > > > > >>> > > > > > > > > > > ------------------------------------------------------------------------------ > > > > >>> > Live Security Virtual Conference > > > > >>> > Exclusive live event will cover all the ways today's security > and > > > > >>> > threat landscape has changed and how IT managers can respond. > > > > >>> Discussions > > > > >>> > will include endpoint security, mobile security and the latest > in > > > > >>> malware > > > > >>> > threats. > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > >>> > _______________________________________________ > > > > >>> > Gambas-user mailing list > > > > >>> > Gambas-user at lists.sourceforge.net > > > > >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > >>> > > > > > >>> > > > > >>> > > > > > > > > > > ------------------------------------------------------------------------------ > > > > >>> Live Security Virtual Conference > > > > >>> Exclusive live event will cover all the ways today's security and > > > > >>> threat landscape has changed and how IT managers can respond. > > > > Discussions > > > > >>> will include endpoint security, mobile security and the latest in > > > > malware > > > > >>> threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > >>> _______________________________________________ > > > > >>> Gambas-user mailing list > > > > >>> Gambas-user at lists.sourceforge.net > > > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > >>> > > > > >> > > > > >> > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Live Security Virtual Conference > > > > Exclusive live event will cover all the ways today's security and > > > > threat landscape has changed and how IT managers can respond. > > Discussions > > > > will include endpoint security, mobile security and the latest in > > malware > > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Live Security Virtual Conference > > > Exclusive live event will cover all the ways today's security and > > > threat landscape has changed and how IT managers can respond. > Discussions > > > will include endpoint security, mobile security and the latest in > malware > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...2524... Wed Jun 20 21:29:43 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 20 Jun 2012 19:29:43 +0000 Subject: [Gambas-user] Issue 259 in gambas: When using the transformation matrix, the "Draw.Picture" method without Width and Height draws dot instead picture. Message-ID: <0-6813199134517018827-8951646381511923275-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 259 by svit... at ...626...: When using the transformation matrix, the "Draw.Picture" method without Width and Height draws dot instead picture. http://code.google.com/p/gambas/issues/detail?id=259 subj Problem in the "CDRAW_picture" method (trunk/main/lib/draw/CDraw.c): w = VARGOPT(w, info.width); h = VARGOPT(h, info.height); w = VARGOPT(w, -1); // bugfix: remove these two lines h = VARGOPT(h, -1); // From willy at ...2734... Wed Jun 20 21:36:57 2012 From: willy at ...2734... (Willy Raets) Date: Wed, 20 Jun 2012 21:36:57 +0200 Subject: [Gambas-user] Fwd: Debian install In-Reply-To: <4FDA0C41.4080709@...626...> References: <4FDA0B8C.1080101@...626...> <4FDA0C41.4080709@...626...> Message-ID: <1340221017.3044.46.camel@...2735...> On do, 2012-06-14 at 19:07 +0300, Demosthenes Koptsis wrote: > i did not incude the libs for > > jit > gstreamer > > if anyone can ... > Hi Demosthenes, I used these on Debian 6.0.4 (but that was before JIT) apt-get install build-essential autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev libglew1.5-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgsl0-dev libgstreamer0.10-dev It did NOT install gb.media because on my Debian because of the gstreamer library version being to low (has to be >= 0.10.31) Haven't installed a revision with JIT yet, what I did find on Gambas website is that JIT needs LLVM >= 3.1. A little search on the Debian website and I came up with llvm-dev (I think this is the one you need). For Devian 6.0.4 the version of LLVM is 2.6-9.1, so I guess no JIT on Debian Squeeze (Sid has version 3.0-9). So I guess no JIT on Debian for a while :-( Willy > > -------- Original Message -------- > Subject: Debian install > Date: Thu, 14 Jun 2012 19:04:28 +0300 > From: Demosthenes Koptsis > To: Gambas User List > > > > is the page > http://gambasdoc.org/help/install/debian?v3&view > > > up to date? > > i use linux mint which is a debian distro and in past i had some > difficulties to install all needed packages to compile gambas3 > > i used the following apt-get > > sudo apt-get install build-essential g++ automake autoconf bzip2 > debhelper dpatch firebird-dev gettext kdelibs5-dev libbz2-dev > libcurl4-openssl-dev libgtk2.0-dev libjpeg62-dev libmysqlclient-dev > libpcre3-dev libpng12-dev libpoppler-dev libpq-dev libqt3-compat-headers > libqt3-mt-dev librsvg2-dev libsdl-gfx1.2-dev libsdl-image1.2-dev > libsdl-mixer1.2-dev libsdl-sound1.2-dev libsdl1.2-dev libsqlite0-dev > libsqlite3-dev libssl-dev libxml2-dev libxtst-dev mesa-common-dev > unixodbc-dev zlib1g-dev libffi-dev > > the difs are > kdelibs5-dev > libcurl4-openssl-dev > libmysqlclient-dev > > i think i did not forgot something > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Met vriendelijke groeten/ With kind regards, Willy Raets, Voorzitter/chairman, Earthship Belgium vzw. Nederlandse website: http://www.earthshipbelgium.be/nl.html English Website: http://www.earthshipbelgium.be/en.html From emil.lenngren at ...626... Wed Jun 20 21:39:58 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Wed, 20 Jun 2012 21:39:58 +0200 Subject: [Gambas-user] Fwd: Debian install In-Reply-To: <1340221017.3044.46.camel@...2735...> References: <4FDA0B8C.1080101@...626...> <4FDA0C41.4080709@...626...> <1340221017.3044.46.camel@...2735...> Message-ID: You can test the 3.0 version of LLVM and see if it works. When I used the 3.0 version from Ubuntu repository, I got errors. But try it out! /Emil 2012/6/20 Willy Raets > On do, 2012-06-14 at 19:07 +0300, Demosthenes Koptsis wrote: > > i did not incude the libs for > > > > jit > > gstreamer > > > > if anyone can ... > > > > Hi Demosthenes, > > I used these on Debian 6.0.4 (but that was before JIT) > > apt-get install build-essential autoconf libbz2-dev libfbclient2 > libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev > libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev > libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev > libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev > libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev > libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev > libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev libglew1.5-dev > libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev > libgsl0-dev libgstreamer0.10-dev > > It did NOT install gb.media because on my Debian because of the > gstreamer library version being to low (has to be >= 0.10.31) > > Haven't installed a revision with JIT yet, what I did find on Gambas > website is that JIT needs LLVM >= 3.1. > > A little search on the Debian website and I came up with llvm-dev (I > think this is the one you need). For Devian 6.0.4 the version of LLVM is > 2.6-9.1, so I guess no JIT on Debian Squeeze (Sid has version 3.0-9). So > I guess no JIT on Debian for a while :-( > > Willy > > > > > > -------- Original Message -------- > > Subject: Debian install > > Date: Thu, 14 Jun 2012 19:04:28 +0300 > > From: Demosthenes Koptsis > > To: Gambas User List > > > > > > > > is the page > > http://gambasdoc.org/help/install/debian?v3&view > > > > > > up to date? > > > > i use linux mint which is a debian distro and in past i had some > > difficulties to install all needed packages to compile gambas3 > > > > i used the following apt-get > > > > sudo apt-get install build-essential g++ automake autoconf bzip2 > > debhelper dpatch firebird-dev gettext kdelibs5-dev libbz2-dev > > libcurl4-openssl-dev libgtk2.0-dev libjpeg62-dev libmysqlclient-dev > > libpcre3-dev libpng12-dev libpoppler-dev libpq-dev libqt3-compat-headers > > libqt3-mt-dev librsvg2-dev libsdl-gfx1.2-dev libsdl-image1.2-dev > > libsdl-mixer1.2-dev libsdl-sound1.2-dev libsdl1.2-dev libsqlite0-dev > > libsqlite3-dev libssl-dev libxml2-dev libxtst-dev mesa-common-dev > > unixodbc-dev zlib1g-dev libffi-dev > > > > the difs are > > kdelibs5-dev > > libcurl4-openssl-dev > > libmysqlclient-dev > > > > i think i did not forgot something > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- > Met vriendelijke groeten/ With kind regards, > > Willy Raets, > Voorzitter/chairman, > Earthship Belgium vzw. > > Nederlandse website: http://www.earthshipbelgium.be/nl.html > English Website: http://www.earthshipbelgium.be/en.html > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From willy at ...2734... Wed Jun 20 21:42:46 2012 From: willy at ...2734... (Willy Raets) Date: Wed, 20 Jun 2012 21:42:46 +0200 Subject: [Gambas-user] Fwd: Debian install In-Reply-To: <1340221017.3044.46.camel@...2735...> References: <4FDA0B8C.1080101@...626...> <4FDA0C41.4080709@...626...> <1340221017.3044.46.camel@...2735...> Message-ID: <1340221366.3044.48.camel@...2735...> On wo, 2012-06-20 at 21:36 +0200, Willy Raets wrote: > On do, 2012-06-14 at 19:07 +0300, Demosthenes Koptsis wrote: > > i did not incude the libs for > > > > jit > > gstreamer > > > > if anyone can ... > > > > Hi Demosthenes, > > I used these on Debian 6.0.4 (but that was before JIT) > > apt-get install build-essential autoconf libbz2-dev libfbclient2 > libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev > libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev > libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev > libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev > libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev > libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev > libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev libglew1.5-dev > libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev > libgsl0-dev libgstreamer0.10-dev > > It did NOT install gb.media because on my Debian because of the > gstreamer library version being to low (has to be >= 0.10.31) > > Haven't installed a revision with JIT yet, what I did find on Gambas > website is that JIT needs LLVM >= 3.1. > > A little search on the Debian website and I came up with llvm-dev (I > think this is the one you need). For Devian 6.0.4 the version of LLVM is > 2.6-9.1, so I guess no JIT on Debian Squeeze (Sid has version 3.0-9). So > I guess no JIT on Debian for a while :-( For LLVM you could go to SVN repository and install from there. I guess that is the only option on Debian http://llvm.org/releases/download.html Willy From tobiasboege01 at ...1601... Wed Jun 20 21:38:10 2012 From: tobiasboege01 at ...1601... (tobi) Date: Wed, 20 Jun 2012 21:38:10 +0200 Subject: [Gambas-user] Signal #11 when overriding Variant[] - Bug revived? Message-ID: <20120620193810.GI4899@...2774...> Hi Beno?t, this afternoon, we discovered that with a newer revision the program I wrote to demonstrate sorting of multi-dimensioned Variant[] broke. I again get Segfault when exporting an overridden Variant[] class from my project (wasn't there a discussion about this recently?) When I developed this program, I reported a bug which results in a Segfault that was fixed in rev#4715. This seemed to be the result of [main/gbx/gbx_class.c] --8<--------------- [...] 1345 CLASS *array_type = (CLASS *)class->array_type; [...] --8<--------------- where array_type gets 0xc (GB_T_VARIANT or something like that) and is used as a pointer without further checking when overriding the Variant[] class (other native array classes may suffer from similar problems). I don't know how you made this working for me (just tried to get back to that revision to see, if something changed in that function but found nothing). Can you remember? - the subject of the mails was "Segfault when overriding Variant[]" (1st May 2012). Can you tell me something about the state of affairs? Regards, Tobi From sundar_ima at ...251... Fri Jun 22 15:51:41 2012 From: sundar_ima at ...251... (sundar j) Date: 22 Jun 2012 13:51:41 -0000 Subject: [Gambas-user] =?utf-8?q?Fw=3A__Package_creation__failed_to_includ?= =?utf-8?q?e_gambas_dependencies=2E?= Message-ID: <1340116902.S.7607.27457.H.TnN1bmRhciBqAFtHYW1iYXMtdXNlcl0gUGFja2FnZSBjcmVhdGlvbiAgZmFpbGVkIHRvIGluY2x1ZGUgZ2E_.RU.rfs246, rfs246, 73, 998.f4-235-134.old.1340373101.22162@...2802...> Any help please. I still not able to figure out where i miss out. From: "sundar j" <sundar_ima at ...251...> Sent: Tue, 19 Jun 2012 20:11:42 To: <gambas-user at lists.sourceforge.net> Subject: [Gambas-user] Package creation failed to include gambas dependencies. Some how i managed to complete my first project in gambas. Now I am trying to build a .deb package for Ubuntu but struck there.  As indicated by Google this question has been asked many time in various forum and threads and (they) found solution. However the solution did not work for me. The question is, how do you make installation package from gambas which can run on other system which does not have gambas installed? I tried to make the .deb package from kubuntu 12.04 with gambas 3.1 installed. The result says success after creating package but when i tried to install it on ubuntu 12.04 it failed with following dependency errors:- sundar at ...2870...:~$ sudo dpkg -i multibootusb_4.7-1_all.deb [sudo] password for sundar: Selecting previously unselected package multibootusb. (Reading database ... 218672 files and directories currently installed.) Unpacking multibootusb (from multibootusb_4.7-1_all.deb) ... dpkg: dependency problems prevent configuration of multibootusb: multibootusb depends on gambas3-runtime (>= 3.0.90); however:  Package gambas3-runtime is not installed. multibootusb depends on gambas3-runtime (= 3.0.90); however:  Package gambas3-gb-image is not installed. multibootusb depends on gambas3-gb-image (= 3.0.90); however:  Package gambas3-gb-gui is not installed. multibootusb depends on gambas3-gb-gui (= 3.0.90); however:  Package gambas3-gb-form is not installed. multibootusb depends on gambas3-gb-form (= 0.9.23); however:  Package pmount is not installed. multibootusb depends on fuseiso (>= 20070702); however:  Package fuseiso is not installed. dpkg: error processing multibootusb (--install): dependency problems - leaving unconfigured Processing triggers for desktop-file-utils ... Processing triggers for bamfdaemon ... Rebuilding /usr/share/applications/bamf.index... Processing triggers for gnome-menus ... Errors were encountered while processing: multibootusb So does gambas include (gambas) dependency packages like gambas3-runtime when we select installation package from IDE? If not what is the solution to it? Why cant there be an official guide/tutorial on creating packages from IDE? ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From willy at ...2734... Fri Jun 22 16:35:06 2012 From: willy at ...2734... (Willy Raets) Date: Fri, 22 Jun 2012 16:35:06 +0200 Subject: [Gambas-user] Fw: Package creation failed to include gambas dependencies. In-Reply-To: <1340116902.S.7607.27457.H.TnN1bmRhciBqAFtHYW1iYXMtdXNlcl0gUGFja2FnZSBjcmVhdGlvbiAgZmFpbGVkIHRvIGluY2x1ZGUgZ2E_.RU.rfs246, rfs246, 73, 998.f4-235-134.old.1340373101.22162@...2802...> References: <1340116902.S.7607.27457.H.TnN1bmRhciBqAFtHYW1iYXMtdXNlcl0gUGFja2FnZSBjcmVhdGlvbiAgZmFpbGVkIHRvIGluY2x1ZGUgZ2E_.RU.rfs246, rfs246, 73, 998.f4-235-134.old.1340373101.22162@...2802...> Message-ID: <1340375706.2170.15.camel@...2735...> Hi Sundar, Nothing is wrong with the package I believe. It is that you are using dpkg -i to install the package. This will never install the dependencies as dpkg does not do that (at least not on my systems (Ubuntu, Debian and Lubuntu)) sudo apt-get -f install after having done dpkg-i, might solve you problem unless Gambas3 is not the official repository. I don't know what distribution you are on but for Debian, Ubuntu, Lubuntu, Kubuntu and so on there is NO Gambas3 in the official repository YET. If you are on an Ubuntu based distribution look for PPA Kendek Gambas3. Add this to your software resources and after that the sudo apt-get -f install should work for you and install further dependencies. Willy On vr, 2012-06-22 at 13:51 +0000, sundar j wrote: > Any help please. I still not able to figure out where i miss out. > > From: "sundar j" <sundar_ima at ...251...> > Sent: Tue, 19 Jun 2012 20:11:42 > To: <gambas-user at lists.sourceforge.net> > Subject: [Gambas-user] Package creation failed to include gambas dependencies. > Some how i managed to complete my first project in gambas. Now I am trying to build a .deb package for Ubuntu but struck there.  As indicated by Google this question has been asked many time in various forum and threads and (they) found solution. However the solution did not work for me. > > > > The question is, how do you make installation package from gambas which can run on other system which does not have gambas installed? I tried to make the .deb package from kubuntu 12.04 with gambas 3.1 installed. The result says success after creating package but when i tried to install it on ubuntu 12.04 it failed with following dependency errors:- > > > > sundar at ...2870...:~$ sudo dpkg -i multibootusb_4.7-1_all.deb > > [sudo] password for sundar: > > Selecting previously unselected package multibootusb. > > (Reading database ... 218672 files and directories currently installed.) > > Unpacking multibootusb (from multibootusb_4.7-1_all.deb) ... > > dpkg: dependency problems prevent configuration of multibootusb: > > multibootusb depends on gambas3-runtime (>= 3.0.90); however: > >  Package gambas3-runtime is not installed. > > multibootusb depends on gambas3-runtime (= 3.0.90); however: > >  Package gambas3-gb-image is not installed. > > multibootusb depends on gambas3-gb-image (= 3.0.90); however: > >  Package gambas3-gb-gui is not installed. > > multibootusb depends on gambas3-gb-gui (= 3.0.90); however: > >  Package gambas3-gb-form is not installed. > > multibootusb depends on gambas3-gb-form (= 0.9.23); however: > >  Package pmount is not installed. > > multibootusb depends on fuseiso (>= 20070702); however: > >  Package fuseiso is not installed. > > dpkg: error processing multibootusb (--install): > > dependency problems - leaving unconfigured > > Processing triggers for desktop-file-utils ... > > Processing triggers for bamfdaemon ... > > Rebuilding /usr/share/applications/bamf.index... > > Processing triggers for gnome-menus ... > > Errors were encountered while processing: > > multibootusb > > > > So does gambas include (gambas) dependency packages like gambas3-runtime when we select installation package from IDE? If not what is the solution to it? Why cant there be an official guide/tutorial on creating packages from IDE? > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Met vriendelijke groeten/ With kind regards, Willy Raets, Voorzitter/chairman, Earthship Belgium vzw. Nederlandse website: http://www.earthshipbelgium.be/nl.html English Website: http://www.earthshipbelgium.be/en.html From richard.j.walker at ...247... Fri Jun 22 20:15:06 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Fri, 22 Jun 2012 19:15:06 +0100 Subject: [Gambas-user] Fw: Package creation failed to include gambas dependencies. In-Reply-To: <1340375706.2170.15.camel@...2735...> References: <1340375706.2170.15.camel@...2735...> Message-ID: Third attempt at posting this, apologies if the first two really did get out> I have been investigating a similar problem with a package I build for limited distribution (so far only my brother uses this little program). I too have found that the Gambas-created package (rpm in my case) does not include all Gambas dependencies. The spec file lists only: gambas3-runtime gambas3-gb-image gambas3-gb-gui gambas3-gb-form gambas3-gb-dbus gambas3-gb-desktop gambas3-gb-settings The program uses three icons from gb.form.stock, which on Mageia systems is in its own rpm. My brother's system, I believe - trying to check now, does not have this rpm installed and it isn't (obviously) pulled in when he installs my package. Interestingly, the project component selection page omits gb.form.stock, although it does include gb.form, gb.form.dialog and gb.form.mdi. I assumed that .form.stock was somehow included with .form - but I was wrong. The error message he gets when trying to run my program is similar to Sundar's: "This application has raised an unexpected error and must abort" "[27] Cannot load component "gb.form.stock:cannot find component Stock._get.352.2" This looks like a packaging bug to me. Richard From gambas at ...2524... Fri Jun 22 20:44:55 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 22 Jun 2012 18:44:55 +0000 Subject: [Gambas-user] Issue 253 in gambas: GTK++ toolkit only In-Reply-To: <6-6813199134517018827-16987846535652209861-gambas=googlecode.com@...2524...> References: <6-6813199134517018827-16987846535652209861-gambas=googlecode.com@...2524...> <0-6813199134517018827-16987846535652209861-gambas=googlecode.com@...2524...> Message-ID: <7-6813199134517018827-16987846535652209861-gambas=googlecode.com@...2524...> Comment #7 on issue 253 by mati8... at ...626...: GTK++ toolkit only http://code.google.com/p/gambas/issues/detail?id=253 Sorry .. Medium off topic but related. What is the limitation that impedes use the gambas ide with gb.gui or gb.gtk? gb.gui is one of the best features of gambas, and would be interesting that the ide use them. Mainly in environments such as xfce Thanks, and regards. Matias. From gambas at ...1... Fri Jun 22 21:28:54 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 22 Jun 2012 21:28:54 +0200 Subject: [Gambas-user] Fw: Package creation failed to include gambas dependencies. In-Reply-To: References: <1340375706.2170.15.camel@...2735...> Message-ID: <4FE4C776.1020906@...1...> Le 22/06/2012 20:15, RICHARD WALKER a ?crit : > Third attempt at posting this, apologies if the first two really did get out> > > I have been investigating a similar problem with a package I build for > limited distribution (so far only my brother uses this little > program). > > I too have found that the Gambas-created package (rpm in my case) does > not include all Gambas dependencies. The spec file lists only: > > gambas3-runtime > gambas3-gb-image > gambas3-gb-gui > gambas3-gb-form > gambas3-gb-dbus > gambas3-gb-desktop > gambas3-gb-settings > > The program uses three icons from gb.form.stock, which on Mageia > systems is in its own rpm. My brother's system, I believe - trying to > check now, does not have this rpm installed and it isn't (obviously) > pulled in when he installs my package. > > Interestingly, the project component selection page omits > gb.form.stock, although it does include gb.form, gb.form.dialog and > gb.form.mdi. I assumed that .form.stock was somehow included with > .form - but I was wrong. > > > The error message he gets when trying to run my program is similar to Sundar's: > > "This application has raised an unexpected error and must abort" > "[27] Cannot load component "gb.form.stock:cannot find component > Stock._get.352.2" > > This looks like a packaging bug to me. > > Richard > Yes, you are right. gb.form.stock is dynamically loaded by gb.form on demand, so the gb.form package should depent on gb.form.stock package. -- Beno?t Minisini From gambas at ...1... Fri Jun 22 21:53:41 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 22 Jun 2012 21:53:41 +0200 Subject: [Gambas-user] Signal #11 when overriding Variant[] - Bug revived? In-Reply-To: <20120620193810.GI4899@...2774...> References: <20120620193810.GI4899@...2774...> Message-ID: <4FE4CD45.3070901@...1...> Le 20/06/2012 21:38, tobi a ?crit : > Hi Beno?t, > > this afternoon, we discovered that with a newer revision the program I wrote to demonstrate sorting > of multi-dimensioned Variant[] broke. I again get Segfault when exporting an overridden Variant[] > class from my project (wasn't there a discussion about this recently?) > When I developed this program, I reported a bug which results in a Segfault that was fixed in > rev#4715. This seemed to be the result of > > [main/gbx/gbx_class.c] > --8<--------------- > [...] > 1345 CLASS *array_type = (CLASS *)class->array_type; > [...] > --8<--------------- > > where array_type gets 0xc (GB_T_VARIANT or something like that) and is used as a pointer without > further checking when overriding the Variant[] class (other native array classes may suffer from > similar problems). I don't know how you made this working for me (just tried to get back to that > revision to see, if something changed in that function but found nothing). > Can you remember? - the subject of the mails was "Segfault when overriding Variant[]" (1st May 2012). > Can you tell me something about the state of affairs? > > Regards, > Tobi > Please send me the project that shows that bug again. -- Beno?t Minisini From gambas at ...1... Fri Jun 22 21:56:32 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 22 Jun 2012 21:56:32 +0200 Subject: [Gambas-user] Pixels and Debian In-Reply-To: <1340208622.3044.24.camel@...2735...> References: <1340208622.3044.24.camel@...2735...> Message-ID: <4FE4CDF0.8040409@...1...> Le 20/06/2012 18:10, Willy Raets a ?crit : > Hi all, > > I've been testing some of my applications written on Ubuntu 10.10 on > other distributions. I have noticed that on Debian 6.0.3 and 4 (unlike > on Ubuntu 10.04 and 10.10 or Lubuntu 12.04) strange things happen, both > with Gambas 2.24 and 3.1 written applications. > > What happens is all pixel related it seems. > Some examples you can simply reproduce: > 1. If I place a 48x48 png in a PictureBox of 48x48 (property Stretch set > to False) the image displays correct in Ubuntu and Lubuntu but seems to > be to big for the PictureBox when run on Debian. > > 2. A form with width set to 1014 doesn't fit on Debian with a screen > resolution of 1024 width! It does on Ubuntu and Lubuntu > > 3. When drawing a text on a DrawArea of width 384 and the Draw.Text X > position is 50 the text fits in the Drawing area on Ubuntu/Lubuntu > (there is even space left over between the end of the text and the end > of the DrawArea), but on Debian the end of the text is not within the > DrawArea and thus cut off! > > Anyone else has this problem? Is it a bug in Debian or both Gambas 2 and > 3 > > Willy > By default, the dimensions of all forms defined in the IDE (with their controls) is proportional to the font size. If you want absolute pixel sizes, you have to set the "Scaled" virtual property of the form in the IDE, or move/resize your controls by hand. Regards, -- Beno?t Minisini From richard.j.walker at ...247... Fri Jun 22 22:12:37 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Fri, 22 Jun 2012 21:12:37 +0100 Subject: [Gambas-user] Fw: Package creation failed to include gambas dependencies. In-Reply-To: <4FE4C776.1020906@...1...> References: <1340375706.2170.15.camel@...2735...> <4FE4C776.1020906@...1...> Message-ID: Good evening Beno?t, so you're not watching the football either:-) This is something I should report to Mageia packagers, yes? R From gambas at ...1... Fri Jun 22 22:15:07 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 22 Jun 2012 22:15:07 +0200 Subject: [Gambas-user] Package creation failed to include gambas dependencies. In-Reply-To: <20120619144119.19453.qmail@...2871...> References: <20120619144119.19453.qmail@...2871...> Message-ID: <4FE4D24B.3020602@...1...> Le 19/06/2012 16:41, sundar j a ?crit : > Some how i managed to complete my first project in gambas. Now I am trying to build a .deb package for Ubuntu but struck there. As indicated by Google this question has been asked many time in various forum and threads and (they) found solution. However the solution did not work for me. > > The question is, how do you make installation package from gambas which can run on other system which does not have gambas installed? I tried to make the .deb package from kubuntu 12.04 with gambas 3.1 installed. The result says success after creating package but when i tried to install it on ubuntu 12.04 it failed with following dependency errors:- > > sundar at ...2870...:~$ sudo dpkg -i multibootusb_4.7-1_all.deb > [sudo] password for sundar: > Selecting previously unselected package multibootusb. > (Reading database ... 218672 files and directories currently installed.) > Unpacking multibootusb (from multibootusb_4.7-1_all.deb) ... > dpkg: dependency problems prevent configuration of multibootusb: > multibootusb depends on gambas3-runtime (>= 3.0.90); however: > Package gambas3-runtime is not installed. > multibootusb depends on gambas3-runtime (= 3.0.90); however: > Package gambas3-gb-image is not installed. > multibootusb depends on gambas3-gb-image (= 3.0.90); however: > Package gambas3-gb-gui is not installed. > multibootusb depends on gambas3-gb-gui (= 3.0.90); however: > Package gambas3-gb-form is not installed. > multibootusb depends on gambas3-gb-form (= 0.9.23); however: > Package pmount is not installed. > multibootusb depends on fuseiso (>= 20070702); however: > Package fuseiso is not installed. > dpkg: error processing multibootusb (--install): > dependency problems - leaving unconfigured > Processing triggers for desktop-file-utils ... > Processing triggers for bamfdaemon ... > Rebuilding /usr/share/applications/bamf.index... > Processing triggers for gnome-menus ... > Errors were encountered while processing: > multibootusb > > So does gambas include (gambas) dependency packages like gambas3-runtime when we select installation package from IDE? If not what is the solution to it? Why cant there be an official guide/tutorial on creating packages from IDE? > > I also found another strange issue with the created package. I installed created package on Kubuntu with out dependency error. But when i tried to run from menu it shows error message > "This application has raised an unexpected error and must abort" > [45] File or directory does not exist. > Fmain._new.10 > However it works when i run executable from application directory. > > > Regards, > Lt J Sundar There is a problem at the moment: Ubuntu and other Debian-base distributions do not have official gambas3 packages yet. So when you try to install a package made by the IDE, you have these failed dependencies. You must use unofficial repositories to fulfil the required dependencies. -- Beno?t Minisini From gambas at ...1... Fri Jun 22 22:21:35 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 22 Jun 2012 22:21:35 +0200 Subject: [Gambas-user] Fw: Package creation failed to include gambas dependencies. In-Reply-To: References: <1340375706.2170.15.camel@...2735...> <4FE4C776.1020906@...1...> Message-ID: <4FE4D3CF.6060902@...1...> Le 22/06/2012 22:12, RICHARD WALKER a ?crit : > Good evening Beno?t, so you're not watching the football either:-) > > This is something I should report to Mageia packagers, yes? > > R > Not yet. Technically gb.form.stock is not mandatory, so you should not get an error, but a default void icon. Anyway, the packager should be able to add an explicit dependency on gb.form.stock automatically. I will think about it and I will tell you. P.S. I was not watching soccer, but preparing and doing a show in my acting school during two weeks. Far more interesting... :-) -- Beno?t Minisini From richard.j.walker at ...247... Fri Jun 22 22:38:08 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Fri, 22 Jun 2012 21:38:08 +0100 Subject: [Gambas-user] Fw: Package creation failed to include gambas dependencies. In-Reply-To: <4FE4D3CF.6060902@...1...> References: <1340375706.2170.15.camel@...2735...> <4FE4C776.1020906@...1...> <4FE4D3CF.6060902@...1...> Message-ID: Hmm, some of those footballers are pretty good actors... Richard PS I will hold off on the bug report. As I understand it there is EITHER a need to implement an rpm install dependency for gb.form on gb.form.stock, OR to investigate why the loader reports an error instead of allowing a blank icon. You will decide which. From gambas at ...1... Fri Jun 22 23:26:54 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 22 Jun 2012 23:26:54 +0200 Subject: [Gambas-user] Fw: Package creation failed to include gambas dependencies. In-Reply-To: References: <1340375706.2170.15.camel@...2735...> <4FE4C776.1020906@...1...> <4FE4D3CF.6060902@...1...> Message-ID: <4FE4E31E.9050609@...1...> Le 22/06/2012 22:38, RICHARD WALKER a ?crit : > Hmm, some of those footballers are pretty good actors... > > Richard > > PS I will hold off on the bug report. As I understand it there is > EITHER a need to implement an rpm install dependency for gb.form on > gb.form.stock, OR to investigate why the loader reports an error > instead of allowing a blank icon. You will decide which. > Here is the solution I put in revision #4853. Tell me what you think: 1) The gb.form.stock component now can be explicitely check. So check it if you know that you need it. 2) The IDE depends on gb.form.stock. But I didn't ignore the error yet if gb.form.stock is requested and not there. Regards, -- Beno?t Minisini From richard.j.walker at ...247... Sat Jun 23 01:01:12 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Sat, 23 Jun 2012 00:01:12 +0100 Subject: [Gambas-user] Fw: Package creation failed to include gambas dependencies. In-Reply-To: <4FE4E31E.9050609@...1...> References: <1340375706.2170.15.camel@...2735...> <4FE4C776.1020906@...1...> <4FE4D3CF.6060902@...1...> <4FE4E31E.9050609@...1...> Message-ID: Quick comments (before I re-build and test) 2) IDE depends on gb.form.stock. Seems logical but will have no impact on distributed app which uses only the runtime + components. I presume this measure is to make the IDE requirement explicit and stop us relying on the stealthy dynamic load-on-demand. 1) check it if you know that you need it. Ah, that sounds perfect. Presumably the packager wizard will detect the selection and include the "requires" line in the package spec - problem solved. Should the error be ignored? (a) NO - Running an application on a system with only the runtime and a subset of components, where gb.form.stock is missing, only the error message is guaranteed to give an indication of what is wrong. - It is an error, albeit probably non-fatal, and gb.form.stock will be flagged as a requirement IF we have checked its box in the project. It might be a good idea to have the IDE check the box for us if it detects that some stock icons are in use in the project. - Do we ignore any other dependency errors? (b)YES - The missing images will not prevent an application from running. Looks like I have more reasons to keep the error than to ignore it! On the subject of auto-checking the "stock" checkbox, perhaps the logic is that a practised user may just type in the appropriate path to a stock image in the properties sheet, or apply it in the program and would be more likely to know that the gb.form.stock component must be explicitly included in the project. A less experienced user may click on the browse button and get to the image through the wizard and discover later that the wizard had also checked the gb.form.stock component option on his/her behalf. That would be ... intelligent. ...and cool! Richard On 22/06/2012, Beno?t Minisini wrote: > Le 22/06/2012 22:38, RICHARD WALKER a ?crit : >> Hmm, some of those footballers are pretty good actors... >> >> Richard >> >> PS I will hold off on the bug report. As I understand it there is >> EITHER a need to implement an rpm install dependency for gb.form on >> gb.form.stock, OR to investigate why the loader reports an error >> instead of allowing a blank icon. You will decide which. >> > > Here is the solution I put in revision #4853. Tell me what you think: > > 1) The gb.form.stock component now can be explicitely check. So check it > if you know that you need it. > > 2) The IDE depends on gb.form.stock. > > But I didn't ignore the error yet if gb.form.stock is requested and not > there. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From richard.j.walker at ...247... Sat Jun 23 03:31:55 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Sat, 23 Jun 2012 02:31:55 +0100 Subject: [Gambas-user] Fw: Package creation failed to include gambas dependencies. In-Reply-To: References: <1340375706.2170.15.camel@...2735...> <4FE4C776.1020906@...1...> <4FE4D3CF.6060902@...1...> <4FE4E31E.9050609@...1...> Message-ID: Thank you Beno?t. Revision 4853 built and installed. The rpm of my application now correctly reflects the selected requirement for gb.form.stock. That would have avoided the problem my brother reported. regards, Richard From sundar_ima at ...251... Sat Jun 23 05:51:46 2012 From: sundar_ima at ...251... (sundar j) Date: 23 Jun 2012 03:51:46 -0000 Subject: [Gambas-user] =?utf-8?q?Package_creation_failed_to_include_gambas?= =?utf-8?q?_dependencies=2E?= Message-ID: <1340396150.S.6868.11064.H.TkJlbm, udCBNaW5pc2luaQBSZTogW0dhbWJhcy11c2VyXSBQYWNrYWdlIGNyZWF0aW9uIGZhaWxlZCB0byA_.RU.rfs246, rfs246, 399, 556.f4-234-225.old.1340423506.12396@...2802...> > I also found another strange issue with the created package. I installed created package on Kubuntu with out dependency error. But when i tried to run from menu it shows error message > "This application has raised an unexpected error and must abort" > [45] File or directory does not exist. > Fmain._new.10 > However it works when i run executable from application directory. Ok. This is because package.gambas unable to execute shell script which was placed inside project directory. Solved it after using Temp$. Beno t Minisini, Ok got it. Is it not possible to include all dependencies when package is being compiled and compressed right from the IDE. This way i need not have to worry about users knowledge on library dependency (only in linux) and their internet connection. You can provide an option of checkbox or name of the package/library to include dependencies in packaging wizard . Please consider this as feature request. From: Beno t Minisini <gambas at ...1...> Sent: Sat, 23 Jun 2012 01:45:50 To: mailing list for gambas users <gambas-user at lists.sourceforge.net> Subject: Re: [Gambas-user] Package creation failed to include gambas dependencies. Le 19/06/2012 16:41, sundar j a ?crit : > Some how i managed to complete my first project in gambas. Now I am trying to build a .deb package for Ubuntu but struck there.  As indicated by Google this question has been asked many time in various forum and threads and (they) found solution. However the solution did not work for me. > > The question is, how do you make installation package from gambas which can run on other system which does not have gambas installed? I tried to make the .deb package from kubuntu 12.04 with gambas 3.1 installed. The result says success after creating package but when i tried to install it on ubuntu 12.04 it failed with following dependency errors:- > > sundar at ...2870...:~$ sudo dpkg -i multibootusb_4.7-1_all.deb > [sudo] password for sundar: > Selecting previously unselected package multibootusb. > (Reading database ... 218672 files and directories currently installed.) > Unpacking multibootusb (from multibootusb_4.7-1_all.deb) ... > dpkg: dependency problems prevent configuration of multibootusb: >   multibootusb depends on gambas3-runtime (>= 3.0.90); however: >    Package gambas3-runtime is not installed. >   multibootusb depends on gambas3-runtime (= 3.0.90); however: >    Package gambas3-gb-image is not installed. >   multibootusb depends on gambas3-gb-image (= 3.0.90); however: >    Package gambas3-gb-gui is not installed. >   multibootusb depends on gambas3-gb-gui (= 3.0.90); however: >    Package gambas3-gb-form is not installed. >   multibootusb depends on gambas3-gb-form (= 0.9.23); however: >    Package pmount is not installed. >   multibootusb depends on fuseiso (>= 20070702); however: >    Package fuseiso is not installed. > dpkg: error processing multibootusb (--install): >   dependency problems - leaving unconfigured > Processing triggers for desktop-file-utils ... > Processing triggers for bamfdaemon ... > Rebuilding /usr/share/applications/bamf.index... > Processing triggers for gnome-menus ... > Errors were encountered while processing: >   multibootusb > > So does gambas include (gambas) dependency packages like gambas3-runtime when we select installation package from IDE? If not what is the solution to it? Why cant there be an official guide/tutorial on creating packages from IDE? > > I also found another strange issue with the created package. I installed created package on Kubuntu with out dependency error. But when i tried to run from menu it shows error message > "This application has raised an unexpected error and must abort" > [45] File or directory does not exist. > Fmain._new.10 > However it works when i run executable from application directory. > > > Regards, > J Sundar There is a problem at the moment: Ubuntu and other Debian-base distributions do not have official gambas3 packages yet. So when you try to install a package made by the IDE, you have these failed dependencies. You must use unofficial repositories to fulfil the required dependencies. -- Beno?t Minisini ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From sundar_ima at ...251... Sat Jun 23 16:02:19 2012 From: sundar_ima at ...251... (sundar j) Date: 23 Jun 2012 14:02:19 -0000 Subject: [Gambas-user] =?utf-8?q?How_to_change_project_description=3F?= Message-ID: <20120623140219.13454.qmail@...2872...> I made my first test pakage with out proper description. Since it was for testing, project description set as default "This program is written in Gambs". Now how do i change this description? I gone through all tabs and drop downs but could nopt figure out the way out. From willy at ...2734... Sat Jun 23 16:44:24 2012 From: willy at ...2734... (Willy Raets) Date: Sat, 23 Jun 2012 16:44:24 +0200 Subject: [Gambas-user] Pixels and Debian In-Reply-To: <4FE4CDF0.8040409@...1...> References: <1340208622.3044.24.camel@...2735...> <4FE4CDF0.8040409@...1...> Message-ID: <1340462664.2541.12.camel@...2735...> On vr, 2012-06-22 at 21:56 +0200, Beno?t Minisini wrote: > Le 20/06/2012 18:10, Willy Raets a ?crit : > > Hi all, > > > > I've been testing some of my applications written on Ubuntu 10.10 on > > other distributions. I have noticed that on Debian 6.0.3 and 4 (unlike > > on Ubuntu 10.04 and 10.10 or Lubuntu 12.04) strange things happen, both > > with Gambas 2.24 and 3.1 written applications. > > > > What happens is all pixel related it seems. > > Some examples you can simply reproduce: > > 1. If I place a 48x48 png in a PictureBox of 48x48 (property Stretch set > > to False) the image displays correct in Ubuntu and Lubuntu but seems to > > be to big for the PictureBox when run on Debian. > > > > 2. A form with width set to 1014 doesn't fit on Debian with a screen > > resolution of 1024 width! It does on Ubuntu and Lubuntu > > > > 3. When drawing a text on a DrawArea of width 384 and the Draw.Text X > > position is 50 the text fits in the Drawing area on Ubuntu/Lubuntu > > (there is even space left over between the end of the text and the end > > of the DrawArea), but on Debian the end of the text is not within the > > DrawArea and thus cut off! > > > > Anyone else has this problem? Is it a bug in Debian or both Gambas 2 and > > 3 > > > > Willy > > > > By default, the dimensions of all forms defined in the IDE (with their > controls) is proportional to the font size. > > If you want absolute pixel sizes, you have to set the "Scaled" virtual > property of the form in the IDE, or move/resize your controls by hand. > > Regards, Setting the Scaled property on the form did solve part of the problem. 1. Pixel of 48x48 now fits PictureBox of 48x48 on Debian 6.0.4 2. Form width of 1000 pixels now correctly fits within screen width of 1024 on Debian 6.0.4 3. Drawing text on a DrawArea still poses a problem on Debain 6.0.4 (see attached screens -> Ubuntu 10.10 -> text fits; Debian 6.0.4 -> text goes beyond the DrawArea -> so doesn't fit) I believe Ubuntu 10.04 having the same problem as Debian 6.0.4. I build a small sample application where you can see the problem yourself (depending on what distro you run it). Any suggestions on how to solve this drawing text on a DrawArea? Willy -------------- next part -------------- A non-text attachment was scrubbed... Name: Debian-6.0.4.png Type: image/png Size: 37448 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Ubuntu-10.10.png Type: image/png Size: 55533 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PixelProblems-0.0.1.tar.gz Type: application/x-compressed-tar Size: 6156 bytes Desc: not available URL: From richard.j.walker at ...247... Sat Jun 23 17:21:56 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Sat, 23 Jun 2012 16:21:56 +0100 Subject: [Gambas-user] How to change project description? In-Reply-To: <20120623140219.13454.qmail@...2872...> References: <20120623140219.13454.qmail@...2872...> Message-ID: There is a hidden file in your project's directory called .project. The description is in there, I believe. Richard On 23/06/2012, sundar j wrote: > I made my first test pakage with out proper description. Since it was for > testing, project description set as default "This program is written in > Gambs". Now how do i change this description? I gone through all tabs and > drop downs but could nopt figure out the way out. > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ea7dfh at ...2382... Sat Jun 23 19:50:26 2012 From: ea7dfh at ...2382... (Jesus) Date: Sat, 23 Jun 2012 19:50:26 +0200 Subject: [Gambas-user] How to change project description? In-Reply-To: <20120623140219.13454.qmail@...2872...> References: <20120623140219.13454.qmail@...2872...> Message-ID: <4FE601E2.20305@...2382...> El 23/06/12 16:02, sundar j escribi?: > I made my first test pakage with out proper description. Since it was for testing, project description set as default "This program is written in Gambs". Now how do i change this description? I gone through all tabs and drop downs but could nopt figure out the way out. What about filling the proper textbox into Project->Properties-> General tab? ;-) -- Jesus Guardon From tobiasboege01 at ...1601... Sun Jun 24 12:40:36 2012 From: tobiasboege01 at ...1601... (tobi) Date: Sun, 24 Jun 2012 12:40:36 +0200 Subject: [Gambas-user] Signal #11 when overriding Variant[] - Bug revived? In-Reply-To: <4FE4CD45.3070901@...1...> References: <20120620193810.GI4899@...2774...> <4FE4CD45.3070901@...1...> Message-ID: <20120624104036.GB746@...2774...> On Fri, 22 Jun 2012, Beno?t Minisini wrote: > Le 20/06/2012 21:38, tobi a ?crit : > > Hi Beno?t, > > > > this afternoon, we discovered that with a newer revision the program I wrote to demonstrate sorting > > of multi-dimensioned Variant[] broke. I again get Segfault when exporting an overridden Variant[] > > class from my project (wasn't there a discussion about this recently?) > > When I developed this program, I reported a bug which results in a Segfault that was fixed in > > rev#4715. This seemed to be the result of > > > > [main/gbx/gbx_class.c] > > --8<--------------- > > [...] > > 1345 CLASS *array_type = (CLASS *)class->array_type; > > [...] > > --8<--------------- > > > > where array_type gets 0xc (GB_T_VARIANT or something like that) and is used as a pointer without > > further checking when overriding the Variant[] class (other native array classes may suffer from > > similar problems). I don't know how you made this working for me (just tried to get back to that > > revision to see, if something changed in that function but found nothing). > > Can you remember? - the subject of the mails was "Segfault when overriding Variant[]" (1st May 2012). > > Can you tell me something about the state of affairs? > > > > Regards, > > Tobi > > > > Please send me the project that shows that bug again. > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user The demonstration project for our website is attached. I removed the Form containing a GridView to sort and some stuff and replaced it by a simple module file to test it with the latest revision, problem still present. Regards, Tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: GridSort2.tar Type: application/x-tar Size: 30720 bytes Desc: not available URL: From gambas at ...1... Sun Jun 24 16:35:33 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 24 Jun 2012 16:35:33 +0200 Subject: [Gambas-user] Fw: Package creation failed to include gambas dependencies. In-Reply-To: References: <1340375706.2170.15.camel@...2735...> <4FE4C776.1020906@...1...> <4FE4D3CF.6060902@...1...> <4FE4E31E.9050609@...1...> Message-ID: <4FE725B5.9030104@...1...> Le 23/06/2012 01:01, RICHARD WALKER a ?crit : > Quick comments (before I re-build and test) > > 2) IDE depends on gb.form.stock. Seems logical but will have no > impact on distributed app which uses only the runtime + components. I > presume this measure is to make the IDE requirement explicit and stop > us relying on the stealthy dynamic load-on-demand. IDE depends on gb.form.stock because by default it uses the "Gambas" icon theme, which is stored in gb.form.stock. > > 1) check it if you know that you need it. Ah, that sounds perfect. > Presumably the packager wizard will detect the selection and include > the "requires" line in the package spec - problem solved. > > Should the error be ignored? (a) NO - Running an application on a > system with only the runtime and a subset of components, where > gb.form.stock is missing, only the error message is guaranteed to > give an indication of what is wrong. - It is an error, albeit > probably non-fatal, and gb.form.stock will be flagged as a > requirement IF we have checked its box in the project. It might be a > good idea to have the IDE check the box for us if it detects that > some stock icons are in use in the project. - Do we ignore any other > dependency errors? > > (b)YES - The missing images will not prevent an application from > running. > > > Looks like I have more reasons to keep the error than to ignore it! > > On the subject of auto-checking the "stock" checkbox, perhaps the > logic is that a practised user may just type in the appropriate path > to a stock image in the properties sheet, or apply it in the program > and would be more likely to know that the gb.form.stock component > must be explicitly included in the project. A less experienced user > may click on the browse button and get to the image through the > wizard and discover later that the wizard had also checked the > gb.form.stock component option on his/her behalf. That would be ... > intelligent. ...and cool! > > Richard > Now when gb.form.stock is not found, a warning message is printed on the standard error output, and a dummy icon is used instead. As for checking gb.form.stock automatically as soon as a stock icon is used: this is not right. A stock icon is not located in gb.form.stock necessarily. It depends on the value of Application.Theme. Only the "Gambas" theme is stored in gb.form.stock. Regards, -- Beno?t Minisini From gambas at ...1... Sun Jun 24 20:41:46 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 24 Jun 2012 20:41:46 +0200 Subject: [Gambas-user] Signal #11 when overriding Variant[] - Bug revived? In-Reply-To: <20120624104036.GB746@...2774...> References: <20120620193810.GI4899@...2774...> <4FE4CD45.3070901@...1...> <20120624104036.GB746@...2774...> Message-ID: <4FE75F6A.7020809@...1...> Le 24/06/2012 12:40, tobi a ?crit : > > The demonstration project for our website is attached. I removed the Form containing a GridView to > sort and some stuff and replaced it by a simple module file to test it with the latest revision, > problem still present. > > Regards, > Tobi > Can you check revision #4856? -- Beno?t Minisini From tobiasboege01 at ...1601... Sun Jun 24 20:46:58 2012 From: tobiasboege01 at ...1601... (tobi) Date: Sun, 24 Jun 2012 20:46:58 +0200 Subject: [Gambas-user] Signal #11 when overriding Variant[] - Bug revived? In-Reply-To: <4FE75F6A.7020809@...1...> References: <20120620193810.GI4899@...2774...> <4FE4CD45.3070901@...1...> <20120624104036.GB746@...2774...> <4FE75F6A.7020809@...1...> Message-ID: <20120624184658.GE746@...2774...> On Sun, 24 Jun 2012, Beno?t Minisini wrote: > Le 24/06/2012 12:40, tobi a ?crit : > > > > The demonstration project for our website is attached. I removed the Form containing a GridView to > > sort and some stuff and replaced it by a simple module file to test it with the latest revision, > > problem still present. > > > > Regards, > > Tobi > > > > Can you check revision #4856? > > -- > Beno?t Minisini > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Alright, works. I wonder how a bugfix could disappear but thanks. Regards, Tobi From gambas at ...1... Sun Jun 24 22:44:59 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 24 Jun 2012 22:44:59 +0200 Subject: [Gambas-user] Signal #11 when overriding Variant[] - Bug revived? In-Reply-To: <20120624184658.GE746@...2774...> References: <20120620193810.GI4899@...2774...> <4FE4CD45.3070901@...1...> <20120624104036.GB746@...2774...> <4FE75F6A.7020809@...1...> <20120624184658.GE746@...2774...> Message-ID: <4FE77C4B.3020406@...1...> Le 24/06/2012 20:46, tobi a ?crit : > > Alright, works. > I wonder how a bugfix could disappear but thanks. > > Regards, > Tobi > Because the bug was not really fixed, and the recent changes on the way classes are loaded woke it up again. And beware that it may break again, as you are not supposed to override native array classes at the moment. If it appears to work reliably, then it will become official in Gambas 3.3. Regards, -- Beno?t Minisini From gambas at ...1... Sun Jun 24 22:47:44 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 24 Jun 2012 22:47:44 +0200 Subject: [Gambas-user] Pixels and Debian In-Reply-To: <1340462664.2541.12.camel@...2735...> References: <1340208622.3044.24.camel@...2735...> <4FE4CDF0.8040409@...1...> <1340462664.2541.12.camel@...2735...> Message-ID: <4FE77CF0.3000509@...1...> Le 23/06/2012 16:44, Willy Raets a ?crit : > On vr, 2012-06-22 at 21:56 +0200, Beno?t Minisini wrote: >> Le 20/06/2012 18:10, Willy Raets a ?crit : >>> Hi all, >>> >>> I've been testing some of my applications written on Ubuntu 10.10 on >>> other distributions. I have noticed that on Debian 6.0.3 and 4 (unlike >>> on Ubuntu 10.04 and 10.10 or Lubuntu 12.04) strange things happen, both >>> with Gambas 2.24 and 3.1 written applications. >>> >>> What happens is all pixel related it seems. >>> Some examples you can simply reproduce: >>> 1. If I place a 48x48 png in a PictureBox of 48x48 (property Stretch set >>> to False) the image displays correct in Ubuntu and Lubuntu but seems to >>> be to big for the PictureBox when run on Debian. >>> >>> 2. A form with width set to 1014 doesn't fit on Debian with a screen >>> resolution of 1024 width! It does on Ubuntu and Lubuntu >>> >>> 3. When drawing a text on a DrawArea of width 384 and the Draw.Text X >>> position is 50 the text fits in the Drawing area on Ubuntu/Lubuntu >>> (there is even space left over between the end of the text and the end >>> of the DrawArea), but on Debian the end of the text is not within the >>> DrawArea and thus cut off! >>> >>> Anyone else has this problem? Is it a bug in Debian or both Gambas 2 and >>> 3 >>> >>> Willy >>> >> >> By default, the dimensions of all forms defined in the IDE (with their >> controls) is proportional to the font size. >> >> If you want absolute pixel sizes, you have to set the "Scaled" virtual >> property of the form in the IDE, or move/resize your controls by hand. >> >> Regards, > > Setting the Scaled property on the form did solve part of the problem. > > 1. Pixel of 48x48 now fits PictureBox of 48x48 on Debian 6.0.4 > > 2. Form width of 1000 pixels now correctly fits within screen width of > 1024 on Debian 6.0.4 > > 3. Drawing text on a DrawArea still poses a problem on Debain 6.0.4 > (see attached screens -> Ubuntu 10.10 -> text fits; Debian 6.0.4 -> text > goes beyond the DrawArea -> so doesn't fit) > I believe Ubuntu 10.04 having the same problem as Debian 6.0.4. > > I build a small sample application where you can see the problem > yourself (depending on what distro you run it). > Any suggestions on how to solve this drawing text on a DrawArea? > > Willy > Why the text should fit the wame way? Apparently you are not using the same font between Ubuntu and Debian. -- Beno?t Minisini From gambas at ...1... Sun Jun 24 22:49:47 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 24 Jun 2012 22:49:47 +0200 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: <4FE77D6B.4080506@...1...> Le 19/06/2012 20:58, Emil Lenngren a ?crit : > 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 > Mmm. Seems weird at first sight, but finally it could be useful. -- Beno?t Minisini From gambas at ...1... Sun Jun 24 22:52:47 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 24 Jun 2012 22:52:47 +0200 Subject: [Gambas-user] More on overriding native classes In-Reply-To: <1340026185.5185.143.camel@...40...> References: <1340024994.5185.135.camel@...40...> <1340026185.5185.143.camel@...40...> Message-ID: <4FE77E1F.8000704@...1...> Le 18/06/2012 15:29, Bruce a ?crit : > 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 >> >> Static Public Hello As String = "Hello from South Australia" >> >> Save and reload the project. >> In MMain.Main type the following: >> >> ?appl[Enter].he >> >> ( see screenshot appended) >> Now that, to me, looks like we have successfully overridden the >> Application class, but look what happens when you run it. >> > > Let me rephrase that (sometimes the keyboard is quicker than the mind.) > > 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 > > Static Public Hello As String = "Hello from South Australia" > > Save and reload the project. > In MMain.Main type the following: > > ?appl[Enter].he > > ( see new! screenshot appended) > Now that, to me, looks like we have successfully overridden the > Application class, but look what happens when you run it. > > > What you should see is a very correct error message saying that Hello > is an unknown method in Application. That is because it hasn't been exported. > But when I go back and export the class, then I get the Multiple Inheritance error. > > B > If you export a class with a name that already exists, it automatically implies inheritance with overriding. So you have a "multiple inheritance" error by using the "Inherits" keyword. -- Beno?t Minisini From bbruen at ...2308... Mon Jun 25 00:41:44 2012 From: bbruen at ...2308... (Bruce) Date: Mon, 25 Jun 2012 08:11:44 +0930 Subject: [Gambas-user] More on overriding native classes In-Reply-To: <4FE77E1F.8000704@...1...> References: <1340024994.5185.135.camel@...40...> <1340026185.5185.143.camel@...40...> <4FE77E1F.8000704@...1...> Message-ID: <1340577705.10400.5.camel@...40...> On Sun, 2012-06-24 at 22:52 +0200, Beno?t Minisini wrote: > Le 18/06/2012 15:29, Bruce a ?crit : > > 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 > >> > >> Static Public Hello As String = "Hello from South Australia" > >> > >> Save and reload the project. > >> In MMain.Main type the following: > >> > >> ?appl[Enter].he > >> > >> ( see screenshot appended) > >> Now that, to me, looks like we have successfully overridden the > >> Application class, but look what happens when you run it. > >> > > > > Let me rephrase that (sometimes the keyboard is quicker than the mind.) > > > > 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 > > > > Static Public Hello As String = "Hello from South Australia" > > > > Save and reload the project. > > In MMain.Main type the following: > > > > ?appl[Enter].he > > > > ( see new! screenshot appended) > > Now that, to me, looks like we have successfully overridden the > > Application class, but look what happens when you run it. > > > > > > What you should see is a very correct error message saying that Hello > > is an unknown method in Application. That is because it hasn't been exported. > > But when I go back and export the class, then I get the Multiple Inheritance error. > > > > B > > > > If you export a class with a name that already exists, it automatically > implies inheritance with overriding. > > So you have a "multiple inheritance" error by using the "Inherits" keyword. > Wow! That simple. Now I can do all those nefarious things I've always wanted :-) Oh, but wait, one question. Class initialisation must occur in some specific order (like constructors and inherited classes), what is it and is there any way to control it? e.g. by the order of the components and libraries in the .startup file? Bruce From gambas at ...1... Mon Jun 25 00:47:53 2012 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Mon, 25 Jun 2012 00:47:53 +0200 Subject: [Gambas-user] More on overriding native classes In-Reply-To: <1340577705.10400.5.camel@...40...> References: <1340024994.5185.135.camel@...40...> <1340026185.5185.143.camel@...40...> <4FE77E1F.8000704@...1...> <1340577705.10400.5.camel@...40...> Message-ID: <4FE79919.4030804@...1...> Le 25/06/2012 00:41, Bruce a ?crit : >> >> If you export a class with a name that already exists, it automatically >> implies inheritance with overriding. >> >> So you have a "multiple inheritance" error by using the "Inherits" keyword. >> > > Wow! That simple. > Now I can do all those nefarious things I've always wanted :-) > > Oh, but wait, one question. > > Class initialisation must occur in some specific order (like > constructors and inherited classes), what is it and is there any way to > control it? e.g. by the order of the components and libraries in > the .startup file? > > Bruce > The only rule if that a class is initialized the first time it is needed. -- Beno?t Minisini From bbruen at ...2308... Mon Jun 25 10:33:41 2012 From: bbruen at ...2308... (Bruce) Date: Mon, 25 Jun 2012 18:03:41 +0930 Subject: [Gambas-user] More on overriding native classes In-Reply-To: <4FE79919.4030804@...1...> References: <1340024994.5185.135.camel@...40...> <1340026185.5185.143.camel@...40...> <4FE77E1F.8000704@...1...> <1340577705.10400.5.camel@...40...> <4FE79919.4030804@...1...> Message-ID: <1340613221.10400.20.camel@...40...> On Mon, 2012-06-25 at 00:47 +0200, Beno?t Minisini wrote: > Le 25/06/2012 00:41, Bruce a ?crit : > >> > >> If you export a class with a name that already exists, it automatically > >> implies inheritance with overriding. > >> > >> So you have a "multiple inheritance" error by using the "Inherits" keyword. > >> > > > > Wow! That simple. > > Now I can do all those nefarious things I've always wanted :-) > > > > Oh, but wait, one question. > > > > Class initialisation must occur in some specific order (like > > constructors and inherited classes), what is it and is there any way to > > control it? e.g. by the order of the components and libraries in > > the .startup file? > > > > Bruce > > > > The only rule if that a class is initialized the first time it is needed. > OK, but not the answer I was hoping for. Presumably "Application" is needed early on in the piece. What I'm trying to work out is, if I override Application then which order does gb.Application._Init() ^ | gb.qt4.Application._Init() ^ | (my) Application.Init() get executed. Why? Because my override is dependent on some of the gb.Application statics. Therefore I need it to execute "after" the gb.Application._Init, so that I can access these static properties without having to implement a late static "StartMeUp" method in my project's Main method to set the static Properties I want. What's even worse is that what I really,really want is my.Application._Init to be executed after some gb.db.***._Init()'s have occurred. But I think that is not possible. If you could just clarify the execution order of the inheritance chain _Init()'s I might find a way around the (nefarious) things I'm trying to do? Bruce From bbruen at ...2308... Mon Jun 25 10:53:42 2012 From: bbruen at ...2308... (Bruce) Date: Mon, 25 Jun 2012 18:23:42 +0930 Subject: [Gambas-user] No return value (18) Message-ID: <1340614422.10400.35.camel@...40...> Every day seems to be Friday the 13th at the moment! Every so often, I manage to write a Property that has "No return value". (It's always a case of something I have done, so it's not a gambas problem.) Today, I have done it again and I can't work out what it is that's wrong. In class Meeting Property Read KnownMeeting as Boolean ... Private Function KnownMeeting_Read() As Boolean '============================================== ' Returns a quick check as to whether the meeting already exists ' on the database. Dim m As New Meeting If m.Exists([$trackcode, Format($racedate, "yymmdd")]) Then Return True Else Return False Endif Catch Error Subst("&1\nERR: ... blah blah blah, never happens. End (The Meeting class is a database interface in a library. The Meeting.Exists([pkey]) As Boolean is a method that just checks for the existence of the primary key in the pk index tables.*) For the life of me I cannot see what I have done wrong here! Any suggestions? Bruce * For those that are interested, depending on the table size in terms of rows and complexity in terms of columns/column types and the proper use of index regeneration doing things this way can be of the order of 300+ times faster than loading the record itself. Proven in both postgresql and (yuck) mysql. In postgresql it Exec's "SELECT EXISTS(Select 1 from &1 where &2) AS ind" where &1 is the table and &2 is the pkey values. I have forgotten the equivalent in mysql. From bbruen at ...2308... Mon Jun 25 13:19:55 2012 From: bbruen at ...2308... (Bruce) Date: Mon, 25 Jun 2012 20:49:55 +0930 Subject: [Gambas-user] No return value (18) In-Reply-To: <1340614422.10400.35.camel@...40...> References: <1340614422.10400.35.camel@...40...> Message-ID: <1340623195.10400.50.camel@...40...> Getting to be Friday 13th^2 On Mon, 2012-06-25 at 18:23 +0930, Bruce wrote: > Every day seems to be Friday the 13th at the moment! > > Every so often, I manage to write a Property that has "No return value". > (It's always a case of something I have done, so it's not a gambas > problem.) > > Today, I have done it again and I can't work out what it is that's > wrong. > > In class Meeting !! should have been "In class MeetingParser" > Property Read KnownMeeting as Boolean > ... > Private Function KnownMeeting_Read() As Boolean > '============================================== > ' Returns a quick check as to whether the meeting already exists > ' on the database. > > Dim m As New Meeting > > If m.Exists([$trackcode, Format($racedate, "yymmdd")]) Then > Return True > Else > Return False > Endif > > Catch > Error Subst("&1\nERR: ... blah blah blah, never happens. > > End > > (The Meeting class is a database interface in a library. The > Meeting.Exists([pkey]) As Boolean is a method that just checks for the > existence of the primary key in the pk index tables.*) > > For the life of me I cannot see what I have done wrong here! > > Any suggestions? > Bruce From bbruen at ...2308... Mon Jun 25 14:36:15 2012 From: bbruen at ...2308... (Bruce) Date: Mon, 25 Jun 2012 22:06:15 +0930 Subject: [Gambas-user] No return value (18) In-Reply-To: <1340623195.10400.50.camel@...40...> References: <1340614422.10400.35.camel@...40...> <1340623195.10400.50.camel@...40...> Message-ID: <1340627775.10400.83.camel@...40...> On Mon, 2012-06-25 at 20:49 +0930, Bruce wrote: > Getting to be Friday 13th^2 > > On Mon, 2012-06-25 at 18:23 +0930, Bruce wrote: > > Every day seems to be Friday the 13th at the moment! > > > > Every so often, I manage to write a Property that has "No return value". > > (It's always a case of something I have done, so it's not a gambas > > problem.) > > > > Today, I have done it again and I can't work out what it is that's > > wrong. > > > > In class Meeting > > !! should have been "In class MeetingParser" > > > Property Read KnownMeeting as Boolean > > ... > > Private Function KnownMeeting_Read() As Boolean > > '============================================== > > ' Returns a quick check as to whether the meeting already exists > > ' on the database. > > > > Dim m As New Meeting > > > > If m.Exists([$trackcode, Format($racedate, "yymmdd")]) Then > > Return True > > Else > > Return False > > Endif > > > > Catch > > Error Subst("&1\nERR: ... blah blah blah, never happens. > > > > End > > > > (The Meeting class is a database interface in a library. The > > Meeting.Exists([pkey]) As Boolean is a method that just checks for the > > existence of the primary key in the pk index tables.*) > > > > For the life of me I cannot see what I have done wrong here! > > > > Any suggestions? > > > > Bruce OK! You can all stop looking, the car keys are in the pocket of my "other jacket". Apologies if that joke doesn't translate too well. There may be a bug or at least an inconsistency. Somewhere down the inheritance chain there is a conditional statement that doesn't, under a certain instance return any value. The "other jacket" was the constructor call "Dim m as New Meeting". Somewhere in a "maze of twisty little passages that all look the same" is a _new() that contains something like: ... If dwarf.hasDagger then return true End The possible bug/inconsistency is that the error (18) is not raised in the Dim statement above, nor is it caught in the procedure that calls the constructor. It is only in the client class of that one that the error seems to be recognized. It's strange that this error has not appeared before, as I said the Meeting.Exists() method is executed over 40,000 times daily. ??? Nevertheless, Beno?t, when I track it down you'll be the second to know. (That is, ahem, someone who shall remain nameless made a stupid mistake.) Stay tuned Bruce From vuott at ...325... Mon Jun 25 18:32:31 2012 From: vuott at ...325... (Ru Vuott) Date: Mon, 25 Jun 2012 17:32:31 +0100 (BST) Subject: [Gambas-user] Gridview_ColumnClick(). How... In-Reply-To: <4FBD8511.2020200@...1...> Message-ID: <1340641951.57947.YahooMailClassic@...2789...> Hello, I have a Gridview with an "horizontal" Header. I saw there would be an event that it rises when I click on a cell of the Header: GridView1_ColumnClick() ...the documentatio says: Event ColumnClick ( Column As Integer ) Sorry, I didn't understand, can you write a little example ? Thanks From vuott at ...325... Mon Jun 25 18:36:25 2012 From: vuott at ...325... (Ru Vuott) Date: Mon, 25 Jun 2012 17:36:25 +0100 (BST) Subject: [Gambas-user] R: Gridview_ColumnClick(). How... In-Reply-To: <1340641951.57947.YahooMailClassic@...2789...> Message-ID: <1340642185.58726.YahooMailClassic@...2789...> Opsss, I solved now. Excuse me. Public Sub GridView1_ColumnClick(number As Integer) Print number End --- Lun 25/6/12, Ru Vuott ha scritto: > Da: Ru Vuott > Oggetto: [Gambas-user] Gridview_ColumnClick(). How... > A: "mailing list for gambas users" > Data: Luned? 25 giugno 2012, 18:32 > Hello, > > I have a Gridview with an "horizontal" Header. I saw there > would be an event that it rises when I click on a cell of > the Header: GridView1_ColumnClick() > > ...the documentatio says: > > ? ? Event ColumnClick ( Column As Integer ) > > Sorry, I didn't understand, can you write a little example > ? > > Thanks > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's > security and > threat landscape has changed and how IT managers can > respond. Discussions > will include endpoint security, mobile security and the > latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tobiasboege01 at ...1601... Mon Jun 25 18:30:15 2012 From: tobiasboege01 at ...1601... (tobi) Date: Mon, 25 Jun 2012 18:30:15 +0200 Subject: [Gambas-user] Gridview_ColumnClick(). How... In-Reply-To: <1340641951.57947.YahooMailClassic@...2789...> References: <4FBD8511.2020200@...1...> <1340641951.57947.YahooMailClassic@...2789...> Message-ID: <20120625163015.GA767@...2774...> On Mon, 25 Jun 2012, Ru Vuott wrote: > Hello, > > I have a Gridview with an "horizontal" Header. I saw there would be an event that it rises when I click on a cell of the Header: GridView1_ColumnClick() > > ...the documentatio says: > > Event ColumnClick ( Column As Integer ) > > Sorry, I didn't understand, can you write a little example ? > > Thanks > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Hi, you get the number of the column that was clicked on as the Column argument, so that you can design actions depending on the column number (like sorting after the type of data in that column, e.g.) How you use it, depends on your application but generally speaking: Public Sub GridView1_ColumnClick(Column As Integer) Print "You clicked on column #";; Column End Regards, Tobi From vuott at ...325... Mon Jun 25 18:42:06 2012 From: vuott at ...325... (Ru Vuott) Date: Mon, 25 Jun 2012 17:42:06 +0100 (BST) Subject: [Gambas-user] Gridview_ColumnClick(). How... In-Reply-To: <20120625163015.GA767@...2774...> Message-ID: <1340642526.89055.YahooMailClassic@...2780...> Yes, I understood later. Thank you anywayfor your courtesy. Bye Vuotttttt --- Lun 25/6/12, tobi ha scritto: > Da: tobi > Oggetto: Re: [Gambas-user] Gridview_ColumnClick(). How... > A: "mailing list for gambas users" > Data: Luned? 25 giugno 2012, 18:30 > On Mon, 25 Jun 2012, Ru Vuott wrote: > > Hello, > > > > I have a Gridview with an "horizontal" Header. I saw > there would be an event that it rises when I click on a cell > of the Header: GridView1_ColumnClick() > > > > ...the documentatio says: > > > >? ???Event ColumnClick ( Column As > Integer ) > > > > Sorry, I didn't understand, can you write a little > example ? > > > > Thanks > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's > security and > > threat landscape has changed and how IT managers can > respond. Discussions > > will include endpoint security, mobile security and the > latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Hi, > > you get the number of the column that was clicked on as the > Column argument, so that you can design > actions depending on the column number (like sorting after > the type of data in that column, e.g.) > How you use it, depends on your application but generally > speaking: > > Public Sub GridView1_ColumnClick(Column As Integer) > ? Print "You clicked on column #";; Column > End > > Regards, > Tobi > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's > security and > threat landscape has changed and how IT managers can > respond. Discussions > will include endpoint security, mobile security and the > latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From willy at ...2734... Mon Jun 25 21:02:18 2012 From: willy at ...2734... (Willy Raets) Date: Mon, 25 Jun 2012 21:02:18 +0200 Subject: [Gambas-user] Pixels and Debian In-Reply-To: <4FE77CF0.3000509@...1...> References: <1340208622.3044.24.camel@...2735...> <4FE4CDF0.8040409@...1...> <1340462664.2541.12.camel@...2735...> <4FE77CF0.3000509@...1...> Message-ID: <1340650938.2069.18.camel@...2735...> On zo, 2012-06-24 at 22:47 +0200, Beno?t Minisini wrote: > >> > >> By default, the dimensions of all forms defined in the IDE (with their > >> controls) is proportional to the font size. > >> > >> If you want absolute pixel sizes, you have to set the "Scaled" virtual > >> property of the form in the IDE, or move/resize your controls by hand. > >> > >> Regards, > > > > Setting the Scaled property on the form did solve part of the problem. > > > > 1. Pixel of 48x48 now fits PictureBox of 48x48 on Debian 6.0.4 > > > > 2. Form width of 1000 pixels now correctly fits within screen width of > > 1024 on Debian 6.0.4 > > > > 3. Drawing text on a DrawArea still poses a problem on Debain 6.0.4 > > (see attached screens -> Ubuntu 10.10 -> text fits; Debian 6.0.4 -> text > > goes beyond the DrawArea -> so doesn't fit) > > I believe Ubuntu 10.04 having the same problem as Debian 6.0.4. > > > > I build a small sample application where you can see the problem > > yourself (depending on what distro you run it). > > Any suggestions on how to solve this drawing text on a DrawArea? > > > > Willy > > > > Why the text should fit the wame way? Apparently you are not using the > same font between Ubuntu and Debian. Off course, so simple. Completely forgot to define a font...My mistake Thanks, Willy From gambas at ...2524... Tue Jun 26 05:08:14 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 26 Jun 2012 03:08:14 +0000 Subject: [Gambas-user] Issue 260 in gambas: News on Gambas home page displays differently based on browser Message-ID: <0-6813199134517018827-3396626513113961524-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 260 by joshscal... at ...626...: News on Gambas home page displays differently based on browser http://code.google.com/p/gambas/issues/detail?id=260 The news box on the Gambas home page displays differently in Firefox, Google Chrome, and IE. For example, in Firefox there's no scrollbar for the news box. The Gambas site seems to have been tested only in Google Chrome. Is Google Chrome the new IE6? From gambas at ...2524... Tue Jun 26 11:48:19 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 26 Jun 2012 09:48:19 +0000 Subject: [Gambas-user] Issue 261 in gambas: Explicit use of _free() fails Message-ID: <0-6813199134517018827-3089467152580582788-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 261 by adamn... at ...626...: Explicit use of _free() fails http://code.google.com/p/gambas/issues/detail?id=261 1) Describe the problem. "Friday 13th" ============= A "No return value" error is raised for no apparent reason. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): [System] OperatingSystem=Linux Kernel=2.6.38.8-pclos3.bfs Architecture=i686 Memory=1553368 kB DistributionVendor=PCLinuxOS DistributionRelease="PCLinuxOS" Desktop=LXDE [Gambas 3] Version=3.2.0 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.8.2 GTK+=libgtk-x11-2.0.so.0.2400.4 3) Provide a little project that reproduces the bug or the crash. Attached 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. In the IDE a) run the attached project --> should just get "True" in the console b) uncomment lines 3-5 of "Thing" c) re-run --> Should see "No return value" error Attachments: explicitfree-0.0.1.tar.gz 4.6 KB From bbruen at ...2308... Tue Jun 26 12:15:56 2012 From: bbruen at ...2308... (Bruce) Date: Tue, 26 Jun 2012 19:45:56 +0930 Subject: [Gambas-user] No return value (18) In-Reply-To: <1340627775.10400.83.camel@...40...> References: <1340614422.10400.35.camel@...40...> <1340623195.10400.50.camel@...40...> <1340627775.10400.83.camel@...40...> Message-ID: <1340705756.4696.5.camel@...40...> On Mon, 2012-06-25 at 22:06 +0930, Bruce wrote: > Nevertheless, Beno?t, when I track it down you'll be the second to know. Got it! Issue 261 Bruce From emil.lenngren at ...626... Tue Jun 26 16:47:00 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Tue, 26 Jun 2012 16:47:00 +0200 Subject: [Gambas-user] Signal #11 when overriding Variant[] - Bug revived? In-Reply-To: <4FE77C4B.3020406@...1...> References: <20120620193810.GI4899@...2774...> <4FE4CD45.3070901@...1...> <20120624104036.GB746@...2774...> <4FE75F6A.7020809@...1...> <20120624184658.GE746@...2774...> <4FE77C4B.3020406@...1...> Message-ID: If you use the JIT compiler, you can override native classes with classes written in Gambas, but not override classes written in gambas with a native one. I hope that makes sense.. /Emil 2012/6/24 Beno?t Minisini > Le 24/06/2012 20:46, tobi a ?crit : > > > > Alright, works. > > I wonder how a bugfix could disappear but thanks. > > > > Regards, > > Tobi > > > > Because the bug was not really fixed, and the recent changes on the way > classes are loaded woke it up again. > > And beware that it may break again, as you are not supposed to override > native array classes at the moment. If it appears to work reliably, then > it will become official in Gambas 3.3. > > Regards, > > -- > Beno?t Minisini > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Tue Jun 26 18:49:10 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 26 Jun 2012 19:49:10 +0300 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: OK, here is more. This is really really weird. I expect message "Everything works!", but I get *only* "Something broke!!". But if I add 'Return', under Message("Everything works!"), or I remove 'Fast' then everything works as expected. See attachment. Gambas 3 rev 4860 @ Xubuntu 12.04 64bit Jussi On 20 June 2012 20:14, Emil Lenngren wrote: > That bug was actually an interpreter bug, but it is now corrected in the > latest revision :) > > /Emil > > 2012/6/20 Jussi Lahtinen > > > Yeah, I'm also leaving to countryside for Midsummer parties... but I made > > quick test, > > and I found another bug (see attachment). > > > > Similar problem with argument counting. > > > > Jussi > > > > > > > > > > > > On 20 June 2012 19:14, Emil Lenngren wrote: > > > > > Tomorrow I will travel away for a week so I cannot do anything then, > but > > > just keep sending emails and I will reply when I come home :) > > > > > > /Emil > > > > > > 2012/6/20 Jussi Lahtinen > > > > > > > So far everything seems to work! > > > > I'll continue further testing later. > > > > > > > > Jussi > > > > > > > > > > > > > > > > On 20 June 2012 01:10, Emil Lenngren > wrote: > > > > > > > > > Is revision #4851 useful for you? > > > > > You can now convert functions in the current running class to > > pointers. > > > > > > > > > > /Emil > > > > > > > > > > 2012/6/19 Emil Lenngren > > > > > > > > > > > It should work in the latest revision :) > > > > > > > > > > > > > > > > > > 2012/6/19 Emil Lenngren > > > > > > > > > > > >> If you want a quick workaround, you can have non-fast method > that > > > > > creates > > > > > >> a callback, and immediately returns it, like: > > > > > >> > > > > > >> Private Function GenerateCallback() As Pointer > > > > > >> 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 > > > > > >> > > > > > >>> No problem, I'm glad to help making Gambas more robust, when > > ever I > > > > > have > > > > > >>> time to do so! > > > > > >>> And testing things seems to be easy contribution for me... > > > > > >>> > > > > > >>> My project has about 120 000 lines of code. And I try JIT with > > > every > > > > > >>> module > > > > > >>> and class of it. > > > > > >>> So I think I will find more bugs... But in some point I must > wait > > > > > support > > > > > >>> for callbacks to finish that. > > > > > >>> > > > > > >>> Jussi > > > > > >>> > > > > > >>> > > > > > >>> > > > > > >>> On 19 June 2012 21:58, Emil Lenngren > > > > 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 > > > > > >>> > > > > > > >>> > > More bugs... > > > > > >>> > > > > > > > >>> > > Make shared library (just dummy example [or just use binary > > > that > > > > is > > > > > >>> > > included with project source]); > > > > > >>> > > > > > > > >>> > > #include > > > > > >>> > > > > > > > >>> > > int yEta(int x1, int y1, int x2, int y2) > > > > > >>> > > {return (int) hypot(x1-x2,y1-y2);} > > > > > >>> > > > > > > > >>> > > > > > > > >>> > > Then run the attached project. > > > > > >>> > > With JIT, number of arguments is counted wrong. > > > > > >>> > > > > > > > >>> > > > > > > > >>> > > Jussi > > > > > >>> > > > > > > > >>> > > > > > > > >>> > > > > > > > >>> > > > > > > > >>> > > > > > > > >>> > > > > > > > >>> > > > > > > > >>> > > > > > > > >>> > > On 19 June 2012 21:02, Jussi Lahtinen < > > > jussi.lahtinen at ...626...> > > > > > >>> wrote: > > > > > >>> > > > > > > > >>> > > > Yes, it works now! > > > > > >>> > > > > > > > > >>> > > > Jussi > > > > > >>> > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > >>> > > > On 18 June 2012 22:34, Emil Lenngren < > > > emil.lenngren at ...626...> > > > > > >>> wrote: > > > > > >>> > > > > > > > > >>> > > >> 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::addGlobalMapping(const > > > > > >>> llvm::GlobalValue*, > > > > > >>> > > >> void*): > > > > > >>> > > >> > Assertion `(CurVal == 0 || Addr == 0) && > "GlobalMapping > > > > > already > > > > > >>> > > >> > established!"' failed. > > > > > >>> > > >> > > > > > > >>> > > >> > Program received signal SIGABRT, Aborted. > > > > > >>> > > >> > 0x00007ffff7130445 in __GI_raise (sig=) > > > > > >>> > > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > > > > > >>> > > >> > 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such > > > file > > > > or > > > > > >>> > > >> directory. > > > > > >>> > > >> > (gdb) bt > > > > > >>> > > >> > #0 0x00007ffff7130445 in __GI_raise (sig= > out>) > > > > > >>> > > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > > > > > >>> > > >> > #1 0x00007ffff7133bab in __GI_abort () at abort.c:91 > > > > > >>> > > >> > #2 0x00007ffff712910e in __assert_fail_base > > > (fmt= > > > > >>> out>, > > > > > >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == > 0) > > && > > > > > >>> > > >> \"GlobalMapping > > > > > >>> > > >> > already established!\"", file=0x7fffed43c55b > > > > > >>> "ExecutionEngine.cpp", > > > > > >>> > > >> > line=, function=) at > > > > > >>> assert.c:94 > > > > > >>> > > >> > #3 0x00007ffff71291b2 in __GI___assert_fail ( > > > > > >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == > 0) > > && > > > > > >>> > > >> \"GlobalMapping > > > > > >>> > > >> > already established!\"", file=0x7fffed43c55b > > > > > >>> "ExecutionEngine.cpp", > > > > > >>> > > >> > line=165, > > > > > >>> > > >> > function=0x7fffed43d7a0 "void > > > > > >>> > > >> > llvm::ExecutionEngine::addGlobalMapping(const > > > > > >>> llvm::GlobalValue*, > > > > > >>> > > >> void*)") > > > > > >>> > > >> > at assert.c:103 > > > > > >>> > > >> > #4 0x00007fffeca84aae in > > > > > >>> > > >> > > > llvm::ExecutionEngine::addGlobalMapping(llvm::GlobalValue > > > > > >>> const*, > > > > > >>> > > >> void*) () > > > > > >>> > > >> > from /usr/lib/libLLVM-3.2svn.so > > > > > >>> > > >> > #5 0x00007fffedc85ec7 in register_global_symbol > > > > > >>> (address=0x40ebf6, > > > > > >>> > > >> > value=0x8b2500, name=...) at jit_codegen.cpp:242 > > > > > >>> > > >> > #6 register_global_symbol (name=..., value=0x8b2500, > > > > > >>> > > address=0x40ebf6) > > > > > >>> > > >> > at jit_codegen.cpp:240 > > > > > >>> > > >> > #7 0x00007fffedc8600e in get_global_function_real ( > > > > > >>> > > >> > name=0x7fffedcb9e57 "CLASS_free", func=0x40ebf6, > > > > > >>> ret= > > > > >>> > > out>, > > > > > >>> > > >> > args=, vararg=) at > > > > > >>> > > jit_codegen.cpp:276 > > > > > >>> > > >> > #8 0x00007fffedc8a9dc in operator() (this= > > > > pointer>) > > > > > >>> > > >> > at jit_codegen.cpp:991 > > > > > >>> > > >> > ---Type to continue, or q to quit--- > > > > > >>> > > >> > #9 > > > > > gen_if > > > > > > >>> > > >> (func=..., > > > > > >>> > > >> > cond=0x8999d0, if_name=, > > > > > cont_name= > > > > >>> > out>) > > > > > >>> > > >> > at jit_codegen.cpp:562 > > > > > >>> > > >> > #10 unref_object_no_nullcheck (ptr=0x898ca8) at > > > > > >>> jit_codegen.cpp:993 > > > > > >>> > > >> > #11 0x00007fffedc9a44c in codegen_get_value > > > (this=0x8abba0) > > > > > >>> > > >> > at jit_codegen.cpp:1566 > > > > > >>> > > >> > #12 > PushPureObjectVariableExpression::codegen_get_value > > > > > >>> > > (this=0x8abba0) > > > > > >>> > > >> > at jit_codegen.cpp:1545 > > > > > >>> > > >> > #13 0x00007fffedca3f0d in > > > SubrExpression::codegen_get_value > > > > > >>> > > >> (this=0x86a450) > > > > > >>> > > >> > at jit_codegen.cpp:5898 > > > > > >>> > > >> > #14 0x00007fffedc8c21d in DropExpression::codegen > > > > > >>> (this=0x86a4a0) > > > > > >>> > > >> > at jit_codegen.cpp:1257 > > > > > >>> > > >> > #15 0x00007fffedca6fa7 in codegen_statements () at > > > > > >>> > jit_codegen.cpp:855 > > > > > >>> > > >> > #16 JIT_codegen () at jit_codegen.cpp:6490 > > > > > >>> > > >> > #17 0x00007fffedcadc64 in JIT_compile_and_execute () > at > > > > > >>> > > >> jit_compile.cpp:119 > > > > > >>> > > >> > #18 0x000000000040a2fb in EXEC_jit_function_loop () at > > > > > >>> > gbx_exec.c:871 > > > > > >>> > > >> > #19 0x000000000040ab22 in EXEC_function_real () at > > > > > >>> gbx_exec.c:862 > > > > > >>> > > >> > #20 0x000000000041e86d in raise_event > > (observer= > > > > out>, > > > > > >>> > > >> > object=, func_id=, > > > > > >>> > nparam= > > > > >>> > > >> out>) > > > > > >>> > > >> > at gbx_api.c:711 > > > > > >>> > > >> > #21 0x000000000041efa6 in GB_Raise (object=0x8b95c8, > > > > > >>> event_id=16, > > > > > >>> > > >> nparam=0) > > > > > >>> > > >> > at gbx_api.c:842 > > > > > >>> > > >> > #22 0x00007ffff5fce3d3 in gb_raise_button_Click > > > > > >>> (sender= > > > > >>> > > out>) > > > > > >>> > > >> > > > > > > >>> > > >> > Jussi > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > > >>> > > >> > On 18 June 2012 22:08, Emil Lenngren < > > > > emil.lenngren at ...626... > > > > > > > > > > > >>> > 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 > > > > > >>> > > >> > > > > > > > >>> > > >> > > > OK, I found it. See attachment. > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > Jussi > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > On 17 June 2012 23:36, Jussi Lahtinen < > > > > > >>> jussi.lahtinen at ...626... > > > > > >>> > > > > > > > >>> > > >> > 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::addGlobalMapping(const > > > > > >>> > > llvm::GlobalValue*, > > > > > >>> > > >> > > void*): > > > > > >>> > > >> > > > > Assertion `(CurVal == 0 || Addr == 0) && > > > > "GlobalMapping > > > > > >>> > 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.lenngren at ...626... > > > > > >>> > > > > > > > >>> > > >> > wrote: > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > >> It should be fixed in revision #4843! > > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> /Emil > > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> 2012/6/17 Jussi Lahtinen < > > jussi.lahtinen at ...626... > > > > > > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > Yes, it really works now. And I found a lot > of > > > > > errors > > > > > >>> by > > > > > >>> > me. > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > But for some reason JIT raises compare method > > > when > > > > it > > > > > >>> > > >> shouldn't, > > > > > >>> > > >> > > > >> > and when I tried to isolate the problem I got > > > crash > > > > > >>> (signal > > > > > >>> > > >> 11). > > > > > >>> > > >> > > > >> > This seems not to be related to compare > method, > > > so > > > > > just > > > > > >>> > > ignore > > > > > >>> > > >> > name > > > > > >>> > > >> > > of > > > > > >>> > > >> > > > >> the > > > > > >>> > > >> > > > >> > attached project. > > > > > >>> > > >> > > > >> > I will look it more closely when this is > fixed. > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > Jussi > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > On 17 June 2012 19:01, Emil Lenngren < > > > > > >>> > > emil.lenngren at ...626...> > > > > > >>> > > >> > > wrote: > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > Yes, it works now :) > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > 2012/6/17 Beno?t Minisini < > > > > > >>> gambas at ...1...> > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > Le 17/06/2012 02:54, Jussi Lahtinen a > > ?crit : > > > > > >>> > > >> > > > >> > > > > Yeah, terminal gives other position... > > > > > >>> > > >> > > > >> > > > > With my actual project, I got error > > > message; > > > > > >>> wanted > > > > > >>> > > >> string, > > > > > >>> > > >> > > got > > > > > >>> > > >> > > > >> > > > > blaablaaClass instead. > > > > > >>> > > >> > > > >> > > > > And that error message comes from > > function > > > > > (from > > > > > >>> > other > > > > > >>> > > >> > module > > > > > >>> > > >> > > > >> without > > > > > >>> > > >> > > > >> > > > Fast) > > > > > >>> > > >> > > > >> > > > > which takes two objects are parameters. > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > > So either terminal isn't showing the > real > > > > > stack, > > > > > >>> or > > > > > >>> > > >> there is > > > > > >>> > > >> > > > >> > something > > > > > >>> > > >> > > > >> > > > else > > > > > >>> > > >> > > > >> > > > > wrong... > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > > But my time is up, I'll see it tomorrow > > > (with > > > > > >>> latest > > > > > >>> > > >> > > revision). > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > > Jussi > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > The incorrect line number problem, as > > > reported > > > > by > > > > > >>> the > > > > > >>> > > >> debugger > > > > > >>> > > >> > > > (and > > > > > >>> > > >> > > > >> not > > > > > >>> > > >> > > > >> > > > when you run the program normally!), > should > > > be > > > > > >>> fixed in > > > > > >>> > > >> > revision > > > > > >>> > > >> > > > >> #4841. > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > Regards, > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > -- > > > > > >>> > > >> > > > >> > > > Beno?t Minisini > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > >>> > > > > > > > >>> > > > > > > >>> > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > >>> > > >> > > > >> > > > Live Security Virtual Conference > > > > > >>> > > >> > > > >> > > > Exclusive live event will cover all the > > ways > > > > > >>> today's > > > > > >>> > > >> security > > > > > >>> > > >> > > and > > > > > >>> > > >> > > > >> > > > threat landscape has changed and how IT > > > > managers > > > > > >>> can > > > > > >>> > > >> respond. > > > > > >>> > > >> > > > >> > Discussions > > > > > >>> > > >> > > > >> > > > will include endpoint security, mobile > > > security > > > > > >>> and the > > > > > >>> > > >> latest > > > > > >>> > > >> > > in > > > > > >>> > > >> > > > >> > malware > > > > > >>> > > >> > > > >> > > > threats. > > > > > >>> > > >> > > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > >>> > > >> > > > >> > > > > > > _______________________________________________ > > > > > >>> > > >> > > > >> > > > Gambas-user mailing list > > > > > >>> > > >> > > > >> > > > Gambas-user at lists.sourceforge.net > > > > > >>> > > >> > > > >> > > > > > > > > >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > >>> > > > > > > > >>> > > > > > > >>> > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > >>> > > >> > > > >> > > Live Security Virtual Conference > > > > > >>> > > >> > > > >> > > Exclusive live event will cover all the > ways > > > > > today's > > > > > >>> > > security > > > > > >>> > > >> > and > > > > > >>> > > >> > > > >> > > threat landscape has changed and how IT > > > managers > > > > > can > > > > > >>> > > respond. > > > > > >>> > > >> > > > >> Discussions > > > > > >>> > > >> > > > >> > > will include endpoint security, mobile > > security > > > > and > > > > > >>> the > > > > > >>> > > >> latest > > > > > >>> > > >> > in > > > > > >>> > > >> > > > >> malware > > > > > >>> > > >> > > > >> > > threats. > > > > > >>> > > >> > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > >>> > > >> > > > >> > > > > _______________________________________________ > > > > > >>> > > >> > > > >> > > Gambas-user mailing list > > > > > >>> > > >> > > > >> > > Gambas-user at lists.sourceforge.net > > > > > >>> > > >> > > > >> > > > > > > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > >>> > > > > > > > >>> > > > > > > >>> > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > >>> > > >> > > > >> > Live Security Virtual Conference > > > > > >>> > > >> > > > >> > Exclusive live event will cover all the ways > > > > today's > > > > > >>> > security > > > > > >>> > > >> and > > > > > >>> > > >> > > > >> > threat landscape has changed and how IT > > managers > > > > can > > > > > >>> > respond. > > > > > >>> > > >> > > > >> Discussions > > > > > >>> > > >> > > > >> > will include endpoint security, mobile > security > > > and > > > > > the > > > > > >>> > > latest > > > > > >>> > > >> in > > > > > >>> > > >> > > > >> malware > > > > > >>> > > >> > > > >> > threats. > > > > > >>> > > >> > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > >>> > > >> > > > >> > > _______________________________________________ > > > > > >>> > > >> > > > >> > Gambas-user mailing list > > > > > >>> > > >> > > > >> > Gambas-user at lists.sourceforge.net > > > > > >>> > > >> > > > >> > > > > > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > >>> > > > > > > > >>> > > > > > > >>> > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > >>> > > >> > > > >> Live Security Virtual Conference > > > > > >>> > > >> > > > >> Exclusive live event will cover all the ways > > > today's > > > > > >>> security > > > > > >>> > > and > > > > > >>> > > >> > > > >> threat landscape has changed and how IT > managers > > > can > > > > > >>> respond. > > > > > >>> > > >> > > > Discussions > > > > > >>> > > >> > > > >> will include endpoint security, mobile security > > and > > > > the > > > > > >>> > latest > > > > > >>> > > in > > > > > >>> > > >> > > > malware > > > > > >>> > > >> > > > >> threats. > > > > > >>> > > >> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > >>> > > >> > > > >> _______________________________________________ > > > > > >>> > > >> > > > >> Gambas-user mailing list > > > > > >>> > > >> > > > >> Gambas-user at lists.sourceforge.net > > > > > >>> > > >> > > > >> > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > >>> > > >> > > > >> > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > >>> > > > > > > > >>> > > > > > > >>> > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > >>> > > >> > > > Live Security Virtual Conference > > > > > >>> > > >> > > > Exclusive live event will cover all the ways > today's > > > > > >>> security > > > > > >>> > and > > > > > >>> > > >> > > > threat landscape has changed and how IT managers > can > > > > > >>> respond. > > > > > >>> > > >> > Discussions > > > > > >>> > > >> > > > will include endpoint security, mobile security > and > > > the > > > > > >>> latest > > > > > >>> > in > > > > > >>> > > >> > malware > > > > > >>> > > >> > > > threats. > > > > > >>> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > >>> > > >> > > > _______________________________________________ > > > > > >>> > > >> > > > Gambas-user mailing list > > > > > >>> > > >> > > > Gambas-user at lists.sourceforge.net > > > > > >>> > > >> > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > >>> > > > > > > > >>> > > > > > > >>> > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > >>> > > >> > > Live Security Virtual Conference > > > > > >>> > > >> > > Exclusive live event will cover all the ways today's > > > > > security > > > > > >>> and > > > > > >>> > > >> > > threat landscape has changed and how IT managers can > > > > > respond. > > > > > >>> > > >> Discussions > > > > > >>> > > >> > > will include endpoint security, mobile security and > > the > > > > > >>> latest in > > > > > >>> > > >> malware > > > > > >>> > > >> > > threats. > > > > > >>> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > >>> > > >> > > _______________________________________________ > > > > > >>> > > >> > > Gambas-user mailing list > > > > > >>> > > >> > > Gambas-user at lists.sourceforge.net > > > > > >>> > > >> > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > >>> > > > > > > > >>> > > > > > > >>> > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > >>> > > >> > Live Security Virtual Conference > > > > > >>> > > >> > Exclusive live event will cover all the ways today's > > > > security > > > > > >>> and > > > > > >>> > > >> > threat landscape has changed and how IT managers can > > > > respond. > > > > > >>> > > >> Discussions > > > > > >>> > > >> > will include endpoint security, mobile security and > the > > > > latest > > > > > >>> in > > > > > >>> > > >> malware > > > > > >>> > > >> > threats. > > > > > >>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > >>> > > >> > _______________________________________________ > > > > > >>> > > >> > Gambas-user mailing list > > > > > >>> > > >> > Gambas-user at lists.sourceforge.net > > > > > >>> > > >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > >>> > > >> > > > > > >>> > > > > > > > >>> > > > > > > >>> > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > >>> > > >> Live Security Virtual Conference > > > > > >>> > > >> Exclusive live event will cover all the ways today's > > > security > > > > > and > > > > > >>> > > >> threat landscape has changed and how IT managers can > > > respond. > > > > > >>> > > Discussions > > > > > >>> > > >> will include endpoint security, mobile security and the > > > latest > > > > > in > > > > > >>> > > malware > > > > > >>> > > >> threats. > > > > > >>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > >>> > > >> _______________________________________________ > > > > > >>> > > >> Gambas-user mailing list > > > > > >>> > > >> Gambas-user at lists.sourceforge.net > > > > > >>> > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > >>> > > >> > > > > > >>> > > > > > > > > >>> > > > > > > > > >>> > > > > > > > >>> > > > > > > > >>> > > > > > > > >>> > > > > > > >>> > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > >>> > > Live Security Virtual Conference > > > > > >>> > > Exclusive live event will cover all the ways today's > security > > > and > > > > > >>> > > threat landscape has changed and how IT managers can > respond. > > > > > >>> Discussions > > > > > >>> > > will include endpoint security, mobile security and the > > latest > > > in > > > > > >>> malware > > > > > >>> > > threats. > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > >>> > > _______________________________________________ > > > > > >>> > > Gambas-user mailing list > > > > > >>> > > Gambas-user at lists.sourceforge.net > > > > > >>> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > >>> > > > > > > > >>> > > > > > > > >>> > > > > > > >>> > > > > > > >>> > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > >>> > Live Security Virtual Conference > > > > > >>> > Exclusive live event will cover all the ways today's security > > and > > > > > >>> > threat landscape has changed and how IT managers can respond. > > > > > >>> Discussions > > > > > >>> > will include endpoint security, mobile security and the > latest > > in > > > > > >>> malware > > > > > >>> > threats. > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > >>> > _______________________________________________ > > > > > >>> > Gambas-user mailing list > > > > > >>> > Gambas-user at lists.sourceforge.net > > > > > >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > >>> > > > > > > >>> > > > > > >>> > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > >>> Live Security Virtual Conference > > > > > >>> Exclusive live event will cover all the ways today's security > and > > > > > >>> threat landscape has changed and how IT managers can respond. > > > > > Discussions > > > > > >>> will include endpoint security, mobile security and the latest > in > > > > > malware > > > > > >>> threats. > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > >>> _______________________________________________ > > > > > >>> Gambas-user mailing list > > > > > >>> Gambas-user at lists.sourceforge.net > > > > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > >>> > > > > > >> > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > Live Security Virtual Conference > > > > > Exclusive live event will cover all the ways today's security and > > > > > threat landscape has changed and how IT managers can respond. > > > Discussions > > > > > will include endpoint security, mobile security and the latest in > > > malware > > > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Live Security Virtual Conference > > > > Exclusive live event will cover all the ways today's security and > > > > threat landscape has changed and how IT managers can respond. > > Discussions > > > > will include endpoint security, mobile security and the latest in > > malware > > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Live Security Virtual Conference > > > Exclusive live event will cover all the ways today's security and > > > threat landscape has changed and how IT managers can respond. > Discussions > > > will include endpoint security, mobile security and the latest in > malware > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: MagicBug-0.0.1.tar.gz Type: application/x-gzip Size: 4714 bytes Desc: not available URL: From emil.lenngren at ...626... Tue Jun 26 20:05:11 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Tue, 26 Jun 2012 20:05:11 +0200 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: 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 > OK, here is more. This is really really weird. > > I expect message "Everything works!", but I get *only* "Something broke!!". > But if I add 'Return', under Message("Everything works!"), or I remove > 'Fast' then everything works as expected. > > See attachment. > > Gambas 3 rev 4860 @ Xubuntu 12.04 64bit > > Jussi > > > > > On 20 June 2012 20:14, Emil Lenngren wrote: > > > That bug was actually an interpreter bug, but it is now corrected in the > > latest revision :) > > > > /Emil > > > > 2012/6/20 Jussi Lahtinen > > > > > Yeah, I'm also leaving to countryside for Midsummer parties... but I > made > > > quick test, > > > and I found another bug (see attachment). > > > > > > Similar problem with argument counting. > > > > > > Jussi > > > > > > > > > > > > > > > > > > On 20 June 2012 19:14, Emil Lenngren wrote: > > > > > > > Tomorrow I will travel away for a week so I cannot do anything then, > > but > > > > just keep sending emails and I will reply when I come home :) > > > > > > > > /Emil > > > > > > > > 2012/6/20 Jussi Lahtinen > > > > > > > > > So far everything seems to work! > > > > > I'll continue further testing later. > > > > > > > > > > Jussi > > > > > > > > > > > > > > > > > > > > On 20 June 2012 01:10, Emil Lenngren > > wrote: > > > > > > > > > > > Is revision #4851 useful for you? > > > > > > You can now convert functions in the current running class to > > > pointers. > > > > > > > > > > > > /Emil > > > > > > > > > > > > 2012/6/19 Emil Lenngren > > > > > > > > > > > > > It should work in the latest revision :) > > > > > > > > > > > > > > > > > > > > > 2012/6/19 Emil Lenngren > > > > > > > > > > > > > >> If you want a quick workaround, you can have non-fast method > > that > > > > > > creates > > > > > > >> a callback, and immediately returns it, like: > > > > > > >> > > > > > > >> Private Function GenerateCallback() As Pointer > > > > > > >> 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 > > > > > > >> > > > > > > >>> No problem, I'm glad to help making Gambas more robust, when > > > ever I > > > > > > have > > > > > > >>> time to do so! > > > > > > >>> And testing things seems to be easy contribution for me... > > > > > > >>> > > > > > > >>> My project has about 120 000 lines of code. And I try JIT > with > > > > every > > > > > > >>> module > > > > > > >>> and class of it. > > > > > > >>> So I think I will find more bugs... But in some point I must > > wait > > > > > > support > > > > > > >>> for callbacks to finish that. > > > > > > >>> > > > > > > >>> Jussi > > > > > > >>> > > > > > > >>> > > > > > > >>> > > > > > > >>> On 19 June 2012 21:58, Emil Lenngren < > emil.lenngren at ...626...> > > > > > 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 > > > > > > >>> > > > > > > > >>> > > More bugs... > > > > > > >>> > > > > > > > > >>> > > Make shared library (just dummy example [or just use > binary > > > > that > > > > > is > > > > > > >>> > > included with project source]); > > > > > > >>> > > > > > > > > >>> > > #include > > > > > > >>> > > > > > > > > >>> > > int yEta(int x1, int y1, int x2, int y2) > > > > > > >>> > > {return (int) hypot(x1-x2,y1-y2);} > > > > > > >>> > > > > > > > > >>> > > > > > > > > >>> > > Then run the attached project. > > > > > > >>> > > With JIT, number of arguments is counted wrong. > > > > > > >>> > > > > > > > > >>> > > > > > > > > >>> > > Jussi > > > > > > >>> > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > >>> > > On 19 June 2012 21:02, Jussi Lahtinen < > > > > jussi.lahtinen at ...626...> > > > > > > >>> wrote: > > > > > > >>> > > > > > > > > >>> > > > Yes, it works now! > > > > > > >>> > > > > > > > > > >>> > > > Jussi > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > >>> > > > On 18 June 2012 22:34, Emil Lenngren < > > > > emil.lenngren at ...626...> > > > > > > >>> wrote: > > > > > > >>> > > > > > > > > > >>> > > >> 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::addGlobalMapping(const > > > > > > >>> llvm::GlobalValue*, > > > > > > >>> > > >> void*): > > > > > > >>> > > >> > Assertion `(CurVal == 0 || Addr == 0) && > > "GlobalMapping > > > > > > already > > > > > > >>> > > >> > established!"' failed. > > > > > > >>> > > >> > > > > > > > >>> > > >> > Program received signal SIGABRT, Aborted. > > > > > > >>> > > >> > 0x00007ffff7130445 in __GI_raise (sig= out>) > > > > > > >>> > > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > > > > > > >>> > > >> > 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No > such > > > > file > > > > > or > > > > > > >>> > > >> directory. > > > > > > >>> > > >> > (gdb) bt > > > > > > >>> > > >> > #0 0x00007ffff7130445 in __GI_raise (sig= > > out>) > > > > > > >>> > > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > > > > > > >>> > > >> > #1 0x00007ffff7133bab in __GI_abort () at > abort.c:91 > > > > > > >>> > > >> > #2 0x00007ffff712910e in __assert_fail_base > > > > (fmt= > > > > > >>> out>, > > > > > > >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == > > 0) > > > && > > > > > > >>> > > >> \"GlobalMapping > > > > > > >>> > > >> > already established!\"", file=0x7fffed43c55b > > > > > > >>> "ExecutionEngine.cpp", > > > > > > >>> > > >> > line=, function=) > at > > > > > > >>> assert.c:94 > > > > > > >>> > > >> > #3 0x00007ffff71291b2 in __GI___assert_fail ( > > > > > > >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr == > > 0) > > > && > > > > > > >>> > > >> \"GlobalMapping > > > > > > >>> > > >> > already established!\"", file=0x7fffed43c55b > > > > > > >>> "ExecutionEngine.cpp", > > > > > > >>> > > >> > line=165, > > > > > > >>> > > >> > function=0x7fffed43d7a0 "void > > > > > > >>> > > >> > llvm::ExecutionEngine::addGlobalMapping(const > > > > > > >>> llvm::GlobalValue*, > > > > > > >>> > > >> void*)") > > > > > > >>> > > >> > at assert.c:103 > > > > > > >>> > > >> > #4 0x00007fffeca84aae in > > > > > > >>> > > >> > > > > llvm::ExecutionEngine::addGlobalMapping(llvm::GlobalValue > > > > > > >>> const*, > > > > > > >>> > > >> void*) () > > > > > > >>> > > >> > from /usr/lib/libLLVM-3.2svn.so > > > > > > >>> > > >> > #5 0x00007fffedc85ec7 in register_global_symbol > > > > > > >>> (address=0x40ebf6, > > > > > > >>> > > >> > value=0x8b2500, name=...) at jit_codegen.cpp:242 > > > > > > >>> > > >> > #6 register_global_symbol (name=..., > value=0x8b2500, > > > > > > >>> > > address=0x40ebf6) > > > > > > >>> > > >> > at jit_codegen.cpp:240 > > > > > > >>> > > >> > #7 0x00007fffedc8600e in get_global_function_real ( > > > > > > >>> > > >> > name=0x7fffedcb9e57 "CLASS_free", func=0x40ebf6, > > > > > > >>> ret= > > > > > >>> > > out>, > > > > > > >>> > > >> > args=, vararg=) at > > > > > > >>> > > jit_codegen.cpp:276 > > > > > > >>> > > >> > #8 0x00007fffedc8a9dc in operator() > (this= > > > > > pointer>) > > > > > > >>> > > >> > at jit_codegen.cpp:991 > > > > > > >>> > > >> > ---Type to continue, or q to > quit--- > > > > > > >>> > > >> > #9 > > > > > > gen_if > > > > > > > >>> > > >> (func=..., > > > > > > >>> > > >> > cond=0x8999d0, if_name=, > > > > > > cont_name= > > > > > >>> > out>) > > > > > > >>> > > >> > at jit_codegen.cpp:562 > > > > > > >>> > > >> > #10 unref_object_no_nullcheck (ptr=0x898ca8) at > > > > > > >>> jit_codegen.cpp:993 > > > > > > >>> > > >> > #11 0x00007fffedc9a44c in codegen_get_value > > > > (this=0x8abba0) > > > > > > >>> > > >> > at jit_codegen.cpp:1566 > > > > > > >>> > > >> > #12 > > PushPureObjectVariableExpression::codegen_get_value > > > > > > >>> > > (this=0x8abba0) > > > > > > >>> > > >> > at jit_codegen.cpp:1545 > > > > > > >>> > > >> > #13 0x00007fffedca3f0d in > > > > SubrExpression::codegen_get_value > > > > > > >>> > > >> (this=0x86a450) > > > > > > >>> > > >> > at jit_codegen.cpp:5898 > > > > > > >>> > > >> > #14 0x00007fffedc8c21d in DropExpression::codegen > > > > > > >>> (this=0x86a4a0) > > > > > > >>> > > >> > at jit_codegen.cpp:1257 > > > > > > >>> > > >> > #15 0x00007fffedca6fa7 in codegen_statements () at > > > > > > >>> > jit_codegen.cpp:855 > > > > > > >>> > > >> > #16 JIT_codegen () at jit_codegen.cpp:6490 > > > > > > >>> > > >> > #17 0x00007fffedcadc64 in JIT_compile_and_execute () > > at > > > > > > >>> > > >> jit_compile.cpp:119 > > > > > > >>> > > >> > #18 0x000000000040a2fb in EXEC_jit_function_loop () > at > > > > > > >>> > gbx_exec.c:871 > > > > > > >>> > > >> > #19 0x000000000040ab22 in EXEC_function_real () at > > > > > > >>> gbx_exec.c:862 > > > > > > >>> > > >> > #20 0x000000000041e86d in raise_event > > > (observer= > > > > > out>, > > > > > > >>> > > >> > object=, func_id=, > > > > > > >>> > nparam= > > > > > >>> > > >> out>) > > > > > > >>> > > >> > at gbx_api.c:711 > > > > > > >>> > > >> > #21 0x000000000041efa6 in GB_Raise (object=0x8b95c8, > > > > > > >>> event_id=16, > > > > > > >>> > > >> nparam=0) > > > > > > >>> > > >> > at gbx_api.c:842 > > > > > > >>> > > >> > #22 0x00007ffff5fce3d3 in gb_raise_button_Click > > > > > > >>> (sender= > > > > > >>> > > out>) > > > > > > >>> > > >> > > > > > > > >>> > > >> > Jussi > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > > >>> > > >> > On 18 June 2012 22:08, Emil Lenngren < > > > > > emil.lenngren at ...626... > > > > > > > > > > > > > >>> > 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.lahtinen at ...626...> > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > OK, I found it. See attachment. > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > Jussi > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > On 17 June 2012 23:36, Jussi Lahtinen < > > > > > > >>> jussi.lahtinen at ...626... > > > > > > >>> > > > > > > > > >>> > > >> > 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::addGlobalMapping(const > > > > > > >>> > > llvm::GlobalValue*, > > > > > > >>> > > >> > > void*): > > > > > > >>> > > >> > > > > Assertion `(CurVal == 0 || Addr == 0) && > > > > > "GlobalMapping > > > > > > >>> > 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.lenngren at ...626... > > > > > > >>> > > > > > > > > >>> > > >> > wrote: > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > >> It should be fixed in revision #4843! > > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> /Emil > > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> 2012/6/17 Jussi Lahtinen < > > > jussi.lahtinen at ...626... > > > > > > > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > Yes, it really works now. And I found a > lot > > of > > > > > > errors > > > > > > >>> by > > > > > > >>> > me. > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > But for some reason JIT raises compare > method > > > > when > > > > > it > > > > > > >>> > > >> shouldn't, > > > > > > >>> > > >> > > > >> > and when I tried to isolate the problem I > got > > > > crash > > > > > > >>> (signal > > > > > > >>> > > >> 11). > > > > > > >>> > > >> > > > >> > This seems not to be related to compare > > method, > > > > so > > > > > > just > > > > > > >>> > > ignore > > > > > > >>> > > >> > name > > > > > > >>> > > >> > > of > > > > > > >>> > > >> > > > >> the > > > > > > >>> > > >> > > > >> > attached project. > > > > > > >>> > > >> > > > >> > I will look it more closely when this is > > fixed. > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > Jussi > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > On 17 June 2012 19:01, Emil Lenngren < > > > > > > >>> > > emil.lenngren at ...626...> > > > > > > >>> > > >> > > wrote: > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > Yes, it works now :) > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > 2012/6/17 Beno?t Minisini < > > > > > > >>> gambas at ...1...> > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > Le 17/06/2012 02:54, Jussi Lahtinen a > > > ?crit : > > > > > > >>> > > >> > > > >> > > > > Yeah, terminal gives other > position... > > > > > > >>> > > >> > > > >> > > > > With my actual project, I got error > > > > message; > > > > > > >>> wanted > > > > > > >>> > > >> string, > > > > > > >>> > > >> > > got > > > > > > >>> > > >> > > > >> > > > > blaablaaClass instead. > > > > > > >>> > > >> > > > >> > > > > And that error message comes from > > > function > > > > > > (from > > > > > > >>> > other > > > > > > >>> > > >> > module > > > > > > >>> > > >> > > > >> without > > > > > > >>> > > >> > > > >> > > > Fast) > > > > > > >>> > > >> > > > >> > > > > which takes two objects are > parameters. > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > > So either terminal isn't showing the > > real > > > > > > stack, > > > > > > >>> or > > > > > > >>> > > >> there is > > > > > > >>> > > >> > > > >> > something > > > > > > >>> > > >> > > > >> > > > else > > > > > > >>> > > >> > > > >> > > > > wrong... > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > > But my time is up, I'll see it > tomorrow > > > > (with > > > > > > >>> latest > > > > > > >>> > > >> > > revision). > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > > Jussi > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > The incorrect line number problem, as > > > > reported > > > > > by > > > > > > >>> the > > > > > > >>> > > >> debugger > > > > > > >>> > > >> > > > (and > > > > > > >>> > > >> > > > >> not > > > > > > >>> > > >> > > > >> > > > when you run the program normally!), > > should > > > > be > > > > > > >>> fixed in > > > > > > >>> > > >> > revision > > > > > > >>> > > >> > > > >> #4841. > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > Regards, > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > -- > > > > > > >>> > > >> > > > >> > > > Beno?t Minisini > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > >>> > > > > > > > > >>> > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > >>> > > >> > > > >> > > > Live Security Virtual Conference > > > > > > >>> > > >> > > > >> > > > Exclusive live event will cover all the > > > ways > > > > > > >>> today's > > > > > > >>> > > >> security > > > > > > >>> > > >> > > and > > > > > > >>> > > >> > > > >> > > > threat landscape has changed and how IT > > > > > managers > > > > > > >>> can > > > > > > >>> > > >> respond. > > > > > > >>> > > >> > > > >> > Discussions > > > > > > >>> > > >> > > > >> > > > will include endpoint security, mobile > > > > security > > > > > > >>> and the > > > > > > >>> > > >> latest > > > > > > >>> > > >> > > in > > > > > > >>> > > >> > > > >> > malware > > > > > > >>> > > >> > > > >> > > > threats. > > > > > > >>> > > >> > > > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > >>> > > >> > > > >> > > > > > > > _______________________________________________ > > > > > > >>> > > >> > > > >> > > > Gambas-user mailing list > > > > > > >>> > > >> > > > >> > > > Gambas-user at lists.sourceforge.net > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > >>> > > > > > > > > >>> > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > >>> > > >> > > > >> > > Live Security Virtual Conference > > > > > > >>> > > >> > > > >> > > Exclusive live event will cover all the > > ways > > > > > > today's > > > > > > >>> > > security > > > > > > >>> > > >> > and > > > > > > >>> > > >> > > > >> > > threat landscape has changed and how IT > > > > managers > > > > > > can > > > > > > >>> > > respond. > > > > > > >>> > > >> > > > >> Discussions > > > > > > >>> > > >> > > > >> > > will include endpoint security, mobile > > > security > > > > > and > > > > > > >>> the > > > > > > >>> > > >> latest > > > > > > >>> > > >> > in > > > > > > >>> > > >> > > > >> malware > > > > > > >>> > > >> > > > >> > > threats. > > > > > > >>> > > >> > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > >>> > > >> > > > >> > > > > > _______________________________________________ > > > > > > >>> > > >> > > > >> > > Gambas-user mailing list > > > > > > >>> > > >> > > > >> > > Gambas-user at lists.sourceforge.net > > > > > > >>> > > >> > > > >> > > > > > > > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > >>> > > > > > > > > >>> > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > >>> > > >> > > > >> > Live Security Virtual Conference > > > > > > >>> > > >> > > > >> > Exclusive live event will cover all the > ways > > > > > today's > > > > > > >>> > security > > > > > > >>> > > >> and > > > > > > >>> > > >> > > > >> > threat landscape has changed and how IT > > > managers > > > > > can > > > > > > >>> > respond. > > > > > > >>> > > >> > > > >> Discussions > > > > > > >>> > > >> > > > >> > will include endpoint security, mobile > > security > > > > and > > > > > > the > > > > > > >>> > > latest > > > > > > >>> > > >> in > > > > > > >>> > > >> > > > >> malware > > > > > > >>> > > >> > > > >> > threats. > > > > > > >>> > > >> > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > >>> > > >> > > > >> > > > _______________________________________________ > > > > > > >>> > > >> > > > >> > Gambas-user mailing list > > > > > > >>> > > >> > > > >> > Gambas-user at lists.sourceforge.net > > > > > > >>> > > >> > > > >> > > > > > > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > >>> > > > > > > > > >>> > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > >>> > > >> > > > >> Live Security Virtual Conference > > > > > > >>> > > >> > > > >> Exclusive live event will cover all the ways > > > > today's > > > > > > >>> security > > > > > > >>> > > and > > > > > > >>> > > >> > > > >> threat landscape has changed and how IT > > managers > > > > can > > > > > > >>> respond. > > > > > > >>> > > >> > > > Discussions > > > > > > >>> > > >> > > > >> will include endpoint security, mobile > security > > > and > > > > > the > > > > > > >>> > latest > > > > > > >>> > > in > > > > > > >>> > > >> > > > malware > > > > > > >>> > > >> > > > >> threats. > > > > > > >>> > > >> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > >>> > > >> > > > >> > _______________________________________________ > > > > > > >>> > > >> > > > >> Gambas-user mailing list > > > > > > >>> > > >> > > > >> Gambas-user at lists.sourceforge.net > > > > > > >>> > > >> > > > >> > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > >>> > > >> > > > >> > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > >>> > > > > > > > > >>> > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > >>> > > >> > > > Live Security Virtual Conference > > > > > > >>> > > >> > > > Exclusive live event will cover all the ways > > today's > > > > > > >>> security > > > > > > >>> > and > > > > > > >>> > > >> > > > threat landscape has changed and how IT managers > > can > > > > > > >>> respond. > > > > > > >>> > > >> > Discussions > > > > > > >>> > > >> > > > will include endpoint security, mobile security > > and > > > > the > > > > > > >>> latest > > > > > > >>> > in > > > > > > >>> > > >> > malware > > > > > > >>> > > >> > > > threats. > > > > > > >>> > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > >>> > > >> > > > _______________________________________________ > > > > > > >>> > > >> > > > Gambas-user mailing list > > > > > > >>> > > >> > > > Gambas-user at lists.sourceforge.net > > > > > > >>> > > >> > > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > >>> > > > > > > > > >>> > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > >>> > > >> > > Live Security Virtual Conference > > > > > > >>> > > >> > > Exclusive live event will cover all the ways > today's > > > > > > security > > > > > > >>> and > > > > > > >>> > > >> > > threat landscape has changed and how IT managers > can > > > > > > respond. > > > > > > >>> > > >> Discussions > > > > > > >>> > > >> > > will include endpoint security, mobile security > and > > > the > > > > > > >>> latest in > > > > > > >>> > > >> malware > > > > > > >>> > > >> > > threats. > > > > > > >>> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > >>> > > >> > > _______________________________________________ > > > > > > >>> > > >> > > Gambas-user mailing list > > > > > > >>> > > >> > > Gambas-user at lists.sourceforge.net > > > > > > >>> > > >> > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > >>> > > > > > > > > >>> > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > >>> > > >> > Live Security Virtual Conference > > > > > > >>> > > >> > Exclusive live event will cover all the ways today's > > > > > security > > > > > > >>> and > > > > > > >>> > > >> > threat landscape has changed and how IT managers can > > > > > respond. > > > > > > >>> > > >> Discussions > > > > > > >>> > > >> > will include endpoint security, mobile security and > > the > > > > > latest > > > > > > >>> in > > > > > > >>> > > >> malware > > > > > > >>> > > >> > threats. > > > > > > >>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > >>> > > >> > _______________________________________________ > > > > > > >>> > > >> > Gambas-user mailing list > > > > > > >>> > > >> > Gambas-user at lists.sourceforge.net > > > > > > >>> > > >> > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > >>> > > >> > > > > > > >>> > > > > > > > > >>> > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > >>> > > >> Live Security Virtual Conference > > > > > > >>> > > >> Exclusive live event will cover all the ways today's > > > > security > > > > > > and > > > > > > >>> > > >> threat landscape has changed and how IT managers can > > > > respond. > > > > > > >>> > > Discussions > > > > > > >>> > > >> will include endpoint security, mobile security and > the > > > > latest > > > > > > in > > > > > > >>> > > malware > > > > > > >>> > > >> threats. > > > > > > >>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > >>> > > >> _______________________________________________ > > > > > > >>> > > >> Gambas-user mailing list > > > > > > >>> > > >> Gambas-user at lists.sourceforge.net > > > > > > >>> > > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > >>> > > >> > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > >>> > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > >>> > > Live Security Virtual Conference > > > > > > >>> > > Exclusive live event will cover all the ways today's > > security > > > > and > > > > > > >>> > > threat landscape has changed and how IT managers can > > respond. > > > > > > >>> Discussions > > > > > > >>> > > will include endpoint security, mobile security and the > > > latest > > > > in > > > > > > >>> malware > > > > > > >>> > > threats. > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > >>> > > _______________________________________________ > > > > > > >>> > > Gambas-user mailing list > > > > > > >>> > > Gambas-user at lists.sourceforge.net > > > > > > >>> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > >>> > > > > > > > > >>> > > > > > > > > >>> > > > > > > > >>> > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > >>> > Live Security Virtual Conference > > > > > > >>> > Exclusive live event will cover all the ways today's > security > > > and > > > > > > >>> > threat landscape has changed and how IT managers can > respond. > > > > > > >>> Discussions > > > > > > >>> > will include endpoint security, mobile security and the > > latest > > > in > > > > > > >>> malware > > > > > > >>> > threats. > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > >>> > _______________________________________________ > > > > > > >>> > Gambas-user mailing list > > > > > > >>> > Gambas-user at lists.sourceforge.net > > > > > > >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > >>> > > > > > > > >>> > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > >>> Live Security Virtual Conference > > > > > > >>> Exclusive live event will cover all the ways today's security > > and > > > > > > >>> threat landscape has changed and how IT managers can respond. > > > > > > Discussions > > > > > > >>> will include endpoint security, mobile security and the > latest > > in > > > > > > malware > > > > > > >>> threats. > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > >>> _______________________________________________ > > > > > > >>> Gambas-user mailing list > > > > > > >>> Gambas-user at lists.sourceforge.net > > > > > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > >>> > > > > > > >> > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > Live Security Virtual Conference > > > > > > Exclusive live event will cover all the ways today's security and > > > > > > threat landscape has changed and how IT managers can respond. > > > > Discussions > > > > > > will include endpoint security, mobile security and the latest in > > > > malware > > > > > > threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > _______________________________________________ > > > > > > Gambas-user mailing list > > > > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > Live Security Virtual Conference > > > > > Exclusive live event will cover all the ways today's security and > > > > > threat landscape has changed and how IT managers can respond. > > > Discussions > > > > > will include endpoint security, mobile security and the latest in > > > malware > > > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Live Security Virtual Conference > > > > Exclusive live event will cover all the ways today's security and > > > > threat landscape has changed and how IT managers can respond. > > Discussions > > > > will include endpoint security, mobile security and the latest in > > malware > > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Live Security Virtual Conference > > > Exclusive live event will cover all the ways today's security and > > > threat landscape has changed and how IT managers can respond. > Discussions > > > will include endpoint security, mobile security and the latest in > malware > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jussi.lahtinen at ...626... Tue Jun 26 20:14:58 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 26 Jun 2012 21:14:58 +0300 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: .../MagicBug$ GB_JIT=info gbx3 gb.jit: using LLVM 3.2. ------------------------------------------------------------------------ gb.jit: beginning compiling MainModule.MainModule: ------------------------------------------------------------------------ ------------------------------------------------------------------------ gb.jit: beginning compiling MainModule.Main: ------------------------------------------------------------------------ ------------------------------------------------------------------------ gb.jit: dumping function MainModule.Main: ------------------------------------------------------------------------ ; ModuleID = 'jit_mod' target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" target triple = "x86_64-pc-linux-gnu" %Value = type { i64, i64, i64, i64 } %ValueFunction = type { i64, i8*, i8*, i8, i8, i16 } %String = type { i64, i8*, i32, i32 } %Void = type { i64, i64, i64, i64 } define void @func_0_MainModule_2() { entry: %0 = load i8** inttoptr (i64 6639552 to i8**) %1 = load i8** inttoptr (i64 6639576 to i8**) %2 = icmp eq i8* %1, %0 br i1 %2, label %if.cont, label %if.then if.then: ; preds = %entry tail call void @stack_corrupted_abort() unreachable if.cont: ; preds = %entry store i8 -1, i8* inttoptr (i64 29188424 to i8*) %3 = load i8** inttoptr (i64 6639552 to i8**) %4 = load i8** inttoptr (i64 6639576 to i8**) %5 = icmp eq i8* %4, %3 br i1 %5, label %if.cont2, label %if.then1 if.then1: ; preds = %if.cont tail call void @stack_corrupted_abort() unreachable if.cont2: ; preds = %if.cont %6 = load i1* inttoptr (i64 29188424 to i1*) br i1 %6, label %block5, label %if.cont7 block5: ; preds = %if.cont2 %7 = load %Value** inttoptr (i64 6639552 to %Value**) %8 = bitcast %Value* %7 to %ValueFunction* %9 = getelementptr %ValueFunction* %8, i64 0, i32 0 store i64 13, i64* %9 %10 = getelementptr %ValueFunction* %8, i64 0, i32 1 store i8* inttoptr (i64 27857320 to i8*), i8** %10 %11 = getelementptr %ValueFunction* %8, i64 0, i32 2 store i8* null, i8** %11 %12 = getelementptr %Value* %7, i64 1 %13 = bitcast %Value* %12 to %String* %14 = getelementptr %String* %13, i64 0, i32 0 store i64 10, i64* %14 %15 = getelementptr %String* %13, i64 0, i32 1 store i8* inttoptr (i64 29162265 to i8*), i8** %15 %16 = getelementptr %String* %13, i64 0, i32 2 store i32 0, i32* %16 %17 = getelementptr %String* %13, i64 0, i32 3 store i32 17, i32* %17 %18 = getelementptr %Value* %7, i64 2 store %Value* %18, %Value** inttoptr (i64 6639552 to %Value**) store i64 29162040, i64* inttoptr (i64 6639624 to i64*) store i8 1, i8* inttoptr (i64 6648048 to i8*) store i8* inttoptr (i64 140276446242864 to i8*), i8** inttoptr (i64 6648040 to i8**) store i8* null, i8** inttoptr (i64 6648024 to i8**) store i8* inttoptr (i64 27857320 to i8*), i8** inttoptr (i64 6648016 to i8**) store i8 1, i8* inttoptr (i64 6648050 to i8*) tail call void @EXEC_native() %19 = load %Value** inttoptr (i64 6639552 to %Value**) %20 = getelementptr %Value* %19, i64 -1 store %Value* %20, %Value** inttoptr (i64 6639552 to %Value**) %.pre = load i8** inttoptr (i64 6639552 to i8**) %.pre11 = load i8** inttoptr (i64 6639576 to i8**) %21 = icmp eq i8* %.pre11, %.pre br i1 %21, label %if.cont7, label %if.then6 if.then6: ; preds = %block5 tail call void @stack_corrupted_abort() unreachable if.cont7: ; preds = %if.cont2, %block5 %22 = load %Value** inttoptr (i64 6639552 to %Value**) %23 = bitcast %Value* %22 to %ValueFunction* %24 = getelementptr %ValueFunction* %23, i64 0, i32 0 store i64 13, i64* %24 %25 = getelementptr %ValueFunction* %23, i64 0, i32 1 store i8* inttoptr (i64 27857320 to i8*), i8** %25 %26 = getelementptr %ValueFunction* %23, i64 0, i32 2 store i8* null, i8** %26 %27 = getelementptr %Value* %22, i64 1 %28 = bitcast %Value* %27 to %String* %29 = getelementptr %String* %28, i64 0, i32 0 store i64 10, i64* %29 %30 = getelementptr %String* %28, i64 0, i32 1 store i8* inttoptr (i64 29162283 to i8*), i8** %30 %31 = getelementptr %String* %28, i64 0, i32 2 store i32 0, i32* %31 %32 = getelementptr %String* %28, i64 0, i32 3 store i32 20, i32* %32 %33 = getelementptr %Value* %22, i64 2 store %Value* %33, %Value** inttoptr (i64 6639552 to %Value**) store i64 29162050, i64* inttoptr (i64 6639624 to i64*) store i8 1, i8* inttoptr (i64 6648048 to i8*) store i8* inttoptr (i64 140276446242864 to i8*), i8** inttoptr (i64 6648040 to i8**) store i8* null, i8** inttoptr (i64 6648024 to i8**) store i8* inttoptr (i64 27857320 to i8*), i8** inttoptr (i64 6648016 to i8**) store i8 1, i8* inttoptr (i64 6648050 to i8*) tail call void @EXEC_native() %34 = load %Value** inttoptr (i64 6639552 to %Value**) %35 = getelementptr %Value* %34, i64 -1 store %Value* %35, %Value** inttoptr (i64 6639552 to %Value**) %36 = load i8** inttoptr (i64 6639552 to i8**) %37 = load i8** inttoptr (i64 6639576 to i8**) %38 = icmp eq i8* %37, %36 br i1 %38, label %if.cont9, label %if.then8 if.then8: ; preds = %if.cont7 tail call void @stack_corrupted_abort() unreachable if.cont9: ; preds = %if.cont7 store i64 0, i64* getelementptr (%Void* inttoptr (i64 6647920 to %Void*), i64 0, i32 0) tail call void @EXEC_leave_keep() ret void } declare void @stack_corrupted_abort() declare void @EXEC_native() declare void @EXEC_leave_keep() ------------------------------------------------------------------------ Jussi On 26 June 2012 21:05, Emil Lenngren 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 > > > OK, here is more. This is really really weird. > > > > I expect message "Everything works!", but I get *only* "Something > broke!!". > > But if I add 'Return', under Message("Everything works!"), or I remove > > 'Fast' then everything works as expected. > > > > See attachment. > > > > Gambas 3 rev 4860 @ Xubuntu 12.04 64bit > > > > Jussi > > > > > > > > > > On 20 June 2012 20:14, Emil Lenngren wrote: > > > > > That bug was actually an interpreter bug, but it is now corrected in > the > > > latest revision :) > > > > > > /Emil > > > > > > 2012/6/20 Jussi Lahtinen > > > > > > > Yeah, I'm also leaving to countryside for Midsummer parties... but I > > made > > > > quick test, > > > > and I found another bug (see attachment). > > > > > > > > Similar problem with argument counting. > > > > > > > > Jussi > > > > > > > > > > > > > > > > > > > > > > > > On 20 June 2012 19:14, Emil Lenngren > wrote: > > > > > > > > > Tomorrow I will travel away for a week so I cannot do anything > then, > > > but > > > > > just keep sending emails and I will reply when I come home :) > > > > > > > > > > /Emil > > > > > > > > > > 2012/6/20 Jussi Lahtinen > > > > > > > > > > > So far everything seems to work! > > > > > > I'll continue further testing later. > > > > > > > > > > > > Jussi > > > > > > > > > > > > > > > > > > > > > > > > On 20 June 2012 01:10, Emil Lenngren > > > wrote: > > > > > > > > > > > > > Is revision #4851 useful for you? > > > > > > > You can now convert functions in the current running class to > > > > pointers. > > > > > > > > > > > > > > /Emil > > > > > > > > > > > > > > 2012/6/19 Emil Lenngren > > > > > > > > > > > > > > > It should work in the latest revision :) > > > > > > > > > > > > > > > > > > > > > > > > 2012/6/19 Emil Lenngren > > > > > > > > > > > > > > > >> If you want a quick workaround, you can have non-fast method > > > that > > > > > > > creates > > > > > > > >> a callback, and immediately returns it, like: > > > > > > > >> > > > > > > > >> Private Function GenerateCallback() As Pointer > > > > > > > >> 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 > > > > > > > >> > > > > > > > >>> No problem, I'm glad to help making Gambas more robust, > when > > > > ever I > > > > > > > have > > > > > > > >>> time to do so! > > > > > > > >>> And testing things seems to be easy contribution for me... > > > > > > > >>> > > > > > > > >>> My project has about 120 000 lines of code. And I try JIT > > with > > > > > every > > > > > > > >>> module > > > > > > > >>> and class of it. > > > > > > > >>> So I think I will find more bugs... But in some point I > must > > > wait > > > > > > > support > > > > > > > >>> for callbacks to finish that. > > > > > > > >>> > > > > > > > >>> Jussi > > > > > > > >>> > > > > > > > >>> > > > > > > > >>> > > > > > > > >>> On 19 June 2012 21:58, Emil Lenngren < > > emil.lenngren at ...626...> > > > > > > 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 > > > > > > > >>> > > > > > > > > >>> > > More bugs... > > > > > > > >>> > > > > > > > > > >>> > > Make shared library (just dummy example [or just use > > binary > > > > > that > > > > > > is > > > > > > > >>> > > included with project source]); > > > > > > > >>> > > > > > > > > > >>> > > #include > > > > > > > >>> > > > > > > > > > >>> > > int yEta(int x1, int y1, int x2, int y2) > > > > > > > >>> > > {return (int) hypot(x1-x2,y1-y2);} > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > >>> > > Then run the attached project. > > > > > > > >>> > > With JIT, number of arguments is counted wrong. > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > >>> > > Jussi > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > >>> > > On 19 June 2012 21:02, Jussi Lahtinen < > > > > > jussi.lahtinen at ...626...> > > > > > > > >>> wrote: > > > > > > > >>> > > > > > > > > > >>> > > > Yes, it works now! > > > > > > > >>> > > > > > > > > > > >>> > > > Jussi > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > >>> > > > On 18 June 2012 22:34, Emil Lenngren < > > > > > emil.lenngren at ...626...> > > > > > > > >>> wrote: > > > > > > > >>> > > > > > > > > > > >>> > > >> 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::addGlobalMapping(const > > > > > > > >>> llvm::GlobalValue*, > > > > > > > >>> > > >> void*): > > > > > > > >>> > > >> > Assertion `(CurVal == 0 || Addr == 0) && > > > "GlobalMapping > > > > > > > already > > > > > > > >>> > > >> > established!"' failed. > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > Program received signal SIGABRT, Aborted. > > > > > > > >>> > > >> > 0x00007ffff7130445 in __GI_raise (sig= > out>) > > > > > > > >>> > > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > > > > > > > >>> > > >> > 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No > > such > > > > > file > > > > > > or > > > > > > > >>> > > >> directory. > > > > > > > >>> > > >> > (gdb) bt > > > > > > > >>> > > >> > #0 0x00007ffff7130445 in __GI_raise > (sig= > > > out>) > > > > > > > >>> > > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > > > > > > > >>> > > >> > #1 0x00007ffff7133bab in __GI_abort () at > > abort.c:91 > > > > > > > >>> > > >> > #2 0x00007ffff712910e in __assert_fail_base > > > > > (fmt= > > > > > > >>> out>, > > > > > > > >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr > == > > > 0) > > > > && > > > > > > > >>> > > >> \"GlobalMapping > > > > > > > >>> > > >> > already established!\"", file=0x7fffed43c55b > > > > > > > >>> "ExecutionEngine.cpp", > > > > > > > >>> > > >> > line=, function=) > > at > > > > > > > >>> assert.c:94 > > > > > > > >>> > > >> > #3 0x00007ffff71291b2 in __GI___assert_fail ( > > > > > > > >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || Addr > == > > > 0) > > > > && > > > > > > > >>> > > >> \"GlobalMapping > > > > > > > >>> > > >> > already established!\"", file=0x7fffed43c55b > > > > > > > >>> "ExecutionEngine.cpp", > > > > > > > >>> > > >> > line=165, > > > > > > > >>> > > >> > function=0x7fffed43d7a0 "void > > > > > > > >>> > > >> > llvm::ExecutionEngine::addGlobalMapping(const > > > > > > > >>> llvm::GlobalValue*, > > > > > > > >>> > > >> void*)") > > > > > > > >>> > > >> > at assert.c:103 > > > > > > > >>> > > >> > #4 0x00007fffeca84aae in > > > > > > > >>> > > >> > > > > > llvm::ExecutionEngine::addGlobalMapping(llvm::GlobalValue > > > > > > > >>> const*, > > > > > > > >>> > > >> void*) () > > > > > > > >>> > > >> > from /usr/lib/libLLVM-3.2svn.so > > > > > > > >>> > > >> > #5 0x00007fffedc85ec7 in register_global_symbol > > > > > > > >>> (address=0x40ebf6, > > > > > > > >>> > > >> > value=0x8b2500, name=...) at > jit_codegen.cpp:242 > > > > > > > >>> > > >> > #6 register_global_symbol (name=..., > > value=0x8b2500, > > > > > > > >>> > > address=0x40ebf6) > > > > > > > >>> > > >> > at jit_codegen.cpp:240 > > > > > > > >>> > > >> > #7 0x00007fffedc8600e in > get_global_function_real ( > > > > > > > >>> > > >> > name=0x7fffedcb9e57 "CLASS_free", > func=0x40ebf6, > > > > > > > >>> ret= > > > > > > >>> > > out>, > > > > > > > >>> > > >> > args=, vararg=) > at > > > > > > > >>> > > jit_codegen.cpp:276 > > > > > > > >>> > > >> > #8 0x00007fffedc8a9dc in operator() > > (this= > > > > > > pointer>) > > > > > > > >>> > > >> > at jit_codegen.cpp:991 > > > > > > > >>> > > >> > ---Type to continue, or q to > > quit--- > > > > > > > >>> > > >> > #9 > > > > > > > gen_if > > > > > > > > >>> > > >> (func=..., > > > > > > > >>> > > >> > cond=0x8999d0, if_name=, > > > > > > > cont_name= > > > > > > >>> > out>) > > > > > > > >>> > > >> > at jit_codegen.cpp:562 > > > > > > > >>> > > >> > #10 unref_object_no_nullcheck (ptr=0x898ca8) at > > > > > > > >>> jit_codegen.cpp:993 > > > > > > > >>> > > >> > #11 0x00007fffedc9a44c in codegen_get_value > > > > > (this=0x8abba0) > > > > > > > >>> > > >> > at jit_codegen.cpp:1566 > > > > > > > >>> > > >> > #12 > > > PushPureObjectVariableExpression::codegen_get_value > > > > > > > >>> > > (this=0x8abba0) > > > > > > > >>> > > >> > at jit_codegen.cpp:1545 > > > > > > > >>> > > >> > #13 0x00007fffedca3f0d in > > > > > SubrExpression::codegen_get_value > > > > > > > >>> > > >> (this=0x86a450) > > > > > > > >>> > > >> > at jit_codegen.cpp:5898 > > > > > > > >>> > > >> > #14 0x00007fffedc8c21d in DropExpression::codegen > > > > > > > >>> (this=0x86a4a0) > > > > > > > >>> > > >> > at jit_codegen.cpp:1257 > > > > > > > >>> > > >> > #15 0x00007fffedca6fa7 in codegen_statements () at > > > > > > > >>> > jit_codegen.cpp:855 > > > > > > > >>> > > >> > #16 JIT_codegen () at jit_codegen.cpp:6490 > > > > > > > >>> > > >> > #17 0x00007fffedcadc64 in JIT_compile_and_execute > () > > > at > > > > > > > >>> > > >> jit_compile.cpp:119 > > > > > > > >>> > > >> > #18 0x000000000040a2fb in EXEC_jit_function_loop > () > > at > > > > > > > >>> > gbx_exec.c:871 > > > > > > > >>> > > >> > #19 0x000000000040ab22 in EXEC_function_real () at > > > > > > > >>> gbx_exec.c:862 > > > > > > > >>> > > >> > #20 0x000000000041e86d in raise_event > > > > (observer= > > > > > > out>, > > > > > > > >>> > > >> > object=, func_id= out>, > > > > > > > >>> > nparam= > > > > > > >>> > > >> out>) > > > > > > > >>> > > >> > at gbx_api.c:711 > > > > > > > >>> > > >> > #21 0x000000000041efa6 in GB_Raise > (object=0x8b95c8, > > > > > > > >>> event_id=16, > > > > > > > >>> > > >> nparam=0) > > > > > > > >>> > > >> > at gbx_api.c:842 > > > > > > > >>> > > >> > #22 0x00007ffff5fce3d3 in gb_raise_button_Click > > > > > > > >>> (sender= > > > > > > >>> > > out>) > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > Jussi > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > On 18 June 2012 22:08, Emil Lenngren < > > > > > > emil.lenngren at ...626... > > > > > > > > > > > > > > > >>> > 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.lahtinen at ...626...> > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > OK, I found it. See attachment. > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > Jussi > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > On 17 June 2012 23:36, Jussi Lahtinen < > > > > > > > >>> jussi.lahtinen at ...626... > > > > > > > >>> > > > > > > > > > >>> > > >> > 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::addGlobalMapping(const > > > > > > > >>> > > llvm::GlobalValue*, > > > > > > > >>> > > >> > > void*): > > > > > > > >>> > > >> > > > > Assertion `(CurVal == 0 || Addr == 0) && > > > > > > "GlobalMapping > > > > > > > >>> > 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.lenngren at ...626... > > > > > > > >>> > > > > > > > > > >>> > > >> > wrote: > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > >> It should be fixed in revision #4843! > > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> /Emil > > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> 2012/6/17 Jussi Lahtinen < > > > > jussi.lahtinen at ...626... > > > > > > > > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > Yes, it really works now. And I found a > > lot > > > of > > > > > > > errors > > > > > > > >>> by > > > > > > > >>> > me. > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > But for some reason JIT raises compare > > method > > > > > when > > > > > > it > > > > > > > >>> > > >> shouldn't, > > > > > > > >>> > > >> > > > >> > and when I tried to isolate the problem I > > got > > > > > crash > > > > > > > >>> (signal > > > > > > > >>> > > >> 11). > > > > > > > >>> > > >> > > > >> > This seems not to be related to compare > > > method, > > > > > so > > > > > > > just > > > > > > > >>> > > ignore > > > > > > > >>> > > >> > name > > > > > > > >>> > > >> > > of > > > > > > > >>> > > >> > > > >> the > > > > > > > >>> > > >> > > > >> > attached project. > > > > > > > >>> > > >> > > > >> > I will look it more closely when this is > > > fixed. > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > Jussi > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > On 17 June 2012 19:01, Emil Lenngren < > > > > > > > >>> > > emil.lenngren at ...626...> > > > > > > > >>> > > >> > > wrote: > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > Yes, it works now :) > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > 2012/6/17 Beno?t Minisini < > > > > > > > >>> gambas at ...1...> > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > Le 17/06/2012 02:54, Jussi Lahtinen a > > > > ?crit : > > > > > > > >>> > > >> > > > >> > > > > Yeah, terminal gives other > > position... > > > > > > > >>> > > >> > > > >> > > > > With my actual project, I got error > > > > > message; > > > > > > > >>> wanted > > > > > > > >>> > > >> string, > > > > > > > >>> > > >> > > got > > > > > > > >>> > > >> > > > >> > > > > blaablaaClass instead. > > > > > > > >>> > > >> > > > >> > > > > And that error message comes from > > > > function > > > > > > > (from > > > > > > > >>> > other > > > > > > > >>> > > >> > module > > > > > > > >>> > > >> > > > >> without > > > > > > > >>> > > >> > > > >> > > > Fast) > > > > > > > >>> > > >> > > > >> > > > > which takes two objects are > > parameters. > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > >>> > > >> > > > >> > > > > So either terminal isn't showing > the > > > real > > > > > > > stack, > > > > > > > >>> or > > > > > > > >>> > > >> there is > > > > > > > >>> > > >> > > > >> > something > > > > > > > >>> > > >> > > > >> > > > else > > > > > > > >>> > > >> > > > >> > > > > wrong... > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > >>> > > >> > > > >> > > > > But my time is up, I'll see it > > tomorrow > > > > > (with > > > > > > > >>> latest > > > > > > > >>> > > >> > > revision). > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > >>> > > >> > > > >> > > > > Jussi > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > The incorrect line number problem, as > > > > > reported > > > > > > by > > > > > > > >>> the > > > > > > > >>> > > >> debugger > > > > > > > >>> > > >> > > > (and > > > > > > > >>> > > >> > > > >> not > > > > > > > >>> > > >> > > > >> > > > when you run the program normally!), > > > should > > > > > be > > > > > > > >>> fixed in > > > > > > > >>> > > >> > revision > > > > > > > >>> > > >> > > > >> #4841. > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > Regards, > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > -- > > > > > > > >>> > > >> > > > >> > > > Beno?t Minisini > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > >>> > > >> > > > >> > > > Live Security Virtual Conference > > > > > > > >>> > > >> > > > >> > > > Exclusive live event will cover all > the > > > > ways > > > > > > > >>> today's > > > > > > > >>> > > >> security > > > > > > > >>> > > >> > > and > > > > > > > >>> > > >> > > > >> > > > threat landscape has changed and how > IT > > > > > > managers > > > > > > > >>> can > > > > > > > >>> > > >> respond. > > > > > > > >>> > > >> > > > >> > Discussions > > > > > > > >>> > > >> > > > >> > > > will include endpoint security, > mobile > > > > > security > > > > > > > >>> and the > > > > > > > >>> > > >> latest > > > > > > > >>> > > >> > > in > > > > > > > >>> > > >> > > > >> > malware > > > > > > > >>> > > >> > > > >> > > > threats. > > > > > > > >>> > > >> > > > > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > >>> > > >> > > > >> > > > > > > > > _______________________________________________ > > > > > > > >>> > > >> > > > >> > > > Gambas-user mailing list > > > > > > > >>> > > >> > > > >> > > > Gambas-user at lists.sourceforge.net > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > >>> > > >> > > > >> > > Live Security Virtual Conference > > > > > > > >>> > > >> > > > >> > > Exclusive live event will cover all the > > > ways > > > > > > > today's > > > > > > > >>> > > security > > > > > > > >>> > > >> > and > > > > > > > >>> > > >> > > > >> > > threat landscape has changed and how IT > > > > > managers > > > > > > > can > > > > > > > >>> > > respond. > > > > > > > >>> > > >> > > > >> Discussions > > > > > > > >>> > > >> > > > >> > > will include endpoint security, mobile > > > > security > > > > > > and > > > > > > > >>> the > > > > > > > >>> > > >> latest > > > > > > > >>> > > >> > in > > > > > > > >>> > > >> > > > >> malware > > > > > > > >>> > > >> > > > >> > > threats. > > > > > > > >>> > > >> > > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > >>> > > >> > > > >> > > > > > > _______________________________________________ > > > > > > > >>> > > >> > > > >> > > Gambas-user mailing list > > > > > > > >>> > > >> > > > >> > > Gambas-user at lists.sourceforge.net > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > >>> > > >> > > > >> > Live Security Virtual Conference > > > > > > > >>> > > >> > > > >> > Exclusive live event will cover all the > > ways > > > > > > today's > > > > > > > >>> > security > > > > > > > >>> > > >> and > > > > > > > >>> > > >> > > > >> > threat landscape has changed and how IT > > > > managers > > > > > > can > > > > > > > >>> > respond. > > > > > > > >>> > > >> > > > >> Discussions > > > > > > > >>> > > >> > > > >> > will include endpoint security, mobile > > > security > > > > > and > > > > > > > the > > > > > > > >>> > > latest > > > > > > > >>> > > >> in > > > > > > > >>> > > >> > > > >> malware > > > > > > > >>> > > >> > > > >> > threats. > > > > > > > >>> > > >> > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > >>> > > >> > > > >> > > > > _______________________________________________ > > > > > > > >>> > > >> > > > >> > Gambas-user mailing list > > > > > > > >>> > > >> > > > >> > Gambas-user at lists.sourceforge.net > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > >>> > > >> > > > >> Live Security Virtual Conference > > > > > > > >>> > > >> > > > >> Exclusive live event will cover all the > ways > > > > > today's > > > > > > > >>> security > > > > > > > >>> > > and > > > > > > > >>> > > >> > > > >> threat landscape has changed and how IT > > > managers > > > > > can > > > > > > > >>> respond. > > > > > > > >>> > > >> > > > Discussions > > > > > > > >>> > > >> > > > >> will include endpoint security, mobile > > security > > > > and > > > > > > the > > > > > > > >>> > latest > > > > > > > >>> > > in > > > > > > > >>> > > >> > > > malware > > > > > > > >>> > > >> > > > >> threats. > > > > > > > >>> > > >> > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > >>> > > >> > > > >> > > _______________________________________________ > > > > > > > >>> > > >> > > > >> Gambas-user mailing list > > > > > > > >>> > > >> > > > >> Gambas-user at lists.sourceforge.net > > > > > > > >>> > > >> > > > >> > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > >>> > > >> > > > >> > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > >>> > > >> > > > Live Security Virtual Conference > > > > > > > >>> > > >> > > > Exclusive live event will cover all the ways > > > today's > > > > > > > >>> security > > > > > > > >>> > and > > > > > > > >>> > > >> > > > threat landscape has changed and how IT > managers > > > can > > > > > > > >>> respond. > > > > > > > >>> > > >> > Discussions > > > > > > > >>> > > >> > > > will include endpoint security, mobile > security > > > and > > > > > the > > > > > > > >>> latest > > > > > > > >>> > in > > > > > > > >>> > > >> > malware > > > > > > > >>> > > >> > > > threats. > > > > > > > >>> > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > >>> > > >> > > > > _______________________________________________ > > > > > > > >>> > > >> > > > Gambas-user mailing list > > > > > > > >>> > > >> > > > Gambas-user at lists.sourceforge.net > > > > > > > >>> > > >> > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > >>> > > >> > > Live Security Virtual Conference > > > > > > > >>> > > >> > > Exclusive live event will cover all the ways > > today's > > > > > > > security > > > > > > > >>> and > > > > > > > >>> > > >> > > threat landscape has changed and how IT managers > > can > > > > > > > respond. > > > > > > > >>> > > >> Discussions > > > > > > > >>> > > >> > > will include endpoint security, mobile security > > and > > > > the > > > > > > > >>> latest in > > > > > > > >>> > > >> malware > > > > > > > >>> > > >> > > threats. > > > > > > > >>> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > >>> > > >> > > _______________________________________________ > > > > > > > >>> > > >> > > Gambas-user mailing list > > > > > > > >>> > > >> > > Gambas-user at lists.sourceforge.net > > > > > > > >>> > > >> > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > >>> > > >> > Live Security Virtual Conference > > > > > > > >>> > > >> > Exclusive live event will cover all the ways > today's > > > > > > security > > > > > > > >>> and > > > > > > > >>> > > >> > threat landscape has changed and how IT managers > can > > > > > > respond. > > > > > > > >>> > > >> Discussions > > > > > > > >>> > > >> > will include endpoint security, mobile security > and > > > the > > > > > > latest > > > > > > > >>> in > > > > > > > >>> > > >> malware > > > > > > > >>> > > >> > threats. > > > > > > > >>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > >>> > > >> > _______________________________________________ > > > > > > > >>> > > >> > Gambas-user mailing list > > > > > > > >>> > > >> > Gambas-user at lists.sourceforge.net > > > > > > > >>> > > >> > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > >>> > > >> > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > >>> > > >> Live Security Virtual Conference > > > > > > > >>> > > >> Exclusive live event will cover all the ways today's > > > > > security > > > > > > > and > > > > > > > >>> > > >> threat landscape has changed and how IT managers can > > > > > respond. > > > > > > > >>> > > Discussions > > > > > > > >>> > > >> will include endpoint security, mobile security and > > the > > > > > latest > > > > > > > in > > > > > > > >>> > > malware > > > > > > > >>> > > >> threats. > > > > > > > >>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > >>> > > >> _______________________________________________ > > > > > > > >>> > > >> Gambas-user mailing list > > > > > > > >>> > > >> Gambas-user at lists.sourceforge.net > > > > > > > >>> > > >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > >>> > > >> > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > >>> > > Live Security Virtual Conference > > > > > > > >>> > > Exclusive live event will cover all the ways today's > > > security > > > > > and > > > > > > > >>> > > threat landscape has changed and how IT managers can > > > respond. > > > > > > > >>> Discussions > > > > > > > >>> > > will include endpoint security, mobile security and the > > > > latest > > > > > in > > > > > > > >>> malware > > > > > > > >>> > > threats. > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > >>> > > _______________________________________________ > > > > > > > >>> > > Gambas-user mailing list > > > > > > > >>> > > Gambas-user at lists.sourceforge.net > > > > > > > >>> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > >>> > Live Security Virtual Conference > > > > > > > >>> > Exclusive live event will cover all the ways today's > > security > > > > and > > > > > > > >>> > threat landscape has changed and how IT managers can > > respond. > > > > > > > >>> Discussions > > > > > > > >>> > will include endpoint security, mobile security and the > > > latest > > > > in > > > > > > > >>> malware > > > > > > > >>> > threats. > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > >>> > _______________________________________________ > > > > > > > >>> > Gambas-user mailing list > > > > > > > >>> > Gambas-user at lists.sourceforge.net > > > > > > > >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > >>> > > > > > > > > >>> > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > >>> Live Security Virtual Conference > > > > > > > >>> Exclusive live event will cover all the ways today's > security > > > and > > > > > > > >>> threat landscape has changed and how IT managers can > respond. > > > > > > > Discussions > > > > > > > >>> will include endpoint security, mobile security and the > > latest > > > in > > > > > > > malware > > > > > > > >>> threats. > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > >>> _______________________________________________ > > > > > > > >>> Gambas-user mailing list > > > > > > > >>> Gambas-user at lists.sourceforge.net > > > > > > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > >>> > > > > > > > >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > Live Security Virtual Conference > > > > > > > Exclusive live event will cover all the ways today's security > and > > > > > > > threat landscape has changed and how IT managers can respond. > > > > > Discussions > > > > > > > will include endpoint security, mobile security and the latest > in > > > > > malware > > > > > > > threats. > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > _______________________________________________ > > > > > > > Gambas-user mailing list > > > > > > > Gambas-user at lists.sourceforge.net > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > Live Security Virtual Conference > > > > > > Exclusive live event will cover all the ways today's security and > > > > > > threat landscape has changed and how IT managers can respond. > > > > Discussions > > > > > > will include endpoint security, mobile security and the latest in > > > > malware > > > > > > threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > _______________________________________________ > > > > > > Gambas-user mailing list > > > > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > Live Security Virtual Conference > > > > > Exclusive live event will cover all the ways today's security and > > > > > threat landscape has changed and how IT managers can respond. > > > Discussions > > > > > will include endpoint security, mobile security and the latest in > > > malware > > > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Live Security Virtual Conference > > > > Exclusive live event will cover all the ways today's security and > > > > threat landscape has changed and how IT managers can respond. > > Discussions > > > > will include endpoint security, mobile security and the latest in > > malware > > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Live Security Virtual Conference > > > Exclusive live event will cover all the ways today's security and > > > threat landscape has changed and how IT managers can respond. > Discussions > > > will include endpoint security, mobile security and the latest in > malware > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From emil.lenngren at ...626... Tue Jun 26 23:12:26 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Tue, 26 Jun 2012 23:12:26 +0200 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: It seems like when LLVM reads boolean pointers, it assumes the seven most significant bits are always 0, which is not the case in Gambas. Does the latest revision work? I have no opportunity to even compile it and see if it works at the moment :) /Emil 2012/6/26 Jussi Lahtinen > .../MagicBug$ GB_JIT=info gbx3 > > gb.jit: using LLVM 3.2. > ------------------------------------------------------------------------ > gb.jit: beginning compiling MainModule.MainModule: > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------ > gb.jit: beginning compiling MainModule.Main: > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------ > gb.jit: dumping function MainModule.Main: > ------------------------------------------------------------------------ > ; ModuleID = 'jit_mod' > target datalayout = > > "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" > target triple = "x86_64-pc-linux-gnu" > > %Value = type { i64, i64, i64, i64 } > %ValueFunction = type { i64, i8*, i8*, i8, i8, i16 } > %String = type { i64, i8*, i32, i32 } > %Void = type { i64, i64, i64, i64 } > > define void @func_0_MainModule_2() { > entry: > %0 = load i8** inttoptr (i64 6639552 to i8**) > %1 = load i8** inttoptr (i64 6639576 to i8**) > %2 = icmp eq i8* %1, %0 > br i1 %2, label %if.cont, label %if.then > > if.then: ; preds = %entry > tail call void @stack_corrupted_abort() > unreachable > > if.cont: ; preds = %entry > store i8 -1, i8* inttoptr (i64 29188424 to i8*) > %3 = load i8** inttoptr (i64 6639552 to i8**) > %4 = load i8** inttoptr (i64 6639576 to i8**) > %5 = icmp eq i8* %4, %3 > br i1 %5, label %if.cont2, label %if.then1 > > if.then1: ; preds = %if.cont > tail call void @stack_corrupted_abort() > unreachable > > if.cont2: ; preds = %if.cont > %6 = load i1* inttoptr (i64 29188424 to i1*) > br i1 %6, label %block5, label %if.cont7 > > block5: ; preds = %if.cont2 > %7 = load %Value** inttoptr (i64 6639552 to %Value**) > %8 = bitcast %Value* %7 to %ValueFunction* > %9 = getelementptr %ValueFunction* %8, i64 0, i32 0 > store i64 13, i64* %9 > %10 = getelementptr %ValueFunction* %8, i64 0, i32 1 > store i8* inttoptr (i64 27857320 to i8*), i8** %10 > %11 = getelementptr %ValueFunction* %8, i64 0, i32 2 > store i8* null, i8** %11 > %12 = getelementptr %Value* %7, i64 1 > %13 = bitcast %Value* %12 to %String* > %14 = getelementptr %String* %13, i64 0, i32 0 > store i64 10, i64* %14 > %15 = getelementptr %String* %13, i64 0, i32 1 > store i8* inttoptr (i64 29162265 to i8*), i8** %15 > %16 = getelementptr %String* %13, i64 0, i32 2 > store i32 0, i32* %16 > %17 = getelementptr %String* %13, i64 0, i32 3 > store i32 17, i32* %17 > %18 = getelementptr %Value* %7, i64 2 > store %Value* %18, %Value** inttoptr (i64 6639552 to %Value**) > store i64 29162040, i64* inttoptr (i64 6639624 to i64*) > store i8 1, i8* inttoptr (i64 6648048 to i8*) > store i8* inttoptr (i64 140276446242864 to i8*), i8** inttoptr (i64 > 6648040 to i8**) > store i8* null, i8** inttoptr (i64 6648024 to i8**) > store i8* inttoptr (i64 27857320 to i8*), i8** inttoptr (i64 6648016 to > i8**) > store i8 1, i8* inttoptr (i64 6648050 to i8*) > tail call void @EXEC_native() > %19 = load %Value** inttoptr (i64 6639552 to %Value**) > %20 = getelementptr %Value* %19, i64 -1 > store %Value* %20, %Value** inttoptr (i64 6639552 to %Value**) > %.pre = load i8** inttoptr (i64 6639552 to i8**) > %.pre11 = load i8** inttoptr (i64 6639576 to i8**) > %21 = icmp eq i8* %.pre11, %.pre > br i1 %21, label %if.cont7, label %if.then6 > > if.then6: ; preds = %block5 > tail call void @stack_corrupted_abort() > unreachable > > if.cont7: ; preds = %if.cont2, > %block5 > %22 = load %Value** inttoptr (i64 6639552 to %Value**) > %23 = bitcast %Value* %22 to %ValueFunction* > %24 = getelementptr %ValueFunction* %23, i64 0, i32 0 > store i64 13, i64* %24 > %25 = getelementptr %ValueFunction* %23, i64 0, i32 1 > store i8* inttoptr (i64 27857320 to i8*), i8** %25 > %26 = getelementptr %ValueFunction* %23, i64 0, i32 2 > store i8* null, i8** %26 > %27 = getelementptr %Value* %22, i64 1 > %28 = bitcast %Value* %27 to %String* > %29 = getelementptr %String* %28, i64 0, i32 0 > store i64 10, i64* %29 > %30 = getelementptr %String* %28, i64 0, i32 1 > store i8* inttoptr (i64 29162283 to i8*), i8** %30 > %31 = getelementptr %String* %28, i64 0, i32 2 > store i32 0, i32* %31 > %32 = getelementptr %String* %28, i64 0, i32 3 > store i32 20, i32* %32 > %33 = getelementptr %Value* %22, i64 2 > store %Value* %33, %Value** inttoptr (i64 6639552 to %Value**) > store i64 29162050, i64* inttoptr (i64 6639624 to i64*) > store i8 1, i8* inttoptr (i64 6648048 to i8*) > store i8* inttoptr (i64 140276446242864 to i8*), i8** inttoptr (i64 > 6648040 to i8**) > store i8* null, i8** inttoptr (i64 6648024 to i8**) > store i8* inttoptr (i64 27857320 to i8*), i8** inttoptr (i64 6648016 to > i8**) > store i8 1, i8* inttoptr (i64 6648050 to i8*) > tail call void @EXEC_native() > %34 = load %Value** inttoptr (i64 6639552 to %Value**) > %35 = getelementptr %Value* %34, i64 -1 > store %Value* %35, %Value** inttoptr (i64 6639552 to %Value**) > %36 = load i8** inttoptr (i64 6639552 to i8**) > %37 = load i8** inttoptr (i64 6639576 to i8**) > %38 = icmp eq i8* %37, %36 > br i1 %38, label %if.cont9, label %if.then8 > > if.then8: ; preds = %if.cont7 > tail call void @stack_corrupted_abort() > unreachable > > if.cont9: ; preds = %if.cont7 > store i64 0, i64* getelementptr (%Void* inttoptr (i64 6647920 to %Void*), > i64 0, i32 0) > tail call void @EXEC_leave_keep() > ret void > } > > declare void @stack_corrupted_abort() > > declare void @EXEC_native() > > declare void @EXEC_leave_keep() > ------------------------------------------------------------------------ > > > Jussi > > > > On 26 June 2012 21:05, Emil Lenngren 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 > > > > > OK, here is more. This is really really weird. > > > > > > I expect message "Everything works!", but I get *only* "Something > > broke!!". > > > But if I add 'Return', under Message("Everything works!"), or I remove > > > 'Fast' then everything works as expected. > > > > > > See attachment. > > > > > > Gambas 3 rev 4860 @ Xubuntu 12.04 64bit > > > > > > Jussi > > > > > > > > > > > > > > > On 20 June 2012 20:14, Emil Lenngren wrote: > > > > > > > That bug was actually an interpreter bug, but it is now corrected in > > the > > > > latest revision :) > > > > > > > > /Emil > > > > > > > > 2012/6/20 Jussi Lahtinen > > > > > > > > > Yeah, I'm also leaving to countryside for Midsummer parties... but > I > > > made > > > > > quick test, > > > > > and I found another bug (see attachment). > > > > > > > > > > Similar problem with argument counting. > > > > > > > > > > Jussi > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 20 June 2012 19:14, Emil Lenngren > > wrote: > > > > > > > > > > > Tomorrow I will travel away for a week so I cannot do anything > > then, > > > > but > > > > > > just keep sending emails and I will reply when I come home :) > > > > > > > > > > > > /Emil > > > > > > > > > > > > 2012/6/20 Jussi Lahtinen > > > > > > > > > > > > > So far everything seems to work! > > > > > > > I'll continue further testing later. > > > > > > > > > > > > > > Jussi > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 20 June 2012 01:10, Emil Lenngren > > > > wrote: > > > > > > > > > > > > > > > Is revision #4851 useful for you? > > > > > > > > You can now convert functions in the current running class to > > > > > pointers. > > > > > > > > > > > > > > > > /Emil > > > > > > > > > > > > > > > > 2012/6/19 Emil Lenngren > > > > > > > > > > > > > > > > > It should work in the latest revision :) > > > > > > > > > > > > > > > > > > > > > > > > > > > 2012/6/19 Emil Lenngren > > > > > > > > > > > > > > > > > >> If you want a quick workaround, you can have non-fast > method > > > > that > > > > > > > > creates > > > > > > > > >> a callback, and immediately returns it, like: > > > > > > > > >> > > > > > > > > >> Private Function GenerateCallback() As Pointer > > > > > > > > >> 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 > > > > > > > > >> > > > > > > > > >>> No problem, I'm glad to help making Gambas more robust, > > when > > > > > ever I > > > > > > > > have > > > > > > > > >>> time to do so! > > > > > > > > >>> And testing things seems to be easy contribution for > me... > > > > > > > > >>> > > > > > > > > >>> My project has about 120 000 lines of code. And I try JIT > > > with > > > > > > every > > > > > > > > >>> module > > > > > > > > >>> and class of it. > > > > > > > > >>> So I think I will find more bugs... But in some point I > > must > > > > wait > > > > > > > > support > > > > > > > > >>> for callbacks to finish that. > > > > > > > > >>> > > > > > > > > >>> Jussi > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > >>> On 19 June 2012 21:58, Emil Lenngren < > > > emil.lenngren at ...626...> > > > > > > > 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 > > > > > > > > >>> > > > > > > > > > >>> > > More bugs... > > > > > > > > >>> > > > > > > > > > > >>> > > Make shared library (just dummy example [or just use > > > binary > > > > > > that > > > > > > > is > > > > > > > > >>> > > included with project source]); > > > > > > > > >>> > > > > > > > > > > >>> > > #include > > > > > > > > >>> > > > > > > > > > > >>> > > int yEta(int x1, int y1, int x2, int y2) > > > > > > > > >>> > > {return (int) hypot(x1-x2,y1-y2);} > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > >>> > > Then run the attached project. > > > > > > > > >>> > > With JIT, number of arguments is counted wrong. > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > >>> > > Jussi > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > >>> > > On 19 June 2012 21:02, Jussi Lahtinen < > > > > > > jussi.lahtinen at ...626...> > > > > > > > > >>> wrote: > > > > > > > > >>> > > > > > > > > > > >>> > > > Yes, it works now! > > > > > > > > >>> > > > > > > > > > > > >>> > > > Jussi > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > > >>> > > > On 18 June 2012 22:34, Emil Lenngren < > > > > > > emil.lenngren at ...626...> > > > > > > > > >>> wrote: > > > > > > > > >>> > > > > > > > > > > > >>> > > >> Does it work in revision #4847? > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> /Emil > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> 2012/6/18 Jussi Lahtinen < > jussi.lahtinen at ...626...> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > 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 || Addr == 0) && > > > > "GlobalMapping > > > > > > > > already > > > > > > > > >>> > > >> > established!"' failed. > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > Program received signal SIGABRT, Aborted. > > > > > > > > >>> > > >> > 0x00007ffff7130445 in __GI_raise (sig= > > out>) > > > > > > > > >>> > > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > > > > > > > > >>> > > >> > 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: > No > > > such > > > > > > file > > > > > > > or > > > > > > > > >>> > > >> directory. > > > > > > > > >>> > > >> > (gdb) bt > > > > > > > > >>> > > >> > #0 0x00007ffff7130445 in __GI_raise > > (sig= > > > > out>) > > > > > > > > >>> > > >> > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > > > > > > > > >>> > > >> > #1 0x00007ffff7133bab in __GI_abort () at > > > abort.c:91 > > > > > > > > >>> > > >> > #2 0x00007ffff712910e in __assert_fail_base > > > > > > (fmt= > > > > > > > >>> out>, > > > > > > > > >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || > Addr > > == > > > > 0) > > > > > && > > > > > > > > >>> > > >> \"GlobalMapping > > > > > > > > >>> > > >> > already established!\"", file=0x7fffed43c55b > > > > > > > > >>> "ExecutionEngine.cpp", > > > > > > > > >>> > > >> > line=, function= out>) > > > at > > > > > > > > >>> assert.c:94 > > > > > > > > >>> > > >> > #3 0x00007ffff71291b2 in __GI___assert_fail ( > > > > > > > > >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || > Addr > > == > > > > 0) > > > > > && > > > > > > > > >>> > > >> \"GlobalMapping > > > > > > > > >>> > > >> > already established!\"", file=0x7fffed43c55b > > > > > > > > >>> "ExecutionEngine.cpp", > > > > > > > > >>> > > >> > line=165, > > > > > > > > >>> > > >> > function=0x7fffed43d7a0 "void > > > > > > > > >>> > > >> > llvm::ExecutionEngine::addGlobalMapping(const > > > > > > > > >>> llvm::GlobalValue*, > > > > > > > > >>> > > >> void*)") > > > > > > > > >>> > > >> > at assert.c:103 > > > > > > > > >>> > > >> > #4 0x00007fffeca84aae in > > > > > > > > >>> > > >> > > > > > > llvm::ExecutionEngine::addGlobalMapping(llvm::GlobalValue > > > > > > > > >>> const*, > > > > > > > > >>> > > >> void*) () > > > > > > > > >>> > > >> > from /usr/lib/libLLVM-3.2svn.so > > > > > > > > >>> > > >> > #5 0x00007fffedc85ec7 in register_global_symbol > > > > > > > > >>> (address=0x40ebf6, > > > > > > > > >>> > > >> > value=0x8b2500, name=...) at > > jit_codegen.cpp:242 > > > > > > > > >>> > > >> > #6 register_global_symbol (name=..., > > > value=0x8b2500, > > > > > > > > >>> > > address=0x40ebf6) > > > > > > > > >>> > > >> > at jit_codegen.cpp:240 > > > > > > > > >>> > > >> > #7 0x00007fffedc8600e in > > get_global_function_real ( > > > > > > > > >>> > > >> > name=0x7fffedcb9e57 "CLASS_free", > > func=0x40ebf6, > > > > > > > > >>> ret= > > > > > > > >>> > > out>, > > > > > > > > >>> > > >> > args=, vararg=) > > at > > > > > > > > >>> > > jit_codegen.cpp:276 > > > > > > > > >>> > > >> > #8 0x00007fffedc8a9dc in operator() > > > (this= > > > > > > > pointer>) > > > > > > > > >>> > > >> > at jit_codegen.cpp:991 > > > > > > > > >>> > > >> > ---Type to continue, or q to > > > quit--- > > > > > > > > >>> > > >> > #9 > > > > > > > > gen_if > > > > > > > > > >>> > > >> (func=..., > > > > > > > > >>> > > >> > cond=0x8999d0, if_name=, > > > > > > > > cont_name= > > > > > > > >>> > out>) > > > > > > > > >>> > > >> > at jit_codegen.cpp:562 > > > > > > > > >>> > > >> > #10 unref_object_no_nullcheck (ptr=0x898ca8) at > > > > > > > > >>> jit_codegen.cpp:993 > > > > > > > > >>> > > >> > #11 0x00007fffedc9a44c in codegen_get_value > > > > > > (this=0x8abba0) > > > > > > > > >>> > > >> > at jit_codegen.cpp:1566 > > > > > > > > >>> > > >> > #12 > > > > PushPureObjectVariableExpression::codegen_get_value > > > > > > > > >>> > > (this=0x8abba0) > > > > > > > > >>> > > >> > at jit_codegen.cpp:1545 > > > > > > > > >>> > > >> > #13 0x00007fffedca3f0d in > > > > > > SubrExpression::codegen_get_value > > > > > > > > >>> > > >> (this=0x86a450) > > > > > > > > >>> > > >> > at jit_codegen.cpp:5898 > > > > > > > > >>> > > >> > #14 0x00007fffedc8c21d in > DropExpression::codegen > > > > > > > > >>> (this=0x86a4a0) > > > > > > > > >>> > > >> > at jit_codegen.cpp:1257 > > > > > > > > >>> > > >> > #15 0x00007fffedca6fa7 in codegen_statements () > at > > > > > > > > >>> > jit_codegen.cpp:855 > > > > > > > > >>> > > >> > #16 JIT_codegen () at jit_codegen.cpp:6490 > > > > > > > > >>> > > >> > #17 0x00007fffedcadc64 in > JIT_compile_and_execute > > () > > > > at > > > > > > > > >>> > > >> jit_compile.cpp:119 > > > > > > > > >>> > > >> > #18 0x000000000040a2fb in EXEC_jit_function_loop > > () > > > at > > > > > > > > >>> > gbx_exec.c:871 > > > > > > > > >>> > > >> > #19 0x000000000040ab22 in EXEC_function_real () > at > > > > > > > > >>> gbx_exec.c:862 > > > > > > > > >>> > > >> > #20 0x000000000041e86d in raise_event > > > > > (observer= > > > > > > > out>, > > > > > > > > >>> > > >> > object=, func_id= > out>, > > > > > > > > >>> > nparam= > > > > > > > >>> > > >> out>) > > > > > > > > >>> > > >> > at gbx_api.c:711 > > > > > > > > >>> > > >> > #21 0x000000000041efa6 in GB_Raise > > (object=0x8b95c8, > > > > > > > > >>> event_id=16, > > > > > > > > >>> > > >> nparam=0) > > > > > > > > >>> > > >> > at gbx_api.c:842 > > > > > > > > >>> > > >> > #22 0x00007ffff5fce3d3 in gb_raise_button_Click > > > > > > > > >>> (sender= > > > > > > > >>> > > out>) > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > Jussi > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > On 18 June 2012 22:08, Emil Lenngren < > > > > > > > emil.lenngren at ...626... > > > > > > > > > > > > > > > > > >>> > 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.lahtinen at ...626...> > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > OK, I found it. See attachment. > > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > Jussi > > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > On 17 June 2012 23:36, Jussi Lahtinen < > > > > > > > > >>> jussi.lahtinen at ...626... > > > > > > > > >>> > > > > > > > > > > >>> > > >> > 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::addGlobalMapping(const > > > > > > > > >>> > > llvm::GlobalValue*, > > > > > > > > >>> > > >> > > void*): > > > > > > > > >>> > > >> > > > > Assertion `(CurVal == 0 || Addr == 0) && > > > > > > > "GlobalMapping > > > > > > > > >>> > 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.lenngren at ...626... > > > > > > > > >>> > > > > > > > > > > >>> > > >> > wrote: > > > > > > > > >>> > > >> > > > > > > > > > > > > >>> > > >> > > > >> It should be fixed in revision #4843! > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> /Emil > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> 2012/6/17 Jussi Lahtinen < > > > > > jussi.lahtinen at ...626... > > > > > > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > Yes, it really works now. And I found > a > > > lot > > > > of > > > > > > > > errors > > > > > > > > >>> by > > > > > > > > >>> > me. > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > But for some reason JIT raises compare > > > method > > > > > > when > > > > > > > it > > > > > > > > >>> > > >> shouldn't, > > > > > > > > >>> > > >> > > > >> > and when I tried to isolate the > problem I > > > got > > > > > > crash > > > > > > > > >>> (signal > > > > > > > > >>> > > >> 11). > > > > > > > > >>> > > >> > > > >> > This seems not to be related to compare > > > > method, > > > > > > so > > > > > > > > just > > > > > > > > >>> > > ignore > > > > > > > > >>> > > >> > name > > > > > > > > >>> > > >> > > of > > > > > > > > >>> > > >> > > > >> the > > > > > > > > >>> > > >> > > > >> > attached project. > > > > > > > > >>> > > >> > > > >> > I will look it more closely when this > is > > > > fixed. > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > Jussi > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > On 17 June 2012 19:01, Emil Lenngren < > > > > > > > > >>> > > emil.lenngren at ...626...> > > > > > > > > >>> > > >> > > wrote: > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > Yes, it works now :) > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > 2012/6/17 Beno?t Minisini < > > > > > > > > >>> gambas at ...1...> > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > Le 17/06/2012 02:54, Jussi > Lahtinen a > > > > > ?crit : > > > > > > > > >>> > > >> > > > >> > > > > Yeah, terminal gives other > > > position... > > > > > > > > >>> > > >> > > > >> > > > > With my actual project, I got > error > > > > > > message; > > > > > > > > >>> wanted > > > > > > > > >>> > > >> string, > > > > > > > > >>> > > >> > > got > > > > > > > > >>> > > >> > > > >> > > > > blaablaaClass instead. > > > > > > > > >>> > > >> > > > >> > > > > And that error message comes from > > > > > function > > > > > > > > (from > > > > > > > > >>> > other > > > > > > > > >>> > > >> > module > > > > > > > > >>> > > >> > > > >> without > > > > > > > > >>> > > >> > > > >> > > > Fast) > > > > > > > > >>> > > >> > > > >> > > > > which takes two objects are > > > parameters. > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > > >>> > > >> > > > >> > > > > So either terminal isn't showing > > the > > > > real > > > > > > > > stack, > > > > > > > > >>> or > > > > > > > > >>> > > >> there is > > > > > > > > >>> > > >> > > > >> > something > > > > > > > > >>> > > >> > > > >> > > > else > > > > > > > > >>> > > >> > > > >> > > > > wrong... > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > > >>> > > >> > > > >> > > > > But my time is up, I'll see it > > > tomorrow > > > > > > (with > > > > > > > > >>> latest > > > > > > > > >>> > > >> > > revision). > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > > >>> > > >> > > > >> > > > > Jussi > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > >>> > > >> > > > >> > > > The incorrect line number problem, > as > > > > > > reported > > > > > > > by > > > > > > > > >>> the > > > > > > > > >>> > > >> debugger > > > > > > > > >>> > > >> > > > (and > > > > > > > > >>> > > >> > > > >> not > > > > > > > > >>> > > >> > > > >> > > > when you run the program > normally!), > > > > should > > > > > > be > > > > > > > > >>> fixed in > > > > > > > > >>> > > >> > revision > > > > > > > > >>> > > >> > > > >> #4841. > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > >>> > > >> > > > >> > > > Regards, > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > >>> > > >> > > > >> > > > -- > > > > > > > > >>> > > >> > > > >> > > > Beno?t Minisini > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > >>> > > >> > > > >> > > > Live Security Virtual Conference > > > > > > > > >>> > > >> > > > >> > > > Exclusive live event will cover all > > the > > > > > ways > > > > > > > > >>> today's > > > > > > > > >>> > > >> security > > > > > > > > >>> > > >> > > and > > > > > > > > >>> > > >> > > > >> > > > threat landscape has changed and > how > > IT > > > > > > > managers > > > > > > > > >>> can > > > > > > > > >>> > > >> respond. > > > > > > > > >>> > > >> > > > >> > Discussions > > > > > > > > >>> > > >> > > > >> > > > will include endpoint security, > > mobile > > > > > > security > > > > > > > > >>> and the > > > > > > > > >>> > > >> latest > > > > > > > > >>> > > >> > > in > > > > > > > > >>> > > >> > > > >> > malware > > > > > > > > >>> > > >> > > > >> > > > threats. > > > > > > > > >>> > > >> > > > > > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > >>> > > >> > > > >> > > > > > > > > > _______________________________________________ > > > > > > > > >>> > > >> > > > >> > > > Gambas-user mailing list > > > > > > > > >>> > > >> > > > >> > > > Gambas-user at lists.sourceforge.net > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > >>> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > >>> > > >> > > > >> > > Live Security Virtual Conference > > > > > > > > >>> > > >> > > > >> > > Exclusive live event will cover all > the > > > > ways > > > > > > > > today's > > > > > > > > >>> > > security > > > > > > > > >>> > > >> > and > > > > > > > > >>> > > >> > > > >> > > threat landscape has changed and how > IT > > > > > > managers > > > > > > > > can > > > > > > > > >>> > > respond. > > > > > > > > >>> > > >> > > > >> Discussions > > > > > > > > >>> > > >> > > > >> > > will include endpoint security, > mobile > > > > > security > > > > > > > and > > > > > > > > >>> the > > > > > > > > >>> > > >> latest > > > > > > > > >>> > > >> > in > > > > > > > > >>> > > >> > > > >> malware > > > > > > > > >>> > > >> > > > >> > > threats. > > > > > > > > >>> > > >> > > > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > >>> > > >> > > > >> > > > > > > > _______________________________________________ > > > > > > > > >>> > > >> > > > >> > > Gambas-user mailing list > > > > > > > > >>> > > >> > > > >> > > Gambas-user at lists.sourceforge.net > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > >>> > > >> > > > >> > Live Security Virtual Conference > > > > > > > > >>> > > >> > > > >> > Exclusive live event will cover all the > > > ways > > > > > > > today's > > > > > > > > >>> > security > > > > > > > > >>> > > >> and > > > > > > > > >>> > > >> > > > >> > threat landscape has changed and how IT > > > > > managers > > > > > > > can > > > > > > > > >>> > respond. > > > > > > > > >>> > > >> > > > >> Discussions > > > > > > > > >>> > > >> > > > >> > will include endpoint security, mobile > > > > security > > > > > > and > > > > > > > > the > > > > > > > > >>> > > latest > > > > > > > > >>> > > >> in > > > > > > > > >>> > > >> > > > >> malware > > > > > > > > >>> > > >> > > > >> > threats. > > > > > > > > >>> > > >> > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > >>> > > >> > > > >> > > > > > _______________________________________________ > > > > > > > > >>> > > >> > > > >> > Gambas-user mailing list > > > > > > > > >>> > > >> > > > >> > Gambas-user at lists.sourceforge.net > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > >>> > > >> > > > >> Live Security Virtual Conference > > > > > > > > >>> > > >> > > > >> Exclusive live event will cover all the > > ways > > > > > > today's > > > > > > > > >>> security > > > > > > > > >>> > > and > > > > > > > > >>> > > >> > > > >> threat landscape has changed and how IT > > > > managers > > > > > > can > > > > > > > > >>> respond. > > > > > > > > >>> > > >> > > > Discussions > > > > > > > > >>> > > >> > > > >> will include endpoint security, mobile > > > security > > > > > and > > > > > > > the > > > > > > > > >>> > latest > > > > > > > > >>> > > in > > > > > > > > >>> > > >> > > > malware > > > > > > > > >>> > > >> > > > >> threats. > > > > > > > > >>> > > >> > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > >>> > > >> > > > >> > > > _______________________________________________ > > > > > > > > >>> > > >> > > > >> Gambas-user mailing list > > > > > > > > >>> > > >> > > > >> Gambas-user at lists.sourceforge.net > > > > > > > > >>> > > >> > > > >> > > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > > > > > > > > > > >>> > > >> > > > > > > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > >>> > > >> > > > Live Security Virtual Conference > > > > > > > > >>> > > >> > > > Exclusive live event will cover all the ways > > > > today's > > > > > > > > >>> security > > > > > > > > >>> > and > > > > > > > > >>> > > >> > > > threat landscape has changed and how IT > > managers > > > > can > > > > > > > > >>> respond. > > > > > > > > >>> > > >> > Discussions > > > > > > > > >>> > > >> > > > will include endpoint security, mobile > > security > > > > and > > > > > > the > > > > > > > > >>> latest > > > > > > > > >>> > in > > > > > > > > >>> > > >> > malware > > > > > > > > >>> > > >> > > > threats. > > > > > > > > >>> > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > >>> > > >> > > > > > _______________________________________________ > > > > > > > > >>> > > >> > > > Gambas-user mailing list > > > > > > > > >>> > > >> > > > Gambas-user at lists.sourceforge.net > > > > > > > > >>> > > >> > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > >>> > > >> > > Live Security Virtual Conference > > > > > > > > >>> > > >> > > Exclusive live event will cover all the ways > > > today's > > > > > > > > security > > > > > > > > >>> and > > > > > > > > >>> > > >> > > threat landscape has changed and how IT > managers > > > can > > > > > > > > respond. > > > > > > > > >>> > > >> Discussions > > > > > > > > >>> > > >> > > will include endpoint security, mobile > security > > > and > > > > > the > > > > > > > > >>> latest in > > > > > > > > >>> > > >> malware > > > > > > > > >>> > > >> > > threats. > > > > > > > > >>> > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > >>> > > >> > > > _______________________________________________ > > > > > > > > >>> > > >> > > Gambas-user mailing list > > > > > > > > >>> > > >> > > Gambas-user at lists.sourceforge.net > > > > > > > > >>> > > >> > > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > >>> > > >> > Live Security Virtual Conference > > > > > > > > >>> > > >> > Exclusive live event will cover all the ways > > today's > > > > > > > security > > > > > > > > >>> and > > > > > > > > >>> > > >> > threat landscape has changed and how IT managers > > can > > > > > > > respond. > > > > > > > > >>> > > >> Discussions > > > > > > > > >>> > > >> > will include endpoint security, mobile security > > and > > > > the > > > > > > > latest > > > > > > > > >>> in > > > > > > > > >>> > > >> malware > > > > > > > > >>> > > >> > threats. > > > > > > > > >>> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > >>> > > >> > _______________________________________________ > > > > > > > > >>> > > >> > Gambas-user mailing list > > > > > > > > >>> > > >> > Gambas-user at lists.sourceforge.net > > > > > > > > >>> > > >> > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > >>> > > >> Live Security Virtual Conference > > > > > > > > >>> > > >> Exclusive live event will cover all the ways > today's > > > > > > security > > > > > > > > and > > > > > > > > >>> > > >> threat landscape has changed and how IT managers > can > > > > > > respond. > > > > > > > > >>> > > Discussions > > > > > > > > >>> > > >> will include endpoint security, mobile security > and > > > the > > > > > > latest > > > > > > > > in > > > > > > > > >>> > > malware > > > > > > > > >>> > > >> threats. > > > > > > > > >>> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > >>> > > >> _______________________________________________ > > > > > > > > >>> > > >> Gambas-user mailing list > > > > > > > > >>> > > >> Gambas-user at lists.sourceforge.net > > > > > > > > >>> > > >> > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > >>> > > >> > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > >>> > > Live Security Virtual Conference > > > > > > > > >>> > > Exclusive live event will cover all the ways today's > > > > security > > > > > > and > > > > > > > > >>> > > threat landscape has changed and how IT managers can > > > > respond. > > > > > > > > >>> Discussions > > > > > > > > >>> > > will include endpoint security, mobile security and > the > > > > > latest > > > > > > in > > > > > > > > >>> malware > > > > > > > > >>> > > threats. > > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > >>> > > _______________________________________________ > > > > > > > > >>> > > Gambas-user mailing list > > > > > > > > >>> > > Gambas-user at lists.sourceforge.net > > > > > > > > >>> > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > >>> > Live Security Virtual Conference > > > > > > > > >>> > Exclusive live event will cover all the ways today's > > > security > > > > > and > > > > > > > > >>> > threat landscape has changed and how IT managers can > > > respond. > > > > > > > > >>> Discussions > > > > > > > > >>> > will include endpoint security, mobile security and the > > > > latest > > > > > in > > > > > > > > >>> malware > > > > > > > > >>> > threats. > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > >>> > _______________________________________________ > > > > > > > > >>> > Gambas-user mailing list > > > > > > > > >>> > Gambas-user at lists.sourceforge.net > > > > > > > > >>> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > >>> Live Security Virtual Conference > > > > > > > > >>> Exclusive live event will cover all the ways today's > > security > > > > and > > > > > > > > >>> threat landscape has changed and how IT managers can > > respond. > > > > > > > > Discussions > > > > > > > > >>> will include endpoint security, mobile security and the > > > latest > > > > in > > > > > > > > malware > > > > > > > > >>> threats. > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > >>> _______________________________________________ > > > > > > > > >>> Gambas-user mailing list > > > > > > > > >>> Gambas-user at lists.sourceforge.net > > > > > > > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > >>> > > > > > > > > >> > > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > Live Security Virtual Conference > > > > > > > > Exclusive live event will cover all the ways today's security > > and > > > > > > > > threat landscape has changed and how IT managers can respond. > > > > > > Discussions > > > > > > > > will include endpoint security, mobile security and the > latest > > in > > > > > > malware > > > > > > > > threats. > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > _______________________________________________ > > > > > > > > Gambas-user mailing list > > > > > > > > Gambas-user at lists.sourceforge.net > > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > Live Security Virtual Conference > > > > > > > Exclusive live event will cover all the ways today's security > and > > > > > > > threat landscape has changed and how IT managers can respond. > > > > > Discussions > > > > > > > will include endpoint security, mobile security and the latest > in > > > > > malware > > > > > > > threats. > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > _______________________________________________ > > > > > > > Gambas-user mailing list > > > > > > > Gambas-user at lists.sourceforge.net > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > Live Security Virtual Conference > > > > > > Exclusive live event will cover all the ways today's security and > > > > > > threat landscape has changed and how IT managers can respond. > > > > Discussions > > > > > > will include endpoint security, mobile security and the latest in > > > > malware > > > > > > threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > _______________________________________________ > > > > > > Gambas-user mailing list > > > > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > Live Security Virtual Conference > > > > > Exclusive live event will cover all the ways today's security and > > > > > threat landscape has changed and how IT managers can respond. > > > Discussions > > > > > will include endpoint security, mobile security and the latest in > > > malware > > > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Live Security Virtual Conference > > > > Exclusive live event will cover all the ways today's security and > > > > threat landscape has changed and how IT managers can respond. > > Discussions > > > > will include endpoint security, mobile security and the latest in > > malware > > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Live Security Virtual Conference > > > Exclusive live event will cover all the ways today's security and > > > threat landscape has changed and how IT managers can respond. > Discussions > > > will include endpoint security, mobile security and the latest in > malware > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From willy at ...2734... Wed Jun 27 01:53:51 2012 From: willy at ...2734... (Willy Raets) Date: Wed, 27 Jun 2012 01:53:51 +0200 Subject: [Gambas-user] Question on networking between one Gambas application that acts as both client and server Message-ID: <1340754831.2200.10.camel@...2735...> Hi all, I'm thinking about an application (game) that can act as both client and server and thus one persons application can connect over TCP/IP with another persons application. The initiating application will go in some server modus, the other in some client modus. If person on Server side does stuff in the games this needs to be fed to the application on Client side somehow and game there is updated accordingly. On the other hand if the person on the client side does something this needs to be fed to the server and both games need to be updated. So on the client side all needs to be accepted from the server side as that is where the actual game is run. Idea is one application that can act both as server and as client. So people having the same game can play a network game. I was thinking of starting off turn based game to make it a little easier to start with. I have no idea where to start although I looked around on Google a lot. Any suggestions that might get me going...? Thanks, Willy From rmorgan62 at ...626... Wed Jun 27 02:34:50 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Tue, 26 Jun 2012 17:34:50 -0700 Subject: [Gambas-user] Question on networking between one Gambas application that acts as both client and server In-Reply-To: <1340754831.2200.10.camel@...2735...> References: <1340754831.2200.10.camel@...2735...> Message-ID: Will this be done in a direct P2P fashion or using a master hub? If you are doing this in a direct peer to peer then your players will need to handle locating their friend's machine on the net perhaps via the IP address and may need to set up their machine at home to allow your chosen protocol be passed through to their machine. If you use http then the protocol will not be an issue. UDP may on some routers. There are a few books on network game programming. These may help you out some. There are also some good online tutorials to get you started: http://gafferongames.com/networking-for-game-programmers/ Checkout GameDev and Gamasutra sites as well. This page has a list of game dev sites (on the right hand side) that mat be helpful: http://www.codebox.8m.com/gameprog.htm There are many many ways to inplement this. Start simple if you have no networking experience. Read and review the GB network components. The networking issues will be the same no matter what language so read what you find on python and c/c++ and apply that knowledge to gb. Hope this helps. On Tue, Jun 26, 2012 at 4:53 PM, Willy Raets wrote: > Hi all, > > I'm thinking about an application (game) that can act as both client and > server and thus one persons application can connect over TCP/IP with > another persons application. > > The initiating application will go in some server modus, the other in > some client modus. > > If person on Server side does stuff in the games this needs to be fed to > the application on Client side somehow and game there is updated > accordingly. On the other hand if the person on the client side does > something this needs to be fed to the server and both games need to be > updated. > > So on the client side all needs to be accepted from the server side as > that is where the actual game is run. > > Idea is one application that can act both as server and as client. > So people having the same game can play a network game. > I was thinking of starting off turn based game to make it a little > easier to start with. > > I have no idea where to start although I looked around on Google a lot. > > Any suggestions that might get me going...? > > Thanks, > > Willy > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From gambas at ...2524... Wed Jun 27 03:14:28 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 27 Jun 2012 01:14:28 +0000 Subject: [Gambas-user] Issue 261 in gambas: Explicit use of _free() fails In-Reply-To: <0-6813199134517018827-3089467152580582788-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-3089467152580582788-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-3089467152580582788-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 261 by benoit.m... at ...626...: Explicit use of _free() fails http://code.google.com/p/gambas/issues/detail?id=261 (No comment was entered for this change.) From gambas at ...2524... Wed Jun 27 03:15:28 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 27 Jun 2012 01:15:28 +0000 Subject: [Gambas-user] Issue 261 in gambas: Explicit use of _free() fails In-Reply-To: <1-6813199134517018827-3089467152580582788-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-3089467152580582788-gambas=googlecode.com@...2524...> <0-6813199134517018827-3089467152580582788-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-3089467152580582788-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 261 by benoit.m... at ...626...: Explicit use of _free() fails http://code.google.com/p/gambas/issues/detail?id=261 Should be fixed in revision #4863. From gambas at ...2524... Wed Jun 27 03:16:28 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 27 Jun 2012 01:16:28 +0000 Subject: [Gambas-user] Issue 260 in gambas: News on Gambas home page displays differently based on browser In-Reply-To: <0-6813199134517018827-3396626513113961524-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-3396626513113961524-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-3396626513113961524-gambas=googlecode.com@...2524...> Updates: Status: WontFix Labels: -Version Version-TRUNK Comment #1 on issue 260 by benoit.m... at ...626...: News on Gambas home page displays differently based on browser http://code.google.com/p/gambas/issues/detail?id=260 There should not be any scrollbars. Firefox is right, but Google Chrome is not (this is a well-known WebKit bug). As for IE I didn't test. From willy at ...2734... Wed Jun 27 03:26:29 2012 From: willy at ...2734... (Willy Raets) Date: Wed, 27 Jun 2012 03:26:29 +0200 Subject: [Gambas-user] Question on networking between one Gambas application that acts as both client and server In-Reply-To: References: <1340754831.2200.10.camel@...2735...> Message-ID: <1340760389.2200.18.camel@...2735...> On di, 2012-06-26 at 17:34 -0700, Randall Morgan wrote: > Will this be done in a direct P2P fashion or using a master hub? > I was thinking P2P > > If you are doing this in a direct peer to peer then your players will > need to handle locating their friend's machine on the net perhaps via > the IP address and may need to set up their machine at home to allow > your chosen protocol be passed through to their machine. If you use > http then the protocol will not be an issue. UDP may on some routers. > I have been thinking about the router issue and what protocol to as well. Guess I'll see what works best > > There are a few books on network game programming. These may help you > out some. There are also some good online tutorials to get you > started: > > > http://gafferongames.com/networking-for-game-programmers/ > > > Checkout GameDev and Gamasutra sites as well. > > > This page has a list of game dev sites (on the right hand side) that > mat be helpful: http://www.codebox.8m.com/gameprog.htm > > I will have a look at all the information and see what comes up :-) > There are many many ways to inplement this. Start simple if you have > no networking experience. Read and review the GB network components. > The networking issues will be the same no matter what language so read > what you find on python and c/c++ and apply that knowledge to gb. > I was planning on starting small and simple. I do have network experience but not in a P2P coding kind of manner, so that is kind of new and I will have a good look at all networking components gambas has to offer. > > Hope this helps. > Hope so too :-) Guess I will know soon enough Thanks, Willy > > > > On Tue, Jun 26, 2012 at 4:53 PM, Willy Raets > wrote: > Hi all, > > I'm thinking about an application (game) that can act as both > client and > server and thus one persons application can connect over > TCP/IP with > another persons application. > > The initiating application will go in some server modus, the > other in > some client modus. > > If person on Server side does stuff in the games this needs to > be fed to > the application on Client side somehow and game there is > updated > accordingly. On the other hand if the person on the client > side does > something this needs to be fed to the server and both games > need to be > updated. > > So on the client side all needs to be accepted from the server > side as > that is where the actual game is run. > > Idea is one application that can act both as server and as > client. > So people having the same game can play a network game. > I was thinking of starting off turn based game to make it a > little > easier to start with. > > I have no idea where to start although I looked around on > Google a lot. > > Any suggestions that might get me going...? > > Thanks, > > Willy > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security > and > threat landscape has changed and how IT managers can respond. > Discussions > will include endpoint security, mobile security and the latest > in malware > threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > -- > If you ask me if it can be done. The answer is YES, it can always be > done. The correct questions however are... What will it cost, and how > long will it take? > -- Met vriendelijke groeten/ With kind regards, Willy Raets, Voorzitter/chairman, Earthship Belgium vzw. Nederlandse website: http://www.earthshipbelgium.be/nl.html English Website: http://www.earthshipbelgium.be/en.html From gambas at ...2524... Wed Jun 27 04:31:27 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 27 Jun 2012 02:31:27 +0000 Subject: [Gambas-user] Issue 261 in gambas: Explicit use of _free() fails In-Reply-To: <2-6813199134517018827-3089467152580582788-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-3089467152580582788-gambas=googlecode.com@...2524...> <0-6813199134517018827-3089467152580582788-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-3089467152580582788-gambas=googlecode.com@...2524...> Comment #3 on issue 261 by adamn... at ...626...: Explicit use of _free() fails http://code.google.com/p/gambas/issues/detail?id=261 Wonderful! Tested, confirmed and thank you. Bruce From bbruen at ...2308... Wed Jun 27 06:54:30 2012 From: bbruen at ...2308... (Bruce) Date: Wed, 27 Jun 2012 14:24:30 +0930 Subject: [Gambas-user] Two small(ish) errors in Format$ Message-ID: <1340772870.4696.11.camel@...40...> a) AM/PM indicator is in the wrong position Print Format(Now(), "h:nAM/PM") --> 2:PM18 Print Format(Now(), "h:n:sAM/PM") --> 2:18:PM0 b) Currency abbrev ($$) In the help, it says: PRINT Format$(-1972.06, "($$,#.###)") (USD 1,972.06) Note the space after USD. However, when I run it I get (AUD1,972.06) No space! Would others confirm please. Bruce From bill-lancaster at ...2231... Wed Jun 27 10:48:52 2012 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Wed, 27 Jun 2012 01:48:52 -0700 (PDT) Subject: [Gambas-user] mysql float behaviour Message-ID: <34077473.post@...1379...> Have recently changed my db from sqlite3 to mysql. With sqlite3:- $Conn.Find("salesinvoices", "InvoiceNumber = " & fInr) would correctly return 1 record. InvoiceNumber is defined as float. With mysql, no records are found. I can change the definition type of InvoiceNumber but it needs to numeric. Any ideas? Gambas 3 Ubuntu 12.04, KDE 4.8.1, mysql Server version: 5.5.24 -- View this message in context: http://old.nabble.com/mysql-float-behaviour-tp34077473p34077473.html Sent from the gambas-user mailing list archive at Nabble.com. From bill-lancaster at ...2231... Wed Jun 27 11:11:19 2012 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Wed, 27 Jun 2012 02:11:19 -0700 (PDT) Subject: [Gambas-user] mysql float behaviour In-Reply-To: <34077473.post@...1379...> References: <34077473.post@...1379...> Message-ID: <34077592.post@...1379...> I should have tried harder! Found the mysql CAST function which does the trick. -- View this message in context: http://old.nabble.com/mysql-float-behaviour-tp34077473p34077592.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed Jun 27 12:21:56 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 27 Jun 2012 12:21:56 +0200 Subject: [Gambas-user] mysql float behaviour In-Reply-To: <34077473.post@...1379...> References: <34077473.post@...1379...> Message-ID: <4FEADEC4.5020301@...1...> Le 27/06/2012 10:48, Bill-Lancaster a ?crit : > > Have recently changed my db from sqlite3 to mysql. > With sqlite3:- $Conn.Find("salesinvoices", "InvoiceNumber = " & fInr) > would correctly return 1 record. InvoiceNumber is defined as float. > With mysql, no records are found. > I can change the definition type of InvoiceNumber but it needs to numeric. > > Any ideas? > > Gambas 3 > Ubuntu 12.04, KDE 4.8.1, mysql Server version: 5.5.24 > You must write the request that way: $Conn.Find("salesinvoices", "InvoiceNumber = &1", fInr) -- Beno?t Minisini From gontiaval at ...67... Wed Jun 27 12:44:39 2012 From: gontiaval at ...67... (Valeriu) Date: Wed, 27 Jun 2012 03:44:39 -0700 (PDT) Subject: [Gambas-user] ListView - Multiselect Message-ID: <34077433.post@...1379...> Good day! How to select the selected items from the list ? .... Thank you. My code: ??? Dim i As Integer Dim ListGlobals As String ListGlobals = "" Select Message.Question("We delete the Global(s) " & File1.Item.Selected & ", yagree ?...", "Yes", "No", "Don't know") Case 1 'For i = File1.Count To 1 Step -1 For i=0 to File1.Count-1 If File1.Item.Selected = True Then 'File1.MoveCurrent ListGlobals = ListGlobals & Trim(File1.Item.Text) & "|" Endif Next Message(ListGlobals) Case 2 Return End Select -- View this message in context: http://old.nabble.com/ListView---Multiselect-tp34077433p34077433.html Sent from the gambas-user mailing list archive at Nabble.com. From bill-lancaster at ...2231... Wed Jun 27 13:25:22 2012 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Wed, 27 Jun 2012 04:25:22 -0700 (PDT) Subject: [Gambas-user] mysql float behaviour In-Reply-To: <4FEADEC4.5020301@...1...> References: <34077473.post@...1379...> <4FEADEC4.5020301@...1...> Message-ID: <34079666.post@...1379...> Thank you Beno?t - it worked fine. Where can I find more info re this '&1' ? -- View this message in context: http://old.nabble.com/mysql-float-behaviour-tp34077473p34079666.html Sent from the gambas-user mailing list archive at Nabble.com. From gontiaval at ...67... Wed Jun 27 13:57:39 2012 From: gontiaval at ...67... (Valeriu) Date: Wed, 27 Jun 2012 04:57:39 -0700 (PDT) Subject: [Gambas-user] ListView - Multiselect In-Reply-To: <34077433.post@...1379...> References: <34077433.post@...1379...> Message-ID: <34079898.post@...1379...> Maybe I'm wrong explained. With my bad English ... In ListView i have marked for deletion from the list of multiple items. I want to get these items separately celebrated in a variable. How should i do? Any suggestions are accepted. Valeriu wrote: > > Good day! > > How to select the selected items from the list ? .... > Thank you. > > My code: ??? > > > Dim i As Integer > Dim ListGlobals As String > ListGlobals = "" > Select Message.Question("We delete the Global(s) " & File1.Item.Selected > & ", yagree ?...", "Yes", "No", "Don't know") > Case 1 > 'For i = File1.Count To 1 Step -1 > For i=0 to File1.Count-1 > If File1.Item.Selected = True Then > 'File1.MoveCurrent > ListGlobals = ListGlobals & Trim(File1.Item.Text) & "|" > Endif > Next > Message(ListGlobals) > Case 2 > Return > End Select > > -- View this message in context: http://old.nabble.com/ListView---Multiselect-tp34077433p34079898.html Sent from the gambas-user mailing list archive at Nabble.com. From bbruen at ...2308... Wed Jun 27 13:57:38 2012 From: bbruen at ...2308... (Bruce) Date: Wed, 27 Jun 2012 21:27:38 +0930 Subject: [Gambas-user] ListView - Multiselect In-Reply-To: <34077433.post@...1379...> References: <34077433.post@...1379...> Message-ID: <1340798258.4696.29.camel@...40...> On Wed, 2012-06-27 at 03:44 -0700, Valeriu wrote: > Good day! > > How to select the selected items from the list ? .... > Thank you. > > My code: ??? > > > Dim i As Integer > Dim ListGlobals As String > ListGlobals = "" > Select Message.Question("We delete the Global(s) " & File1.Item.Selected & > ", yagree ?...", "Yes", "No", "Don't know") > Case 1 > 'For i = File1.Count To 1 Step -1 > For i=0 to File1.Count-1 > If File1.Item.Selected = True Then > 'File1.MoveCurrent > ListGlobals = ListGlobals & Trim(File1.Item.Text) & "|" > Endif > Next > Message(ListGlobals) > Case 2 > Return > End Select > Hi Valeriu, See the attached project source archive. regards Bruce -------------- next part -------------- A non-text attachment was scrubbed... Name: lvwmultiselect-0.0.1.tar.gz Type: application/x-compressed-tar Size: 5154 bytes Desc: not available URL: From bbruen at ...2308... Wed Jun 27 14:32:29 2012 From: bbruen at ...2308... (Bruce) Date: Wed, 27 Jun 2012 22:02:29 +0930 Subject: [Gambas-user] mysql float behaviour In-Reply-To: <34079666.post@...1379...> References: <34077473.post@...1379...> <4FEADEC4.5020301@...1...> <34079666.post@...1379...> Message-ID: <1340800349.4696.44.camel@...40...> On Wed, 2012-06-27 at 04:25 -0700, Bill-Lancaster wrote: > Thank you Beno?t - it worked fine. > Where can I find more info re this '&1' ? Hi Bill, It's in the help at gb.db.Connection.Subst You're right. Connection.Find ( Table As String [ , Request As String, Arguments As , ... ] ) As Result doesn't really explain it well. regards Bruce (p.s. I'm going to be a bit "rdms-ist" here. If you are looking for a proper rdbms without weird problems, do yourself a favour, bypass MySQL and use postgresql. Why? Because for example, if you are ever in the case when your natural primary key may include things like names such as "van der Plum-O'Brien-MacDonald III, Sioban" then mysql will drive you nuts. :-) Seriously, the effort to learn postgresql is worth it. Here is a "oldish" site that highlights my feelings http://ask.metafilter.com/92162/MySQL-vs-PostgreSQL and in particular one that is referenced there, if you have a couple of million brain cells to spare, http://en.wikipedia.org/wiki/Comparison_of_relational_database_management_systems ) From gontiaval at ...67... Wed Jun 27 14:34:00 2012 From: gontiaval at ...67... (Valeriu) Date: Wed, 27 Jun 2012 05:34:00 -0700 (PDT) Subject: [Gambas-user] ListView - Multiselect In-Reply-To: <1340798258.4696.29.camel@...40...> References: <34077433.post@...1379...> <1340798258.4696.29.camel@...40...> Message-ID: <34080084.post@...1379...> Bruce, thank you, everything is fine! Valeriu bbb888 wrote: > > On Wed, 2012-06-27 at 03:44 -0700, Valeriu wrote: >> Good day! >> >> How to select the selected items from the list ? .... >> Thank you. >> >> My code: ??? >> >> >> Dim i As Integer >> Dim ListGlobals As String >> ListGlobals = "" >> Select Message.Question("We delete the Global(s) " & >> File1.Item.Selected & >> ", yagree ?...", "Yes", "No", "Don't know") >> Case 1 >> 'For i = File1.Count To 1 Step -1 >> For i=0 to File1.Count-1 >> If File1.Item.Selected = True Then >> 'File1.MoveCurrent >> ListGlobals = ListGlobals & Trim(File1.Item.Text) & "|" >> Endif >> Next >> Message(ListGlobals) >> Case 2 >> Return >> End Select >> > > > Hi Valeriu, > > See the attached project source archive. > > regards > Bruce > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/ListView---Multiselect-tp34077433p34080084.html Sent from the gambas-user mailing list archive at Nabble.com. From bbruen at ...2308... Wed Jun 27 15:40:37 2012 From: bbruen at ...2308... (Bruce) Date: Wed, 27 Jun 2012 23:10:37 +0930 Subject: [Gambas-user] A bit of good news! (Relates to override, native classes, etc) Message-ID: <1340804437.4696.77.camel@...40...> Thanks to everyone here that followed and contributed to the various "native class overrides" threads and especially Benoit for the speedy fix to issue 261 and for the profiler, I am really pleased to announce the following: We process about 30 to 250 text files a day (depending on the day of the week), each of which contains between 200 to 1500 lines of generally unstructured gibberish about horse auctions. On big days this was taking about 40 minutes. Today I have run many tests over our sample data (2295 files) and thanks to you all each run (over that whole set) is now taking between 22 and 34 seconds. Yes, you did read that right! 40 minutes for a couple of hundred down to 30 seconds for a couple of thousand! Settle down though, I did mention that we did rewrite the entire parser in a more sensible manner. So you all can only claim about 50% of that. (One thing the profiler showed up was that we were reloading the same row from the database n-thousand times. Thanks there to Benoit for his re-introduction of the average times in the profiler!) I am so impressed with gambas that I could just... metaphors fail me! One thing worries me still. :-) You didn't think you'd get out of this that easily did you? I tend to (lazily) use Dim aLines as new String[] sText = File.Load() aLines = Split(sText,"\n") that Split seems to take a time that looks suspiciously like an exponential function of the number of actual lines in the file as opposed to a linear function. It could be that I'm looking at a lumpy sample (even over 2295 files) but has anyone seen anything like that before? Oh, and (finally) while I'm on that track, I have hacked the profiler form up to be able to save the profile data and reload a saved profile, so I can compare one run with another. It is much too messy to commit currently but if there would be any interest in such a thing I could clean it up and submit it. best regards Bruce From nando_f at ...951... Wed Jun 27 18:16:21 2012 From: nando_f at ...951... (nando) Date: Wed, 27 Jun 2012 12:16:21 -0400 Subject: [Gambas-user] mysql float behaviour In-Reply-To: <1340800349.4696.44.camel@...40...> References: <34077473.post@...1379...> <4FEADEC4.5020301@...1...> <34079666.post@...1379...> <1340800349.4696.44.camel@...40...> Message-ID: <20120627161115.M73729@...951...> Primary keys are supposed to be unique unrelated to the actual data such as an INT with auto increment so there will never, ever be duplicates. If you use actual data (like a name) you CAN get duplicates and you are breaking the design theory. If you think you'll never get a duplicate, you will. In theory, and practice, your primary key ought not be real data but rather an arbitrary think like INT. Make a field called id as an INT primary auto increment. Then make your other real data as an INDEX as you want. What you're suggesting is not correct. Follow this practice: I assure no grief ! ---------- Original Message ----------- From: Bruce To: mailing list for gambas users Sent: Wed, 27 Jun 2012 22:02:29 +0930 Subject: Re: [Gambas-user] mysql float behaviour > On Wed, 2012-06-27 at 04:25 -0700, Bill-Lancaster wrote: > > Thank you Beno?t - it worked fine. > > Where can I find more info re this '&1' ? > > Hi Bill, > > It's in the help at gb.db.Connection.Subst > > You're right. > Connection.Find ( Table As String [ , Request As String, > Arguments As , ... ] ) As Result > doesn't really explain it well. > > regards > Bruce > > (p.s. I'm going to be a bit "rdms-ist" here. If you are looking for a > proper rdbms without weird problems, do yourself a favour, bypass MySQL > and use postgresql. Why? Because for example, if you are ever in the > case when your natural primary key may include things like names such > as > "van der Plum-O'Brien-MacDonald III, Sioban" > > then mysql will drive you nuts. :-) Seriously, the effort to learn > postgresql is worth it. Here is a "oldish" site that highlights my > feelings http://ask.metafilter.com/92162/MySQL-vs-PostgreSQL and in > particular one that is referenced there, if you have a couple of million > brain cells to spare, > http://en.wikipedia.org/wiki/Comparison_of_relational_database_management_systems ) > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From jussi.lahtinen at ...626... Wed Jun 27 18:17:01 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 27 Jun 2012 19:17:01 +0300 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: Yes, it works now! Jussi On 27 June 2012 00:12, Emil Lenngren wrote: > It seems like when LLVM reads boolean pointers, it assumes the seven most > significant bits are always 0, which is not the case in Gambas. Does the > latest revision work? I have no opportunity to even compile it and see if > it works at the moment :) > > /Emil > > 2012/6/26 Jussi Lahtinen > > > .../MagicBug$ GB_JIT=info gbx3 > > > > gb.jit: using LLVM 3.2. > > ------------------------------------------------------------------------ > > gb.jit: beginning compiling MainModule.MainModule: > > ------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------ > > gb.jit: beginning compiling MainModule.Main: > > ------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------ > > gb.jit: dumping function MainModule.Main: > > ------------------------------------------------------------------------ > > ; ModuleID = 'jit_mod' > > target datalayout = > > > > > "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" > > target triple = "x86_64-pc-linux-gnu" > > > > %Value = type { i64, i64, i64, i64 } > > %ValueFunction = type { i64, i8*, i8*, i8, i8, i16 } > > %String = type { i64, i8*, i32, i32 } > > %Void = type { i64, i64, i64, i64 } > > > > define void @func_0_MainModule_2() { > > entry: > > %0 = load i8** inttoptr (i64 6639552 to i8**) > > %1 = load i8** inttoptr (i64 6639576 to i8**) > > %2 = icmp eq i8* %1, %0 > > br i1 %2, label %if.cont, label %if.then > > > > if.then: ; preds = %entry > > tail call void @stack_corrupted_abort() > > unreachable > > > > if.cont: ; preds = %entry > > store i8 -1, i8* inttoptr (i64 29188424 to i8*) > > %3 = load i8** inttoptr (i64 6639552 to i8**) > > %4 = load i8** inttoptr (i64 6639576 to i8**) > > %5 = icmp eq i8* %4, %3 > > br i1 %5, label %if.cont2, label %if.then1 > > > > if.then1: ; preds = %if.cont > > tail call void @stack_corrupted_abort() > > unreachable > > > > if.cont2: ; preds = %if.cont > > %6 = load i1* inttoptr (i64 29188424 to i1*) > > br i1 %6, label %block5, label %if.cont7 > > > > block5: ; preds = %if.cont2 > > %7 = load %Value** inttoptr (i64 6639552 to %Value**) > > %8 = bitcast %Value* %7 to %ValueFunction* > > %9 = getelementptr %ValueFunction* %8, i64 0, i32 0 > > store i64 13, i64* %9 > > %10 = getelementptr %ValueFunction* %8, i64 0, i32 1 > > store i8* inttoptr (i64 27857320 to i8*), i8** %10 > > %11 = getelementptr %ValueFunction* %8, i64 0, i32 2 > > store i8* null, i8** %11 > > %12 = getelementptr %Value* %7, i64 1 > > %13 = bitcast %Value* %12 to %String* > > %14 = getelementptr %String* %13, i64 0, i32 0 > > store i64 10, i64* %14 > > %15 = getelementptr %String* %13, i64 0, i32 1 > > store i8* inttoptr (i64 29162265 to i8*), i8** %15 > > %16 = getelementptr %String* %13, i64 0, i32 2 > > store i32 0, i32* %16 > > %17 = getelementptr %String* %13, i64 0, i32 3 > > store i32 17, i32* %17 > > %18 = getelementptr %Value* %7, i64 2 > > store %Value* %18, %Value** inttoptr (i64 6639552 to %Value**) > > store i64 29162040, i64* inttoptr (i64 6639624 to i64*) > > store i8 1, i8* inttoptr (i64 6648048 to i8*) > > store i8* inttoptr (i64 140276446242864 to i8*), i8** inttoptr (i64 > > 6648040 to i8**) > > store i8* null, i8** inttoptr (i64 6648024 to i8**) > > store i8* inttoptr (i64 27857320 to i8*), i8** inttoptr (i64 6648016 to > > i8**) > > store i8 1, i8* inttoptr (i64 6648050 to i8*) > > tail call void @EXEC_native() > > %19 = load %Value** inttoptr (i64 6639552 to %Value**) > > %20 = getelementptr %Value* %19, i64 -1 > > store %Value* %20, %Value** inttoptr (i64 6639552 to %Value**) > > %.pre = load i8** inttoptr (i64 6639552 to i8**) > > %.pre11 = load i8** inttoptr (i64 6639576 to i8**) > > %21 = icmp eq i8* %.pre11, %.pre > > br i1 %21, label %if.cont7, label %if.then6 > > > > if.then6: ; preds = %block5 > > tail call void @stack_corrupted_abort() > > unreachable > > > > if.cont7: ; preds = %if.cont2, > > %block5 > > %22 = load %Value** inttoptr (i64 6639552 to %Value**) > > %23 = bitcast %Value* %22 to %ValueFunction* > > %24 = getelementptr %ValueFunction* %23, i64 0, i32 0 > > store i64 13, i64* %24 > > %25 = getelementptr %ValueFunction* %23, i64 0, i32 1 > > store i8* inttoptr (i64 27857320 to i8*), i8** %25 > > %26 = getelementptr %ValueFunction* %23, i64 0, i32 2 > > store i8* null, i8** %26 > > %27 = getelementptr %Value* %22, i64 1 > > %28 = bitcast %Value* %27 to %String* > > %29 = getelementptr %String* %28, i64 0, i32 0 > > store i64 10, i64* %29 > > %30 = getelementptr %String* %28, i64 0, i32 1 > > store i8* inttoptr (i64 29162283 to i8*), i8** %30 > > %31 = getelementptr %String* %28, i64 0, i32 2 > > store i32 0, i32* %31 > > %32 = getelementptr %String* %28, i64 0, i32 3 > > store i32 20, i32* %32 > > %33 = getelementptr %Value* %22, i64 2 > > store %Value* %33, %Value** inttoptr (i64 6639552 to %Value**) > > store i64 29162050, i64* inttoptr (i64 6639624 to i64*) > > store i8 1, i8* inttoptr (i64 6648048 to i8*) > > store i8* inttoptr (i64 140276446242864 to i8*), i8** inttoptr (i64 > > 6648040 to i8**) > > store i8* null, i8** inttoptr (i64 6648024 to i8**) > > store i8* inttoptr (i64 27857320 to i8*), i8** inttoptr (i64 6648016 to > > i8**) > > store i8 1, i8* inttoptr (i64 6648050 to i8*) > > tail call void @EXEC_native() > > %34 = load %Value** inttoptr (i64 6639552 to %Value**) > > %35 = getelementptr %Value* %34, i64 -1 > > store %Value* %35, %Value** inttoptr (i64 6639552 to %Value**) > > %36 = load i8** inttoptr (i64 6639552 to i8**) > > %37 = load i8** inttoptr (i64 6639576 to i8**) > > %38 = icmp eq i8* %37, %36 > > br i1 %38, label %if.cont9, label %if.then8 > > > > if.then8: ; preds = %if.cont7 > > tail call void @stack_corrupted_abort() > > unreachable > > > > if.cont9: ; preds = %if.cont7 > > store i64 0, i64* getelementptr (%Void* inttoptr (i64 6647920 to > %Void*), > > i64 0, i32 0) > > tail call void @EXEC_leave_keep() > > ret void > > } > > > > declare void @stack_corrupted_abort() > > > > declare void @EXEC_native() > > > > declare void @EXEC_leave_keep() > > ------------------------------------------------------------------------ > > > > > > Jussi > > > > > > > > On 26 June 2012 21:05, Emil Lenngren 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 > > > > > > > OK, here is more. This is really really weird. > > > > > > > > I expect message "Everything works!", but I get *only* "Something > > > broke!!". > > > > But if I add 'Return', under Message("Everything works!"), or I > remove > > > > 'Fast' then everything works as expected. > > > > > > > > See attachment. > > > > > > > > Gambas 3 rev 4860 @ Xubuntu 12.04 64bit > > > > > > > > Jussi > > > > > > > > > > > > > > > > > > > > On 20 June 2012 20:14, Emil Lenngren > wrote: > > > > > > > > > That bug was actually an interpreter bug, but it is now corrected > in > > > the > > > > > latest revision :) > > > > > > > > > > /Emil > > > > > > > > > > 2012/6/20 Jussi Lahtinen > > > > > > > > > > > Yeah, I'm also leaving to countryside for Midsummer parties... > but > > I > > > > made > > > > > > quick test, > > > > > > and I found another bug (see attachment). > > > > > > > > > > > > Similar problem with argument counting. > > > > > > > > > > > > Jussi > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 20 June 2012 19:14, Emil Lenngren > > > wrote: > > > > > > > > > > > > > Tomorrow I will travel away for a week so I cannot do anything > > > then, > > > > > but > > > > > > > just keep sending emails and I will reply when I come home :) > > > > > > > > > > > > > > /Emil > > > > > > > > > > > > > > 2012/6/20 Jussi Lahtinen > > > > > > > > > > > > > > > So far everything seems to work! > > > > > > > > I'll continue further testing later. > > > > > > > > > > > > > > > > Jussi > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 20 June 2012 01:10, Emil Lenngren < > emil.lenngren at ...626...> > > > > > wrote: > > > > > > > > > > > > > > > > > Is revision #4851 useful for you? > > > > > > > > > You can now convert functions in the current running class > to > > > > > > pointers. > > > > > > > > > > > > > > > > > > /Emil > > > > > > > > > > > > > > > > > > 2012/6/19 Emil Lenngren > > > > > > > > > > > > > > > > > > > It should work in the latest revision :) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 2012/6/19 Emil Lenngren > > > > > > > > > > > > > > > > > > > >> If you want a quick workaround, you can have non-fast > > method > > > > > that > > > > > > > > > creates > > > > > > > > > >> a callback, and immediately returns it, like: > > > > > > > > > >> > > > > > > > > > >> Private Function GenerateCallback() As Pointer > > > > > > > > > >> 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 > > > > > > > > > >> > > > > > > > > > >>> No problem, I'm glad to help making Gambas more robust, > > > when > > > > > > ever I > > > > > > > > > have > > > > > > > > > >>> time to do so! > > > > > > > > > >>> And testing things seems to be easy contribution for > > me... > > > > > > > > > >>> > > > > > > > > > >>> My project has about 120 000 lines of code. And I try > JIT > > > > with > > > > > > > every > > > > > > > > > >>> module > > > > > > > > > >>> and class of it. > > > > > > > > > >>> So I think I will find more bugs... But in some point I > > > must > > > > > wait > > > > > > > > > support > > > > > > > > > >>> for callbacks to finish that. > > > > > > > > > >>> > > > > > > > > > >>> Jussi > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > >>> On 19 June 2012 21:58, Emil Lenngren < > > > > emil.lenngren at ...626...> > > > > > > > > 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 > > > > > > > > > >>> > > > > > > > > > > >>> > > More bugs... > > > > > > > > > >>> > > > > > > > > > > > >>> > > Make shared library (just dummy example [or just > use > > > > binary > > > > > > > that > > > > > > > > is > > > > > > > > > >>> > > included with project source]); > > > > > > > > > >>> > > > > > > > > > > > >>> > > #include > > > > > > > > > >>> > > > > > > > > > > > >>> > > int yEta(int x1, int y1, int x2, int y2) > > > > > > > > > >>> > > {return (int) hypot(x1-x2,y1-y2);} > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > > >>> > > Then run the attached project. > > > > > > > > > >>> > > With JIT, number of arguments is counted wrong. > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > > >>> > > Jussi > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > > >>> > > On 19 June 2012 21:02, Jussi Lahtinen < > > > > > > > jussi.lahtinen at ...626...> > > > > > > > > > >>> wrote: > > > > > > > > > >>> > > > > > > > > > > > >>> > > > Yes, it works now! > > > > > > > > > >>> > > > > > > > > > > > > >>> > > > Jussi > > > > > > > > > >>> > > > > > > > > > > > > >>> > > > > > > > > > > > > >>> > > > > > > > > > > > > >>> > > > > > > > > > > > > >>> > > > On 18 June 2012 22:34, Emil Lenngren < > > > > > > > emil.lenngren at ...626...> > > > > > > > > > >>> wrote: > > > > > > > > > >>> > > > > > > > > > > > > >>> > > >> Does it work in revision #4847? > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> /Emil > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> 2012/6/18 Jussi Lahtinen < > > jussi.lahtinen at ...626...> > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > 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 || Addr == 0) && > > > > > "GlobalMapping > > > > > > > > > already > > > > > > > > > >>> > > >> > established!"' failed. > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > Program received signal SIGABRT, Aborted. > > > > > > > > > >>> > > >> > 0x00007ffff7130445 in __GI_raise > (sig= > > > out>) > > > > > > > > > >>> > > >> > at > ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > > > > > > > > > >>> > > >> > 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: > > No > > > > such > > > > > > > file > > > > > > > > or > > > > > > > > > >>> > > >> directory. > > > > > > > > > >>> > > >> > (gdb) bt > > > > > > > > > >>> > > >> > #0 0x00007ffff7130445 in __GI_raise > > > (sig= > > > > > out>) > > > > > > > > > >>> > > >> > at > ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > > > > > > > > > >>> > > >> > #1 0x00007ffff7133bab in __GI_abort () at > > > > abort.c:91 > > > > > > > > > >>> > > >> > #2 0x00007ffff712910e in __assert_fail_base > > > > > > > (fmt= > > > > > > > > >>> out>, > > > > > > > > > >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || > > Addr > > > == > > > > > 0) > > > > > > && > > > > > > > > > >>> > > >> \"GlobalMapping > > > > > > > > > >>> > > >> > already established!\"", file=0x7fffed43c55b > > > > > > > > > >>> "ExecutionEngine.cpp", > > > > > > > > > >>> > > >> > line=, function= > out>) > > > > at > > > > > > > > > >>> assert.c:94 > > > > > > > > > >>> > > >> > #3 0x00007ffff71291b2 in __GI___assert_fail ( > > > > > > > > > >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || > > Addr > > > == > > > > > 0) > > > > > > && > > > > > > > > > >>> > > >> \"GlobalMapping > > > > > > > > > >>> > > >> > already established!\"", file=0x7fffed43c55b > > > > > > > > > >>> "ExecutionEngine.cpp", > > > > > > > > > >>> > > >> > line=165, > > > > > > > > > >>> > > >> > function=0x7fffed43d7a0 "void > > > > > > > > > >>> > > >> > llvm::ExecutionEngine::addGlobalMapping(const > > > > > > > > > >>> llvm::GlobalValue*, > > > > > > > > > >>> > > >> void*)") > > > > > > > > > >>> > > >> > at assert.c:103 > > > > > > > > > >>> > > >> > #4 0x00007fffeca84aae in > > > > > > > > > >>> > > >> > > > > > > > llvm::ExecutionEngine::addGlobalMapping(llvm::GlobalValue > > > > > > > > > >>> const*, > > > > > > > > > >>> > > >> void*) () > > > > > > > > > >>> > > >> > from /usr/lib/libLLVM-3.2svn.so > > > > > > > > > >>> > > >> > #5 0x00007fffedc85ec7 in > register_global_symbol > > > > > > > > > >>> (address=0x40ebf6, > > > > > > > > > >>> > > >> > value=0x8b2500, name=...) at > > > jit_codegen.cpp:242 > > > > > > > > > >>> > > >> > #6 register_global_symbol (name=..., > > > > value=0x8b2500, > > > > > > > > > >>> > > address=0x40ebf6) > > > > > > > > > >>> > > >> > at jit_codegen.cpp:240 > > > > > > > > > >>> > > >> > #7 0x00007fffedc8600e in > > > get_global_function_real ( > > > > > > > > > >>> > > >> > name=0x7fffedcb9e57 "CLASS_free", > > > func=0x40ebf6, > > > > > > > > > >>> ret= > > > > > > > > >>> > > out>, > > > > > > > > > >>> > > >> > args=, vararg= out>) > > > at > > > > > > > > > >>> > > jit_codegen.cpp:276 > > > > > > > > > >>> > > >> > #8 0x00007fffedc8a9dc in operator() > > > > (this= > > > > > > > > pointer>) > > > > > > > > > >>> > > >> > at jit_codegen.cpp:991 > > > > > > > > > >>> > > >> > ---Type to continue, or q to > > > > quit--- > > > > > > > > > >>> > > >> > #9 > > > > > > > > > > gen_if > > > > > > > > > > >>> > > >> (func=..., > > > > > > > > > >>> > > >> > cond=0x8999d0, if_name=, > > > > > > > > > cont_name= > > > > > > > > >>> > out>) > > > > > > > > > >>> > > >> > at jit_codegen.cpp:562 > > > > > > > > > >>> > > >> > #10 unref_object_no_nullcheck (ptr=0x898ca8) > at > > > > > > > > > >>> jit_codegen.cpp:993 > > > > > > > > > >>> > > >> > #11 0x00007fffedc9a44c in codegen_get_value > > > > > > > (this=0x8abba0) > > > > > > > > > >>> > > >> > at jit_codegen.cpp:1566 > > > > > > > > > >>> > > >> > #12 > > > > > PushPureObjectVariableExpression::codegen_get_value > > > > > > > > > >>> > > (this=0x8abba0) > > > > > > > > > >>> > > >> > at jit_codegen.cpp:1545 > > > > > > > > > >>> > > >> > #13 0x00007fffedca3f0d in > > > > > > > SubrExpression::codegen_get_value > > > > > > > > > >>> > > >> (this=0x86a450) > > > > > > > > > >>> > > >> > at jit_codegen.cpp:5898 > > > > > > > > > >>> > > >> > #14 0x00007fffedc8c21d in > > DropExpression::codegen > > > > > > > > > >>> (this=0x86a4a0) > > > > > > > > > >>> > > >> > at jit_codegen.cpp:1257 > > > > > > > > > >>> > > >> > #15 0x00007fffedca6fa7 in codegen_statements > () > > at > > > > > > > > > >>> > jit_codegen.cpp:855 > > > > > > > > > >>> > > >> > #16 JIT_codegen () at jit_codegen.cpp:6490 > > > > > > > > > >>> > > >> > #17 0x00007fffedcadc64 in > > JIT_compile_and_execute > > > () > > > > > at > > > > > > > > > >>> > > >> jit_compile.cpp:119 > > > > > > > > > >>> > > >> > #18 0x000000000040a2fb in > EXEC_jit_function_loop > > > () > > > > at > > > > > > > > > >>> > gbx_exec.c:871 > > > > > > > > > >>> > > >> > #19 0x000000000040ab22 in EXEC_function_real > () > > at > > > > > > > > > >>> gbx_exec.c:862 > > > > > > > > > >>> > > >> > #20 0x000000000041e86d in raise_event > > > > > > (observer= > > > > > > > > out>, > > > > > > > > > >>> > > >> > object=, func_id= > > out>, > > > > > > > > > >>> > nparam= > > > > > > > > >>> > > >> out>) > > > > > > > > > >>> > > >> > at gbx_api.c:711 > > > > > > > > > >>> > > >> > #21 0x000000000041efa6 in GB_Raise > > > (object=0x8b95c8, > > > > > > > > > >>> event_id=16, > > > > > > > > > >>> > > >> nparam=0) > > > > > > > > > >>> > > >> > at gbx_api.c:842 > > > > > > > > > >>> > > >> > #22 0x00007ffff5fce3d3 in > gb_raise_button_Click > > > > > > > > > >>> (sender= > > > > > > > > >>> > > out>) > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > Jussi > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > On 18 June 2012 22:08, Emil Lenngren < > > > > > > > > emil.lenngren at ...626... > > > > > > > > > > > > > > > > > > > >>> > 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.lahtinen at ...626...> > > > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > OK, I found it. See attachment. > > > > > > > > > >>> > > >> > > > > > > > > > > > > >>> > > >> > > > Jussi > > > > > > > > > >>> > > >> > > > > > > > > > > > > >>> > > >> > > > > > > > > > > > > >>> > > >> > > > > > > > > > > > > >>> > > >> > > > > > > > > > > > > >>> > > >> > > > On 17 June 2012 23:36, Jussi Lahtinen < > > > > > > > > > >>> jussi.lahtinen at ...626... > > > > > > > > > >>> > > > > > > > > > > > >>> > > >> > 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::addGlobalMapping(const > > > > > > > > > >>> > > llvm::GlobalValue*, > > > > > > > > > >>> > > >> > > void*): > > > > > > > > > >>> > > >> > > > > Assertion `(CurVal == 0 || Addr == 0) && > > > > > > > > "GlobalMapping > > > > > > > > > >>> > 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.lenngren at ...626... > > > > > > > > > >>> > > > > > > > > > > > >>> > > >> > wrote: > > > > > > > > > >>> > > >> > > > > > > > > > > > > > >>> > > >> > > > >> It should be fixed in revision #4843! > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> /Emil > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> 2012/6/17 Jussi Lahtinen < > > > > > > jussi.lahtinen at ...626... > > > > > > > > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > Yes, it really works now. And I found > > a > > > > lot > > > > > of > > > > > > > > > errors > > > > > > > > > >>> by > > > > > > > > > >>> > me. > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > But for some reason JIT raises > compare > > > > method > > > > > > > when > > > > > > > > it > > > > > > > > > >>> > > >> shouldn't, > > > > > > > > > >>> > > >> > > > >> > and when I tried to isolate the > > problem I > > > > got > > > > > > > crash > > > > > > > > > >>> (signal > > > > > > > > > >>> > > >> 11). > > > > > > > > > >>> > > >> > > > >> > This seems not to be related to > compare > > > > > method, > > > > > > > so > > > > > > > > > just > > > > > > > > > >>> > > ignore > > > > > > > > > >>> > > >> > name > > > > > > > > > >>> > > >> > > of > > > > > > > > > >>> > > >> > > > >> the > > > > > > > > > >>> > > >> > > > >> > attached project. > > > > > > > > > >>> > > >> > > > >> > I will look it more closely when this > > is > > > > > fixed. > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > Jussi > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > On 17 June 2012 19:01, Emil Lenngren > < > > > > > > > > > >>> > > emil.lenngren at ...626...> > > > > > > > > > >>> > > >> > > wrote: > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > Yes, it works now :) > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > >>> > > >> > > > >> > > 2012/6/17 Beno?t Minisini < > > > > > > > > > >>> gambas at ...1...> > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > >>> > > >> > > > >> > > > Le 17/06/2012 02:54, Jussi > > Lahtinen a > > > > > > ?crit : > > > > > > > > > >>> > > >> > > > >> > > > > Yeah, terminal gives other > > > > position... > > > > > > > > > >>> > > >> > > > >> > > > > With my actual project, I got > > error > > > > > > > message; > > > > > > > > > >>> wanted > > > > > > > > > >>> > > >> string, > > > > > > > > > >>> > > >> > > got > > > > > > > > > >>> > > >> > > > >> > > > > blaablaaClass instead. > > > > > > > > > >>> > > >> > > > >> > > > > And that error message comes > from > > > > > > function > > > > > > > > > (from > > > > > > > > > >>> > other > > > > > > > > > >>> > > >> > module > > > > > > > > > >>> > > >> > > > >> without > > > > > > > > > >>> > > >> > > > >> > > > Fast) > > > > > > > > > >>> > > >> > > > >> > > > > which takes two objects are > > > > parameters. > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > > > >>> > > >> > > > >> > > > > So either terminal isn't > showing > > > the > > > > > real > > > > > > > > > stack, > > > > > > > > > >>> or > > > > > > > > > >>> > > >> there is > > > > > > > > > >>> > > >> > > > >> > something > > > > > > > > > >>> > > >> > > > >> > > > else > > > > > > > > > >>> > > >> > > > >> > > > > wrong... > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > > > >>> > > >> > > > >> > > > > But my time is up, I'll see it > > > > tomorrow > > > > > > > (with > > > > > > > > > >>> latest > > > > > > > > > >>> > > >> > > revision). > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > > > >>> > > >> > > > >> > > > > Jussi > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > > >>> > > >> > > > >> > > > The incorrect line number > problem, > > as > > > > > > > reported > > > > > > > > by > > > > > > > > > >>> the > > > > > > > > > >>> > > >> debugger > > > > > > > > > >>> > > >> > > > (and > > > > > > > > > >>> > > >> > > > >> not > > > > > > > > > >>> > > >> > > > >> > > > when you run the program > > normally!), > > > > > should > > > > > > > be > > > > > > > > > >>> fixed in > > > > > > > > > >>> > > >> > revision > > > > > > > > > >>> > > >> > > > >> #4841. > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > > >>> > > >> > > > >> > > > Regards, > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > > >>> > > >> > > > >> > > > -- > > > > > > > > > >>> > > >> > > > >> > > > Beno?t Minisini > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > > > > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > > >>> > > >> > > > >> > > > Live Security Virtual Conference > > > > > > > > > >>> > > >> > > > >> > > > Exclusive live event will cover > all > > > the > > > > > > ways > > > > > > > > > >>> today's > > > > > > > > > >>> > > >> security > > > > > > > > > >>> > > >> > > and > > > > > > > > > >>> > > >> > > > >> > > > threat landscape has changed and > > how > > > IT > > > > > > > > managers > > > > > > > > > >>> can > > > > > > > > > >>> > > >> respond. > > > > > > > > > >>> > > >> > > > >> > Discussions > > > > > > > > > >>> > > >> > > > >> > > > will include endpoint security, > > > mobile > > > > > > > security > > > > > > > > > >>> and the > > > > > > > > > >>> > > >> latest > > > > > > > > > >>> > > >> > > in > > > > > > > > > >>> > > >> > > > >> > malware > > > > > > > > > >>> > > >> > > > >> > > > threats. > > > > > > > > > >>> > > >> > > > > > > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > _______________________________________________ > > > > > > > > > >>> > > >> > > > >> > > > Gambas-user mailing list > > > > > > > > > >>> > > >> > > > >> > > > > Gambas-user at lists.sourceforge.net > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > > >>> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > > > > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > > >>> > > >> > > > >> > > Live Security Virtual Conference > > > > > > > > > >>> > > >> > > > >> > > Exclusive live event will cover all > > the > > > > > ways > > > > > > > > > today's > > > > > > > > > >>> > > security > > > > > > > > > >>> > > >> > and > > > > > > > > > >>> > > >> > > > >> > > threat landscape has changed and > how > > IT > > > > > > > managers > > > > > > > > > can > > > > > > > > > >>> > > respond. > > > > > > > > > >>> > > >> > > > >> Discussions > > > > > > > > > >>> > > >> > > > >> > > will include endpoint security, > > mobile > > > > > > security > > > > > > > > and > > > > > > > > > >>> the > > > > > > > > > >>> > > >> latest > > > > > > > > > >>> > > >> > in > > > > > > > > > >>> > > >> > > > >> malware > > > > > > > > > >>> > > >> > > > >> > > threats. > > > > > > > > > >>> > > >> > > > > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > > >>> > > >> > > > >> > > > > > > > > _______________________________________________ > > > > > > > > > >>> > > >> > > > >> > > Gambas-user mailing list > > > > > > > > > >>> > > >> > > > >> > > Gambas-user at lists.sourceforge.net > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > > > > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > > >>> > > >> > > > >> > Live Security Virtual Conference > > > > > > > > > >>> > > >> > > > >> > Exclusive live event will cover all > the > > > > ways > > > > > > > > today's > > > > > > > > > >>> > security > > > > > > > > > >>> > > >> and > > > > > > > > > >>> > > >> > > > >> > threat landscape has changed and how > IT > > > > > > managers > > > > > > > > can > > > > > > > > > >>> > respond. > > > > > > > > > >>> > > >> > > > >> Discussions > > > > > > > > > >>> > > >> > > > >> > will include endpoint security, > mobile > > > > > security > > > > > > > and > > > > > > > > > the > > > > > > > > > >>> > > latest > > > > > > > > > >>> > > >> in > > > > > > > > > >>> > > >> > > > >> malware > > > > > > > > > >>> > > >> > > > >> > threats. > > > > > > > > > >>> > > >> > > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > > >>> > > >> > > > >> > > > > > > _______________________________________________ > > > > > > > > > >>> > > >> > > > >> > Gambas-user mailing list > > > > > > > > > >>> > > >> > > > >> > Gambas-user at lists.sourceforge.net > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > > > > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > > >>> > > >> > > > >> Live Security Virtual Conference > > > > > > > > > >>> > > >> > > > >> Exclusive live event will cover all the > > > ways > > > > > > > today's > > > > > > > > > >>> security > > > > > > > > > >>> > > and > > > > > > > > > >>> > > >> > > > >> threat landscape has changed and how IT > > > > > managers > > > > > > > can > > > > > > > > > >>> respond. > > > > > > > > > >>> > > >> > > > Discussions > > > > > > > > > >>> > > >> > > > >> will include endpoint security, mobile > > > > security > > > > > > and > > > > > > > > the > > > > > > > > > >>> > latest > > > > > > > > > >>> > > in > > > > > > > > > >>> > > >> > > > malware > > > > > > > > > >>> > > >> > > > >> threats. > > > > > > > > > >>> > > >> > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > > >>> > > >> > > > >> > > > > _______________________________________________ > > > > > > > > > >>> > > >> > > > >> Gambas-user mailing list > > > > > > > > > >>> > > >> > > > >> Gambas-user at lists.sourceforge.net > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > >>> > > >> > > > >> > > > > > > > > > >>> > > >> > > > > > > > > > > > > > >>> > > >> > > > > > > > > > > > > > >>> > > >> > > > > > > > > > > > > >>> > > >> > > > > > > > > > > > > >>> > > >> > > > > > > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > > >>> > > >> > > > Live Security Virtual Conference > > > > > > > > > >>> > > >> > > > Exclusive live event will cover all the > ways > > > > > today's > > > > > > > > > >>> security > > > > > > > > > >>> > and > > > > > > > > > >>> > > >> > > > threat landscape has changed and how IT > > > managers > > > > > can > > > > > > > > > >>> respond. > > > > > > > > > >>> > > >> > Discussions > > > > > > > > > >>> > > >> > > > will include endpoint security, mobile > > > security > > > > > and > > > > > > > the > > > > > > > > > >>> latest > > > > > > > > > >>> > in > > > > > > > > > >>> > > >> > malware > > > > > > > > > >>> > > >> > > > threats. > > > > > > > > > >>> > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > > >>> > > >> > > > > > > _______________________________________________ > > > > > > > > > >>> > > >> > > > Gambas-user mailing list > > > > > > > > > >>> > > >> > > > Gambas-user at lists.sourceforge.net > > > > > > > > > >>> > > >> > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > >>> > > >> > > > > > > > > > > > > >>> > > >> > > > > > > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > > >>> > > >> > > Live Security Virtual Conference > > > > > > > > > >>> > > >> > > Exclusive live event will cover all the ways > > > > today's > > > > > > > > > security > > > > > > > > > >>> and > > > > > > > > > >>> > > >> > > threat landscape has changed and how IT > > managers > > > > can > > > > > > > > > respond. > > > > > > > > > >>> > > >> Discussions > > > > > > > > > >>> > > >> > > will include endpoint security, mobile > > security > > > > and > > > > > > the > > > > > > > > > >>> latest in > > > > > > > > > >>> > > >> malware > > > > > > > > > >>> > > >> > > threats. > > > > > > > > > >>> > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > > >>> > > >> > > > > _______________________________________________ > > > > > > > > > >>> > > >> > > Gambas-user mailing list > > > > > > > > > >>> > > >> > > Gambas-user at lists.sourceforge.net > > > > > > > > > >>> > > >> > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > >>> > > >> > > > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > > >>> > > >> > Live Security Virtual Conference > > > > > > > > > >>> > > >> > Exclusive live event will cover all the ways > > > today's > > > > > > > > security > > > > > > > > > >>> and > > > > > > > > > >>> > > >> > threat landscape has changed and how IT > managers > > > can > > > > > > > > respond. > > > > > > > > > >>> > > >> Discussions > > > > > > > > > >>> > > >> > will include endpoint security, mobile > security > > > and > > > > > the > > > > > > > > latest > > > > > > > > > >>> in > > > > > > > > > >>> > > >> malware > > > > > > > > > >>> > > >> > threats. > > > > > > > > > >>> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > > >>> > > >> > > _______________________________________________ > > > > > > > > > >>> > > >> > Gambas-user mailing list > > > > > > > > > >>> > > >> > Gambas-user at lists.sourceforge.net > > > > > > > > > >>> > > >> > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > >>> > > >> > > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > > >>> > > >> Live Security Virtual Conference > > > > > > > > > >>> > > >> Exclusive live event will cover all the ways > > today's > > > > > > > security > > > > > > > > > and > > > > > > > > > >>> > > >> threat landscape has changed and how IT managers > > can > > > > > > > respond. > > > > > > > > > >>> > > Discussions > > > > > > > > > >>> > > >> will include endpoint security, mobile security > > and > > > > the > > > > > > > latest > > > > > > > > > in > > > > > > > > > >>> > > malware > > > > > > > > > >>> > > >> threats. > > > > > > > > > >>> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > > >>> > > >> _______________________________________________ > > > > > > > > > >>> > > >> Gambas-user mailing list > > > > > > > > > >>> > > >> Gambas-user at lists.sourceforge.net > > > > > > > > > >>> > > >> > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > >>> > > >> > > > > > > > > > >>> > > > > > > > > > > > > >>> > > > > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > > >>> > > Live Security Virtual Conference > > > > > > > > > >>> > > Exclusive live event will cover all the ways > today's > > > > > security > > > > > > > and > > > > > > > > > >>> > > threat landscape has changed and how IT managers > can > > > > > respond. > > > > > > > > > >>> Discussions > > > > > > > > > >>> > > will include endpoint security, mobile security and > > the > > > > > > latest > > > > > > > in > > > > > > > > > >>> malware > > > > > > > > > >>> > > threats. > > > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > > >>> > > _______________________________________________ > > > > > > > > > >>> > > Gambas-user mailing list > > > > > > > > > >>> > > Gambas-user at lists.sourceforge.net > > > > > > > > > >>> > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > > >>> > Live Security Virtual Conference > > > > > > > > > >>> > Exclusive live event will cover all the ways today's > > > > security > > > > > > and > > > > > > > > > >>> > threat landscape has changed and how IT managers can > > > > respond. > > > > > > > > > >>> Discussions > > > > > > > > > >>> > will include endpoint security, mobile security and > the > > > > > latest > > > > > > in > > > > > > > > > >>> malware > > > > > > > > > >>> > threats. > > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > > >>> > _______________________________________________ > > > > > > > > > >>> > Gambas-user mailing list > > > > > > > > > >>> > Gambas-user at lists.sourceforge.net > > > > > > > > > >>> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > >>> > > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > > >>> Live Security Virtual Conference > > > > > > > > > >>> Exclusive live event will cover all the ways today's > > > security > > > > > and > > > > > > > > > >>> threat landscape has changed and how IT managers can > > > respond. > > > > > > > > > Discussions > > > > > > > > > >>> will include endpoint security, mobile security and the > > > > latest > > > > > in > > > > > > > > > malware > > > > > > > > > >>> threats. > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > > >>> _______________________________________________ > > > > > > > > > >>> Gambas-user mailing list > > > > > > > > > >>> Gambas-user at lists.sourceforge.net > > > > > > > > > >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > >>> > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > > Live Security Virtual Conference > > > > > > > > > Exclusive live event will cover all the ways today's > security > > > and > > > > > > > > > threat landscape has changed and how IT managers can > respond. > > > > > > > Discussions > > > > > > > > > will include endpoint security, mobile security and the > > latest > > > in > > > > > > > malware > > > > > > > > > threats. > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > > _______________________________________________ > > > > > > > > > Gambas-user mailing list > > > > > > > > > Gambas-user at lists.sourceforge.net > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > Live Security Virtual Conference > > > > > > > > Exclusive live event will cover all the ways today's security > > and > > > > > > > > threat landscape has changed and how IT managers can respond. > > > > > > Discussions > > > > > > > > will include endpoint security, mobile security and the > latest > > in > > > > > > malware > > > > > > > > threats. > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > > _______________________________________________ > > > > > > > > Gambas-user mailing list > > > > > > > > Gambas-user at lists.sourceforge.net > > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > Live Security Virtual Conference > > > > > > > Exclusive live event will cover all the ways today's security > and > > > > > > > threat landscape has changed and how IT managers can respond. > > > > > Discussions > > > > > > > will include endpoint security, mobile security and the latest > in > > > > > malware > > > > > > > threats. > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > _______________________________________________ > > > > > > > Gambas-user mailing list > > > > > > > Gambas-user at lists.sourceforge.net > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > Live Security Virtual Conference > > > > > > Exclusive live event will cover all the ways today's security and > > > > > > threat landscape has changed and how IT managers can respond. > > > > Discussions > > > > > > will include endpoint security, mobile security and the latest in > > > > malware > > > > > > threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > _______________________________________________ > > > > > > Gambas-user mailing list > > > > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > Live Security Virtual Conference > > > > > Exclusive live event will cover all the ways today's security and > > > > > threat landscape has changed and how IT managers can respond. > > > Discussions > > > > > will include endpoint security, mobile security and the latest in > > > malware > > > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Live Security Virtual Conference > > > > Exclusive live event will cover all the ways today's security and > > > > threat landscape has changed and how IT managers can respond. > > Discussions > > > > will include endpoint security, mobile security and the latest in > > malware > > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Live Security Virtual Conference > > > Exclusive live event will cover all the ways today's security and > > > threat landscape has changed and how IT managers can respond. > Discussions > > > will include endpoint security, mobile security and the latest in > malware > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Wed Jun 27 18:47:52 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 27 Jun 2012 16:47:52 +0000 Subject: [Gambas-user] Issue 258 in gambas: Expander and slider combo issues In-Reply-To: <3-6813199134517018827-1049706297444050431-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-1049706297444050431-gambas=googlecode.com@...2524...> <0-6813199134517018827-1049706297444050431-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-1049706297444050431-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #4 on issue 258 by benoit.m... at ...626...: Expander and slider combo issues http://code.google.com/p/gambas/issues/detail?id=258 Since revision #4865, SidePanel got a popup menu that allows to toggle its transparency. Moreover, the IDE automatically remembers the transparency settings of each SidePanel controls individually. From gambas at ...2524... Wed Jun 27 19:39:38 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 27 Jun 2012 17:39:38 +0000 Subject: [Gambas-user] Issue 260 in gambas: News on Gambas home page displays differently based on browser In-Reply-To: <1-6813199134517018827-3396626513113961524-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-3396626513113961524-gambas=googlecode.com@...2524...> <0-6813199134517018827-3396626513113961524-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-3396626513113961524-gambas=googlecode.com@...2524...> Comment #2 on issue 260 by emil.len... at ...626...: News on Gambas home page displays differently based on browser http://code.google.com/p/gambas/issues/detail?id=260 Why no scrollbars? On my tiny 1024x800 screen I only see 3 lines of the news. From gambas at ...2524... Wed Jun 27 19:44:49 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 27 Jun 2012 17:44:49 +0000 Subject: [Gambas-user] Issue 260 in gambas: News on Gambas home page displays differently based on browser In-Reply-To: <2-6813199134517018827-3396626513113961524-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-3396626513113961524-gambas=googlecode.com@...2524...> <0-6813199134517018827-3396626513113961524-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-3396626513113961524-gambas=googlecode.com@...2524...> Comment #3 on issue 260 by benoit.m... at ...626...: News on Gambas home page displays differently based on browser http://code.google.com/p/gambas/issues/detail?id=260 Just click on the "click there to see all news" button to see all news. From gambas at ...2524... Wed Jun 27 20:06:31 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 27 Jun 2012 18:06:31 +0000 Subject: [Gambas-user] Issue 259 in gambas: When using the transformation matrix, the "Draw.Picture" method without Width and Height draws dot instead picture. In-Reply-To: <0-6813199134517018827-8951646381511923275-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-8951646381511923275-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-8951646381511923275-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -Version Version-TRUNK Comment #1 on issue 259 by benoit.m... at ...626...: When using the transformation matrix, the "Draw.Picture" method without Width and Height draws dot instead picture. http://code.google.com/p/gambas/issues/detail?id=259 Fixed in revision #4866. From demosthenesk at ...626... Thu Jun 28 21:22:28 2012 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 28 Jun 2012 22:22:28 +0300 Subject: [Gambas-user] run gambas bash scripts Message-ID: <4FECAEF4.8060505@...626...> I think somewhere i saw it in the past .... can anyone know if we can write scripts running from bash like that: i think gbr3 is not the right bin to do this #!/usr/local/bin/gbr3 ' Gambas module file Public Sub Main() Print "Hello World" End From gambas at ...1... Thu Jun 28 21:39:38 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 28 Jun 2012 21:39:38 +0200 Subject: [Gambas-user] run gambas bash scripts In-Reply-To: <4FECAEF4.8060505@...626...> References: <4FECAEF4.8060505@...626...> Message-ID: <4FECB2FA.4060405@...1...> Le 28/06/2012 21:22, Demosthenes Koptsis a ?crit : > I think somewhere i saw it in the past .... > > can anyone know if we can write scripts running from bash like that: > i think gbr3 is not the right bin to do this > > #!/usr/local/bin/gbr3 > > ' Gambas module file > > Public Sub Main() > Print "Hello World" > End > You must type '#!/usr/local/bin/gbs3' instead. gbs3 is a program made in Gambas that allows you to run Gambas scripts. It transforms the script file into a Gambas project, compiles it and run it. It maintains a cache of compiled scripts so that if you run the script another time, it is run directly. Regards, -- Beno?t Minisini From demosthenesk at ...626... Thu Jun 28 21:43:33 2012 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 28 Jun 2012 22:43:33 +0300 Subject: [Gambas-user] run gambas bash scripts In-Reply-To: <4FECB2FA.4060405@...1...> References: <4FECAEF4.8060505@...626...> <4FECB2FA.4060405@...1...> Message-ID: <4FECB3E5.7020800@...626...> i want to write a cgi script like php for apache but with gambas language which is better approach. to write it as cgi with #!/usr/local/bin/gbs3 or with #!/usr/bin/env gbw3 as server page thanks !!! ???? 28/6/2012 22:39, ?/? Beno?t Minisini ??????: > Le 28/06/2012 21:22, Demosthenes Koptsis a ?crit : >> I think somewhere i saw it in the past .... >> >> can anyone know if we can write scripts running from bash like that: >> i think gbr3 is not the right bin to do this >> >> #!/usr/local/bin/gbr3 >> >> ' Gambas module file >> >> Public Sub Main() >> Print "Hello World" >> End >> > You must type '#!/usr/local/bin/gbs3' instead. > > gbs3 is a program made in Gambas that allows you to run Gambas scripts. > It transforms the script file into a Gambas project, compiles it and run > it. It maintains a cache of compiled scripts so that if you run the > script another time, it is run directly. > > Regards, > From demosthenesk at ...626... Thu Jun 28 22:23:47 2012 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 28 Jun 2012 23:23:47 +0300 Subject: [Gambas-user] run gambas bash scripts In-Reply-To: <4FECB2FA.4060405@...1...> References: <4FECAEF4.8060505@...626...> <4FECB2FA.4060405@...1...> Message-ID: <4FECBD53.2070703@...626...> ok i found it at Server Pages Thanks !! ???? 28/6/2012 22:39, ?/? Beno?t Minisini ??????: > Le 28/06/2012 21:22, Demosthenes Koptsis a ?crit : >> I think somewhere i saw it in the past .... >> >> can anyone know if we can write scripts running from bash like that: >> i think gbr3 is not the right bin to do this >> >> #!/usr/local/bin/gbr3 >> >> ' Gambas module file >> >> Public Sub Main() >> Print "Hello World" >> End >> > You must type '#!/usr/local/bin/gbs3' instead. > > gbs3 is a program made in Gambas that allows you to run Gambas scripts. > It transforms the script file into a Gambas project, compiles it and run > it. It maintains a cache of compiled scripts so that if you run the > script another time, it is run directly. > > Regards, > From gambas at ...1... Thu Jun 28 22:36:15 2012 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Thu, 28 Jun 2012 22:36:15 +0200 Subject: [Gambas-user] run gambas bash scripts In-Reply-To: <4FECB3E5.7020800@...626...> References: <4FECAEF4.8060505@...626...> <4FECB2FA.4060405@...1...> <4FECB3E5.7020800@...626...> Message-ID: <4FECC03F.1060707@...1...> Le 28/06/2012 21:43, Demosthenes Koptsis a ?crit : > i want to write a cgi script like php for apache but with gambas language > > which is better approach. > > to write it as cgi with > > #!/usr/local/bin/gbs3 > > or with > #!/usr/bin/env gbw3 > as server page > > thanks !!! > None of them. The faster and better is putting everything in a gambas executable and use it as a cgi script. -- Beno?t Minisini From demosthenesk at ...626... Thu Jun 28 22:41:05 2012 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 28 Jun 2012 23:41:05 +0300 Subject: [Gambas-user] run gambas bash scripts In-Reply-To: <4FECC03F.1060707@...1...> References: <4FECAEF4.8060505@...626...> <4FECB2FA.4060405@...1...> <4FECB3E5.7020800@...626...> <4FECC03F.1060707@...1...> Message-ID: <4FECC161.8050202@...626...> ok, now something else. i test a server page created with gambas on apache. i configured apache to run gambas server page as cgi and it run it very good. so far there is no mod_gambas3 for apache as i know and i had to run the server page as cgi. is there any other way to config apache to run gambas server pages except cgi config? ???? 28/6/2012 23:36, ?/? Beno?t Minisini ??????: > Le 28/06/2012 21:43, Demosthenes Koptsis a ?crit : >> i want to write a cgi script like php for apache but with gambas language >> >> which is better approach. >> >> to write it as cgi with >> >> #!/usr/local/bin/gbs3 >> >> or with >> #!/usr/bin/env gbw3 >> as server page >> >> thanks !!! >> > None of them. The faster and better is putting everything in a gambas > executable and use it as a cgi script. > From gambas at ...1... Thu Jun 28 23:28:58 2012 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Thu, 28 Jun 2012 23:28:58 +0200 Subject: [Gambas-user] run gambas bash scripts In-Reply-To: <4FECC161.8050202@...626...> References: <4FECAEF4.8060505@...626...> <4FECB2FA.4060405@...1...> <4FECB3E5.7020800@...626...> <4FECC03F.1060707@...1...> <4FECC161.8050202@...626...> Message-ID: <4FECCC9A.50109@...1...> Le 28/06/2012 22:41, Demosthenes Koptsis a ?crit : > ok, > > now something else. > > i test a server page created with gambas on apache. > > i configured apache to run gambas server page as cgi and it run it very > good. > so far there is no mod_gambas3 for apache as i know and i had to run the > server page as cgi. > > is there any other way to config apache to run gambas server pages > except cgi config? > No. But I guess your gambas cgi script will be fast enough. :-) -- Beno?t Minisini From gambas at ...1... Fri Jun 29 01:10:27 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 29 Jun 2012 01:10:27 +0200 Subject: [Gambas-user] Two small(ish) errors in Format$ In-Reply-To: <1340772870.4696.11.camel@...40...> References: <1340772870.4696.11.camel@...40...> Message-ID: <4FECE463.4080702@...1...> Le 27/06/2012 06:54, Bruce a ?crit : > a) AM/PM indicator is in the wrong position > Print Format(Now(), "h:nAM/PM") --> 2:PM18 > Print Format(Now(), "h:n:sAM/PM") --> 2:18:PM0 > Fixed in revision #4870. > b) Currency abbrev ($$) > In the help, it says: > > PRINT Format$(-1972.06, "($$,#.###)") > (USD 1,972.06) > > Note the space after USD. However, when I run it I get > > (AUD1,972.06) > > No space! > This is not a bug actually, as some localization ask for a space after the currency, and some not. But I admit it is weird... Maybe I should ignore that and always put a space when using '$$'? -- Beno?t Minisini From richard.j.walker at ...247... Fri Jun 29 02:50:26 2012 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Fri, 29 Jun 2012 01:50:26 +0100 Subject: [Gambas-user] Widget colours: how to change them for all widget states? Message-ID: This isn't something I have ever worried about before, but just recently I have been playing with form and control colours and I have hit a problem. I can change the colour of a form or a button or other displayed item. I can change the foreground text colour too so I get decent contrast if I am using a darker background colour. What I cannot do is change the various state-dependent colours of a control which can result in the button label text (for instance) disappearing due to lack of contrast when a button is hovered over with the mouse. I tried to solve this issue by writing "enter" and "leave" event handlers. Their only purpose is to change the control foreground colour to an appropriate contrasting colour when the mouse enters and restore the original colour when it leaves. Of course you have to be moderate in your use of mouse speed on leaving the control or you could get the mouse off the form completely without actually triggering the "leave" event. That looks messy. Another approach I have tried is to leave the control caption blank and put the appropriate label in its tooltip instead. That always has good contrast, but it isn't a perfect solution either. A third solution I have tried is to replace the caption text with a picture; either a picture of text or an icon. This only works well if you also provide a colour background for the text/icon which supplies the right contrast. The background really ought to be the full size of the button, or the label background, to prevent ugly bright flashes as the pale highlighting colour will show through anywhere you leave uncovered, but in general this can be quite a successful workaround you can use on a darker coloured form. None of these strategies will be useful if there are controls on the form which may be "disabled" by your program. Just as there is no "entered colour" property, neither is there a "disabled colour" property that I could find. Although I have not yet tested the theory, I imagine I could dodge the problem if instead of disabling a component, I just bring a duplicate component to the top in the same location and "hide" the disabled version. The duplicate might have to be a picture of a control to prevent its colour from changing and making it look active. If anyone knows a better way, or if there is some trick I have overlooked I would be glad to hear of it. Richard From demosthenesk at ...626... Fri Jun 29 07:43:31 2012 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Fri, 29 Jun 2012 08:43:31 +0300 Subject: [Gambas-user] run gambas bash scripts In-Reply-To: <4FECCC9A.50109@...1...> References: <4FECAEF4.8060505@...626...> <4FECB2FA.4060405@...1...> <4FECB3E5.7020800@...626...> <4FECC03F.1060707@...1...> <4FECC161.8050202@...626...> <4FECCC9A.50109@...1...> Message-ID: <4FED4083.7070400@...626...> Thanks Benoit! On 06/29/2012 12:28 AM, Beno?t Minisini wrote: > Le 28/06/2012 22:41, Demosthenes Koptsis a ?crit : >> ok, >> >> now something else. >> >> i test a server page created with gambas on apache. >> >> i configured apache to run gambas server page as cgi and it run it very >> good. >> so far there is no mod_gambas3 for apache as i know and i had to run the >> server page as cgi. >> >> is there any other way to config apache to run gambas server pages >> except cgi config? >> > No. But I guess your gambas cgi script will be fast enough. :-) From gambas at ...1... Fri Jun 29 16:31:15 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 29 Jun 2012 16:31:15 +0200 Subject: [Gambas-user] Gridview keypress question In-Reply-To: <4FD3546C.7030506@...1...> References: <4FCF3F09.90006@...1823...> <4FD3546C.7030506@...1...> Message-ID: <4FEDBC33.4030805@...1...> Le 09/06/2012 15:49, Beno?t Minisini a ?crit : > Le 06/06/2012 13:29, Richard Terry a ?crit : >> Hi List, >> >> I've got a grid with several columns. >> >> If I use the arrow keys, then the grid focus moves up/down or to the >> next/previous column. >> >> I want to over-ride this keypress behaviour, but can't manage it. >> >> If iI even try and detect a keypress n this event, nothing happens >> >> public Sub Gridview1_Keypress() >> >> print key.code >> >> end >> >> I''ve looked at the properties and can't seem to find one which will >> allow me to over-ride this behaviour. >> Probably something dumb I'm not seeing. >> >> Any help appreciated. >> > > Yep. The problem comes from the Gambas GUi events internal design. > > The GridView control is a compound control written in Gambas. > Consequently, it will see the keyboard events *before* the GridView user. > > For native controls, this is the contrary: you get its keyboard events > before it handles them. > > I don't know if I will be able to have the same behaviour in the two > cases. But I will try. :-) > > If you can't wait, there is a workaround: using an Observer on the > GridView internal ScrollArea to catch the keyboard events before the > GridView sees them. That way: > > MyObserver = New Observer(MyGridView.Children[0]) As "MyGridViewObserver" > > ... > > Public Sub MyGridViewObserver_KeyPress > ... > End > > Tell me if that workaround actually works. > > Regards, > This has been fixed in revision #4854. -- Beno?t Minisini From gambas at ...2524... Fri Jun 29 18:30:19 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 29 Jun 2012 16:30:19 +0000 Subject: [Gambas-user] Issue 254 in gambas: makepkg missing in Ubuntu Pangolin In-Reply-To: <2-6813199134517018827-4236602601708081423-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-4236602601708081423-gambas=googlecode.com@...2524...> <0-6813199134517018827-4236602601708081423-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-4236602601708081423-gambas=googlecode.com@...2524...> Updates: Status: WontFix Labels: -Version Version-TRUNK Comment #3 on issue 254 by benoit.m... at ...626...: makepkg missing in Ubuntu Pangolin http://code.google.com/p/gambas/issues/detail?id=254 (No comment was entered for this change.) From gambas at ...2524... Fri Jun 29 19:48:39 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 29 Jun 2012 17:48:39 +0000 Subject: [Gambas-user] Issue 254 in gambas: makepkg missing in Ubuntu Pangolin In-Reply-To: <3-6813199134517018827-4236602601708081423-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-4236602601708081423-gambas=googlecode.com@...2524...> <0-6813199134517018827-4236602601708081423-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-4236602601708081423-gambas=googlecode.com@...2524...> Comment #4 on issue 254 by aehrha... at ...626...: makepkg missing in Ubuntu Pangolin http://code.google.com/p/gambas/issues/detail?id=254 How about a Debian package? I'm not using ArchLinux and makepkg isn't available for Ubuntu From gambas at ...2524... Fri Jun 29 19:59:56 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 29 Jun 2012 17:59:56 +0000 Subject: [Gambas-user] Issue 254 in gambas: makepkg missing in Ubuntu Pangolin In-Reply-To: <4-6813199134517018827-4236602601708081423-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-4236602601708081423-gambas=googlecode.com@...2524...> <0-6813199134517018827-4236602601708081423-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-4236602601708081423-gambas=googlecode.com@...2524...> Comment #5 on issue 254 by sebi... at ...626...: makepkg missing in Ubuntu Pangolin http://code.google.com/p/gambas/issues/detail?id=254 makepkg is strictly for building archlinux packages. It comes with pacman [0], you are free to install it (not that it will work out of the box), but using two different package managers on a system will lead to trouble if they are not used properly(i.e. use dpkg to manage packages and pacman ONLY to build archlinux packages using gambas). If you need further help you can check the Archlinux forum [1] for any topic covering your problem. [0] http://www.archlinux.org/pacman [1] https://bbs.archlinux.org From gambas at ...2524... Fri Jun 29 20:03:58 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 29 Jun 2012 18:03:58 +0000 Subject: [Gambas-user] Issue 254 in gambas: makepkg missing in Ubuntu Pangolin In-Reply-To: <5-6813199134517018827-4236602601708081423-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-4236602601708081423-gambas=googlecode.com@...2524...> <0-6813199134517018827-4236602601708081423-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-4236602601708081423-gambas=googlecode.com@...2524...> Comment #6 on issue 254 by aehrha... at ...626...: makepkg missing in Ubuntu Pangolin http://code.google.com/p/gambas/issues/detail?id=254 So what do I use to make Ubuntu or Redhat packages with gambas then? From gambas at ...2524... Fri Jun 29 20:11:31 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 29 Jun 2012 18:11:31 +0000 Subject: [Gambas-user] Issue 254 in gambas: makepkg missing in Ubuntu Pangolin In-Reply-To: <6-6813199134517018827-4236602601708081423-gambas=googlecode.com@...2524...> References: <6-6813199134517018827-4236602601708081423-gambas=googlecode.com@...2524...> <0-6813199134517018827-4236602601708081423-gambas=googlecode.com@...2524...> Message-ID: <7-6813199134517018827-4236602601708081423-gambas=googlecode.com@...2524...> Comment #7 on issue 254 by sebi... at ...626...: makepkg missing in Ubuntu Pangolin http://code.google.com/p/gambas/issues/detail?id=254 If you open the packager form, you will see the package needed to build your project for each distribution. Under Ubuntu, you need to have debhelper (sudo apt-get install debhelper). If you have any other questions, please switch to the mailing list or the #gambas irc channel. From jussi.lahtinen at ...626... Fri Jun 29 22:59:11 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 29 Jun 2012 23:59:11 +0300 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: Next bug... it's crash and I don't have any clue what causes it. I'm trying to isolate it, but meanwhile here is bt from gdb: Program received signal SIGSEGV, Segmentation fault. 0x00007fffe3b0e430 in llvm::BasicBlock::getContext() const () from /usr/lib/libLLVM-3.2svn.so (gdb) bt #0 0x00007fffe3b0e430 in llvm::BasicBlock::getContext() const () from /usr/lib/libLLVM-3.2svn.so #1 0x00007fffe3b8de4d in llvm::BranchInst::BranchInst(llvm::BasicBlock*, llvm::BasicBlock*, llvm::Value*, llvm::Instruction*) () from /usr/lib/libLLVM-3.2svn.so #2 0x00007fffe4e20c87 in Create (InsertBefore=0x0, Cond=0x18cba60, IfFalse=0x30880d0, IfTrue=0x0) at /usr/include/llvm/Instructions.h:2370 #3 llvm::IRBuilder >::CreateCondBr (this=0xef1150, Cond=0x18cba60, True=0x0, False=0x30880d0) at /usr/include/llvm/Support/IRBuilder.h:448 #4 0x00007fffe4e1c81f in insert_pending_branches () at jit_codegen.cpp:866 #5 JIT_codegen () at jit_codegen.cpp:6535 #6 0x00007fffe4e2339c in JIT_compile_and_execute () at jit_compile.cpp:119 #7 0x00007fffdbb88223 in ?? () #8 0x00007fffe4e2d624 in JR_extern_dispatch_object (object=, index=) at jit_runtime.c:965 #9 0x0000000000000000 in ?? () Gambas 3 rev 4871 @ Xubuntu 12.04 64bit Jussi On 27 June 2012 19:17, Jussi Lahtinen wrote: > Yes, it works now! > > Jussi > > > > On 27 June 2012 00:12, Emil Lenngren wrote: > >> It seems like when LLVM reads boolean pointers, it assumes the seven most >> significant bits are always 0, which is not the case in Gambas. Does the >> latest revision work? I have no opportunity to even compile it and see if >> it works at the moment :) >> >> /Emil >> >> 2012/6/26 Jussi Lahtinen >> >> > .../MagicBug$ GB_JIT=info gbx3 >> > >> > gb.jit: using LLVM 3.2. >> > ------------------------------------------------------------------------ >> > gb.jit: beginning compiling MainModule.MainModule: >> > ------------------------------------------------------------------------ >> > >> > ------------------------------------------------------------------------ >> > gb.jit: beginning compiling MainModule.Main: >> > ------------------------------------------------------------------------ >> > >> > ------------------------------------------------------------------------ >> > gb.jit: dumping function MainModule.Main: >> > ------------------------------------------------------------------------ >> > ; ModuleID = 'jit_mod' >> > target datalayout = >> > >> > >> "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" >> > target triple = "x86_64-pc-linux-gnu" >> > >> > %Value = type { i64, i64, i64, i64 } >> > %ValueFunction = type { i64, i8*, i8*, i8, i8, i16 } >> > %String = type { i64, i8*, i32, i32 } >> > %Void = type { i64, i64, i64, i64 } >> > >> > define void @func_0_MainModule_2() { >> > entry: >> > %0 = load i8** inttoptr (i64 6639552 to i8**) >> > %1 = load i8** inttoptr (i64 6639576 to i8**) >> > %2 = icmp eq i8* %1, %0 >> > br i1 %2, label %if.cont, label %if.then >> > >> > if.then: ; preds = %entry >> > tail call void @stack_corrupted_abort() >> > unreachable >> > >> > if.cont: ; preds = %entry >> > store i8 -1, i8* inttoptr (i64 29188424 to i8*) >> > %3 = load i8** inttoptr (i64 6639552 to i8**) >> > %4 = load i8** inttoptr (i64 6639576 to i8**) >> > %5 = icmp eq i8* %4, %3 >> > br i1 %5, label %if.cont2, label %if.then1 >> > >> > if.then1: ; preds = %if.cont >> > tail call void @stack_corrupted_abort() >> > unreachable >> > >> > if.cont2: ; preds = %if.cont >> > %6 = load i1* inttoptr (i64 29188424 to i1*) >> > br i1 %6, label %block5, label %if.cont7 >> > >> > block5: ; preds = %if.cont2 >> > %7 = load %Value** inttoptr (i64 6639552 to %Value**) >> > %8 = bitcast %Value* %7 to %ValueFunction* >> > %9 = getelementptr %ValueFunction* %8, i64 0, i32 0 >> > store i64 13, i64* %9 >> > %10 = getelementptr %ValueFunction* %8, i64 0, i32 1 >> > store i8* inttoptr (i64 27857320 to i8*), i8** %10 >> > %11 = getelementptr %ValueFunction* %8, i64 0, i32 2 >> > store i8* null, i8** %11 >> > %12 = getelementptr %Value* %7, i64 1 >> > %13 = bitcast %Value* %12 to %String* >> > %14 = getelementptr %String* %13, i64 0, i32 0 >> > store i64 10, i64* %14 >> > %15 = getelementptr %String* %13, i64 0, i32 1 >> > store i8* inttoptr (i64 29162265 to i8*), i8** %15 >> > %16 = getelementptr %String* %13, i64 0, i32 2 >> > store i32 0, i32* %16 >> > %17 = getelementptr %String* %13, i64 0, i32 3 >> > store i32 17, i32* %17 >> > %18 = getelementptr %Value* %7, i64 2 >> > store %Value* %18, %Value** inttoptr (i64 6639552 to %Value**) >> > store i64 29162040, i64* inttoptr (i64 6639624 to i64*) >> > store i8 1, i8* inttoptr (i64 6648048 to i8*) >> > store i8* inttoptr (i64 140276446242864 to i8*), i8** inttoptr (i64 >> > 6648040 to i8**) >> > store i8* null, i8** inttoptr (i64 6648024 to i8**) >> > store i8* inttoptr (i64 27857320 to i8*), i8** inttoptr (i64 6648016 to >> > i8**) >> > store i8 1, i8* inttoptr (i64 6648050 to i8*) >> > tail call void @EXEC_native() >> > %19 = load %Value** inttoptr (i64 6639552 to %Value**) >> > %20 = getelementptr %Value* %19, i64 -1 >> > store %Value* %20, %Value** inttoptr (i64 6639552 to %Value**) >> > %.pre = load i8** inttoptr (i64 6639552 to i8**) >> > %.pre11 = load i8** inttoptr (i64 6639576 to i8**) >> > %21 = icmp eq i8* %.pre11, %.pre >> > br i1 %21, label %if.cont7, label %if.then6 >> > >> > if.then6: ; preds = %block5 >> > tail call void @stack_corrupted_abort() >> > unreachable >> > >> > if.cont7: ; preds = %if.cont2, >> > %block5 >> > %22 = load %Value** inttoptr (i64 6639552 to %Value**) >> > %23 = bitcast %Value* %22 to %ValueFunction* >> > %24 = getelementptr %ValueFunction* %23, i64 0, i32 0 >> > store i64 13, i64* %24 >> > %25 = getelementptr %ValueFunction* %23, i64 0, i32 1 >> > store i8* inttoptr (i64 27857320 to i8*), i8** %25 >> > %26 = getelementptr %ValueFunction* %23, i64 0, i32 2 >> > store i8* null, i8** %26 >> > %27 = getelementptr %Value* %22, i64 1 >> > %28 = bitcast %Value* %27 to %String* >> > %29 = getelementptr %String* %28, i64 0, i32 0 >> > store i64 10, i64* %29 >> > %30 = getelementptr %String* %28, i64 0, i32 1 >> > store i8* inttoptr (i64 29162283 to i8*), i8** %30 >> > %31 = getelementptr %String* %28, i64 0, i32 2 >> > store i32 0, i32* %31 >> > %32 = getelementptr %String* %28, i64 0, i32 3 >> > store i32 20, i32* %32 >> > %33 = getelementptr %Value* %22, i64 2 >> > store %Value* %33, %Value** inttoptr (i64 6639552 to %Value**) >> > store i64 29162050, i64* inttoptr (i64 6639624 to i64*) >> > store i8 1, i8* inttoptr (i64 6648048 to i8*) >> > store i8* inttoptr (i64 140276446242864 to i8*), i8** inttoptr (i64 >> > 6648040 to i8**) >> > store i8* null, i8** inttoptr (i64 6648024 to i8**) >> > store i8* inttoptr (i64 27857320 to i8*), i8** inttoptr (i64 6648016 to >> > i8**) >> > store i8 1, i8* inttoptr (i64 6648050 to i8*) >> > tail call void @EXEC_native() >> > %34 = load %Value** inttoptr (i64 6639552 to %Value**) >> > %35 = getelementptr %Value* %34, i64 -1 >> > store %Value* %35, %Value** inttoptr (i64 6639552 to %Value**) >> > %36 = load i8** inttoptr (i64 6639552 to i8**) >> > %37 = load i8** inttoptr (i64 6639576 to i8**) >> > %38 = icmp eq i8* %37, %36 >> > br i1 %38, label %if.cont9, label %if.then8 >> > >> > if.then8: ; preds = %if.cont7 >> > tail call void @stack_corrupted_abort() >> > unreachable >> > >> > if.cont9: ; preds = %if.cont7 >> > store i64 0, i64* getelementptr (%Void* inttoptr (i64 6647920 to >> %Void*), >> > i64 0, i32 0) >> > tail call void @EXEC_leave_keep() >> > ret void >> > } >> > >> > declare void @stack_corrupted_abort() >> > >> > declare void @EXEC_native() >> > >> > declare void @EXEC_leave_keep() >> > ------------------------------------------------------------------------ >> > >> > >> > Jussi >> > >> > >> > >> > On 26 June 2012 21:05, Emil Lenngren 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 >> > > >> > > > OK, here is more. This is really really weird. >> > > > >> > > > I expect message "Everything works!", but I get *only* "Something >> > > broke!!". >> > > > But if I add 'Return', under Message("Everything works!"), or I >> remove >> > > > 'Fast' then everything works as expected. >> > > > >> > > > See attachment. >> > > > >> > > > Gambas 3 rev 4860 @ Xubuntu 12.04 64bit >> > > > >> > > > Jussi >> > > > >> > > > >> > > > >> > > > >> > > > On 20 June 2012 20:14, Emil Lenngren >> wrote: >> > > > >> > > > > That bug was actually an interpreter bug, but it is now corrected >> in >> > > the >> > > > > latest revision :) >> > > > > >> > > > > /Emil >> > > > > >> > > > > 2012/6/20 Jussi Lahtinen >> > > > > >> > > > > > Yeah, I'm also leaving to countryside for Midsummer parties... >> but >> > I >> > > > made >> > > > > > quick test, >> > > > > > and I found another bug (see attachment). >> > > > > > >> > > > > > Similar problem with argument counting. >> > > > > > >> > > > > > Jussi >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > On 20 June 2012 19:14, Emil Lenngren >> > > wrote: >> > > > > > >> > > > > > > Tomorrow I will travel away for a week so I cannot do anything >> > > then, >> > > > > but >> > > > > > > just keep sending emails and I will reply when I come home :) >> > > > > > > >> > > > > > > /Emil >> > > > > > > >> > > > > > > 2012/6/20 Jussi Lahtinen >> > > > > > > >> > > > > > > > So far everything seems to work! >> > > > > > > > I'll continue further testing later. >> > > > > > > > >> > > > > > > > Jussi >> > > > > > > > >> > > > > > > > >> > > > > > > > >> > > > > > > > On 20 June 2012 01:10, Emil Lenngren < >> emil.lenngren at ...626...> >> > > > > wrote: >> > > > > > > > >> > > > > > > > > Is revision #4851 useful for you? >> > > > > > > > > You can now convert functions in the current running >> class to >> > > > > > pointers. >> > > > > > > > > >> > > > > > > > > /Emil >> > > > > > > > > >> > > > > > > > > 2012/6/19 Emil Lenngren >> > > > > > > > > >> > > > > > > > > > It should work in the latest revision :) >> > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > > 2012/6/19 Emil Lenngren >> > > > > > > > > > >> > > > > > > > > >> If you want a quick workaround, you can have non-fast >> > method >> > > > > that >> > > > > > > > > creates >> > > > > > > > > >> a callback, and immediately returns it, like: >> > > > > > > > > >> >> > > > > > > > > >> Private Function GenerateCallback() As Pointer >> > > > > > > > > >> 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 >> > > > > > > > > >> >> > > > > > > > > >>> No problem, I'm glad to help making Gambas more >> robust, >> > > when >> > > > > > ever I >> > > > > > > > > have >> > > > > > > > > >>> time to do so! >> > > > > > > > > >>> And testing things seems to be easy contribution for >> > me... >> > > > > > > > > >>> >> > > > > > > > > >>> My project has about 120 000 lines of code. And I try >> JIT >> > > > with >> > > > > > > every >> > > > > > > > > >>> module >> > > > > > > > > >>> and class of it. >> > > > > > > > > >>> So I think I will find more bugs... But in some point >> I >> > > must >> > > > > wait >> > > > > > > > > support >> > > > > > > > > >>> for callbacks to finish that. >> > > > > > > > > >>> >> > > > > > > > > >>> Jussi >> > > > > > > > > >>> >> > > > > > > > > >>> >> > > > > > > > > >>> >> > > > > > > > > >>> On 19 June 2012 21:58, Emil Lenngren < >> > > > emil.lenngren at ...626...> >> > > > > > > > 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 >> > > > > > > > > >>> > >> > > > > > > > > >>> > > More bugs... >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > Make shared library (just dummy example [or just >> use >> > > > binary >> > > > > > > that >> > > > > > > > is >> > > > > > > > > >>> > > included with project source]); >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > #include >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > int yEta(int x1, int y1, int x2, int y2) >> > > > > > > > > >>> > > {return (int) hypot(x1-x2,y1-y2);} >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > Then run the attached project. >> > > > > > > > > >>> > > With JIT, number of arguments is counted wrong. >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > Jussi >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > On 19 June 2012 21:02, Jussi Lahtinen < >> > > > > > > jussi.lahtinen at ...626...> >> > > > > > > > > >>> wrote: >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > > Yes, it works now! >> > > > > > > > > >>> > > > >> > > > > > > > > >>> > > > Jussi >> > > > > > > > > >>> > > > >> > > > > > > > > >>> > > > >> > > > > > > > > >>> > > > >> > > > > > > > > >>> > > > >> > > > > > > > > >>> > > > On 18 June 2012 22:34, Emil Lenngren < >> > > > > > > emil.lenngren at ...626...> >> > > > > > > > > >>> wrote: >> > > > > > > > > >>> > > > >> > > > > > > > > >>> > > >> Does it work in revision #4847? >> > > > > > > > > >>> > > >> >> > > > > > > > > >>> > > >> /Emil >> > > > > > > > > >>> > > >> >> > > > > > > > > >>> > > >> 2012/6/18 Jussi Lahtinen < >> > jussi.lahtinen at ...626...> >> > > > > > > > > >>> > > >> >> > > > > > > > > >>> > > >> > 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 || Addr == 0) && >> > > > > "GlobalMapping >> > > > > > > > > already >> > > > > > > > > >>> > > >> > established!"' failed. >> > > > > > > > > >>> > > >> > >> > > > > > > > > >>> > > >> > Program received signal SIGABRT, Aborted. >> > > > > > > > > >>> > > >> > 0x00007ffff7130445 in __GI_raise >> (sig=> > > > out>) >> > > > > > > > > >>> > > >> > at >> ../nptl/sysdeps/unix/sysv/linux/raise.c:64 >> > > > > > > > > >>> > > >> > 64 >> ../nptl/sysdeps/unix/sysv/linux/raise.c: >> > No >> > > > such >> > > > > > > file >> > > > > > > > or >> > > > > > > > > >>> > > >> directory. >> > > > > > > > > >>> > > >> > (gdb) bt >> > > > > > > > > >>> > > >> > #0 0x00007ffff7130445 in __GI_raise >> > > (sig=> > > > > > out>) >> > > > > > > > > >>> > > >> > at >> ../nptl/sysdeps/unix/sysv/linux/raise.c:64 >> > > > > > > > > >>> > > >> > #1 0x00007ffff7133bab in __GI_abort () at >> > > > abort.c:91 >> > > > > > > > > >>> > > >> > #2 0x00007ffff712910e in __assert_fail_base >> > > > > > > (fmt=> > > > > > > > > >>> out>, >> > > > > > > > > >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || >> > Addr >> > > == >> > > > > 0) >> > > > > > && >> > > > > > > > > >>> > > >> \"GlobalMapping >> > > > > > > > > >>> > > >> > already established!\"", file=0x7fffed43c55b >> > > > > > > > > >>> "ExecutionEngine.cpp", >> > > > > > > > > >>> > > >> > line=, function=> > out>) >> > > > at >> > > > > > > > > >>> assert.c:94 >> > > > > > > > > >>> > > >> > #3 0x00007ffff71291b2 in __GI___assert_fail >> ( >> > > > > > > > > >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || >> > Addr >> > > == >> > > > > 0) >> > > > > > && >> > > > > > > > > >>> > > >> \"GlobalMapping >> > > > > > > > > >>> > > >> > already established!\"", file=0x7fffed43c55b >> > > > > > > > > >>> "ExecutionEngine.cpp", >> > > > > > > > > >>> > > >> > line=165, >> > > > > > > > > >>> > > >> > function=0x7fffed43d7a0 "void >> > > > > > > > > >>> > > >> > llvm::ExecutionEngine::addGlobalMapping(const >> > > > > > > > > >>> llvm::GlobalValue*, >> > > > > > > > > >>> > > >> void*)") >> > > > > > > > > >>> > > >> > at assert.c:103 >> > > > > > > > > >>> > > >> > #4 0x00007fffeca84aae in >> > > > > > > > > >>> > > >> > >> > > > > > llvm::ExecutionEngine::addGlobalMapping(llvm::GlobalValue >> > > > > > > > > >>> const*, >> > > > > > > > > >>> > > >> void*) () >> > > > > > > > > >>> > > >> > from /usr/lib/libLLVM-3.2svn.so >> > > > > > > > > >>> > > >> > #5 0x00007fffedc85ec7 in >> register_global_symbol >> > > > > > > > > >>> (address=0x40ebf6, >> > > > > > > > > >>> > > >> > value=0x8b2500, name=...) at >> > > jit_codegen.cpp:242 >> > > > > > > > > >>> > > >> > #6 register_global_symbol (name=..., >> > > > value=0x8b2500, >> > > > > > > > > >>> > > address=0x40ebf6) >> > > > > > > > > >>> > > >> > at jit_codegen.cpp:240 >> > > > > > > > > >>> > > >> > #7 0x00007fffedc8600e in >> > > get_global_function_real ( >> > > > > > > > > >>> > > >> > name=0x7fffedcb9e57 "CLASS_free", >> > > func=0x40ebf6, >> > > > > > > > > >>> ret=> > > > > > > > > >>> > > out>, >> > > > > > > > > >>> > > >> > args=, vararg=> out>) >> > > at >> > > > > > > > > >>> > > jit_codegen.cpp:276 >> > > > > > > > > >>> > > >> > #8 0x00007fffedc8a9dc in operator() >> > > > (this=> > > > > > > > > pointer>) >> > > > > > > > > >>> > > >> > at jit_codegen.cpp:991 >> > > > > > > > > >>> > > >> > ---Type to continue, or q >> to >> > > > quit--- >> > > > > > > > > >>> > > >> > #9 >> > > > > > > > > >> gen_if > >> > > > > > > > > >>> > > >> (func=..., >> > > > > > > > > >>> > > >> > cond=0x8999d0, if_name=, >> > > > > > > > > cont_name=> > > > > > > > > >>> > out>) >> > > > > > > > > >>> > > >> > at jit_codegen.cpp:562 >> > > > > > > > > >>> > > >> > #10 unref_object_no_nullcheck (ptr=0x898ca8) >> at >> > > > > > > > > >>> jit_codegen.cpp:993 >> > > > > > > > > >>> > > >> > #11 0x00007fffedc9a44c in codegen_get_value >> > > > > > > (this=0x8abba0) >> > > > > > > > > >>> > > >> > at jit_codegen.cpp:1566 >> > > > > > > > > >>> > > >> > #12 >> > > > > PushPureObjectVariableExpression::codegen_get_value >> > > > > > > > > >>> > > (this=0x8abba0) >> > > > > > > > > >>> > > >> > at jit_codegen.cpp:1545 >> > > > > > > > > >>> > > >> > #13 0x00007fffedca3f0d in >> > > > > > > SubrExpression::codegen_get_value >> > > > > > > > > >>> > > >> (this=0x86a450) >> > > > > > > > > >>> > > >> > at jit_codegen.cpp:5898 >> > > > > > > > > >>> > > >> > #14 0x00007fffedc8c21d in >> > DropExpression::codegen >> > > > > > > > > >>> (this=0x86a4a0) >> > > > > > > > > >>> > > >> > at jit_codegen.cpp:1257 >> > > > > > > > > >>> > > >> > #15 0x00007fffedca6fa7 in codegen_statements >> () >> > at >> > > > > > > > > >>> > jit_codegen.cpp:855 >> > > > > > > > > >>> > > >> > #16 JIT_codegen () at jit_codegen.cpp:6490 >> > > > > > > > > >>> > > >> > #17 0x00007fffedcadc64 in >> > JIT_compile_and_execute >> > > () >> > > > > at >> > > > > > > > > >>> > > >> jit_compile.cpp:119 >> > > > > > > > > >>> > > >> > #18 0x000000000040a2fb in >> EXEC_jit_function_loop >> > > () >> > > > at >> > > > > > > > > >>> > gbx_exec.c:871 >> > > > > > > > > >>> > > >> > #19 0x000000000040ab22 in EXEC_function_real >> () >> > at >> > > > > > > > > >>> gbx_exec.c:862 >> > > > > > > > > >>> > > >> > #20 0x000000000041e86d in raise_event >> > > > > > (observer=> > > > > > > > > out>, >> > > > > > > > > >>> > > >> > object=, func_id=> > > out>, >> > > > > > > > > >>> > nparam=> > > > > > > > > >>> > > >> out>) >> > > > > > > > > >>> > > >> > at gbx_api.c:711 >> > > > > > > > > >>> > > >> > #21 0x000000000041efa6 in GB_Raise >> > > (object=0x8b95c8, >> > > > > > > > > >>> event_id=16, >> > > > > > > > > >>> > > >> nparam=0) >> > > > > > > > > >>> > > >> > at gbx_api.c:842 >> > > > > > > > > >>> > > >> > #22 0x00007ffff5fce3d3 in >> gb_raise_button_Click >> > > > > > > > > >>> (sender=> > > > > > > > > >>> > > out>) >> > > > > > > > > >>> > > >> > >> > > > > > > > > >>> > > >> > Jussi >> > > > > > > > > >>> > > >> > >> > > > > > > > > >>> > > >> > >> > > > > > > > > >>> > > >> > >> > > > > > > > > >>> > > >> > On 18 June 2012 22:08, Emil Lenngren < >> > > > > > > > emil.lenngren at ...626... >> > > > > > > > > > >> > > > > > > > > >>> > 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.lahtinen at ...626...> >> > > > > > > > > >>> > > >> > > >> > > > > > > > > >>> > > >> > > > OK, I found it. See attachment. >> > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > Jussi >> > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > On 17 June 2012 23:36, Jussi Lahtinen < >> > > > > > > > > >>> jussi.lahtinen at ...626... >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > 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::addGlobalMapping(const >> > > > > > > > > >>> > > llvm::GlobalValue*, >> > > > > > > > > >>> > > >> > > void*): >> > > > > > > > > >>> > > >> > > > > Assertion `(CurVal == 0 || Addr == 0) >> && >> > > > > > > > "GlobalMapping >> > > > > > > > > >>> > 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.lenngren at ...626... >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > wrote: >> > > > > > > > > >>> > > >> > > > > >> > > > > > > > > >>> > > >> > > > >> It should be fixed in revision #4843! >> > > > > > > > > >>> > > >> > > > >> >> > > > > > > > > >>> > > >> > > > >> /Emil >> > > > > > > > > >>> > > >> > > > >> >> > > > > > > > > >>> > > >> > > > >> 2012/6/17 Jussi Lahtinen < >> > > > > > jussi.lahtinen at ...626... >> > > > > > > > >> > > > > > > > > >>> > > >> > > > >> >> > > > > > > > > >>> > > >> > > > >> > Yes, it really works now. And I >> found >> > a >> > > > lot >> > > > > of >> > > > > > > > > errors >> > > > > > > > > >>> by >> > > > > > > > > >>> > me. >> > > > > > > > > >>> > > >> > > > >> > >> > > > > > > > > >>> > > >> > > > >> > But for some reason JIT raises >> compare >> > > > method >> > > > > > > when >> > > > > > > > it >> > > > > > > > > >>> > > >> shouldn't, >> > > > > > > > > >>> > > >> > > > >> > and when I tried to isolate the >> > problem I >> > > > got >> > > > > > > crash >> > > > > > > > > >>> (signal >> > > > > > > > > >>> > > >> 11). >> > > > > > > > > >>> > > >> > > > >> > This seems not to be related to >> compare >> > > > > method, >> > > > > > > so >> > > > > > > > > just >> > > > > > > > > >>> > > ignore >> > > > > > > > > >>> > > >> > name >> > > > > > > > > >>> > > >> > > of >> > > > > > > > > >>> > > >> > > > >> the >> > > > > > > > > >>> > > >> > > > >> > attached project. >> > > > > > > > > >>> > > >> > > > >> > I will look it more closely when >> this >> > is >> > > > > fixed. >> > > > > > > > > >>> > > >> > > > >> > >> > > > > > > > > >>> > > >> > > > >> > Jussi >> > > > > > > > > >>> > > >> > > > >> > >> > > > > > > > > >>> > > >> > > > >> > >> > > > > > > > > >>> > > >> > > > >> > >> > > > > > > > > >>> > > >> > > > >> > >> > > > > > > > > >>> > > >> > > > >> > On 17 June 2012 19:01, Emil >> Lenngren < >> > > > > > > > > >>> > > emil.lenngren at ...626...> >> > > > > > > > > >>> > > >> > > wrote: >> > > > > > > > > >>> > > >> > > > >> > >> > > > > > > > > >>> > > >> > > > >> > > Yes, it works now :) >> > > > > > > > > >>> > > >> > > > >> > > >> > > > > > > > > >>> > > >> > > > >> > > 2012/6/17 Beno?t Minisini < >> > > > > > > > > >>> gambas at ...1...> >> > > > > > > > > >>> > > >> > > > >> > > >> > > > > > > > > >>> > > >> > > > >> > > > Le 17/06/2012 02:54, Jussi >> > Lahtinen a >> > > > > > ?crit : >> > > > > > > > > >>> > > >> > > > >> > > > > Yeah, terminal gives other >> > > > position... >> > > > > > > > > >>> > > >> > > > >> > > > > With my actual project, I got >> > error >> > > > > > > message; >> > > > > > > > > >>> wanted >> > > > > > > > > >>> > > >> string, >> > > > > > > > > >>> > > >> > > got >> > > > > > > > > >>> > > >> > > > >> > > > > blaablaaClass instead. >> > > > > > > > > >>> > > >> > > > >> > > > > And that error message comes >> from >> > > > > > function >> > > > > > > > > (from >> > > > > > > > > >>> > other >> > > > > > > > > >>> > > >> > module >> > > > > > > > > >>> > > >> > > > >> without >> > > > > > > > > >>> > > >> > > > >> > > > Fast) >> > > > > > > > > >>> > > >> > > > >> > > > > which takes two objects are >> > > > parameters. >> > > > > > > > > >>> > > >> > > > >> > > > > >> > > > > > > > > >>> > > >> > > > >> > > > > So either terminal isn't >> showing >> > > the >> > > > > real >> > > > > > > > > stack, >> > > > > > > > > >>> or >> > > > > > > > > >>> > > >> there is >> > > > > > > > > >>> > > >> > > > >> > something >> > > > > > > > > >>> > > >> > > > >> > > > else >> > > > > > > > > >>> > > >> > > > >> > > > > wrong... >> > > > > > > > > >>> > > >> > > > >> > > > > >> > > > > > > > > >>> > > >> > > > >> > > > > But my time is up, I'll see it >> > > > tomorrow >> > > > > > > (with >> > > > > > > > > >>> latest >> > > > > > > > > >>> > > >> > > revision). >> > > > > > > > > >>> > > >> > > > >> > > > > >> > > > > > > > > >>> > > >> > > > >> > > > > Jussi >> > > > > > > > > >>> > > >> > > > >> > > > > >> > > > > > > > > >>> > > >> > > > >> > > > > >> > > > > > > > > >>> > > >> > > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > The incorrect line number >> problem, >> > as >> > > > > > > reported >> > > > > > > > by >> > > > > > > > > >>> the >> > > > > > > > > >>> > > >> debugger >> > > > > > > > > >>> > > >> > > > (and >> > > > > > > > > >>> > > >> > > > >> not >> > > > > > > > > >>> > > >> > > > >> > > > when you run the program >> > normally!), >> > > > > should >> > > > > > > be >> > > > > > > > > >>> fixed in >> > > > > > > > > >>> > > >> > revision >> > > > > > > > > >>> > > >> > > > >> #4841. >> > > > > > > > > >>> > > >> > > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > Regards, >> > > > > > > > > >>> > > >> > > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > -- >> > > > > > > > > >>> > > >> > > > >> > > > Beno?t Minisini >> > > > > > > > > >>> > > >> > > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > >> > > > > > > > > >>> > > >> > > > >> > >> > > > > > > > > >>> > > >> > > > >> >> > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > >> > > > > > > > > >>> > > >> > >> > > > > > > > > >>> > > >> >> > > > > > > > > >>> > > >> > > > > > > > > >>> > >> > > > > > > > > >>> >> > > > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > > > > > > > >>> > > >> > > > >> > > > Live Security Virtual Conference >> > > > > > > > > >>> > > >> > > > >> > > > Exclusive live event will cover >> all >> > > the >> > > > > > ways >> > > > > > > > > >>> today's >> > > > > > > > > >>> > > >> security >> > > > > > > > > >>> > > >> > > and >> > > > > > > > > >>> > > >> > > > >> > > > threat landscape has changed and >> > how >> > > IT >> > > > > > > > managers >> > > > > > > > > >>> can >> > > > > > > > > >>> > > >> respond. >> > > > > > > > > >>> > > >> > > > >> > Discussions >> > > > > > > > > >>> > > >> > > > >> > > > will include endpoint security, >> > > mobile >> > > > > > > security >> > > > > > > > > >>> and the >> > > > > > > > > >>> > > >> latest >> > > > > > > > > >>> > > >> > > in >> > > > > > > > > >>> > > >> > > > >> > malware >> > > > > > > > > >>> > > >> > > > >> > > > threats. >> > > > > > > > > >>> > > >> > > > >> > > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > > > > > > > >>> > > >> > > > >> > > > >> > > > > > > _______________________________________________ >> > > > > > > > > >>> > > >> > > > >> > > > Gambas-user mailing list >> > > > > > > > > >>> > > >> > > > >> > > > >> Gambas-user at lists.sourceforge.net >> > > > > > > > > >>> > > >> > > > >> > > > >> > > > > > > > > >>> > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > > > > > >>> > > >> > > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > >> > > > > > > > > >>> > > >> > > > >> > > >> > > > > > > > > >>> > > >> > > > >> > >> > > > > > > > > >>> > > >> > > > >> >> > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > >> > > > > > > > > >>> > > >> > >> > > > > > > > > >>> > > >> >> > > > > > > > > >>> > > >> > > > > > > > > >>> > >> > > > > > > > > >>> >> > > > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > > > > > > > >>> > > >> > > > >> > > Live Security Virtual Conference >> > > > > > > > > >>> > > >> > > > >> > > Exclusive live event will cover >> all >> > the >> > > > > ways >> > > > > > > > > today's >> > > > > > > > > >>> > > security >> > > > > > > > > >>> > > >> > and >> > > > > > > > > >>> > > >> > > > >> > > threat landscape has changed and >> how >> > IT >> > > > > > > managers >> > > > > > > > > can >> > > > > > > > > >>> > > respond. >> > > > > > > > > >>> > > >> > > > >> Discussions >> > > > > > > > > >>> > > >> > > > >> > > will include endpoint security, >> > mobile >> > > > > > security >> > > > > > > > and >> > > > > > > > > >>> the >> > > > > > > > > >>> > > >> latest >> > > > > > > > > >>> > > >> > in >> > > > > > > > > >>> > > >> > > > >> malware >> > > > > > > > > >>> > > >> > > > >> > > threats. >> > > > > > > > > >>> > > >> > > >> > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > > > > > > > >>> > > >> > > > >> > > >> > > > > > _______________________________________________ >> > > > > > > > > >>> > > >> > > > >> > > Gambas-user mailing list >> > > > > > > > > >>> > > >> > > > >> > > Gambas-user at lists.sourceforge.net >> > > > > > > > > >>> > > >> > > > >> > > >> > > > > > > > > >>> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > > > > > >>> > > >> > > > >> > > >> > > > > > > > > >>> > > >> > > > >> > >> > > > > > > > > >>> > > >> > > > >> > >> > > > > > > > > >>> > > >> > > > >> > >> > > > > > > > > >>> > > >> > > > >> >> > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > >> > > > > > > > > >>> > > >> > >> > > > > > > > > >>> > > >> >> > > > > > > > > >>> > > >> > > > > > > > > >>> > >> > > > > > > > > >>> >> > > > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > > > > > > > >>> > > >> > > > >> > Live Security Virtual Conference >> > > > > > > > > >>> > > >> > > > >> > Exclusive live event will cover all >> the >> > > > ways >> > > > > > > > today's >> > > > > > > > > >>> > security >> > > > > > > > > >>> > > >> and >> > > > > > > > > >>> > > >> > > > >> > threat landscape has changed and >> how IT >> > > > > > managers >> > > > > > > > can >> > > > > > > > > >>> > respond. >> > > > > > > > > >>> > > >> > > > >> Discussions >> > > > > > > > > >>> > > >> > > > >> > will include endpoint security, >> mobile >> > > > > security >> > > > > > > and >> > > > > > > > > the >> > > > > > > > > >>> > > latest >> > > > > > > > > >>> > > >> in >> > > > > > > > > >>> > > >> > > > >> malware >> > > > > > > > > >>> > > >> > > > >> > threats. >> > > > > > > > > >>> > > >> > >> > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > > > > > > > >>> > > >> > > > >> > >> > > > > _______________________________________________ >> > > > > > > > > >>> > > >> > > > >> > Gambas-user mailing list >> > > > > > > > > >>> > > >> > > > >> > Gambas-user at lists.sourceforge.net >> > > > > > > > > >>> > > >> > > > >> > >> > > > > > > > > >>> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > > > > > >>> > > >> > > > >> > >> > > > > > > > > >>> > > >> > > > >> > >> > > > > > > > > >>> > > >> > > > >> >> > > > > > > > > >>> > > >> > > > >> >> > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > >> > > > > > > > > >>> > > >> > >> > > > > > > > > >>> > > >> >> > > > > > > > > >>> > > >> > > > > > > > > >>> > >> > > > > > > > > >>> >> > > > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > > > > > > > >>> > > >> > > > >> Live Security Virtual Conference >> > > > > > > > > >>> > > >> > > > >> Exclusive live event will cover all >> the >> > > ways >> > > > > > > today's >> > > > > > > > > >>> security >> > > > > > > > > >>> > > and >> > > > > > > > > >>> > > >> > > > >> threat landscape has changed and how >> IT >> > > > > managers >> > > > > > > can >> > > > > > > > > >>> respond. >> > > > > > > > > >>> > > >> > > > Discussions >> > > > > > > > > >>> > > >> > > > >> will include endpoint security, mobile >> > > > security >> > > > > > and >> > > > > > > > the >> > > > > > > > > >>> > latest >> > > > > > > > > >>> > > in >> > > > > > > > > >>> > > >> > > > malware >> > > > > > > > > >>> > > >> > > > >> threats. >> > > > > > > > > >>> > > >> >> > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > > > > > > > >>> > > >> > > > >> >> > > > _______________________________________________ >> > > > > > > > > >>> > > >> > > > >> Gambas-user mailing list >> > > > > > > > > >>> > > >> > > > >> Gambas-user at lists.sourceforge.net >> > > > > > > > > >>> > > >> > > > >> >> > > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > > > > > >>> > > >> > > > >> >> > > > > > > > > >>> > > >> > > > > >> > > > > > > > > >>> > > >> > > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > >> > > > > > > > > >>> > > >> > >> > > > > > > > > >>> > > >> >> > > > > > > > > >>> > > >> > > > > > > > > >>> > >> > > > > > > > > >>> >> > > > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > > > > > > > >>> > > >> > > > Live Security Virtual Conference >> > > > > > > > > >>> > > >> > > > Exclusive live event will cover all the >> ways >> > > > > today's >> > > > > > > > > >>> security >> > > > > > > > > >>> > and >> > > > > > > > > >>> > > >> > > > threat landscape has changed and how IT >> > > managers >> > > > > can >> > > > > > > > > >>> respond. >> > > > > > > > > >>> > > >> > Discussions >> > > > > > > > > >>> > > >> > > > will include endpoint security, mobile >> > > security >> > > > > and >> > > > > > > the >> > > > > > > > > >>> latest >> > > > > > > > > >>> > in >> > > > > > > > > >>> > > >> > malware >> > > > > > > > > >>> > > >> > > > threats. >> > > > > > > > > >>> > > >> > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > > > > > > > >>> > > >> > > > >> > > _______________________________________________ >> > > > > > > > > >>> > > >> > > > Gambas-user mailing list >> > > > > > > > > >>> > > >> > > > Gambas-user at lists.sourceforge.net >> > > > > > > > > >>> > > >> > > > >> > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > > >> > > > > > > > > >>> > > >> > > >> > > > > > > > > >>> > > >> > > >> > > > > > > > > >>> > > >> > >> > > > > > > > > >>> > > >> >> > > > > > > > > >>> > > >> > > > > > > > > >>> > >> > > > > > > > > >>> >> > > > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > > > > > > > >>> > > >> > > Live Security Virtual Conference >> > > > > > > > > >>> > > >> > > Exclusive live event will cover all the >> ways >> > > > today's >> > > > > > > > > security >> > > > > > > > > >>> and >> > > > > > > > > >>> > > >> > > threat landscape has changed and how IT >> > managers >> > > > can >> > > > > > > > > respond. >> > > > > > > > > >>> > > >> Discussions >> > > > > > > > > >>> > > >> > > will include endpoint security, mobile >> > security >> > > > and >> > > > > > the >> > > > > > > > > >>> latest in >> > > > > > > > > >>> > > >> malware >> > > > > > > > > >>> > > >> > > threats. >> > > > > > > > > >>> > >> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > > > > > > > >>> > > >> > > >> > _______________________________________________ >> > > > > > > > > >>> > > >> > > Gambas-user mailing list >> > > > > > > > > >>> > > >> > > Gambas-user at lists.sourceforge.net >> > > > > > > > > >>> > > >> > > >> > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > > > > > >>> > > >> > > >> > > > > > > > > >>> > > >> > >> > > > > > > > > >>> > > >> > >> > > > > > > > > >>> > > >> >> > > > > > > > > >>> > > >> > > > > > > > > >>> > >> > > > > > > > > >>> >> > > > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > > > > > > > >>> > > >> > Live Security Virtual Conference >> > > > > > > > > >>> > > >> > Exclusive live event will cover all the ways >> > > today's >> > > > > > > > security >> > > > > > > > > >>> and >> > > > > > > > > >>> > > >> > threat landscape has changed and how IT >> managers >> > > can >> > > > > > > > respond. >> > > > > > > > > >>> > > >> Discussions >> > > > > > > > > >>> > > >> > will include endpoint security, mobile >> security >> > > and >> > > > > the >> > > > > > > > latest >> > > > > > > > > >>> in >> > > > > > > > > >>> > > >> malware >> > > > > > > > > >>> > > >> > threats. >> > > > > > > > > >>> >> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > > > > > > > >>> > > >> > >> _______________________________________________ >> > > > > > > > > >>> > > >> > Gambas-user mailing list >> > > > > > > > > >>> > > >> > Gambas-user at lists.sourceforge.net >> > > > > > > > > >>> > > >> > >> > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > > > > > >>> > > >> > >> > > > > > > > > >>> > > >> >> > > > > > > > > >>> > > >> >> > > > > > > > > >>> > > >> > > > > > > > > >>> > >> > > > > > > > > >>> >> > > > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > > > > > > > >>> > > >> Live Security Virtual Conference >> > > > > > > > > >>> > > >> Exclusive live event will cover all the ways >> > today's >> > > > > > > security >> > > > > > > > > and >> > > > > > > > > >>> > > >> threat landscape has changed and how IT >> managers >> > can >> > > > > > > respond. >> > > > > > > > > >>> > > Discussions >> > > > > > > > > >>> > > >> will include endpoint security, mobile security >> > and >> > > > the >> > > > > > > latest >> > > > > > > > > in >> > > > > > > > > >>> > > malware >> > > > > > > > > >>> > > >> threats. >> > > > > > > > > >>> >> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > > > > > > > >>> > > >> _______________________________________________ >> > > > > > > > > >>> > > >> Gambas-user mailing list >> > > > > > > > > >>> > > >> Gambas-user at lists.sourceforge.net >> > > > > > > > > >>> > > >> >> > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > > > > > >>> > > >> >> > > > > > > > > >>> > > > >> > > > > > > > > >>> > > > >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > > >>> > >> > > > > > > > > >>> >> > > > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > > > > > > > >>> > > Live Security Virtual Conference >> > > > > > > > > >>> > > Exclusive live event will cover all the ways >> today's >> > > > > security >> > > > > > > and >> > > > > > > > > >>> > > threat landscape has changed and how IT managers >> can >> > > > > respond. >> > > > > > > > > >>> Discussions >> > > > > > > > > >>> > > will include endpoint security, mobile security >> and >> > the >> > > > > > latest >> > > > > > > in >> > > > > > > > > >>> malware >> > > > > > > > > >>> > > threats. >> > > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > > > > > > > >>> > > _______________________________________________ >> > > > > > > > > >>> > > Gambas-user mailing list >> > > > > > > > > >>> > > Gambas-user at lists.sourceforge.net >> > > > > > > > > >>> > > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > > > > > >>> > > >> > > > > > > > > >>> > > >> > > > > > > > > >>> > >> > > > > > > > > >>> > >> > > > > > > > > >>> >> > > > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > > > > > > > >>> > Live Security Virtual Conference >> > > > > > > > > >>> > Exclusive live event will cover all the ways today's >> > > > security >> > > > > > and >> > > > > > > > > >>> > threat landscape has changed and how IT managers can >> > > > respond. >> > > > > > > > > >>> Discussions >> > > > > > > > > >>> > will include endpoint security, mobile security and >> the >> > > > > latest >> > > > > > in >> > > > > > > > > >>> malware >> > > > > > > > > >>> > threats. >> > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > > > > > > > >>> > _______________________________________________ >> > > > > > > > > >>> > Gambas-user mailing list >> > > > > > > > > >>> > Gambas-user at lists.sourceforge.net >> > > > > > > > > >>> > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > > > > > >>> > >> > > > > > > > > >>> >> > > > > > > > > >>> >> > > > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > > > > > > > >>> Live Security Virtual Conference >> > > > > > > > > >>> Exclusive live event will cover all the ways today's >> > > security >> > > > > and >> > > > > > > > > >>> threat landscape has changed and how IT managers can >> > > respond. >> > > > > > > > > Discussions >> > > > > > > > > >>> will include endpoint security, mobile security and >> the >> > > > latest >> > > > > in >> > > > > > > > > malware >> > > > > > > > > >>> threats. >> > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > > > > > > > >>> _______________________________________________ >> > > > > > > > > >>> Gambas-user mailing list >> > > > > > > > > >>> Gambas-user at lists.sourceforge.net >> > > > > > > > > >>> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > > > > > >>> >> > > > > > > > > >> >> > > > > > > > > >> >> > > > > > > > > > >> > > > > > > > > >> > > > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > > > > > > > Live Security Virtual Conference >> > > > > > > > > Exclusive live event will cover all the ways today's >> security >> > > and >> > > > > > > > > threat landscape has changed and how IT managers can >> respond. >> > > > > > > Discussions >> > > > > > > > > will include endpoint security, mobile security and the >> > latest >> > > in >> > > > > > > malware >> > > > > > > > > threats. >> > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > > > > > > > _______________________________________________ >> > > > > > > > > Gambas-user mailing list >> > > > > > > > > Gambas-user at lists.sourceforge.net >> > > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > > > > > >> > > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > > > > > > Live Security Virtual Conference >> > > > > > > > Exclusive live event will cover all the ways today's >> security >> > and >> > > > > > > > threat landscape has changed and how IT managers can >> respond. >> > > > > > Discussions >> > > > > > > > will include endpoint security, mobile security and the >> latest >> > in >> > > > > > malware >> > > > > > > > threats. >> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > > > > > > _______________________________________________ >> > > > > > > > Gambas-user mailing list >> > > > > > > > Gambas-user at lists.sourceforge.net >> > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > > > > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > > > > > Live Security Virtual Conference >> > > > > > > Exclusive live event will cover all the ways today's security >> and >> > > > > > > threat landscape has changed and how IT managers can respond. >> > > > > Discussions >> > > > > > > will include endpoint security, mobile security and the >> latest in >> > > > > malware >> > > > > > > threats. >> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > > > > > _______________________________________________ >> > > > > > > Gambas-user mailing list >> > > > > > > Gambas-user at lists.sourceforge.net >> > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > > > > Live Security Virtual Conference >> > > > > > Exclusive live event will cover all the ways today's security >> and >> > > > > > threat landscape has changed and how IT managers can respond. >> > > > Discussions >> > > > > > will include endpoint security, mobile security and the latest >> in >> > > > malware >> > > > > > threats. >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > > > > _______________________________________________ >> > > > > > Gambas-user mailing list >> > > > > > Gambas-user at lists.sourceforge.net >> > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > > >> > > > > > >> > > > > >> > > > > >> > > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > > > Live Security Virtual Conference >> > > > > Exclusive live event will cover all the ways today's security and >> > > > > threat landscape has changed and how IT managers can respond. >> > > Discussions >> > > > > will include endpoint security, mobile security and the latest in >> > > malware >> > > > > threats. >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > > > _______________________________________________ >> > > > > Gambas-user mailing list >> > > > > Gambas-user at lists.sourceforge.net >> > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > >> > > > >> > > > >> > > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > > Live Security Virtual Conference >> > > > Exclusive live event will cover all the ways today's security and >> > > > threat landscape has changed and how IT managers can respond. >> > Discussions >> > > > will include endpoint security, mobile security and the latest in >> > malware >> > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > > _______________________________________________ >> > > > Gambas-user mailing list >> > > > Gambas-user at lists.sourceforge.net >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > >> > > > >> > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > Live Security Virtual Conference >> > > Exclusive live event will cover all the ways today's security and >> > > threat landscape has changed and how IT managers can respond. >> Discussions >> > > will include endpoint security, mobile security and the latest in >> malware >> > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > _______________________________________________ >> > > Gambas-user mailing list >> > > Gambas-user at lists.sourceforge.net >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > >> > >> > >> ------------------------------------------------------------------------------ >> > Live Security Virtual Conference >> > Exclusive live event will cover all the ways today's security and >> > threat landscape has changed and how IT managers can respond. >> Discussions >> > will include endpoint security, mobile security and the latest in >> malware >> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From jussi.lahtinen at ...626... Sat Jun 30 00:01:43 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 30 Jun 2012 01:01:43 +0300 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: OK, found it. See attachment. Jussi On 29 June 2012 23:59, Jussi Lahtinen wrote: > Next bug... it's crash and I don't have any clue what causes it. > I'm trying to isolate it, but meanwhile here is bt from gdb: > > Program received signal SIGSEGV, Segmentation fault. > 0x00007fffe3b0e430 in llvm::BasicBlock::getContext() const () > from /usr/lib/libLLVM-3.2svn.so > (gdb) bt > #0 0x00007fffe3b0e430 in llvm::BasicBlock::getContext() const () > from /usr/lib/libLLVM-3.2svn.so > #1 0x00007fffe3b8de4d in llvm::BranchInst::BranchInst(llvm::BasicBlock*, > llvm::BasicBlock*, llvm::Value*, llvm::Instruction*) () > from /usr/lib/libLLVM-3.2svn.so > #2 0x00007fffe4e20c87 in Create (InsertBefore=0x0, Cond=0x18cba60, > IfFalse=0x30880d0, IfTrue=0x0) at /usr/include/llvm/Instructions.h:2370 > #3 llvm::IRBuilder llvm::IRBuilderDefaultInserter >::CreateCondBr (this=0xef1150, > Cond=0x18cba60, True=0x0, False=0x30880d0) > at /usr/include/llvm/Support/IRBuilder.h:448 > #4 0x00007fffe4e1c81f in insert_pending_branches () at jit_codegen.cpp:866 > #5 JIT_codegen () at jit_codegen.cpp:6535 > #6 0x00007fffe4e2339c in JIT_compile_and_execute () at jit_compile.cpp:119 > #7 0x00007fffdbb88223 in ?? () > #8 0x00007fffe4e2d624 in JR_extern_dispatch_object (object= out>, > index=) at jit_runtime.c:965 > #9 0x0000000000000000 in ?? () > > Gambas 3 rev 4871 @ Xubuntu 12.04 64bit > > Jussi > > > > > > > On 27 June 2012 19:17, Jussi Lahtinen wrote: > >> Yes, it works now! >> >> Jussi >> >> >> >> On 27 June 2012 00:12, Emil Lenngren wrote: >> >>> It seems like when LLVM reads boolean pointers, it assumes the seven most >>> significant bits are always 0, which is not the case in Gambas. Does the >>> latest revision work? I have no opportunity to even compile it and see if >>> it works at the moment :) >>> >>> /Emil >>> >>> 2012/6/26 Jussi Lahtinen >>> >>> > .../MagicBug$ GB_JIT=info gbx3 >>> > >>> > gb.jit: using LLVM 3.2. >>> > >>> ------------------------------------------------------------------------ >>> > gb.jit: beginning compiling MainModule.MainModule: >>> > >>> ------------------------------------------------------------------------ >>> > >>> > >>> ------------------------------------------------------------------------ >>> > gb.jit: beginning compiling MainModule.Main: >>> > >>> ------------------------------------------------------------------------ >>> > >>> > >>> ------------------------------------------------------------------------ >>> > gb.jit: dumping function MainModule.Main: >>> > >>> ------------------------------------------------------------------------ >>> > ; ModuleID = 'jit_mod' >>> > target datalayout = >>> > >>> > >>> "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" >>> > target triple = "x86_64-pc-linux-gnu" >>> > >>> > %Value = type { i64, i64, i64, i64 } >>> > %ValueFunction = type { i64, i8*, i8*, i8, i8, i16 } >>> > %String = type { i64, i8*, i32, i32 } >>> > %Void = type { i64, i64, i64, i64 } >>> > >>> > define void @func_0_MainModule_2() { >>> > entry: >>> > %0 = load i8** inttoptr (i64 6639552 to i8**) >>> > %1 = load i8** inttoptr (i64 6639576 to i8**) >>> > %2 = icmp eq i8* %1, %0 >>> > br i1 %2, label %if.cont, label %if.then >>> > >>> > if.then: ; preds = %entry >>> > tail call void @stack_corrupted_abort() >>> > unreachable >>> > >>> > if.cont: ; preds = %entry >>> > store i8 -1, i8* inttoptr (i64 29188424 to i8*) >>> > %3 = load i8** inttoptr (i64 6639552 to i8**) >>> > %4 = load i8** inttoptr (i64 6639576 to i8**) >>> > %5 = icmp eq i8* %4, %3 >>> > br i1 %5, label %if.cont2, label %if.then1 >>> > >>> > if.then1: ; preds = %if.cont >>> > tail call void @stack_corrupted_abort() >>> > unreachable >>> > >>> > if.cont2: ; preds = %if.cont >>> > %6 = load i1* inttoptr (i64 29188424 to i1*) >>> > br i1 %6, label %block5, label %if.cont7 >>> > >>> > block5: ; preds = %if.cont2 >>> > %7 = load %Value** inttoptr (i64 6639552 to %Value**) >>> > %8 = bitcast %Value* %7 to %ValueFunction* >>> > %9 = getelementptr %ValueFunction* %8, i64 0, i32 0 >>> > store i64 13, i64* %9 >>> > %10 = getelementptr %ValueFunction* %8, i64 0, i32 1 >>> > store i8* inttoptr (i64 27857320 to i8*), i8** %10 >>> > %11 = getelementptr %ValueFunction* %8, i64 0, i32 2 >>> > store i8* null, i8** %11 >>> > %12 = getelementptr %Value* %7, i64 1 >>> > %13 = bitcast %Value* %12 to %String* >>> > %14 = getelementptr %String* %13, i64 0, i32 0 >>> > store i64 10, i64* %14 >>> > %15 = getelementptr %String* %13, i64 0, i32 1 >>> > store i8* inttoptr (i64 29162265 to i8*), i8** %15 >>> > %16 = getelementptr %String* %13, i64 0, i32 2 >>> > store i32 0, i32* %16 >>> > %17 = getelementptr %String* %13, i64 0, i32 3 >>> > store i32 17, i32* %17 >>> > %18 = getelementptr %Value* %7, i64 2 >>> > store %Value* %18, %Value** inttoptr (i64 6639552 to %Value**) >>> > store i64 29162040, i64* inttoptr (i64 6639624 to i64*) >>> > store i8 1, i8* inttoptr (i64 6648048 to i8*) >>> > store i8* inttoptr (i64 140276446242864 to i8*), i8** inttoptr (i64 >>> > 6648040 to i8**) >>> > store i8* null, i8** inttoptr (i64 6648024 to i8**) >>> > store i8* inttoptr (i64 27857320 to i8*), i8** inttoptr (i64 6648016 >>> to >>> > i8**) >>> > store i8 1, i8* inttoptr (i64 6648050 to i8*) >>> > tail call void @EXEC_native() >>> > %19 = load %Value** inttoptr (i64 6639552 to %Value**) >>> > %20 = getelementptr %Value* %19, i64 -1 >>> > store %Value* %20, %Value** inttoptr (i64 6639552 to %Value**) >>> > %.pre = load i8** inttoptr (i64 6639552 to i8**) >>> > %.pre11 = load i8** inttoptr (i64 6639576 to i8**) >>> > %21 = icmp eq i8* %.pre11, %.pre >>> > br i1 %21, label %if.cont7, label %if.then6 >>> > >>> > if.then6: ; preds = %block5 >>> > tail call void @stack_corrupted_abort() >>> > unreachable >>> > >>> > if.cont7: ; preds = %if.cont2, >>> > %block5 >>> > %22 = load %Value** inttoptr (i64 6639552 to %Value**) >>> > %23 = bitcast %Value* %22 to %ValueFunction* >>> > %24 = getelementptr %ValueFunction* %23, i64 0, i32 0 >>> > store i64 13, i64* %24 >>> > %25 = getelementptr %ValueFunction* %23, i64 0, i32 1 >>> > store i8* inttoptr (i64 27857320 to i8*), i8** %25 >>> > %26 = getelementptr %ValueFunction* %23, i64 0, i32 2 >>> > store i8* null, i8** %26 >>> > %27 = getelementptr %Value* %22, i64 1 >>> > %28 = bitcast %Value* %27 to %String* >>> > %29 = getelementptr %String* %28, i64 0, i32 0 >>> > store i64 10, i64* %29 >>> > %30 = getelementptr %String* %28, i64 0, i32 1 >>> > store i8* inttoptr (i64 29162283 to i8*), i8** %30 >>> > %31 = getelementptr %String* %28, i64 0, i32 2 >>> > store i32 0, i32* %31 >>> > %32 = getelementptr %String* %28, i64 0, i32 3 >>> > store i32 20, i32* %32 >>> > %33 = getelementptr %Value* %22, i64 2 >>> > store %Value* %33, %Value** inttoptr (i64 6639552 to %Value**) >>> > store i64 29162050, i64* inttoptr (i64 6639624 to i64*) >>> > store i8 1, i8* inttoptr (i64 6648048 to i8*) >>> > store i8* inttoptr (i64 140276446242864 to i8*), i8** inttoptr (i64 >>> > 6648040 to i8**) >>> > store i8* null, i8** inttoptr (i64 6648024 to i8**) >>> > store i8* inttoptr (i64 27857320 to i8*), i8** inttoptr (i64 6648016 >>> to >>> > i8**) >>> > store i8 1, i8* inttoptr (i64 6648050 to i8*) >>> > tail call void @EXEC_native() >>> > %34 = load %Value** inttoptr (i64 6639552 to %Value**) >>> > %35 = getelementptr %Value* %34, i64 -1 >>> > store %Value* %35, %Value** inttoptr (i64 6639552 to %Value**) >>> > %36 = load i8** inttoptr (i64 6639552 to i8**) >>> > %37 = load i8** inttoptr (i64 6639576 to i8**) >>> > %38 = icmp eq i8* %37, %36 >>> > br i1 %38, label %if.cont9, label %if.then8 >>> > >>> > if.then8: ; preds = %if.cont7 >>> > tail call void @stack_corrupted_abort() >>> > unreachable >>> > >>> > if.cont9: ; preds = %if.cont7 >>> > store i64 0, i64* getelementptr (%Void* inttoptr (i64 6647920 to >>> %Void*), >>> > i64 0, i32 0) >>> > tail call void @EXEC_leave_keep() >>> > ret void >>> > } >>> > >>> > declare void @stack_corrupted_abort() >>> > >>> > declare void @EXEC_native() >>> > >>> > declare void @EXEC_leave_keep() >>> > >>> ------------------------------------------------------------------------ >>> > >>> > >>> > Jussi >>> > >>> > >>> > >>> > On 26 June 2012 21:05, Emil Lenngren 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 >>> > > >>> > > > OK, here is more. This is really really weird. >>> > > > >>> > > > I expect message "Everything works!", but I get *only* "Something >>> > > broke!!". >>> > > > But if I add 'Return', under Message("Everything works!"), or I >>> remove >>> > > > 'Fast' then everything works as expected. >>> > > > >>> > > > See attachment. >>> > > > >>> > > > Gambas 3 rev 4860 @ Xubuntu 12.04 64bit >>> > > > >>> > > > Jussi >>> > > > >>> > > > >>> > > > >>> > > > >>> > > > On 20 June 2012 20:14, Emil Lenngren >>> wrote: >>> > > > >>> > > > > That bug was actually an interpreter bug, but it is now >>> corrected in >>> > > the >>> > > > > latest revision :) >>> > > > > >>> > > > > /Emil >>> > > > > >>> > > > > 2012/6/20 Jussi Lahtinen >>> > > > > >>> > > > > > Yeah, I'm also leaving to countryside for Midsummer parties... >>> but >>> > I >>> > > > made >>> > > > > > quick test, >>> > > > > > and I found another bug (see attachment). >>> > > > > > >>> > > > > > Similar problem with argument counting. >>> > > > > > >>> > > > > > Jussi >>> > > > > > >>> > > > > > >>> > > > > > >>> > > > > > >>> > > > > > >>> > > > > > On 20 June 2012 19:14, Emil Lenngren >>> > > wrote: >>> > > > > > >>> > > > > > > Tomorrow I will travel away for a week so I cannot do >>> anything >>> > > then, >>> > > > > but >>> > > > > > > just keep sending emails and I will reply when I come home :) >>> > > > > > > >>> > > > > > > /Emil >>> > > > > > > >>> > > > > > > 2012/6/20 Jussi Lahtinen >>> > > > > > > >>> > > > > > > > So far everything seems to work! >>> > > > > > > > I'll continue further testing later. >>> > > > > > > > >>> > > > > > > > Jussi >>> > > > > > > > >>> > > > > > > > >>> > > > > > > > >>> > > > > > > > On 20 June 2012 01:10, Emil Lenngren < >>> emil.lenngren at ...626...> >>> > > > > wrote: >>> > > > > > > > >>> > > > > > > > > Is revision #4851 useful for you? >>> > > > > > > > > You can now convert functions in the current running >>> class to >>> > > > > > pointers. >>> > > > > > > > > >>> > > > > > > > > /Emil >>> > > > > > > > > >>> > > > > > > > > 2012/6/19 Emil Lenngren >>> > > > > > > > > >>> > > > > > > > > > It should work in the latest revision :) >>> > > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > 2012/6/19 Emil Lenngren >>> > > > > > > > > > >>> > > > > > > > > >> If you want a quick workaround, you can have non-fast >>> > method >>> > > > > that >>> > > > > > > > > creates >>> > > > > > > > > >> a callback, and immediately returns it, like: >>> > > > > > > > > >> >>> > > > > > > > > >> Private Function GenerateCallback() As Pointer >>> > > > > > > > > >> 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 >>> > > > > > > > > >> >>> > > > > > > > > >>> No problem, I'm glad to help making Gambas more >>> robust, >>> > > when >>> > > > > > ever I >>> > > > > > > > > have >>> > > > > > > > > >>> time to do so! >>> > > > > > > > > >>> And testing things seems to be easy contribution for >>> > me... >>> > > > > > > > > >>> >>> > > > > > > > > >>> My project has about 120 000 lines of code. And I >>> try JIT >>> > > > with >>> > > > > > > every >>> > > > > > > > > >>> module >>> > > > > > > > > >>> and class of it. >>> > > > > > > > > >>> So I think I will find more bugs... But in some >>> point I >>> > > must >>> > > > > wait >>> > > > > > > > > support >>> > > > > > > > > >>> for callbacks to finish that. >>> > > > > > > > > >>> >>> > > > > > > > > >>> Jussi >>> > > > > > > > > >>> >>> > > > > > > > > >>> >>> > > > > > > > > >>> >>> > > > > > > > > >>> On 19 June 2012 21:58, Emil Lenngren < >>> > > > emil.lenngren at ...626...> >>> > > > > > > > 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 >> > >>> > > > > > > > > >>> > >>> > > > > > > > > >>> > > More bugs... >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > > Make shared library (just dummy example [or just >>> use >>> > > > binary >>> > > > > > > that >>> > > > > > > > is >>> > > > > > > > > >>> > > included with project source]); >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > > #include >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > > int yEta(int x1, int y1, int x2, int y2) >>> > > > > > > > > >>> > > {return (int) hypot(x1-x2,y1-y2);} >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > > Then run the attached project. >>> > > > > > > > > >>> > > With JIT, number of arguments is counted wrong. >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > > Jussi >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > > On 19 June 2012 21:02, Jussi Lahtinen < >>> > > > > > > jussi.lahtinen at ...626...> >>> > > > > > > > > >>> wrote: >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > > > Yes, it works now! >>> > > > > > > > > >>> > > > >>> > > > > > > > > >>> > > > Jussi >>> > > > > > > > > >>> > > > >>> > > > > > > > > >>> > > > >>> > > > > > > > > >>> > > > >>> > > > > > > > > >>> > > > >>> > > > > > > > > >>> > > > On 18 June 2012 22:34, Emil Lenngren < >>> > > > > > > emil.lenngren at ...626...> >>> > > > > > > > > >>> wrote: >>> > > > > > > > > >>> > > > >>> > > > > > > > > >>> > > >> Does it work in revision #4847? >>> > > > > > > > > >>> > > >> >>> > > > > > > > > >>> > > >> /Emil >>> > > > > > > > > >>> > > >> >>> > > > > > > > > >>> > > >> 2012/6/18 Jussi Lahtinen < >>> > jussi.lahtinen at ...626...> >>> > > > > > > > > >>> > > >> >>> > > > > > > > > >>> > > >> > 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 || Addr == 0) && >>> > > > > "GlobalMapping >>> > > > > > > > > already >>> > > > > > > > > >>> > > >> > established!"' failed. >>> > > > > > > > > >>> > > >> > >>> > > > > > > > > >>> > > >> > Program received signal SIGABRT, Aborted. >>> > > > > > > > > >>> > > >> > 0x00007ffff7130445 in __GI_raise >>> (sig=>> > > > out>) >>> > > > > > > > > >>> > > >> > at >>> ../nptl/sysdeps/unix/sysv/linux/raise.c:64 >>> > > > > > > > > >>> > > >> > 64 >>> ../nptl/sysdeps/unix/sysv/linux/raise.c: >>> > No >>> > > > such >>> > > > > > > file >>> > > > > > > > or >>> > > > > > > > > >>> > > >> directory. >>> > > > > > > > > >>> > > >> > (gdb) bt >>> > > > > > > > > >>> > > >> > #0 0x00007ffff7130445 in __GI_raise >>> > > (sig=>> > > > > > out>) >>> > > > > > > > > >>> > > >> > at >>> ../nptl/sysdeps/unix/sysv/linux/raise.c:64 >>> > > > > > > > > >>> > > >> > #1 0x00007ffff7133bab in __GI_abort () at >>> > > > abort.c:91 >>> > > > > > > > > >>> > > >> > #2 0x00007ffff712910e in __assert_fail_base >>> > > > > > > (fmt=>> > > > > > > > > >>> out>, >>> > > > > > > > > >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || >>> > Addr >>> > > == >>> > > > > 0) >>> > > > > > && >>> > > > > > > > > >>> > > >> \"GlobalMapping >>> > > > > > > > > >>> > > >> > already established!\"", file=0x7fffed43c55b >>> > > > > > > > > >>> "ExecutionEngine.cpp", >>> > > > > > > > > >>> > > >> > line=, function=>> > out>) >>> > > > at >>> > > > > > > > > >>> assert.c:94 >>> > > > > > > > > >>> > > >> > #3 0x00007ffff71291b2 in >>> __GI___assert_fail ( >>> > > > > > > > > >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || >>> > Addr >>> > > == >>> > > > > 0) >>> > > > > > && >>> > > > > > > > > >>> > > >> \"GlobalMapping >>> > > > > > > > > >>> > > >> > already established!\"", file=0x7fffed43c55b >>> > > > > > > > > >>> "ExecutionEngine.cpp", >>> > > > > > > > > >>> > > >> > line=165, >>> > > > > > > > > >>> > > >> > function=0x7fffed43d7a0 "void >>> > > > > > > > > >>> > > >> > >>> llvm::ExecutionEngine::addGlobalMapping(const >>> > > > > > > > > >>> llvm::GlobalValue*, >>> > > > > > > > > >>> > > >> void*)") >>> > > > > > > > > >>> > > >> > at assert.c:103 >>> > > > > > > > > >>> > > >> > #4 0x00007fffeca84aae in >>> > > > > > > > > >>> > > >> > >>> > > > > > llvm::ExecutionEngine::addGlobalMapping(llvm::GlobalValue >>> > > > > > > > > >>> const*, >>> > > > > > > > > >>> > > >> void*) () >>> > > > > > > > > >>> > > >> > from /usr/lib/libLLVM-3.2svn.so >>> > > > > > > > > >>> > > >> > #5 0x00007fffedc85ec7 in >>> register_global_symbol >>> > > > > > > > > >>> (address=0x40ebf6, >>> > > > > > > > > >>> > > >> > value=0x8b2500, name=...) at >>> > > jit_codegen.cpp:242 >>> > > > > > > > > >>> > > >> > #6 register_global_symbol (name=..., >>> > > > value=0x8b2500, >>> > > > > > > > > >>> > > address=0x40ebf6) >>> > > > > > > > > >>> > > >> > at jit_codegen.cpp:240 >>> > > > > > > > > >>> > > >> > #7 0x00007fffedc8600e in >>> > > get_global_function_real ( >>> > > > > > > > > >>> > > >> > name=0x7fffedcb9e57 "CLASS_free", >>> > > func=0x40ebf6, >>> > > > > > > > > >>> ret=>> > > > > > > > > >>> > > out>, >>> > > > > > > > > >>> > > >> > args=, vararg=>> out>) >>> > > at >>> > > > > > > > > >>> > > jit_codegen.cpp:276 >>> > > > > > > > > >>> > > >> > #8 0x00007fffedc8a9dc in operator() >>> > > > (this=>> > > > > > > > > pointer>) >>> > > > > > > > > >>> > > >> > at jit_codegen.cpp:991 >>> > > > > > > > > >>> > > >> > ---Type to continue, or q >>> to >>> > > > quit--- >>> > > > > > > > > >>> > > >> > #9 >>> > > > > > > > > >>> gen_if > >>> > > > > > > > > >>> > > >> (func=..., >>> > > > > > > > > >>> > > >> > cond=0x8999d0, if_name=, >>> > > > > > > > > cont_name=>> > > > > > > > > >>> > out>) >>> > > > > > > > > >>> > > >> > at jit_codegen.cpp:562 >>> > > > > > > > > >>> > > >> > #10 unref_object_no_nullcheck >>> (ptr=0x898ca8) at >>> > > > > > > > > >>> jit_codegen.cpp:993 >>> > > > > > > > > >>> > > >> > #11 0x00007fffedc9a44c in codegen_get_value >>> > > > > > > (this=0x8abba0) >>> > > > > > > > > >>> > > >> > at jit_codegen.cpp:1566 >>> > > > > > > > > >>> > > >> > #12 >>> > > > > PushPureObjectVariableExpression::codegen_get_value >>> > > > > > > > > >>> > > (this=0x8abba0) >>> > > > > > > > > >>> > > >> > at jit_codegen.cpp:1545 >>> > > > > > > > > >>> > > >> > #13 0x00007fffedca3f0d in >>> > > > > > > SubrExpression::codegen_get_value >>> > > > > > > > > >>> > > >> (this=0x86a450) >>> > > > > > > > > >>> > > >> > at jit_codegen.cpp:5898 >>> > > > > > > > > >>> > > >> > #14 0x00007fffedc8c21d in >>> > DropExpression::codegen >>> > > > > > > > > >>> (this=0x86a4a0) >>> > > > > > > > > >>> > > >> > at jit_codegen.cpp:1257 >>> > > > > > > > > >>> > > >> > #15 0x00007fffedca6fa7 in >>> codegen_statements () >>> > at >>> > > > > > > > > >>> > jit_codegen.cpp:855 >>> > > > > > > > > >>> > > >> > #16 JIT_codegen () at jit_codegen.cpp:6490 >>> > > > > > > > > >>> > > >> > #17 0x00007fffedcadc64 in >>> > JIT_compile_and_execute >>> > > () >>> > > > > at >>> > > > > > > > > >>> > > >> jit_compile.cpp:119 >>> > > > > > > > > >>> > > >> > #18 0x000000000040a2fb in >>> EXEC_jit_function_loop >>> > > () >>> > > > at >>> > > > > > > > > >>> > gbx_exec.c:871 >>> > > > > > > > > >>> > > >> > #19 0x000000000040ab22 in >>> EXEC_function_real () >>> > at >>> > > > > > > > > >>> gbx_exec.c:862 >>> > > > > > > > > >>> > > >> > #20 0x000000000041e86d in raise_event >>> > > > > > (observer=>> > > > > > > > > out>, >>> > > > > > > > > >>> > > >> > object=, >>> func_id=>> > > out>, >>> > > > > > > > > >>> > nparam=>> > > > > > > > > >>> > > >> out>) >>> > > > > > > > > >>> > > >> > at gbx_api.c:711 >>> > > > > > > > > >>> > > >> > #21 0x000000000041efa6 in GB_Raise >>> > > (object=0x8b95c8, >>> > > > > > > > > >>> event_id=16, >>> > > > > > > > > >>> > > >> nparam=0) >>> > > > > > > > > >>> > > >> > at gbx_api.c:842 >>> > > > > > > > > >>> > > >> > #22 0x00007ffff5fce3d3 in >>> gb_raise_button_Click >>> > > > > > > > > >>> (sender=>> > > > > > > > > >>> > > out>) >>> > > > > > > > > >>> > > >> > >>> > > > > > > > > >>> > > >> > Jussi >>> > > > > > > > > >>> > > >> > >>> > > > > > > > > >>> > > >> > >>> > > > > > > > > >>> > > >> > >>> > > > > > > > > >>> > > >> > On 18 June 2012 22:08, Emil Lenngren < >>> > > > > > > > emil.lenngren at ...626... >>> > > > > > > > > > >>> > > > > > > > > >>> > 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.lahtinen at ...626...> >>> > > > > > > > > >>> > > >> > > >>> > > > > > > > > >>> > > >> > > > OK, I found it. See attachment. >>> > > > > > > > > >>> > > >> > > > >>> > > > > > > > > >>> > > >> > > > Jussi >>> > > > > > > > > >>> > > >> > > > >>> > > > > > > > > >>> > > >> > > > >>> > > > > > > > > >>> > > >> > > > >>> > > > > > > > > >>> > > >> > > > >>> > > > > > > > > >>> > > >> > > > On 17 June 2012 23:36, Jussi Lahtinen < >>> > > > > > > > > >>> jussi.lahtinen at ...626... >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > > >> > 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::addGlobalMapping(const >>> > > > > > > > > >>> > > llvm::GlobalValue*, >>> > > > > > > > > >>> > > >> > > void*): >>> > > > > > > > > >>> > > >> > > > > Assertion `(CurVal == 0 || Addr == 0) >>> && >>> > > > > > > > "GlobalMapping >>> > > > > > > > > >>> > 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.lenngren at ...626... >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > > >> > wrote: >>> > > > > > > > > >>> > > >> > > > > >>> > > > > > > > > >>> > > >> > > > >> It should be fixed in revision #4843! >>> > > > > > > > > >>> > > >> > > > >> >>> > > > > > > > > >>> > > >> > > > >> /Emil >>> > > > > > > > > >>> > > >> > > > >> >>> > > > > > > > > >>> > > >> > > > >> 2012/6/17 Jussi Lahtinen < >>> > > > > > jussi.lahtinen at ...626... >>> > > > > > > > >>> > > > > > > > > >>> > > >> > > > >> >>> > > > > > > > > >>> > > >> > > > >> > Yes, it really works now. And I >>> found >>> > a >>> > > > lot >>> > > > > of >>> > > > > > > > > errors >>> > > > > > > > > >>> by >>> > > > > > > > > >>> > me. >>> > > > > > > > > >>> > > >> > > > >> > >>> > > > > > > > > >>> > > >> > > > >> > But for some reason JIT raises >>> compare >>> > > > method >>> > > > > > > when >>> > > > > > > > it >>> > > > > > > > > >>> > > >> shouldn't, >>> > > > > > > > > >>> > > >> > > > >> > and when I tried to isolate the >>> > problem I >>> > > > got >>> > > > > > > crash >>> > > > > > > > > >>> (signal >>> > > > > > > > > >>> > > >> 11). >>> > > > > > > > > >>> > > >> > > > >> > This seems not to be related to >>> compare >>> > > > > method, >>> > > > > > > so >>> > > > > > > > > just >>> > > > > > > > > >>> > > ignore >>> > > > > > > > > >>> > > >> > name >>> > > > > > > > > >>> > > >> > > of >>> > > > > > > > > >>> > > >> > > > >> the >>> > > > > > > > > >>> > > >> > > > >> > attached project. >>> > > > > > > > > >>> > > >> > > > >> > I will look it more closely when >>> this >>> > is >>> > > > > fixed. >>> > > > > > > > > >>> > > >> > > > >> > >>> > > > > > > > > >>> > > >> > > > >> > Jussi >>> > > > > > > > > >>> > > >> > > > >> > >>> > > > > > > > > >>> > > >> > > > >> > >>> > > > > > > > > >>> > > >> > > > >> > >>> > > > > > > > > >>> > > >> > > > >> > >>> > > > > > > > > >>> > > >> > > > >> > On 17 June 2012 19:01, Emil >>> Lenngren < >>> > > > > > > > > >>> > > emil.lenngren at ...626...> >>> > > > > > > > > >>> > > >> > > wrote: >>> > > > > > > > > >>> > > >> > > > >> > >>> > > > > > > > > >>> > > >> > > > >> > > Yes, it works now :) >>> > > > > > > > > >>> > > >> > > > >> > > >>> > > > > > > > > >>> > > >> > > > >> > > 2012/6/17 Beno?t Minisini < >>> > > > > > > > > >>> gambas at ...1...> >>> > > > > > > > > >>> > > >> > > > >> > > >>> > > > > > > > > >>> > > >> > > > >> > > > Le 17/06/2012 02:54, Jussi >>> > Lahtinen a >>> > > > > > ?crit : >>> > > > > > > > > >>> > > >> > > > >> > > > > Yeah, terminal gives other >>> > > > position... >>> > > > > > > > > >>> > > >> > > > >> > > > > With my actual project, I got >>> > error >>> > > > > > > message; >>> > > > > > > > > >>> wanted >>> > > > > > > > > >>> > > >> string, >>> > > > > > > > > >>> > > >> > > got >>> > > > > > > > > >>> > > >> > > > >> > > > > blaablaaClass instead. >>> > > > > > > > > >>> > > >> > > > >> > > > > And that error message comes >>> from >>> > > > > > function >>> > > > > > > > > (from >>> > > > > > > > > >>> > other >>> > > > > > > > > >>> > > >> > module >>> > > > > > > > > >>> > > >> > > > >> without >>> > > > > > > > > >>> > > >> > > > >> > > > Fast) >>> > > > > > > > > >>> > > >> > > > >> > > > > which takes two objects are >>> > > > parameters. >>> > > > > > > > > >>> > > >> > > > >> > > > > >>> > > > > > > > > >>> > > >> > > > >> > > > > So either terminal isn't >>> showing >>> > > the >>> > > > > real >>> > > > > > > > > stack, >>> > > > > > > > > >>> or >>> > > > > > > > > >>> > > >> there is >>> > > > > > > > > >>> > > >> > > > >> > something >>> > > > > > > > > >>> > > >> > > > >> > > > else >>> > > > > > > > > >>> > > >> > > > >> > > > > wrong... >>> > > > > > > > > >>> > > >> > > > >> > > > > >>> > > > > > > > > >>> > > >> > > > >> > > > > But my time is up, I'll see >>> it >>> > > > tomorrow >>> > > > > > > (with >>> > > > > > > > > >>> latest >>> > > > > > > > > >>> > > >> > > revision). >>> > > > > > > > > >>> > > >> > > > >> > > > > >>> > > > > > > > > >>> > > >> > > > >> > > > > Jussi >>> > > > > > > > > >>> > > >> > > > >> > > > > >>> > > > > > > > > >>> > > >> > > > >> > > > > >>> > > > > > > > > >>> > > >> > > > >> > > > >>> > > > > > > > > >>> > > >> > > > >> > > > The incorrect line number >>> problem, >>> > as >>> > > > > > > reported >>> > > > > > > > by >>> > > > > > > > > >>> the >>> > > > > > > > > >>> > > >> debugger >>> > > > > > > > > >>> > > >> > > > (and >>> > > > > > > > > >>> > > >> > > > >> not >>> > > > > > > > > >>> > > >> > > > >> > > > when you run the program >>> > normally!), >>> > > > > should >>> > > > > > > be >>> > > > > > > > > >>> fixed in >>> > > > > > > > > >>> > > >> > revision >>> > > > > > > > > >>> > > >> > > > >> #4841. >>> > > > > > > > > >>> > > >> > > > >> > > > >>> > > > > > > > > >>> > > >> > > > >> > > > Regards, >>> > > > > > > > > >>> > > >> > > > >> > > > >>> > > > > > > > > >>> > > >> > > > >> > > > -- >>> > > > > > > > > >>> > > >> > > > >> > > > Beno?t Minisini >>> > > > > > > > > >>> > > >> > > > >> > > > >>> > > > > > > > > >>> > > >> > > > >> > > > >>> > > > > > > > > >>> > > >> > > > >> > > > >>> > > > > > > > > >>> > > >> > > > >> > > >>> > > > > > > > > >>> > > >> > > > >> > >>> > > > > > > > > >>> > > >> > > > >> >>> > > > > > > > > >>> > > >> > > > >>> > > > > > > > > >>> > > >> > > >>> > > > > > > > > >>> > > >> > >>> > > > > > > > > >>> > > >> >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > >>> > > > > > > > > >>> >>> > > > > > > > > >>> > > > > > > > >>> > > > > > > >>> > > > > > >>> > > > > >>> > > > >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > > > > > > > >>> > > >> > > > >> > > > Live Security Virtual >>> Conference >>> > > > > > > > > >>> > > >> > > > >> > > > Exclusive live event will >>> cover all >>> > > the >>> > > > > > ways >>> > > > > > > > > >>> today's >>> > > > > > > > > >>> > > >> security >>> > > > > > > > > >>> > > >> > > and >>> > > > > > > > > >>> > > >> > > > >> > > > threat landscape has changed >>> and >>> > how >>> > > IT >>> > > > > > > > managers >>> > > > > > > > > >>> can >>> > > > > > > > > >>> > > >> respond. >>> > > > > > > > > >>> > > >> > > > >> > Discussions >>> > > > > > > > > >>> > > >> > > > >> > > > will include endpoint security, >>> > > mobile >>> > > > > > > security >>> > > > > > > > > >>> and the >>> > > > > > > > > >>> > > >> latest >>> > > > > > > > > >>> > > >> > > in >>> > > > > > > > > >>> > > >> > > > >> > malware >>> > > > > > > > > >>> > > >> > > > >> > > > threats. >>> > > > > > > > > >>> > > >> > > > >>> > > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > > > > > > > >>> > > >> > > > >> > > > >>> > > > > > > _______________________________________________ >>> > > > > > > > > >>> > > >> > > > >> > > > Gambas-user mailing list >>> > > > > > > > > >>> > > >> > > > >> > > > >>> Gambas-user at lists.sourceforge.net >>> > > > > > > > > >>> > > >> > > > >> > > > >>> > > > > > > > > >>> > >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > > > > > > > >>> > > >> > > > >> > > > >>> > > > > > > > > >>> > > >> > > > >> > > >>> > > > > > > > > >>> > > >> > > > >> > > >>> > > > > > > > > >>> > > >> > > > >> > >>> > > > > > > > > >>> > > >> > > > >> >>> > > > > > > > > >>> > > >> > > > >>> > > > > > > > > >>> > > >> > > >>> > > > > > > > > >>> > > >> > >>> > > > > > > > > >>> > > >> >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > >>> > > > > > > > > >>> >>> > > > > > > > > >>> > > > > > > > >>> > > > > > > >>> > > > > > >>> > > > > >>> > > > >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > > > > > > > >>> > > >> > > > >> > > Live Security Virtual Conference >>> > > > > > > > > >>> > > >> > > > >> > > Exclusive live event will cover >>> all >>> > the >>> > > > > ways >>> > > > > > > > > today's >>> > > > > > > > > >>> > > security >>> > > > > > > > > >>> > > >> > and >>> > > > > > > > > >>> > > >> > > > >> > > threat landscape has changed and >>> how >>> > IT >>> > > > > > > managers >>> > > > > > > > > can >>> > > > > > > > > >>> > > respond. >>> > > > > > > > > >>> > > >> > > > >> Discussions >>> > > > > > > > > >>> > > >> > > > >> > > will include endpoint security, >>> > mobile >>> > > > > > security >>> > > > > > > > and >>> > > > > > > > > >>> the >>> > > > > > > > > >>> > > >> latest >>> > > > > > > > > >>> > > >> > in >>> > > > > > > > > >>> > > >> > > > >> malware >>> > > > > > > > > >>> > > >> > > > >> > > threats. >>> > > > > > > > > >>> > > >> > > >>> > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > > > > > > > >>> > > >> > > > >> > > >>> > > > > > _______________________________________________ >>> > > > > > > > > >>> > > >> > > > >> > > Gambas-user mailing list >>> > > > > > > > > >>> > > >> > > > >> > > >>> Gambas-user at lists.sourceforge.net >>> > > > > > > > > >>> > > >> > > > >> > > >>> > > > > > > > > >>> >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > > > > > > > >>> > > >> > > > >> > > >>> > > > > > > > > >>> > > >> > > > >> > >>> > > > > > > > > >>> > > >> > > > >> > >>> > > > > > > > > >>> > > >> > > > >> > >>> > > > > > > > > >>> > > >> > > > >> >>> > > > > > > > > >>> > > >> > > > >>> > > > > > > > > >>> > > >> > > >>> > > > > > > > > >>> > > >> > >>> > > > > > > > > >>> > > >> >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > >>> > > > > > > > > >>> >>> > > > > > > > > >>> > > > > > > > >>> > > > > > > >>> > > > > > >>> > > > > >>> > > > >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > > > > > > > >>> > > >> > > > >> > Live Security Virtual Conference >>> > > > > > > > > >>> > > >> > > > >> > Exclusive live event will cover >>> all the >>> > > > ways >>> > > > > > > > today's >>> > > > > > > > > >>> > security >>> > > > > > > > > >>> > > >> and >>> > > > > > > > > >>> > > >> > > > >> > threat landscape has changed and >>> how IT >>> > > > > > managers >>> > > > > > > > can >>> > > > > > > > > >>> > respond. >>> > > > > > > > > >>> > > >> > > > >> Discussions >>> > > > > > > > > >>> > > >> > > > >> > will include endpoint security, >>> mobile >>> > > > > security >>> > > > > > > and >>> > > > > > > > > the >>> > > > > > > > > >>> > > latest >>> > > > > > > > > >>> > > >> in >>> > > > > > > > > >>> > > >> > > > >> malware >>> > > > > > > > > >>> > > >> > > > >> > threats. >>> > > > > > > > > >>> > > >> > >>> > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > > > > > > > >>> > > >> > > > >> > >>> > > > > _______________________________________________ >>> > > > > > > > > >>> > > >> > > > >> > Gambas-user mailing list >>> > > > > > > > > >>> > > >> > > > >> > Gambas-user at lists.sourceforge.net >>> > > > > > > > > >>> > > >> > > > >> > >>> > > > > > > > > >>> >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > > > > > > > >>> > > >> > > > >> > >>> > > > > > > > > >>> > > >> > > > >> > >>> > > > > > > > > >>> > > >> > > > >> >>> > > > > > > > > >>> > > >> > > > >> >>> > > > > > > > > >>> > > >> > > > >>> > > > > > > > > >>> > > >> > > >>> > > > > > > > > >>> > > >> > >>> > > > > > > > > >>> > > >> >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > >>> > > > > > > > > >>> >>> > > > > > > > > >>> > > > > > > > >>> > > > > > > >>> > > > > > >>> > > > > >>> > > > >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > > > > > > > >>> > > >> > > > >> Live Security Virtual Conference >>> > > > > > > > > >>> > > >> > > > >> Exclusive live event will cover all >>> the >>> > > ways >>> > > > > > > today's >>> > > > > > > > > >>> security >>> > > > > > > > > >>> > > and >>> > > > > > > > > >>> > > >> > > > >> threat landscape has changed and how >>> IT >>> > > > > managers >>> > > > > > > can >>> > > > > > > > > >>> respond. >>> > > > > > > > > >>> > > >> > > > Discussions >>> > > > > > > > > >>> > > >> > > > >> will include endpoint security, >>> mobile >>> > > > security >>> > > > > > and >>> > > > > > > > the >>> > > > > > > > > >>> > latest >>> > > > > > > > > >>> > > in >>> > > > > > > > > >>> > > >> > > > malware >>> > > > > > > > > >>> > > >> > > > >> threats. >>> > > > > > > > > >>> > > >> >>> > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > > > > > > > >>> > > >> > > > >> >>> > > > _______________________________________________ >>> > > > > > > > > >>> > > >> > > > >> Gambas-user mailing list >>> > > > > > > > > >>> > > >> > > > >> Gambas-user at lists.sourceforge.net >>> > > > > > > > > >>> > > >> > > > >> >>> > > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > > > > > > > >>> > > >> > > > >> >>> > > > > > > > > >>> > > >> > > > > >>> > > > > > > > > >>> > > >> > > > > >>> > > > > > > > > >>> > > >> > > > >>> > > > > > > > > >>> > > >> > > > >>> > > > > > > > > >>> > > >> > > > >>> > > > > > > > > >>> > > >> > > >>> > > > > > > > > >>> > > >> > >>> > > > > > > > > >>> > > >> >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > >>> > > > > > > > > >>> >>> > > > > > > > > >>> > > > > > > > >>> > > > > > > >>> > > > > > >>> > > > > >>> > > > >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > > > > > > > >>> > > >> > > > Live Security Virtual Conference >>> > > > > > > > > >>> > > >> > > > Exclusive live event will cover all the >>> ways >>> > > > > today's >>> > > > > > > > > >>> security >>> > > > > > > > > >>> > and >>> > > > > > > > > >>> > > >> > > > threat landscape has changed and how IT >>> > > managers >>> > > > > can >>> > > > > > > > > >>> respond. >>> > > > > > > > > >>> > > >> > Discussions >>> > > > > > > > > >>> > > >> > > > will include endpoint security, mobile >>> > > security >>> > > > > and >>> > > > > > > the >>> > > > > > > > > >>> latest >>> > > > > > > > > >>> > in >>> > > > > > > > > >>> > > >> > malware >>> > > > > > > > > >>> > > >> > > > threats. >>> > > > > > > > > >>> > > >>> > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > > > > > > > >>> > > >> > > > >>> > > _______________________________________________ >>> > > > > > > > > >>> > > >> > > > Gambas-user mailing list >>> > > > > > > > > >>> > > >> > > > Gambas-user at lists.sourceforge.net >>> > > > > > > > > >>> > > >> > > > >>> > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > > > > > > > >>> > > >> > > > >>> > > > > > > > > >>> > > >> > > > >>> > > > > > > > > >>> > > >> > > >>> > > > > > > > > >>> > > >> > > >>> > > > > > > > > >>> > > >> > >>> > > > > > > > > >>> > > >> >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > >>> > > > > > > > > >>> >>> > > > > > > > > >>> > > > > > > > >>> > > > > > > >>> > > > > > >>> > > > > >>> > > > >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > > > > > > > >>> > > >> > > Live Security Virtual Conference >>> > > > > > > > > >>> > > >> > > Exclusive live event will cover all the >>> ways >>> > > > today's >>> > > > > > > > > security >>> > > > > > > > > >>> and >>> > > > > > > > > >>> > > >> > > threat landscape has changed and how IT >>> > managers >>> > > > can >>> > > > > > > > > respond. >>> > > > > > > > > >>> > > >> Discussions >>> > > > > > > > > >>> > > >> > > will include endpoint security, mobile >>> > security >>> > > > and >>> > > > > > the >>> > > > > > > > > >>> latest in >>> > > > > > > > > >>> > > >> malware >>> > > > > > > > > >>> > > >> > > threats. >>> > > > > > > > > >>> > >>> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > > > > > > > >>> > > >> > > >>> > _______________________________________________ >>> > > > > > > > > >>> > > >> > > Gambas-user mailing list >>> > > > > > > > > >>> > > >> > > Gambas-user at lists.sourceforge.net >>> > > > > > > > > >>> > > >> > > >>> > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > > > > > > > >>> > > >> > > >>> > > > > > > > > >>> > > >> > >>> > > > > > > > > >>> > > >> > >>> > > > > > > > > >>> > > >> >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > >>> > > > > > > > > >>> >>> > > > > > > > > >>> > > > > > > > >>> > > > > > > >>> > > > > > >>> > > > > >>> > > > >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > > > > > > > >>> > > >> > Live Security Virtual Conference >>> > > > > > > > > >>> > > >> > Exclusive live event will cover all the ways >>> > > today's >>> > > > > > > > security >>> > > > > > > > > >>> and >>> > > > > > > > > >>> > > >> > threat landscape has changed and how IT >>> managers >>> > > can >>> > > > > > > > respond. >>> > > > > > > > > >>> > > >> Discussions >>> > > > > > > > > >>> > > >> > will include endpoint security, mobile >>> security >>> > > and >>> > > > > the >>> > > > > > > > latest >>> > > > > > > > > >>> in >>> > > > > > > > > >>> > > >> malware >>> > > > > > > > > >>> > > >> > threats. >>> > > > > > > > > >>> >>> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > > > > > > > >>> > > >> > >>> _______________________________________________ >>> > > > > > > > > >>> > > >> > Gambas-user mailing list >>> > > > > > > > > >>> > > >> > Gambas-user at lists.sourceforge.net >>> > > > > > > > > >>> > > >> > >>> > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > > > > > > > >>> > > >> > >>> > > > > > > > > >>> > > >> >>> > > > > > > > > >>> > > >> >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > >>> > > > > > > > > >>> >>> > > > > > > > > >>> > > > > > > > >>> > > > > > > >>> > > > > > >>> > > > > >>> > > > >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > > > > > > > >>> > > >> Live Security Virtual Conference >>> > > > > > > > > >>> > > >> Exclusive live event will cover all the ways >>> > today's >>> > > > > > > security >>> > > > > > > > > and >>> > > > > > > > > >>> > > >> threat landscape has changed and how IT >>> managers >>> > can >>> > > > > > > respond. >>> > > > > > > > > >>> > > Discussions >>> > > > > > > > > >>> > > >> will include endpoint security, mobile >>> security >>> > and >>> > > > the >>> > > > > > > latest >>> > > > > > > > > in >>> > > > > > > > > >>> > > malware >>> > > > > > > > > >>> > > >> threats. >>> > > > > > > > > >>> >>> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > > > > > > > >>> > > >> >>> _______________________________________________ >>> > > > > > > > > >>> > > >> Gambas-user mailing list >>> > > > > > > > > >>> > > >> Gambas-user at lists.sourceforge.net >>> > > > > > > > > >>> > > >> >>> > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > > > > > > > >>> > > >> >>> > > > > > > > > >>> > > > >>> > > > > > > > > >>> > > > >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > >>> > > > > > > > > >>> >>> > > > > > > > > >>> > > > > > > > >>> > > > > > > >>> > > > > > >>> > > > > >>> > > > >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > > > > > > > >>> > > Live Security Virtual Conference >>> > > > > > > > > >>> > > Exclusive live event will cover all the ways >>> today's >>> > > > > security >>> > > > > > > and >>> > > > > > > > > >>> > > threat landscape has changed and how IT managers >>> can >>> > > > > respond. >>> > > > > > > > > >>> Discussions >>> > > > > > > > > >>> > > will include endpoint security, mobile security >>> and >>> > the >>> > > > > > latest >>> > > > > > > in >>> > > > > > > > > >>> malware >>> > > > > > > > > >>> > > threats. >>> > > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > > > > > > > >>> > > _______________________________________________ >>> > > > > > > > > >>> > > Gambas-user mailing list >>> > > > > > > > > >>> > > Gambas-user at lists.sourceforge.net >>> > > > > > > > > >>> > > >>> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > > >>> > > > > > > > > >>> > >>> > > > > > > > > >>> > >>> > > > > > > > > >>> >>> > > > > > > > > >>> > > > > > > > >>> > > > > > > >>> > > > > > >>> > > > > >>> > > > >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > > > > > > > >>> > Live Security Virtual Conference >>> > > > > > > > > >>> > Exclusive live event will cover all the ways >>> today's >>> > > > security >>> > > > > > and >>> > > > > > > > > >>> > threat landscape has changed and how IT managers >>> can >>> > > > respond. >>> > > > > > > > > >>> Discussions >>> > > > > > > > > >>> > will include endpoint security, mobile security >>> and the >>> > > > > latest >>> > > > > > in >>> > > > > > > > > >>> malware >>> > > > > > > > > >>> > threats. >>> > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > > > > > > > >>> > _______________________________________________ >>> > > > > > > > > >>> > Gambas-user mailing list >>> > > > > > > > > >>> > Gambas-user at lists.sourceforge.net >>> > > > > > > > > >>> > >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > > > > > > > >>> > >>> > > > > > > > > >>> >>> > > > > > > > > >>> >>> > > > > > > > > >>> > > > > > > > >>> > > > > > > >>> > > > > > >>> > > > > >>> > > > >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > > > > > > > >>> Live Security Virtual Conference >>> > > > > > > > > >>> Exclusive live event will cover all the ways today's >>> > > security >>> > > > > and >>> > > > > > > > > >>> threat landscape has changed and how IT managers can >>> > > respond. >>> > > > > > > > > Discussions >>> > > > > > > > > >>> will include endpoint security, mobile security and >>> the >>> > > > latest >>> > > > > in >>> > > > > > > > > malware >>> > > > > > > > > >>> threats. >>> > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > > > > > > > >>> _______________________________________________ >>> > > > > > > > > >>> Gambas-user mailing list >>> > > > > > > > > >>> Gambas-user at lists.sourceforge.net >>> > > > > > > > > >>> >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > > > > > > > >>> >>> > > > > > > > > >> >>> > > > > > > > > >> >>> > > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > >>> > > > > > > > >>> > > > > > > >>> > > > > > >>> > > > > >>> > > > >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > > > > > > > Live Security Virtual Conference >>> > > > > > > > > Exclusive live event will cover all the ways today's >>> security >>> > > and >>> > > > > > > > > threat landscape has changed and how IT managers can >>> respond. >>> > > > > > > Discussions >>> > > > > > > > > will include endpoint security, mobile security and the >>> > latest >>> > > in >>> > > > > > > malware >>> > > > > > > > > threats. >>> > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > > > > > > > _______________________________________________ >>> > > > > > > > > Gambas-user mailing list >>> > > > > > > > > Gambas-user at lists.sourceforge.net >>> > > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > > > > > > > >>> > > > > > > > >>> > > > > > > > >>> > > > > > > >>> > > > > > >>> > > > > >>> > > > >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > > > > > > Live Security Virtual Conference >>> > > > > > > > Exclusive live event will cover all the ways today's >>> security >>> > and >>> > > > > > > > threat landscape has changed and how IT managers can >>> respond. >>> > > > > > Discussions >>> > > > > > > > will include endpoint security, mobile security and the >>> latest >>> > in >>> > > > > > malware >>> > > > > > > > threats. >>> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > > > > > > _______________________________________________ >>> > > > > > > > Gambas-user mailing list >>> > > > > > > > Gambas-user at lists.sourceforge.net >>> > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > > > > > > >>> > > > > > > >>> > > > > > > >>> > > > > > >>> > > > > >>> > > > >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > > > > > Live Security Virtual Conference >>> > > > > > > Exclusive live event will cover all the ways today's >>> security and >>> > > > > > > threat landscape has changed and how IT managers can respond. >>> > > > > Discussions >>> > > > > > > will include endpoint security, mobile security and the >>> latest in >>> > > > > malware >>> > > > > > > threats. >>> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > > > > > _______________________________________________ >>> > > > > > > Gambas-user mailing list >>> > > > > > > Gambas-user at lists.sourceforge.net >>> > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > > > > > >>> > > > > > >>> > > > > > >>> > > > > > >>> > > > > >>> > > > >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > > > > Live Security Virtual Conference >>> > > > > > Exclusive live event will cover all the ways today's security >>> and >>> > > > > > threat landscape has changed and how IT managers can respond. >>> > > > Discussions >>> > > > > > will include endpoint security, mobile security and the latest >>> in >>> > > > malware >>> > > > > > threats. >>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > > > > _______________________________________________ >>> > > > > > Gambas-user mailing list >>> > > > > > Gambas-user at lists.sourceforge.net >>> > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > > > > >>> > > > > > >>> > > > > >>> > > > > >>> > > > >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > > > Live Security Virtual Conference >>> > > > > Exclusive live event will cover all the ways today's security and >>> > > > > threat landscape has changed and how IT managers can respond. >>> > > Discussions >>> > > > > will include endpoint security, mobile security and the latest in >>> > > malware >>> > > > > threats. >>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > > > _______________________________________________ >>> > > > > Gambas-user mailing list >>> > > > > Gambas-user at lists.sourceforge.net >>> > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > > > >>> > > > >>> > > > >>> > > > >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > > Live Security Virtual Conference >>> > > > Exclusive live event will cover all the ways today's security and >>> > > > threat landscape has changed and how IT managers can respond. >>> > Discussions >>> > > > will include endpoint security, mobile security and the latest in >>> > malware >>> > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > > _______________________________________________ >>> > > > Gambas-user mailing list >>> > > > Gambas-user at lists.sourceforge.net >>> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > > >>> > > > >>> > > >>> > > >>> > >>> ------------------------------------------------------------------------------ >>> > > Live Security Virtual Conference >>> > > Exclusive live event will cover all the ways today's security and >>> > > threat landscape has changed and how IT managers can respond. >>> Discussions >>> > > will include endpoint security, mobile security and the latest in >>> malware >>> > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > > _______________________________________________ >>> > > Gambas-user mailing list >>> > > Gambas-user at lists.sourceforge.net >>> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > Live Security Virtual Conference >>> > Exclusive live event will cover all the ways today's security and >>> > threat landscape has changed and how IT managers can respond. >>> Discussions >>> > will include endpoint security, mobile security and the latest in >>> malware >>> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > _______________________________________________ >>> > Gambas-user mailing list >>> > Gambas-user at lists.sourceforge.net >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > >>> >>> ------------------------------------------------------------------------------ >>> Live Security Virtual Conference >>> Exclusive live event will cover all the ways today's security and >>> threat landscape has changed and how IT managers can respond. Discussions >>> will include endpoint security, mobile security and the latest in malware >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> > -------------- next part -------------- A non-text attachment was scrubbed... Name: JITbug3-0.0.1.tar.gz Type: application/x-gzip Size: 4639 bytes Desc: not available URL: From vuott at ...325... Sat Jun 30 00:10:02 2012 From: vuott at ...325... (Ru Vuott) Date: Fri, 29 Jun 2012 23:10:02 +0100 (BST) Subject: [Gambas-user] Sound: represents a sound wave loaded in memory...... In-Reply-To: <4FBD8511.2020200@...1...> Message-ID: <1341007802.62988.YahooMailClassic@...2748...> Hello, documentation tells: 1) gb.sdl.sound manages up to 32 sound tracks, that can play sounds from memory, and one music track that can play a music from a file. 2) "Sound" (gb.sdl.sound) represents a sound wave *loaded in memory*. Well, questions about it: 1) How managing up to 32 sound tracks ? By using "Sound" ? ? 2) How can I load "a sound wave" in memory via gb.sdl.sound, and then manage it by "Sound" ? 3) Does "one music track" mean a "single" file .wav (and mp3) ? Thanks Vuottttttttttt From karl.reinl at ...9... Sat Jun 30 00:39:02 2012 From: karl.reinl at ...9... (Karl Reinl) Date: Sat, 30 Jun 2012 00:39:02 +0200 Subject: [Gambas-user] cannot find library crashes the IDE Message-ID: <1341009542.2401.19.camel@...40...> Salut, changed to rev 4871 and found that , the IDE crashes. Just before I compiled that 'DBReportViewer3.gambas' and I know it is in the right place and the it workes fine. ==20984== Memcheck, a memory error detector ==20984== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==20984== Using Valgrind-3.6.1-Debian and LibVEX; rerun with -h for copyright info ==20984== Command: gbx3 ==20984== ERROR: #27: Cannot load component 'DBReportViewer3.gambas': cannot find library ==20984== ==20984== HEAP SUMMARY: ==20984== in use at exit: 192,253 bytes in 1,365 blocks ==20984== total heap usage: 2,904 allocs, 1,539 frees, 1,177,089 bytes allocated ==20984== ==20984== LEAK SUMMARY: ==20984== definitely lost: 0 bytes in 0 blocks ==20984== indirectly lost: 0 bytes in 0 blocks ==20984== possibly lost: 96 bytes in 1 blocks ==20984== still reachable: 192,157 bytes in 1,364 blocks ==20984== suppressed: 0 bytes in 0 blocks ==20984== Rerun with --leak-check=full to see details of leaked memory ==20984== ==20984== For counts of detected and suppressed errors, rerun with: -v ==20984== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 4 from 4) Amicalement Charlie [System] OperatingSystem=Linux Kernel=3.0.0-16-generic Architecture=x86_64 Memory=1019076 kB DistributionVendor=LinuxMint DistributionRelease="Linux Mint 12 KDE"Salut, ==20984== Memcheck, a memory error detector ==20984== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==20984== Using Valgrind-3.6.1-Debian and LibVEX; rerun with -h for copyright info ==20984== Command: gbx3 ==20984== ERROR: #27: Cannot load component 'DBReportViewer3.gambas': cannot find library ==20984== ==20984== HEAP SUMMARY: ==20984== in use at exit: 192,253 bytes in 1,365 blocks ==20984== total heap usage: 2,904 allocs, 1,539 frees, 1,177,089 bytes allocated ==20984== ==20984== LEAK SUMMARY: ==20984== definitely lost: 0 bytes in 0 blocks ==20984== indirectly lost: 0 bytes in 0 blocks ==20984== possibly lost: 96 bytes in 1 blocks ==20984== still reachable: 192,157 bytes in 1,364 blocks ==20984== suppressed: 0 bytes in 0 blocks ==20984== Rerun with --leak-check=full to see details of leaked memory ==20984== ==20984== For counts of detected and suppressed errors, rerun with: -v ==20984== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 4 from 4) Amicalement Charlie [System] OperatingSystem=Linux Kernel=3.0.0-16-generic Architecture=x86_64 Memory=1019076 kB DistributionVendor=LinuxMint DistributionRelease="Linux Mint 12 KDE" Desktop=KDE4 [Gambas 2] Version=2.24.0 Path=/usr/local/bin/gbx2 [Gambas 3] Version=3.2.0 rev 4871 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.7.4 GTK+=libgtk-x11-2.0.so.0.2400.6 Desktop=KDE4 [Gambas 2] Version=2.24.0 Path=/usr/local/bin/gbx2 [Gambas 3] Version=3.2.0 rev 4871 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.7.4 GTK+=libgtk-x11-2.0.so.0.2400.6 From gambas at ...1... Sat Jun 30 00:51:22 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 30 Jun 2012 00:51:22 +0200 Subject: [Gambas-user] cannot find library crashes the IDE In-Reply-To: <1341009542.2401.19.camel@...40...> References: <1341009542.2401.19.camel@...40...> Message-ID: <4FEE316A.9080106@...1...> Le 30/06/2012 00:39, Karl Reinl a ?crit : > Salut, > > changed to rev 4871 and found that > , the IDE crashes. > Just before I compiled that 'DBReportViewer3.gambas' and I know it is in > the right place and the it workes fine. > > This is not a crash, so no need to use valgrind. Instead, please explain exactly what you do and what message(s) you get. Regards, -- Beno?t Minisini From gambas at ...1... Sat Jun 30 13:02:30 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 30 Jun 2012 13:02:30 +0200 Subject: [Gambas-user] Sound: represents a sound wave loaded in memory...... In-Reply-To: <1341007802.62988.YahooMailClassic@...2748...> References: <1341007802.62988.YahooMailClassic@...2748...> Message-ID: <4FEEDCC6.2020200@...1...> Le 30/06/2012 00:10, Ru Vuott a ?crit : > Hello, > > documentation tells: > > 1) gb.sdl.sound manages up to 32 sound tracks, that can play sounds from memory, and one music track that can play a music from a file. > > 2) "Sound" (gb.sdl.sound) represents a sound wave *loaded in memory*. > > > Well, questions about it: > > 1) How managing up to 32 sound tracks ? By using "Sound" ? > ? > 2) How can I load "a sound wave" in memory via gb.sdl.sound, and then manage it by "Sound" ? > > 3) Does "one music track" mean a "single" file .wav (and mp3) ? > > Thanks > Vuottttttttttt > Please can you stop using "reply" when you start a new thread? That makes things difficult to read in mailers. Thanks! -- Beno?t Minisini From emil.lenngren at ...626... Sat Jun 30 14:00:43 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Sat, 30 Jun 2012 14:00:43 +0200 Subject: [Gambas-user] Bug with JIT and external functions In-Reply-To: References: <4FDDDE14.7030208@...1...> Message-ID: Ah.. I have not yet implemented breakpoints. And I don't think I will either :/ JIT functions keep the local variables in processor registers, while interpreted functions keep them in the gambas stack. So I think the debugger will show wrong information. If you want to debug functions, simply remove the Fast keyword. I made a little mistake before when I ignored them. Now gbx3 won't crash in the latest revision. /Emil 2012/6/30 Jussi Lahtinen : > OK, found it. See attachment. > > Jussi > > > > On 29 June 2012 23:59, Jussi Lahtinen wrote: > >> Next bug... it's crash and I don't have any clue what causes it. >> I'm trying to isolate it, but meanwhile here is bt from gdb: >> >> Program received signal SIGSEGV, Segmentation fault. >> 0x00007fffe3b0e430 in llvm::BasicBlock::getContext() const () >> from /usr/lib/libLLVM-3.2svn.so >> (gdb) bt >> #0 0x00007fffe3b0e430 in llvm::BasicBlock::getContext() const () >> from /usr/lib/libLLVM-3.2svn.so >> #1 0x00007fffe3b8de4d in llvm::BranchInst::BranchInst(llvm::BasicBlock*, >> llvm::BasicBlock*, llvm::Value*, llvm::Instruction*) () >> from /usr/lib/libLLVM-3.2svn.so >> #2 0x00007fffe4e20c87 in Create (InsertBefore=0x0, Cond=0x18cba60, >> IfFalse=0x30880d0, IfTrue=0x0) at /usr/include/llvm/Instructions.h:2370 >> #3 llvm::IRBuilder> llvm::IRBuilderDefaultInserter >::CreateCondBr (this=0xef1150, >> Cond=0x18cba60, True=0x0, False=0x30880d0) >> at /usr/include/llvm/Support/IRBuilder.h:448 >> #4 0x00007fffe4e1c81f in insert_pending_branches () at jit_codegen.cpp:866 >> #5 JIT_codegen () at jit_codegen.cpp:6535 >> #6 0x00007fffe4e2339c in JIT_compile_and_execute () at jit_compile.cpp:119 >> #7 0x00007fffdbb88223 in ?? () >> #8 0x00007fffe4e2d624 in JR_extern_dispatch_object (object=> out>, >> index=) at jit_runtime.c:965 >> #9 0x0000000000000000 in ?? () >> >> Gambas 3 rev 4871 @ Xubuntu 12.04 64bit >> >> Jussi >> >> >> >> >> >> >> On 27 June 2012 19:17, Jussi Lahtinen wrote: >> >>> Yes, it works now! >>> >>> Jussi >>> >>> >>> >>> On 27 June 2012 00:12, Emil Lenngren wrote: >>> >>>> It seems like when LLVM reads boolean pointers, it assumes the seven most >>>> significant bits are always 0, which is not the case in Gambas. Does the >>>> latest revision work? I have no opportunity to even compile it and see if >>>> it works at the moment :) >>>> >>>> /Emil >>>> >>>> 2012/6/26 Jussi Lahtinen >>>> >>>> > .../MagicBug$ GB_JIT=info gbx3 >>>> > >>>> > gb.jit: using LLVM 3.2. >>>> > >>>> ------------------------------------------------------------------------ >>>> > gb.jit: beginning compiling MainModule.MainModule: >>>> > >>>> ------------------------------------------------------------------------ >>>> > >>>> > >>>> ------------------------------------------------------------------------ >>>> > gb.jit: beginning compiling MainModule.Main: >>>> > >>>> ------------------------------------------------------------------------ >>>> > >>>> > >>>> ------------------------------------------------------------------------ >>>> > gb.jit: dumping function MainModule.Main: >>>> > >>>> ------------------------------------------------------------------------ >>>> > ; ModuleID = 'jit_mod' >>>> > target datalayout = >>>> > >>>> > >>>> "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" >>>> > target triple = "x86_64-pc-linux-gnu" >>>> > >>>> > %Value = type { i64, i64, i64, i64 } >>>> > %ValueFunction = type { i64, i8*, i8*, i8, i8, i16 } >>>> > %String = type { i64, i8*, i32, i32 } >>>> > %Void = type { i64, i64, i64, i64 } >>>> > >>>> > define void @func_0_MainModule_2() { >>>> > entry: >>>> > %0 = load i8** inttoptr (i64 6639552 to i8**) >>>> > %1 = load i8** inttoptr (i64 6639576 to i8**) >>>> > %2 = icmp eq i8* %1, %0 >>>> > br i1 %2, label %if.cont, label %if.then >>>> > >>>> > if.then: ; preds = %entry >>>> > tail call void @stack_corrupted_abort() >>>> > unreachable >>>> > >>>> > if.cont: ; preds = %entry >>>> > store i8 -1, i8* inttoptr (i64 29188424 to i8*) >>>> > %3 = load i8** inttoptr (i64 6639552 to i8**) >>>> > %4 = load i8** inttoptr (i64 6639576 to i8**) >>>> > %5 = icmp eq i8* %4, %3 >>>> > br i1 %5, label %if.cont2, label %if.then1 >>>> > >>>> > if.then1: ; preds = %if.cont >>>> > tail call void @stack_corrupted_abort() >>>> > unreachable >>>> > >>>> > if.cont2: ; preds = %if.cont >>>> > %6 = load i1* inttoptr (i64 29188424 to i1*) >>>> > br i1 %6, label %block5, label %if.cont7 >>>> > >>>> > block5: ; preds = %if.cont2 >>>> > %7 = load %Value** inttoptr (i64 6639552 to %Value**) >>>> > %8 = bitcast %Value* %7 to %ValueFunction* >>>> > %9 = getelementptr %ValueFunction* %8, i64 0, i32 0 >>>> > store i64 13, i64* %9 >>>> > %10 = getelementptr %ValueFunction* %8, i64 0, i32 1 >>>> > store i8* inttoptr (i64 27857320 to i8*), i8** %10 >>>> > %11 = getelementptr %ValueFunction* %8, i64 0, i32 2 >>>> > store i8* null, i8** %11 >>>> > %12 = getelementptr %Value* %7, i64 1 >>>> > %13 = bitcast %Value* %12 to %String* >>>> > %14 = getelementptr %String* %13, i64 0, i32 0 >>>> > store i64 10, i64* %14 >>>> > %15 = getelementptr %String* %13, i64 0, i32 1 >>>> > store i8* inttoptr (i64 29162265 to i8*), i8** %15 >>>> > %16 = getelementptr %String* %13, i64 0, i32 2 >>>> > store i32 0, i32* %16 >>>> > %17 = getelementptr %String* %13, i64 0, i32 3 >>>> > store i32 17, i32* %17 >>>> > %18 = getelementptr %Value* %7, i64 2 >>>> > store %Value* %18, %Value** inttoptr (i64 6639552 to %Value**) >>>> > store i64 29162040, i64* inttoptr (i64 6639624 to i64*) >>>> > store i8 1, i8* inttoptr (i64 6648048 to i8*) >>>> > store i8* inttoptr (i64 140276446242864 to i8*), i8** inttoptr (i64 >>>> > 6648040 to i8**) >>>> > store i8* null, i8** inttoptr (i64 6648024 to i8**) >>>> > store i8* inttoptr (i64 27857320 to i8*), i8** inttoptr (i64 6648016 >>>> to >>>> > i8**) >>>> > store i8 1, i8* inttoptr (i64 6648050 to i8*) >>>> > tail call void @EXEC_native() >>>> > %19 = load %Value** inttoptr (i64 6639552 to %Value**) >>>> > %20 = getelementptr %Value* %19, i64 -1 >>>> > store %Value* %20, %Value** inttoptr (i64 6639552 to %Value**) >>>> > %.pre = load i8** inttoptr (i64 6639552 to i8**) >>>> > %.pre11 = load i8** inttoptr (i64 6639576 to i8**) >>>> > %21 = icmp eq i8* %.pre11, %.pre >>>> > br i1 %21, label %if.cont7, label %if.then6 >>>> > >>>> > if.then6: ; preds = %block5 >>>> > tail call void @stack_corrupted_abort() >>>> > unreachable >>>> > >>>> > if.cont7: ; preds = %if.cont2, >>>> > %block5 >>>> > %22 = load %Value** inttoptr (i64 6639552 to %Value**) >>>> > %23 = bitcast %Value* %22 to %ValueFunction* >>>> > %24 = getelementptr %ValueFunction* %23, i64 0, i32 0 >>>> > store i64 13, i64* %24 >>>> > %25 = getelementptr %ValueFunction* %23, i64 0, i32 1 >>>> > store i8* inttoptr (i64 27857320 to i8*), i8** %25 >>>> > %26 = getelementptr %ValueFunction* %23, i64 0, i32 2 >>>> > store i8* null, i8** %26 >>>> > %27 = getelementptr %Value* %22, i64 1 >>>> > %28 = bitcast %Value* %27 to %String* >>>> > %29 = getelementptr %String* %28, i64 0, i32 0 >>>> > store i64 10, i64* %29 >>>> > %30 = getelementptr %String* %28, i64 0, i32 1 >>>> > store i8* inttoptr (i64 29162283 to i8*), i8** %30 >>>> > %31 = getelementptr %String* %28, i64 0, i32 2 >>>> > store i32 0, i32* %31 >>>> > %32 = getelementptr %String* %28, i64 0, i32 3 >>>> > store i32 20, i32* %32 >>>> > %33 = getelementptr %Value* %22, i64 2 >>>> > store %Value* %33, %Value** inttoptr (i64 6639552 to %Value**) >>>> > store i64 29162050, i64* inttoptr (i64 6639624 to i64*) >>>> > store i8 1, i8* inttoptr (i64 6648048 to i8*) >>>> > store i8* inttoptr (i64 140276446242864 to i8*), i8** inttoptr (i64 >>>> > 6648040 to i8**) >>>> > store i8* null, i8** inttoptr (i64 6648024 to i8**) >>>> > store i8* inttoptr (i64 27857320 to i8*), i8** inttoptr (i64 6648016 >>>> to >>>> > i8**) >>>> > store i8 1, i8* inttoptr (i64 6648050 to i8*) >>>> > tail call void @EXEC_native() >>>> > %34 = load %Value** inttoptr (i64 6639552 to %Value**) >>>> > %35 = getelementptr %Value* %34, i64 -1 >>>> > store %Value* %35, %Value** inttoptr (i64 6639552 to %Value**) >>>> > %36 = load i8** inttoptr (i64 6639552 to i8**) >>>> > %37 = load i8** inttoptr (i64 6639576 to i8**) >>>> > %38 = icmp eq i8* %37, %36 >>>> > br i1 %38, label %if.cont9, label %if.then8 >>>> > >>>> > if.then8: ; preds = %if.cont7 >>>> > tail call void @stack_corrupted_abort() >>>> > unreachable >>>> > >>>> > if.cont9: ; preds = %if.cont7 >>>> > store i64 0, i64* getelementptr (%Void* inttoptr (i64 6647920 to >>>> %Void*), >>>> > i64 0, i32 0) >>>> > tail call void @EXEC_leave_keep() >>>> > ret void >>>> > } >>>> > >>>> > declare void @stack_corrupted_abort() >>>> > >>>> > declare void @EXEC_native() >>>> > >>>> > declare void @EXEC_leave_keep() >>>> > >>>> ------------------------------------------------------------------------ >>>> > >>>> > >>>> > Jussi >>>> > >>>> > >>>> > >>>> > On 26 June 2012 21:05, Emil Lenngren 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 >>>> > > >>>> > > > OK, here is more. This is really really weird. >>>> > > > >>>> > > > I expect message "Everything works!", but I get *only* "Something >>>> > > broke!!". >>>> > > > But if I add 'Return', under Message("Everything works!"), or I >>>> remove >>>> > > > 'Fast' then everything works as expected. >>>> > > > >>>> > > > See attachment. >>>> > > > >>>> > > > Gambas 3 rev 4860 @ Xubuntu 12.04 64bit >>>> > > > >>>> > > > Jussi >>>> > > > >>>> > > > >>>> > > > >>>> > > > >>>> > > > On 20 June 2012 20:14, Emil Lenngren >>>> wrote: >>>> > > > >>>> > > > > That bug was actually an interpreter bug, but it is now >>>> corrected in >>>> > > the >>>> > > > > latest revision :) >>>> > > > > >>>> > > > > /Emil >>>> > > > > >>>> > > > > 2012/6/20 Jussi Lahtinen >>>> > > > > >>>> > > > > > Yeah, I'm also leaving to countryside for Midsummer parties... >>>> but >>>> > I >>>> > > > made >>>> > > > > > quick test, >>>> > > > > > and I found another bug (see attachment). >>>> > > > > > >>>> > > > > > Similar problem with argument counting. >>>> > > > > > >>>> > > > > > Jussi >>>> > > > > > >>>> > > > > > >>>> > > > > > >>>> > > > > > >>>> > > > > > >>>> > > > > > On 20 June 2012 19:14, Emil Lenngren >>>> > > wrote: >>>> > > > > > >>>> > > > > > > Tomorrow I will travel away for a week so I cannot do >>>> anything >>>> > > then, >>>> > > > > but >>>> > > > > > > just keep sending emails and I will reply when I come home :) >>>> > > > > > > >>>> > > > > > > /Emil >>>> > > > > > > >>>> > > > > > > 2012/6/20 Jussi Lahtinen >>>> > > > > > > >>>> > > > > > > > So far everything seems to work! >>>> > > > > > > > I'll continue further testing later. >>>> > > > > > > > >>>> > > > > > > > Jussi >>>> > > > > > > > >>>> > > > > > > > >>>> > > > > > > > >>>> > > > > > > > On 20 June 2012 01:10, Emil Lenngren < >>>> emil.lenngren at ...626...> >>>> > > > > wrote: >>>> > > > > > > > >>>> > > > > > > > > Is revision #4851 useful for you? >>>> > > > > > > > > You can now convert functions in the current running >>>> class to >>>> > > > > > pointers. >>>> > > > > > > > > >>>> > > > > > > > > /Emil >>>> > > > > > > > > >>>> > > > > > > > > 2012/6/19 Emil Lenngren >>>> > > > > > > > > >>>> > > > > > > > > > It should work in the latest revision :) >>>> > > > > > > > > > >>>> > > > > > > > > > >>>> > > > > > > > > > 2012/6/19 Emil Lenngren >>>> > > > > > > > > > >>>> > > > > > > > > >> If you want a quick workaround, you can have non-fast >>>> > method >>>> > > > > that >>>> > > > > > > > > creates >>>> > > > > > > > > >> a callback, and immediately returns it, like: >>>> > > > > > > > > >> >>>> > > > > > > > > >> Private Function GenerateCallback() As Pointer >>>> > > > > > > > > >> 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 >>>> > > > > > > > > >> >>>> > > > > > > > > >>> No problem, I'm glad to help making Gambas more >>>> robust, >>>> > > when >>>> > > > > > ever I >>>> > > > > > > > > have >>>> > > > > > > > > >>> time to do so! >>>> > > > > > > > > >>> And testing things seems to be easy contribution for >>>> > me... >>>> > > > > > > > > >>> >>>> > > > > > > > > >>> My project has about 120 000 lines of code. And I >>>> try JIT >>>> > > > with >>>> > > > > > > every >>>> > > > > > > > > >>> module >>>> > > > > > > > > >>> and class of it. >>>> > > > > > > > > >>> So I think I will find more bugs... But in some >>>> point I >>>> > > must >>>> > > > > wait >>>> > > > > > > > > support >>>> > > > > > > > > >>> for callbacks to finish that. >>>> > > > > > > > > >>> >>>> > > > > > > > > >>> Jussi >>>> > > > > > > > > >>> >>>> > > > > > > > > >>> >>>> > > > > > > > > >>> >>>> > > > > > > > > >>> On 19 June 2012 21:58, Emil Lenngren < >>>> > > > emil.lenngren at ...626...> >>>> > > > > > > > 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 < jussi.lahtinen at ...626... >>>> > >>>> > > > > > > > > >>> > >>>> > > > > > > > > >>> > > More bugs... >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > > Make shared library (just dummy example [or just >>>> use >>>> > > > binary >>>> > > > > > > that >>>> > > > > > > > is >>>> > > > > > > > > >>> > > included with project source]); >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > > #include >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > > int yEta(int x1, int y1, int x2, int y2) >>>> > > > > > > > > >>> > > {return (int) hypot(x1-x2,y1-y2);} >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > > Then run the attached project. >>>> > > > > > > > > >>> > > With JIT, number of arguments is counted wrong. >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > > Jussi >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > > On 19 June 2012 21:02, Jussi Lahtinen < >>>> > > > > > > jussi.lahtinen at ...626...> >>>> > > > > > > > > >>> wrote: >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > > > Yes, it works now! >>>> > > > > > > > > >>> > > > >>>> > > > > > > > > >>> > > > Jussi >>>> > > > > > > > > >>> > > > >>>> > > > > > > > > >>> > > > >>>> > > > > > > > > >>> > > > >>>> > > > > > > > > >>> > > > >>>> > > > > > > > > >>> > > > On 18 June 2012 22:34, Emil Lenngren < >>>> > > > > > > emil.lenngren at ...626...> >>>> > > > > > > > > >>> wrote: >>>> > > > > > > > > >>> > > > >>>> > > > > > > > > >>> > > >> Does it work in revision #4847? >>>> > > > > > > > > >>> > > >> >>>> > > > > > > > > >>> > > >> /Emil >>>> > > > > > > > > >>> > > >> >>>> > > > > > > > > >>> > > >> 2012/6/18 Jussi Lahtinen < >>>> > jussi.lahtinen at ...626...> >>>> > > > > > > > > >>> > > >> >>>> > > > > > > > > >>> > > >> > 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 || Addr == 0) && >>>> > > > > "GlobalMapping >>>> > > > > > > > > already >>>> > > > > > > > > >>> > > >> > established!"' failed. >>>> > > > > > > > > >>> > > >> > >>>> > > > > > > > > >>> > > >> > Program received signal SIGABRT, Aborted. >>>> > > > > > > > > >>> > > >> > 0x00007ffff7130445 in __GI_raise >>>> (sig=>>> > > > out>) >>>> > > > > > > > > >>> > > >> > at >>>> ../nptl/sysdeps/unix/sysv/linux/raise.c:64 >>>> > > > > > > > > >>> > > >> > 64 >>>> ../nptl/sysdeps/unix/sysv/linux/raise.c: >>>> > No >>>> > > > such >>>> > > > > > > file >>>> > > > > > > > or >>>> > > > > > > > > >>> > > >> directory. >>>> > > > > > > > > >>> > > >> > (gdb) bt >>>> > > > > > > > > >>> > > >> > #0 0x00007ffff7130445 in __GI_raise >>>> > > (sig=>>> > > > > > out>) >>>> > > > > > > > > >>> > > >> > at >>>> ../nptl/sysdeps/unix/sysv/linux/raise.c:64 >>>> > > > > > > > > >>> > > >> > #1 0x00007ffff7133bab in __GI_abort () at >>>> > > > abort.c:91 >>>> > > > > > > > > >>> > > >> > #2 0x00007ffff712910e in __assert_fail_base >>>> > > > > > > (fmt=>>> > > > > > > > > >>> out>, >>>> > > > > > > > > >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || >>>> > Addr >>>> > > == >>>> > > > > 0) >>>> > > > > > && >>>> > > > > > > > > >>> > > >> \"GlobalMapping >>>> > > > > > > > > >>> > > >> > already established!\"", file=0x7fffed43c55b >>>> > > > > > > > > >>> "ExecutionEngine.cpp", >>>> > > > > > > > > >>> > > >> > line=, function=>>> > out>) >>>> > > > at >>>> > > > > > > > > >>> assert.c:94 >>>> > > > > > > > > >>> > > >> > #3 0x00007ffff71291b2 in >>>> __GI___assert_fail ( >>>> > > > > > > > > >>> > > >> > assertion=0x7fffed43c3b8 "(CurVal == 0 || >>>> > Addr >>>> > > == >>>> > > > > 0) >>>> > > > > > && >>>> > > > > > > > > >>> > > >> \"GlobalMapping >>>> > > > > > > > > >>> > > >> > already established!\"", file=0x7fffed43c55b >>>> > > > > > > > > >>> "ExecutionEngine.cpp", >>>> > > > > > > > > >>> > > >> > line=165, >>>> > > > > > > > > >>> > > >> > function=0x7fffed43d7a0 "void >>>> > > > > > > > > >>> > > >> > >>>> llvm::ExecutionEngine::addGlobalMapping(const >>>> > > > > > > > > >>> llvm::GlobalValue*, >>>> > > > > > > > > >>> > > >> void*)") >>>> > > > > > > > > >>> > > >> > at assert.c:103 >>>> > > > > > > > > >>> > > >> > #4 0x00007fffeca84aae in >>>> > > > > > > > > >>> > > >> > >>>> > > > > > llvm::ExecutionEngine::addGlobalMapping(llvm::GlobalValue >>>> > > > > > > > > >>> const*, >>>> > > > > > > > > >>> > > >> void*) () >>>> > > > > > > > > >>> > > >> > from /usr/lib/libLLVM-3.2svn.so >>>> > > > > > > > > >>> > > >> > #5 0x00007fffedc85ec7 in >>>> register_global_symbol >>>> > > > > > > > > >>> (address=0x40ebf6, >>>> > > > > > > > > >>> > > >> > value=0x8b2500, name=...) at >>>> > > jit_codegen.cpp:242 >>>> > > > > > > > > >>> > > >> > #6 register_global_symbol (name=..., >>>> > > > value=0x8b2500, >>>> > > > > > > > > >>> > > address=0x40ebf6) >>>> > > > > > > > > >>> > > >> > at jit_codegen.cpp:240 >>>> > > > > > > > > >>> > > >> > #7 0x00007fffedc8600e in >>>> > > get_global_function_real ( >>>> > > > > > > > > >>> > > >> > name=0x7fffedcb9e57 "CLASS_free", >>>> > > func=0x40ebf6, >>>> > > > > > > > > >>> ret=>>> > > > > > > > > >>> > > out>, >>>> > > > > > > > > >>> > > >> > args=, vararg=>>> out>) >>>> > > at >>>> > > > > > > > > >>> > > jit_codegen.cpp:276 >>>> > > > > > > > > >>> > > >> > #8 0x00007fffedc8a9dc in operator() >>>> > > > (this=>>> > > > > > > > > pointer>) >>>> > > > > > > > > >>> > > >> > at jit_codegen.cpp:991 >>>> > > > > > > > > >>> > > >> > ---Type to continue, or q >>>> to >>>> > > > quit--- >>>> > > > > > > > > >>> > > >> > #9 >>>> > > > > > > > > >>>> gen_if > >>>> > > > > > > > > >>> > > >> (func=..., >>>> > > > > > > > > >>> > > >> > cond=0x8999d0, if_name=, >>>> > > > > > > > > cont_name=>>> > > > > > > > > >>> > out>) >>>> > > > > > > > > >>> > > >> > at jit_codegen.cpp:562 >>>> > > > > > > > > >>> > > >> > #10 unref_object_no_nullcheck >>>> (ptr=0x898ca8) at >>>> > > > > > > > > >>> jit_codegen.cpp:993 >>>> > > > > > > > > >>> > > >> > #11 0x00007fffedc9a44c in codegen_get_value >>>> > > > > > > (this=0x8abba0) >>>> > > > > > > > > >>> > > >> > at jit_codegen.cpp:1566 >>>> > > > > > > > > >>> > > >> > #12 >>>> > > > > PushPureObjectVariableExpression::codegen_get_value >>>> > > > > > > > > >>> > > (this=0x8abba0) >>>> > > > > > > > > >>> > > >> > at jit_codegen.cpp:1545 >>>> > > > > > > > > >>> > > >> > #13 0x00007fffedca3f0d in >>>> > > > > > > SubrExpression::codegen_get_value >>>> > > > > > > > > >>> > > >> (this=0x86a450) >>>> > > > > > > > > >>> > > >> > at jit_codegen.cpp:5898 >>>> > > > > > > > > >>> > > >> > #14 0x00007fffedc8c21d in >>>> > DropExpression::codegen >>>> > > > > > > > > >>> (this=0x86a4a0) >>>> > > > > > > > > >>> > > >> > at jit_codegen.cpp:1257 >>>> > > > > > > > > >>> > > >> > #15 0x00007fffedca6fa7 in >>>> codegen_statements () >>>> > at >>>> > > > > > > > > >>> > jit_codegen.cpp:855 >>>> > > > > > > > > >>> > > >> > #16 JIT_codegen () at jit_codegen.cpp:6490 >>>> > > > > > > > > >>> > > >> > #17 0x00007fffedcadc64 in >>>> > JIT_compile_and_execute >>>> > > () >>>> > > > > at >>>> > > > > > > > > >>> > > >> jit_compile.cpp:119 >>>> > > > > > > > > >>> > > >> > #18 0x000000000040a2fb in >>>> EXEC_jit_function_loop >>>> > > () >>>> > > > at >>>> > > > > > > > > >>> > gbx_exec.c:871 >>>> > > > > > > > > >>> > > >> > #19 0x000000000040ab22 in >>>> EXEC_function_real () >>>> > at >>>> > > > > > > > > >>> gbx_exec.c:862 >>>> > > > > > > > > >>> > > >> > #20 0x000000000041e86d in raise_event >>>> > > > > > (observer=>>> > > > > > > > > out>, >>>> > > > > > > > > >>> > > >> > object=, >>>> func_id=>>> > > out>, >>>> > > > > > > > > >>> > nparam=>>> > > > > > > > > >>> > > >> out>) >>>> > > > > > > > > >>> > > >> > at gbx_api.c:711 >>>> > > > > > > > > >>> > > >> > #21 0x000000000041efa6 in GB_Raise >>>> > > (object=0x8b95c8, >>>> > > > > > > > > >>> event_id=16, >>>> > > > > > > > > >>> > > >> nparam=0) >>>> > > > > > > > > >>> > > >> > at gbx_api.c:842 >>>> > > > > > > > > >>> > > >> > #22 0x00007ffff5fce3d3 in >>>> gb_raise_button_Click >>>> > > > > > > > > >>> (sender=>>> > > > > > > > > >>> > > out>) >>>> > > > > > > > > >>> > > >> > >>>> > > > > > > > > >>> > > >> > Jussi >>>> > > > > > > > > >>> > > >> > >>>> > > > > > > > > >>> > > >> > >>>> > > > > > > > > >>> > > >> > >>>> > > > > > > > > >>> > > >> > On 18 June 2012 22:08, Emil Lenngren < >>>> > > > > > > > emil.lenngren at ...626... >>>> > > > > > > > > > >>>> > > > > > > > > >>> > 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.lahtinen at ...626...> >>>> > > > > > > > > >>> > > >> > > >>>> > > > > > > > > >>> > > >> > > > OK, I found it. See attachment. >>>> > > > > > > > > >>> > > >> > > > >>>> > > > > > > > > >>> > > >> > > > Jussi >>>> > > > > > > > > >>> > > >> > > > >>>> > > > > > > > > >>> > > >> > > > >>>> > > > > > > > > >>> > > >> > > > >>>> > > > > > > > > >>> > > >> > > > >>>> > > > > > > > > >>> > > >> > > > On 17 June 2012 23:36, Jussi Lahtinen < >>>> > > > > > > > > >>> jussi.lahtinen at ...626... >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > > >> > 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::addGlobalMapping(const >>>> > > > > > > > > >>> > > llvm::GlobalValue*, >>>> > > > > > > > > >>> > > >> > > void*): >>>> > > > > > > > > >>> > > >> > > > > Assertion `(CurVal == 0 || Addr == 0) >>>> && >>>> > > > > > > > "GlobalMapping >>>> > > > > > > > > >>> > 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.lenngren at ...626... >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > > >> > wrote: >>>> > > > > > > > > >>> > > >> > > > > >>>> > > > > > > > > >>> > > >> > > > >> It should be fixed in revision #4843! >>>> > > > > > > > > >>> > > >> > > > >> >>>> > > > > > > > > >>> > > >> > > > >> /Emil >>>> > > > > > > > > >>> > > >> > > > >> >>>> > > > > > > > > >>> > > >> > > > >> 2012/6/17 Jussi Lahtinen < >>>> > > > > > jussi.lahtinen at ...626... >>>> > > > > > > > >>>> > > > > > > > > >>> > > >> > > > >> >>>> > > > > > > > > >>> > > >> > > > >> > Yes, it really works now. And I >>>> found >>>> > a >>>> > > > lot >>>> > > > > of >>>> > > > > > > > > errors >>>> > > > > > > > > >>> by >>>> > > > > > > > > >>> > me. >>>> > > > > > > > > >>> > > >> > > > >> > >>>> > > > > > > > > >>> > > >> > > > >> > But for some reason JIT raises >>>> compare >>>> > > > method >>>> > > > > > > when >>>> > > > > > > > it >>>> > > > > > > > > >>> > > >> shouldn't, >>>> > > > > > > > > >>> > > >> > > > >> > and when I tried to isolate the >>>> > problem I >>>> > > > got >>>> > > > > > > crash >>>> > > > > > > > > >>> (signal >>>> > > > > > > > > >>> > > >> 11). >>>> > > > > > > > > >>> > > >> > > > >> > This seems not to be related to >>>> compare >>>> > > > > method, >>>> > > > > > > so >>>> > > > > > > > > just >>>> > > > > > > > > >>> > > ignore >>>> > > > > > > > > >>> > > >> > name >>>> > > > > > > > > >>> > > >> > > of >>>> > > > > > > > > >>> > > >> > > > >> the >>>> > > > > > > > > >>> > > >> > > > >> > attached project. >>>> > > > > > > > > >>> > > >> > > > >> > I will look it more closely when >>>> this >>>> > is >>>> > > > > fixed. >>>> > > > > > > > > >>> > > >> > > > >> > >>>> > > > > > > > > >>> > > >> > > > >> > Jussi >>>> > > > > > > > > >>> > > >> > > > >> > >>>> > > > > > > > > >>> > > >> > > > >> > >>>> > > > > > > > > >>> > > >> > > > >> > >>>> > > > > > > > > >>> > > >> > > > >> > >>>> > > > > > > > > >>> > > >> > > > >> > On 17 June 2012 19:01, Emil >>>> Lenngren < >>>> > > > > > > > > >>> > > emil.lenngren at ...626...> >>>> > > > > > > > > >>> > > >> > > wrote: >>>> > > > > > > > > >>> > > >> > > > >> > >>>> > > > > > > > > >>> > > >> > > > >> > > Yes, it works now :) >>>> > > > > > > > > >>> > > >> > > > >> > > >>>> > > > > > > > > >>> > > >> > > > >> > > 2012/6/17 Beno?t Minisini < >>>> > > > > > > > > >>> gambas at ...1...> >>>> > > > > > > > > >>> > > >> > > > >> > > >>>> > > > > > > > > >>> > > >> > > > >> > > > Le 17/06/2012 02:54, Jussi >>>> > Lahtinen a >>>> > > > > > ?crit : >>>> > > > > > > > > >>> > > >> > > > >> > > > > Yeah, terminal gives other >>>> > > > position... >>>> > > > > > > > > >>> > > >> > > > >> > > > > With my actual project, I got >>>> > error >>>> > > > > > > message; >>>> > > > > > > > > >>> wanted >>>> > > > > > > > > >>> > > >> string, >>>> > > > > > > > > >>> > > >> > > got >>>> > > > > > > > > >>> > > >> > > > >> > > > > blaablaaClass instead. >>>> > > > > > > > > >>> > > >> > > > >> > > > > And that error message comes >>>> from >>>> > > > > > function >>>> > > > > > > > > (from >>>> > > > > > > > > >>> > other >>>> > > > > > > > > >>> > > >> > module >>>> > > > > > > > > >>> > > >> > > > >> without >>>> > > > > > > > > >>> > > >> > > > >> > > > Fast) >>>> > > > > > > > > >>> > > >> > > > >> > > > > which takes two objects are >>>> > > > parameters. >>>> > > > > > > > > >>> > > >> > > > >> > > > > >>>> > > > > > > > > >>> > > >> > > > >> > > > > So either terminal isn't >>>> showing >>>> > > the >>>> > > > > real >>>> > > > > > > > > stack, >>>> > > > > > > > > >>> or >>>> > > > > > > > > >>> > > >> there is >>>> > > > > > > > > >>> > > >> > > > >> > something >>>> > > > > > > > > >>> > > >> > > > >> > > > else >>>> > > > > > > > > >>> > > >> > > > >> > > > > wrong... >>>> > > > > > > > > >>> > > >> > > > >> > > > > >>>> > > > > > > > > >>> > > >> > > > >> > > > > But my time is up, I'll see >>>> it >>>> > > > tomorrow >>>> > > > > > > (with >>>> > > > > > > > > >>> latest >>>> > > > > > > > > >>> > > >> > > revision). >>>> > > > > > > > > >>> > > >> > > > >> > > > > >>>> > > > > > > > > >>> > > >> > > > >> > > > > Jussi >>>> > > > > > > > > >>> > > >> > > > >> > > > > >>>> > > > > > > > > >>> > > >> > > > >> > > > > >>>> > > > > > > > > >>> > > >> > > > >> > > > >>>> > > > > > > > > >>> > > >> > > > >> > > > The incorrect line number >>>> problem, >>>> > as >>>> > > > > > > reported >>>> > > > > > > > by >>>> > > > > > > > > >>> the >>>> > > > > > > > > >>> > > >> debugger >>>> > > > > > > > > >>> > > >> > > > (and >>>> > > > > > > > > >>> > > >> > > > >> not >>>> > > > > > > > > >>> > > >> > > > >> > > > when you run the program >>>> > normally!), >>>> > > > > should >>>> > > > > > > be >>>> > > > > > > > > >>> fixed in >>>> > > > > > > > > >>> > > >> > revision >>>> > > > > > > > > >>> > > >> > > > >> #4841. >>>> > > > > > > > > >>> > > >> > > > >> > > > >>>> > > > > > > > > >>> > > >> > > > >> > > > Regards, >>>> > > > > > > > > >>> > > >> > > > >> > > > >>>> > > > > > > > > >>> > > >> > > > >> > > > -- >>>> > > > > > > > > >>> > > >> > > > >> > > > Beno?t Minisini >>>> > > > > > > > > >>> > > >> > > > >> > > > >>>> > > > > > > > > >>> > > >> > > > >> > > > >>>> > > > > > > > > >>> > > >> > > > >> > > > >>>> > > > > > > > > >>> > > >> > > > >> > > >>>> > > > > > > > > >>> > > >> > > > >> > >>>> > > > > > > > > >>> > > >> > > > >> >>>> > > > > > > > > >>> > > >> > > > >>>> > > > > > > > > >>> > > >> > > >>>> > > > > > > > > >>> > > >> > >>>> > > > > > > > > >>> > > >> >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > >>>> > > > > > > > > >>> >>>> > > > > > > > > >>>> > > > > > > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > >>>> > >>>> ------------------------------------------------------------------------------ >>>> > > > > > > > > >>> > > >> > > > >> > > > Live Security Virtual >>>> Conference >>>> > > > > > > > > >>> > > >> > > > >> > > > Exclusive live event will >>>> cover all >>>> > > the >>>> > > > > > ways >>>> > > > > > > > > >>> today's >>>> > > > > > > > > >>> > > >> security >>>> > > > > > > > > >>> > > >> > > and >>>> > > > > > > > > >>> > > >> > > > >> > > > threat landscape has changed >>>> and >>>> > how >>>> > > IT >>>> > > > > > > > managers >>>> > > > > > > > > >>> can >>>> > > > > > > > > >>> > > >> respond. >>>> > > > > > > > > >>> > > >> > > > >> > Discussions >>>> > > > > > > > > >>> > > >> > > > >> > > > will include endpoint security, >>>> > > mobile >>>> > > > > > > security >>>> > > > > > > > > >>> and the >>>> > > > > > > > > >>> > > >> latest >>>> > > > > > > > > >>> > > >> > > in >>>> > > > > > > > > >>> > > >> > > > >> > malware >>>> > > > > > > > > >>> > > >> > > > >> > > > threats. >>>> > > > > > > > > >>> > > >> > > > >>>> > > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> > > > > > > > > >>> > > >> > > > >> > > > >>>> > > > > > > _______________________________________________ >>>> > > > > > > > > >>> > > >> > > > >> > > > Gambas-user mailing list >>>> > > > > > > > > >>> > > >> > > > >> > > > >>>> Gambas-user at lists.sourceforge.net >>>> > > > > > > > > >>> > > >> > > > >> > > > >>>> > > > > > > > > >>> > >>>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> > > > > > > > > >>> > > >> > > > >> > > > >>>> > > > > > > > > >>> > > >> > > > >> > > >>>> > > > > > > > > >>> > > >> > > > >> > > >>>> > > > > > > > > >>> > > >> > > > >> > >>>> > > > > > > > > >>> > > >> > > > >> >>>> > > > > > > > > >>> > > >> > > > >>>> > > > > > > > > >>> > > >> > > >>>> > > > > > > > > >>> > > >> > >>>> > > > > > > > > >>> > > >> >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > >>>> > > > > > > > > >>> >>>> > > > > > > > > >>>> > > > > > > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > >>>> > >>>> ------------------------------------------------------------------------------ >>>> > > > > > > > > >>> > > >> > > > >> > > Live Security Virtual Conference >>>> > > > > > > > > >>> > > >> > > > >> > > Exclusive live event will cover >>>> all >>>> > the >>>> > > > > ways >>>> > > > > > > > > today's >>>> > > > > > > > > >>> > > security >>>> > > > > > > > > >>> > > >> > and >>>> > > > > > > > > >>> > > >> > > > >> > > threat landscape has changed and >>>> how >>>> > IT >>>> > > > > > > managers >>>> > > > > > > > > can >>>> > > > > > > > > >>> > > respond. >>>> > > > > > > > > >>> > > >> > > > >> Discussions >>>> > > > > > > > > >>> > > >> > > > >> > > will include endpoint security, >>>> > mobile >>>> > > > > > security >>>> > > > > > > > and >>>> > > > > > > > > >>> the >>>> > > > > > > > > >>> > > >> latest >>>> > > > > > > > > >>> > > >> > in >>>> > > > > > > > > >>> > > >> > > > >> malware >>>> > > > > > > > > >>> > > >> > > > >> > > threats. >>>> > > > > > > > > >>> > > >> > > >>>> > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> > > > > > > > > >>> > > >> > > > >> > > >>>> > > > > > _______________________________________________ >>>> > > > > > > > > >>> > > >> > > > >> > > Gambas-user mailing list >>>> > > > > > > > > >>> > > >> > > > >> > > >>>> Gambas-user at lists.sourceforge.net >>>> > > > > > > > > >>> > > >> > > > >> > > >>>> > > > > > > > > >>> >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> > > > > > > > > >>> > > >> > > > >> > > >>>> > > > > > > > > >>> > > >> > > > >> > >>>> > > > > > > > > >>> > > >> > > > >> > >>>> > > > > > > > > >>> > > >> > > > >> > >>>> > > > > > > > > >>> > > >> > > > >> >>>> > > > > > > > > >>> > > >> > > > >>>> > > > > > > > > >>> > > >> > > >>>> > > > > > > > > >>> > > >> > >>>> > > > > > > > > >>> > > >> >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > >>>> > > > > > > > > >>> >>>> > > > > > > > > >>>> > > > > > > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > >>>> > >>>> ------------------------------------------------------------------------------ >>>> > > > > > > > > >>> > > >> > > > >> > Live Security Virtual Conference >>>> > > > > > > > > >>> > > >> > > > >> > Exclusive live event will cover >>>> all the >>>> > > > ways >>>> > > > > > > > today's >>>> > > > > > > > > >>> > security >>>> > > > > > > > > >>> > > >> and >>>> > > > > > > > > >>> > > >> > > > >> > threat landscape has changed and >>>> how IT >>>> > > > > > managers >>>> > > > > > > > can >>>> > > > > > > > > >>> > respond. >>>> > > > > > > > > >>> > > >> > > > >> Discussions >>>> > > > > > > > > >>> > > >> > > > >> > will include endpoint security, >>>> mobile >>>> > > > > security >>>> > > > > > > and >>>> > > > > > > > > the >>>> > > > > > > > > >>> > > latest >>>> > > > > > > > > >>> > > >> in >>>> > > > > > > > > >>> > > >> > > > >> malware >>>> > > > > > > > > >>> > > >> > > > >> > threats. >>>> > > > > > > > > >>> > > >> > >>>> > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> > > > > > > > > >>> > > >> > > > >> > >>>> > > > > _______________________________________________ >>>> > > > > > > > > >>> > > >> > > > >> > Gambas-user mailing list >>>> > > > > > > > > >>> > > >> > > > >> > Gambas-user at lists.sourceforge.net >>>> > > > > > > > > >>> > > >> > > > >> > >>>> > > > > > > > > >>> >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> > > > > > > > > >>> > > >> > > > >> > >>>> > > > > > > > > >>> > > >> > > > >> > >>>> > > > > > > > > >>> > > >> > > > >> >>>> > > > > > > > > >>> > > >> > > > >> >>>> > > > > > > > > >>> > > >> > > > >>>> > > > > > > > > >>> > > >> > > >>>> > > > > > > > > >>> > > >> > >>>> > > > > > > > > >>> > > >> >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > >>>> > > > > > > > > >>> >>>> > > > > > > > > >>>> > > > > > > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > >>>> > >>>> ------------------------------------------------------------------------------ >>>> > > > > > > > > >>> > > >> > > > >> Live Security Virtual Conference >>>> > > > > > > > > >>> > > >> > > > >> Exclusive live event will cover all >>>> the >>>> > > ways >>>> > > > > > > today's >>>> > > > > > > > > >>> security >>>> > > > > > > > > >>> > > and >>>> > > > > > > > > >>> > > >> > > > >> threat landscape has changed and how >>>> IT >>>> > > > > managers >>>> > > > > > > can >>>> > > > > > > > > >>> respond. >>>> > > > > > > > > >>> > > >> > > > Discussions >>>> > > > > > > > > >>> > > >> > > > >> will include endpoint security, >>>> mobile >>>> > > > security >>>> > > > > > and >>>> > > > > > > > the >>>> > > > > > > > > >>> > latest >>>> > > > > > > > > >>> > > in >>>> > > > > > > > > >>> > > >> > > > malware >>>> > > > > > > > > >>> > > >> > > > >> threats. >>>> > > > > > > > > >>> > > >> >>>> > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> > > > > > > > > >>> > > >> > > > >> >>>> > > > _______________________________________________ >>>> > > > > > > > > >>> > > >> > > > >> Gambas-user mailing list >>>> > > > > > > > > >>> > > >> > > > >> Gambas-user at lists.sourceforge.net >>>> > > > > > > > > >>> > > >> > > > >> >>>> > > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> > > > > > > > > >>> > > >> > > > >> >>>> > > > > > > > > >>> > > >> > > > > >>>> > > > > > > > > >>> > > >> > > > > >>>> > > > > > > > > >>> > > >> > > > >>>> > > > > > > > > >>> > > >> > > > >>>> > > > > > > > > >>> > > >> > > > >>>> > > > > > > > > >>> > > >> > > >>>> > > > > > > > > >>> > > >> > >>>> > > > > > > > > >>> > > >> >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > >>>> > > > > > > > > >>> >>>> > > > > > > > > >>>> > > > > > > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > >>>> > >>>> ------------------------------------------------------------------------------ >>>> > > > > > > > > >>> > > >> > > > Live Security Virtual Conference >>>> > > > > > > > > >>> > > >> > > > Exclusive live event will cover all the >>>> ways >>>> > > > > today's >>>> > > > > > > > > >>> security >>>> > > > > > > > > >>> > and >>>> > > > > > > > > >>> > > >> > > > threat landscape has changed and how IT >>>> > > managers >>>> > > > > can >>>> > > > > > > > > >>> respond. >>>> > > > > > > > > >>> > > >> > Discussions >>>> > > > > > > > > >>> > > >> > > > will include endpoint security, mobile >>>> > > security >>>> > > > > and >>>> > > > > > > the >>>> > > > > > > > > >>> latest >>>> > > > > > > > > >>> > in >>>> > > > > > > > > >>> > > >> > malware >>>> > > > > > > > > >>> > > >> > > > threats. >>>> > > > > > > > > >>> > > >>>> > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> > > > > > > > > >>> > > >> > > > >>>> > > _______________________________________________ >>>> > > > > > > > > >>> > > >> > > > Gambas-user mailing list >>>> > > > > > > > > >>> > > >> > > > Gambas-user at lists.sourceforge.net >>>> > > > > > > > > >>> > > >> > > > >>>> > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> > > > > > > > > >>> > > >> > > > >>>> > > > > > > > > >>> > > >> > > > >>>> > > > > > > > > >>> > > >> > > >>>> > > > > > > > > >>> > > >> > > >>>> > > > > > > > > >>> > > >> > >>>> > > > > > > > > >>> > > >> >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > >>>> > > > > > > > > >>> >>>> > > > > > > > > >>>> > > > > > > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > >>>> > >>>> ------------------------------------------------------------------------------ >>>> > > > > > > > > >>> > > >> > > Live Security Virtual Conference >>>> > > > > > > > > >>> > > >> > > Exclusive live event will cover all the >>>> ways >>>> > > > today's >>>> > > > > > > > > security >>>> > > > > > > > > >>> and >>>> > > > > > > > > >>> > > >> > > threat landscape has changed and how IT >>>> > managers >>>> > > > can >>>> > > > > > > > > respond. >>>> > > > > > > > > >>> > > >> Discussions >>>> > > > > > > > > >>> > > >> > > will include endpoint security, mobile >>>> > security >>>> > > > and >>>> > > > > > the >>>> > > > > > > > > >>> latest in >>>> > > > > > > > > >>> > > >> malware >>>> > > > > > > > > >>> > > >> > > threats. >>>> > > > > > > > > >>> > >>>> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> > > > > > > > > >>> > > >> > > >>>> > _______________________________________________ >>>> > > > > > > > > >>> > > >> > > Gambas-user mailing list >>>> > > > > > > > > >>> > > >> > > Gambas-user at lists.sourceforge.net >>>> > > > > > > > > >>> > > >> > > >>>> > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> > > > > > > > > >>> > > >> > > >>>> > > > > > > > > >>> > > >> > >>>> > > > > > > > > >>> > > >> > >>>> > > > > > > > > >>> > > >> >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > >>>> > > > > > > > > >>> >>>> > > > > > > > > >>>> > > > > > > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > >>>> > >>>> ------------------------------------------------------------------------------ >>>> > > > > > > > > >>> > > >> > Live Security Virtual Conference >>>> > > > > > > > > >>> > > >> > Exclusive live event will cover all the ways >>>> > > today's >>>> > > > > > > > security >>>> > > > > > > > > >>> and >>>> > > > > > > > > >>> > > >> > threat landscape has changed and how IT >>>> managers >>>> > > can >>>> > > > > > > > respond. >>>> > > > > > > > > >>> > > >> Discussions >>>> > > > > > > > > >>> > > >> > will include endpoint security, mobile >>>> security >>>> > > and >>>> > > > > the >>>> > > > > > > > latest >>>> > > > > > > > > >>> in >>>> > > > > > > > > >>> > > >> malware >>>> > > > > > > > > >>> > > >> > threats. >>>> > > > > > > > > >>> >>>> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> > > > > > > > > >>> > > >> > >>>> _______________________________________________ >>>> > > > > > > > > >>> > > >> > Gambas-user mailing list >>>> > > > > > > > > >>> > > >> > Gambas-user at lists.sourceforge.net >>>> > > > > > > > > >>> > > >> > >>>> > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> > > > > > > > > >>> > > >> > >>>> > > > > > > > > >>> > > >> >>>> > > > > > > > > >>> > > >> >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > >>>> > > > > > > > > >>> >>>> > > > > > > > > >>>> > > > > > > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > >>>> > >>>> ------------------------------------------------------------------------------ >>>> > > > > > > > > >>> > > >> Live Security Virtual Conference >>>> > > > > > > > > >>> > > >> Exclusive live event will cover all the ways >>>> > today's >>>> > > > > > > security >>>> > > > > > > > > and >>>> > > > > > > > > >>> > > >> threat landscape has changed and how IT >>>> managers >>>> > can >>>> > > > > > > respond. >>>> > > > > > > > > >>> > > Discussions >>>> > > > > > > > > >>> > > >> will include endpoint security, mobile >>>> security >>>> > and >>>> > > > the >>>> > > > > > > latest >>>> > > > > > > > > in >>>> > > > > > > > > >>> > > malware >>>> > > > > > > > > >>> > > >> threats. >>>> > > > > > > > > >>> >>>> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> > > > > > > > > >>> > > >> >>>> _______________________________________________ >>>> > > > > > > > > >>> > > >> Gambas-user mailing list >>>> > > > > > > > > >>> > > >> Gambas-user at lists.sourceforge.net >>>> > > > > > > > > >>> > > >> >>>> > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> > > > > > > > > >>> > > >> >>>> > > > > > > > > >>> > > > >>>> > > > > > > > > >>> > > > >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > >>>> > > > > > > > > >>> >>>> > > > > > > > > >>>> > > > > > > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > >>>> > >>>> ------------------------------------------------------------------------------ >>>> > > > > > > > > >>> > > Live Security Virtual Conference >>>> > > > > > > > > >>> > > Exclusive live event will cover all the ways >>>> today's >>>> > > > > security >>>> > > > > > > and >>>> > > > > > > > > >>> > > threat landscape has changed and how IT managers >>>> can >>>> > > > > respond. >>>> > > > > > > > > >>> Discussions >>>> > > > > > > > > >>> > > will include endpoint security, mobile security >>>> and >>>> > the >>>> > > > > > latest >>>> > > > > > > in >>>> > > > > > > > > >>> malware >>>> > > > > > > > > >>> > > threats. >>>> > > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> > > > > > > > > >>> > > _______________________________________________ >>>> > > > > > > > > >>> > > Gambas-user mailing list >>>> > > > > > > > > >>> > > Gambas-user at lists.sourceforge.net >>>> > > > > > > > > >>> > > >>>> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > > >>>> > > > > > > > > >>> > >>>> > > > > > > > > >>> > >>>> > > > > > > > > >>> >>>> > > > > > > > > >>>> > > > > > > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > >>>> > >>>> ------------------------------------------------------------------------------ >>>> > > > > > > > > >>> > Live Security Virtual Conference >>>> > > > > > > > > >>> > Exclusive live event will cover all the ways >>>> today's >>>> > > > security >>>> > > > > > and >>>> > > > > > > > > >>> > threat landscape has changed and how IT managers >>>> can >>>> > > > respond. >>>> > > > > > > > > >>> Discussions >>>> > > > > > > > > >>> > will include endpoint security, mobile security >>>> and the >>>> > > > > latest >>>> > > > > > in >>>> > > > > > > > > >>> malware >>>> > > > > > > > > >>> > threats. >>>> > > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> > > > > > > > > >>> > _______________________________________________ >>>> > > > > > > > > >>> > Gambas-user mailing list >>>> > > > > > > > > >>> > Gambas-user at lists.sourceforge.net >>>> > > > > > > > > >>> > >>>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> > > > > > > > > >>> > >>>> > > > > > > > > >>> >>>> > > > > > > > > >>> >>>> > > > > > > > > >>>> > > > > > > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > >>>> > >>>> ------------------------------------------------------------------------------ >>>> > > > > > > > > >>> Live Security Virtual Conference >>>> > > > > > > > > >>> Exclusive live event will cover all the ways today's >>>> > > security >>>> > > > > and >>>> > > > > > > > > >>> threat landscape has changed and how IT managers can >>>> > > respond. >>>> > > > > > > > > Discussions >>>> > > > > > > > > >>> will include endpoint security, mobile security and >>>> the >>>> > > > latest >>>> > > > > in >>>> > > > > > > > > malware >>>> > > > > > > > > >>> threats. >>>> > > > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> > > > > > > > > >>> _______________________________________________ >>>> > > > > > > > > >>> Gambas-user mailing list >>>> > > > > > > > > >>> Gambas-user at lists.sourceforge.net >>>> > > > > > > > > >>> >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> > > > > > > > > >>> >>>> > > > > > > > > >> >>>> > > > > > > > > >> >>>> > > > > > > > > > >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > > > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > >>>> > >>>> ------------------------------------------------------------------------------ >>>> > > > > > > > > Live Security Virtual Conference >>>> > > > > > > > > Exclusive live event will cover all the ways today's >>>> security >>>> > > and >>>> > > > > > > > > threat landscape has changed and how IT managers can >>>> respond. >>>> > > > > > > Discussions >>>> > > > > > > > > will include endpoint security, mobile security and the >>>> > latest >>>> > > in >>>> > > > > > > malware >>>> > > > > > > > > threats. >>>> > > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> > > > > > > > > _______________________________________________ >>>> > > > > > > > > Gambas-user mailing list >>>> > > > > > > > > Gambas-user at lists.sourceforge.net >>>> > > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> > > > > > > > > >>>> > > > > > > > >>>> > > > > > > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > >>>> > >>>> ------------------------------------------------------------------------------ >>>> > > > > > > > Live Security Virtual Conference >>>> > > > > > > > Exclusive live event will cover all the ways today's >>>> security >>>> > and >>>> > > > > > > > threat landscape has changed and how IT managers can >>>> respond. >>>> > > > > > Discussions >>>> > > > > > > > will include endpoint security, mobile security and the >>>> latest >>>> > in >>>> > > > > > malware >>>> > > > > > > > threats. >>>> > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> > > > > > > > _______________________________________________ >>>> > > > > > > > Gambas-user mailing list >>>> > > > > > > > Gambas-user at lists.sourceforge.net >>>> > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> > > > > > > > >>>> > > > > > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > >>>> > >>>> ------------------------------------------------------------------------------ >>>> > > > > > > Live Security Virtual Conference >>>> > > > > > > Exclusive live event will cover all the ways today's >>>> security and >>>> > > > > > > threat landscape has changed and how IT managers can respond. >>>> > > > > Discussions >>>> > > > > > > will include endpoint security, mobile security and the >>>> latest in >>>> > > > > malware >>>> > > > > > > threats. >>>> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> > > > > > > _______________________________________________ >>>> > > > > > > Gambas-user mailing list >>>> > > > > > > Gambas-user at lists.sourceforge.net >>>> > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> > > > > > > >>>> > > > > > >>>> > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > >>>> > >>>> ------------------------------------------------------------------------------ >>>> > > > > > Live Security Virtual Conference >>>> > > > > > Exclusive live event will cover all the ways today's security >>>> and >>>> > > > > > threat landscape has changed and how IT managers can respond. >>>> > > > Discussions >>>> > > > > > will include endpoint security, mobile security and the latest >>>> in >>>> > > > malware >>>> > > > > > threats. >>>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> > > > > > _______________________________________________ >>>> > > > > > Gambas-user mailing list >>>> > > > > > Gambas-user at lists.sourceforge.net >>>> > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> > > > > > >>>> > > > > > >>>> > > > > >>>> > > > > >>>> > > > >>>> > > >>>> > >>>> ------------------------------------------------------------------------------ >>>> > > > > Live Security Virtual Conference >>>> > > > > Exclusive live event will cover all the ways today's security and >>>> > > > > threat landscape has changed and how IT managers can respond. >>>> > > Discussions >>>> > > > > will include endpoint security, mobile security and the latest in >>>> > > malware >>>> > > > > threats. >>>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> > > > > _______________________________________________ >>>> > > > > Gambas-user mailing list >>>> > > > > Gambas-user at lists.sourceforge.net >>>> > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> > > > > >>>> > > > >>>> > > > >>>> > > > >>>> > > >>>> > >>>> ------------------------------------------------------------------------------ >>>> > > > Live Security Virtual Conference >>>> > > > Exclusive live event will cover all the ways today's security and >>>> > > > threat landscape has changed and how IT managers can respond. >>>> > Discussions >>>> > > > will include endpoint security, mobile security and the latest in >>>> > malware >>>> > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> > > > _______________________________________________ >>>> > > > Gambas-user mailing list >>>> > > > Gambas-user at lists.sourceforge.net >>>> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> > > > >>>> > > > >>>> > > >>>> > > >>>> > >>>> ------------------------------------------------------------------------------ >>>> > > Live Security Virtual Conference >>>> > > Exclusive live event will cover all the ways today's security and >>>> > > threat landscape has changed and how IT managers can respond. >>>> Discussions >>>> > > will include endpoint security, mobile security and the latest in >>>> malware >>>> > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> > > _______________________________________________ >>>> > > Gambas-user mailing list >>>> > > Gambas-user at lists.sourceforge.net >>>> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> > > >>>> > >>>> > >>>> ------------------------------------------------------------------------------ >>>> > Live Security Virtual Conference >>>> > Exclusive live event will cover all the ways today's security and >>>> > threat landscape has changed and how IT managers can respond. >>>> Discussions >>>> > will include endpoint security, mobile security and the latest in >>>> malware >>>> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> > _______________________________________________ >>>> > Gambas-user mailing list >>>> > Gambas-user at lists.sourceforge.net >>>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> > >>>> >>>> ------------------------------------------------------------------------------ >>>> Live Security Virtual Conference >>>> Exclusive live event will cover all the ways today's security and >>>> threat landscape has changed and how IT managers can respond. Discussions >>>> will include endpoint security, mobile security and the latest in malware >>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >>> >> > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Sat Jun 30 14:40:24 2012 From: vuott at ...325... (Ru Vuott) Date: Sat, 30 Jun 2012 13:40:24 +0100 (BST) Subject: [Gambas-user] Sound: represents a sound wave loaded in memory...... In-Reply-To: <4FEEDCC6.2020200@...1...> Message-ID: <1341060024.80813.YahooMailClassic@...2758...> Yes, excuse me. --- Sab 30/6/12, Beno?t Minisini ha scritto: > Da: Beno?t Minisini > Oggetto: Re: [Gambas-user] Sound: represents a sound wave loaded in memory...... > A: "mailing list for gambas users" > Data: Sabato 30 giugno 2012, 13:02 > Le 30/06/2012 00:10, Ru Vuott a > ?crit : > > Hello, > > > > documentation tells: > > > > 1) gb.sdl.sound manages up to 32 sound tracks, that can > play sounds from memory, and one music track that can play a > music from a file. > > > > 2) "Sound" (gb.sdl.sound) represents a sound wave > *loaded in memory*. > > > > > > Well, questions about it: > > > > 1) How managing up to 32 sound tracks ? By using > "Sound" ? > >???? > > 2) How can I load "a sound wave" in memory via > gb.sdl.sound, and then manage it by "Sound" ? > > > > 3) Does "one music track" mean a "single" file .wav > (and mp3) ? > > > > Thanks > > Vuottttttttttt > > > > Please can you stop using "reply" when you start a new > thread? That > makes things difficult to read in mailers. > > Thanks! > > -- > Beno?t Minisini > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's > security and > threat landscape has changed and how IT managers can > respond. Discussions > will include endpoint security, mobile security and the > latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Jun 30 15:25:57 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 30 Jun 2012 15:25:57 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.2.0 Message-ID: <4FEEFE65.1070205@...1...> Hi, I have uploaded the Gambas 3.2 source package on sourceforge: http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.2.0.tar.bz2/download Please try it, and if there is no problem, I will make the release public. Thanks in advance. Regards, -- Beno?t Minisini From bbruen at ...2308... Sat Jun 30 16:00:33 2012 From: bbruen at ...2308... (Bruce) Date: Sat, 30 Jun 2012 23:30:33 +0930 Subject: [Gambas-user] Pre-release of Gambas 3.2.0 In-Reply-To: <4FEEFE65.1070205@...1...> References: <4FEEFE65.1070205@...1...> Message-ID: <1341064833.12216.33.camel@...40...> On Sat, 2012-06-30 at 15:25 +0200, Beno?t Minisini wrote: > Hi, > > I have uploaded the Gambas 3.2 source package on sourceforge: > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.2.0.tar.bz2/download > > Please try it, and if there is no problem, I will make the release public. > > Thanks in advance. > > Regards, > Hi Beno?t, Could I ask a small favour? Could you include in release notices like this, whether or not they are "pre-" or actual releases, a note as to which source revision you took as the base. The reason being, that I need to be able to "bookmark" the release to the revision, so I can keep our more adventurous clients calm until we have tested and OK'd our code against it. It's 23:10 here and I just know that I'm going to get at least 3 phone calls early tomorrow (Sunday) morning, "Oh, should I update to the 3.2.0 code?". Apologies, we are a bit "lost at sea" at the moment as our colleague who usually takes care of managing our code releases with the Gambas revisions is currently very ill and none of the rest of us are up to his skills. regards Bruce From gambas at ...1... Sat Jun 30 16:53:13 2012 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Sat, 30 Jun 2012 16:53:13 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.2.0 In-Reply-To: <1341064833.12216.33.camel@...40...> References: <4FEEFE65.1070205@...1...> <1341064833.12216.33.camel@...40...> Message-ID: <4FEF12D9.2060506@...1...> Le 30/06/2012 16:00, Bruce a ?crit : > On Sat, 2012-06-30 at 15:25 +0200, Beno?t Minisini wrote: >> Hi, >> >> I have uploaded the Gambas 3.2 source package on sourceforge: >> >> http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.2.0.tar.bz2/download >> >> Please try it, and if there is no problem, I will make the release public. >> >> Thanks in advance. >> >> Regards, >> > > Hi Beno?t, > > Could I ask a small favour? Could you include in release notices like > this, whether or not they are "pre-" or actual releases, a note as to > which source revision you took as the base. > > The reason being, that I need to be able to "bookmark" the release to > the revision, so I can keep our more adventurous clients calm until we > have tested and OK'd our code against it. > > It's 23:10 here and I just know that I'm going to get at least 3 phone > calls early tomorrow (Sunday) morning, "Oh, should I update to the 3.2.0 > code?". > > Apologies, we are a bit "lost at sea" at the moment as our colleague who > usually takes care of managing our code releases with the Gambas > revisions is currently very ill and none of the rest of us are up to his > skills. > > regards > Bruce > The mail subject starts with "Pre-release...", wasn't it clear? If there is no link to the 3.2.0 package on the gambas.sf.net web site, then that means this is not public, and that only advanced user should test it. -- Beno?t Minisini From jscops at ...11... Sat Jun 30 17:31:35 2012 From: jscops at ...11... (Jack) Date: Sat, 30 Jun 2012 17:31:35 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.2.0 In-Reply-To: <4FEEFE65.1070205@...1...> References: <4FEEFE65.1070205@...1...> Message-ID: <4FEF1BD7.5080401@...11...> Le 30/06/2012 15:25, Beno?t Minisini a ?crit : > Hi, > > I have uploaded the Gambas 3.2 source package on sourceforge: > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.2.0.tar.bz2/download > > Please try it, and if there is no problem, I will make the release public. > > Thanks in advance. > > Regards, > Bonjour Benoit, It's good for me. Gambas launches successfully and my programs also. waiting to use it more thoroughly Jack Ubuntu 10.10 Gnome 2.32.0 From Karl.Reinl at ...2345... Sat Jun 30 20:48:17 2012 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 30 Jun 2012 20:48:17 +0200 Subject: [Gambas-user] cannot find library crashes the IDE In-Reply-To: <4FEE316A.9080106@...1...> References: <1341009542.2401.19.camel@...40...> <4FEE316A.9080106@...1...> Message-ID: <1341082097.2353.14.camel@...40...> Am Samstag, den 30.06.2012, 00:51 +0200 schrieb Beno?t Minisini: > Le 30/06/2012 00:39, Karl Reinl a ?crit : > > Salut, > > > > changed to rev 4871 and found that > > , the IDE crashes. > > Just before I compiled that 'DBReportViewer3.gambas' and I know it is in > > the right place and the it workes fine. > > > > > > This is not a crash, so no need to use valgrind. > > Instead, please explain exactly what you do and what message(s) you get. > > Regards, Salut, valgrind I used to see more clear. my Project path : ~/gambas/3/DBReport3 my library path : ~/DBReport3/ on rev. 4830 that works, with rev 4871 when I try to load DBReport3, first I get message seen on Bildschirmfoto2.png, after the IDE keeps on going to load the project. Once loaded, a F5 makes nothing. When trying to have a look on the components in properties the IDE crashes with message seen on Bildschirmfoto3.png . And while these messages were so clear to me, I had a look with valgrind. So now I it would be fine to find a way out. -- Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: Bildschirmfoto2.png Type: image/png Size: 14789 bytes Desc: URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Bildschirmfoto3.png Type: image/png Size: 24109 bytes Desc: not available URL: From gambas at ...1... Sat Jun 30 21:18:27 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 30 Jun 2012 21:18:27 +0200 Subject: [Gambas-user] cannot find library crashes the IDE In-Reply-To: <1341082097.2353.14.camel@...40...> References: <1341009542.2401.19.camel@...40...> <4FEE316A.9080106@...1...> <1341082097.2353.14.camel@...40...> Message-ID: <4FEF5103.1080604@...1...> Le 30/06/2012 20:48, Charlie Reinl a ?crit : > Am Samstag, den 30.06.2012, 00:51 +0200 schrieb Beno?t Minisini: >> Le 30/06/2012 00:39, Karl Reinl a ?crit : >>> Salut, >>> >>> changed to rev 4871 and found that >>> , the IDE crashes. >>> Just before I compiled that 'DBReportViewer3.gambas' and I know it is in >>> the right place and the it workes fine. >>> >>> >> >> This is not a crash, so no need to use valgrind. >> >> Instead, please explain exactly what you do and what message(s) you get. >> >> Regards, > > Salut, > > valgrind I used to see more clear. > > my Project path : ~/gambas/3/DBReport3 > my library path : ~/DBReport3/ > > on rev. 4830 that works, with rev 4871 when I try to load DBReport3, > first I get message seen on Bildschirmfoto2.png, after the IDE keeps on > going to load the project. > > Once loaded, a F5 makes nothing. > > When trying to have a look on the components in properties the IDE > crashes with message seen on Bildschirmfoto3.png . > > And while these messages were so clear to me, I had a look with > valgrind. > > So now I it would be fine to find a way out. > > Can you provide a compressed archive of ~/gambas/3/DBReport3 and ~/DBReport3 so that I can reproduce the bug on my computer? -- Beno?t Minisini