From rterry at ...1946... Sat Jan 1 00:23:30 2011 From: rterry at ...1946... (richard terry) Date: Sat, 1 Jan 2011 10:23:30 +1100 Subject: [Gambas-user] Using a timer and Last Message-ID: <201101011023.30763.rterry@...1946...> Hi List I've a couple of timers on different forms, which I need to auto-update some stuff periodically. What's the theory with Last and timers. for example say my program is executing a subroutine which uses Last, but at that instance the timer fires and becomes Last, can things go wrong? Can just the Public = False property of the timer, mean it then cannot be the Last event to fire? Regards Richard From mdavies5 at ...169... Sat Jan 1 02:31:32 2011 From: mdavies5 at ...169... (Michael) Date: Sat, 01 Jan 2011 12:31:32 +1100 Subject: [Gambas-user] Further news on valuebox bugs in Gambas3 Message-ID: <4D1E83F4.5060004@...169...> I reported bugs when a date valuebox is housed in a Vbox. I then moved all my controls to a Panel and got the same problems if the Panel.Arrangement was set to Vertical. I then moved all Valueboxes to a Frame and got no problems. Obviously the Frame does not have an Arrangement property. One further clue. When overcoming the problems, by using a Frame or by setting .Arrangement to NONE in Vbox or Panel, the datePicker disappears from the ValueBox. Hope this helps. -- Regards Michael From mdavies5 at ...169... Sat Jan 1 04:39:19 2011 From: mdavies5 at ...169... (Michael) Date: Sat, 01 Jan 2011 14:39:19 +1100 Subject: [Gambas-user] More on Print bugs. Message-ID: <4D1EA1E7.7010307@...169...> Benoit, I have investigated print problems further and posted following question on Ubuntu One website. It would appear to be a Ubuntu problem not a Gambas problem. There are many different Print dialogs but one is very common and is used by Gimp, Shutter, Evloution and Simple Scan. In all these apps the "Page Size" and "Orientation" are disabled. The same dialog in Firefox, Thunderbird and GEdit works OK. I program in Gambas3 which uses this dialog in conjunction with the GTK+ library and it also has these options disabled. If I use the QT4 library then a different print dialog is displayed with no problems. Anybody else notice this problem and found a solution? -- Regards Michael From gambas at ...1... Sat Jan 1 05:08:58 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 1 Jan 2011 05:08:58 +0100 Subject: [Gambas-user] [OT]gambas 3 release or otherwise as binary package In-Reply-To: <4D1E3821.4050102@...2382...> References: <201009170209.30196.gambas@...1...> <4D1E3821.4050102@...2382...> Message-ID: <201101010508.58744.gambas@...1...> > Finally, 2010 is over and we have not an RC of Gambas3. No problem at > all, no rush here. I only want to wish you guys all the best for the New > Year 2011. Many thanks to Beno?t and to all developers for your hard work. > > HNY 2011 !! > > Sincerely Yep. But I'm not so far from the goal! It's Gambas users' fault: how could they find so many bugs in the last two weeks? :-) Happy new year! -- Beno?t Minisini From demosthenesk at ...626... Sat Jan 1 08:56:10 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 01 Jan 2011 09:56:10 +0200 Subject: [Gambas-user] Label.Adjust In-Reply-To: <201012311546.45480.gambas@...1...> References: <1293551463.7606.1.camel@...2493...> <201012291007.16369.gambas@...1...> <1293618282.20116.3.camel@...2493...> <201012311546.45480.gambas@...1...> Message-ID: <1293868570.23453.1.camel@...2493...> Hello, and happy new year with best wishes! Yes, now the width dimension is ok. On Fri, 2010-12-31 at 15:46 +0100, Beno?t Minisini wrote: > > sorry Benoit i send you wrong project > > > > here it is the corect, but it is not something special. > > > > the code is > > > > --------- > > PUBLIC SUB Form_Open() > > > > PRINT Label1.Height > > PRINT Label1.Width > > Label1.Text = " This is a looooooooong text, sghssgh fshsfg dfg fdg sad > > gfsda asdg sd" > > Label1.Adjust > > PRINT Label1.Height > > PRINT Label1.Width > > > > END > > --------- > > > > > > in my machine with ubuntu 10.04 i get > > > > 117 > > 72 > > > > 19 > > 72 > > > > Is it better with revision #3417? > -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Sat Jan 1 09:09:41 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 01 Jan 2011 10:09:41 +0200 Subject: [Gambas-user] Images and Pictures In-Reply-To: <201012311443.24052.gambas@...1...> References: <1293784371.21301.7.camel@...2493...> <201012311443.24052.gambas@...1...> Message-ID: <1293869381.23453.8.camel@...2493...> Actually i had read the docs, i translated also... (but may be i have a bug in understand them, i dont know...) anyway... so i cant do something like that > hImage.Load(Application.Path & "/nature.png") but i could not find a way to > hImage = Image.Load(Application.Path &/ "nature.png") Today i learn something about the usage of static methods Thanks! On Fri, 2010-12-31 at 14:43 +0100, Beno?t Minisini wrote: > > Good morning to all, > > > > i make an example for the Image class. > > i want to demostrate the methods of Image class. > > the example will Clear Copy Draw Fill Flip Mirror Replace Resize > > Rotate Save Stretch a picture in an Image class and put the result in > > a PictureBox. > > > > Firstly i want the picture from an Image object to put it in a > > Picturebox without modify image. > > i use the following code: > > > > ------------------------------ > > PRIVATE hImage AS Image > > > > PUBLIC SUB Form_Open() > > > > ME.Center > > hImage = NEW Image(500, 375, FALSE) > > hImage.Load(Application.Path & "/nature.png") > > PictureBox1.Picture = hImage.Picture > > > > END > > ------------------------------ > > > > but the PictureBox1 at runtime is empty. > > Why? what am i doing wrong? > > I guess you didn't read the documentation of the Image class :-). > > Image.Load() is a static method. So: > > hImage = Image.Load(Application.Path &/ "nature.png") > > And you didn't specify which version of gambas you use. Please do make an > example for Gambas 3! > > Regards, > -- Regards, Demosthenes Koptsis. From doriano.blengino at ...1909... Sat Jan 1 10:34:25 2011 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 01 Jan 2011 10:34:25 +0100 Subject: [Gambas-user] Using a timer and Last In-Reply-To: <201101011023.30763.rterry@...1946...> References: <201101011023.30763.rterry@...1946...> Message-ID: <4D1EF521.5080100@...1909...> richard terry ha scritto: > Hi List > > I've a couple of timers on different forms, which I need to auto-update some > stuff periodically. > > What's the theory with Last and timers. > > for example say my program is executing a subroutine which uses Last, but at > that instance the timer fires and becomes Last, can things go wrong? > > Can just the Public = False property of the timer, mean it then cannot be the > Last event to fire? > Hi Richard, happy new year. I think that there is no need to worry: a timer event is just as any other one, only it is fired without user intervention. There is a single internal main loop, in gambas, which collects events and dispatches them, one at a time, to the relevant handler. Just before invoking the handler, the LAST variable is set. A gambas subroutine is never interrupted, so the LAST variable remains untouched (unless you modify it yourself). To be more precise, the LAST variable is saved (in a stack, I believe), then set to the relevant value, then the handler is called, then LAST is restored. As long as you avoid to use WAIT, nothing can corrupt LAST (apart from your own program). The fact that LAST is saved onto a stack, and restored afterwards, should keep you safe even when you use WAIT in a handler. About the Public property, I don't understand. The meaning of "Public" should only be relevant to the compiler, not to the runtime - "Public" should not be a property, but simply a declarative switch. May be that gambas uses the properties mechanism for simplicity, in order to allow you to declare something public using the GUI. Anyway, you should simply consider that, inside an event handler, LAST always refers to the control which raised the event. Stop. For added safety, if and when you use WAIT in a handler, you could save LAST in a local variable, and restore it after the WAIT; but I really think it is not necessary. Regards and cheers, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From demosthenesk at ...626... Sat Jan 1 12:50:01 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 01 Jan 2011 13:50:01 +0200 Subject: [Gambas-user] gambas3 deb file error Message-ID: <1293882601.458.3.camel@...2493...> hello, for every svn i get from Gambas svn i make a deb file with checkinstall so to be easy the install/uninstall procedure of Gambas. i got the Gambas3-svn3418 and checkinstall made successfully a deb file. But during install i got the following error. --------- Unpacking gambas3 (from .../gambas3_svn3418-1_amd64.deb) ... dpkg: error processing /home/user/Downloads/Gambas/gambas3-svn3418/gambas3_svn3418-1_amd64.deb (--install): trying to overwrite '/usr/share/icons/hicolor/icon-theme.cache', which is also in package gambas2-2.22 0:svn3417-1 dpkg-deb: subprocess paste killed by signal (Broken pipe) Processing triggers for hicolor-icon-theme ... Errors were encountered while processing: /home/user/Downloads/Gambas/gambas3-svn3418/gambas3_svn3418-1_amd64.deb /var/tmp/tmp.PEmlIoDYrR/dpkginstall.log (END) --------- Gambas3 try to overwrite gambas2 files. can this issue fixed in order to have both Gambas2, and 3 installed and work with them separately? -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Sat Jan 1 14:03:27 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 01 Jan 2011 15:03:27 +0200 Subject: [Gambas-user] Gambas3 Help Window Message-ID: <1293887007.4971.56.camel@...2493...> In my machine F1 or Help from IDE shows a window in the very top position of screen. The window is impossible to catch it and move it on screen. So i cant use it. i opened the Gambas app and i found that FHelpBrowser.class read the settings. It would be nice if FHelpBrowser had a ME.Center or a way to correct Setting.Read(). Also i saw that the FHelpBrowser window has only close button at TitleBar. It would be nice to be able to Maximize, Minimize also the FHelpBrowser. -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Sat Jan 1 14:12:03 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 01 Jan 2011 15:12:03 +0200 Subject: [Gambas-user] Label.Resize in Picture1_MouseMove Message-ID: <1293887523.4971.60.camel@...2493...> hello, i converted my Mini Image Editor (demostration of Image class) to Gambas3 at ubuntu 10.04 machine. i want to simulate a selection box tool for an image. For this i made something not so professional but i think i found something. For the selection of image area i use a label as gui with 1) transparency 2) border etched 3) and no text when the user select an area from the PictureBox the Label with these properties resizes and shows the selected area from the picture. i know that this is not a pro way but i wanted a fast solution and avoid to make my one object, at this point. Now the problem. When the user grow the selection box from up-left to down-right the Label object refreshes correctly and shows its Etched-border. http://www.mediafire.com/imgbnc.php/4bc70a02a6a13510e9066b6e8a712fd1931d713bdd18b8556174a6382fb226744g.jpg When the user move back the mouse pointer (from down-right to up-left) of selection box the Label object is resized but does not draw its border correctly... http://www.mediafire.com/imgbnc.php/9e738ebdc8b6a49a9e298a50a38ae6eebf0990d655099fc62345f98c3d20e05d4g.jpg i also give url with the project. http://www.mediafire.com/?dsn3jptqd9prqkp -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Sat Jan 1 14:31:40 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 01 Jan 2011 15:31:40 +0200 Subject: [Gambas-user] Gambas3 complains about gb.settings Message-ID: <1293888700.6829.2.camel@...2493...> i converted a project from Gambas2 to Gambas3. But Gambas3 complains about gb.settings. i have never used this component for this project. If i go to components dialog it is clicked and i cant unmark it. if i add in .project file the line Component=gb.settings it works. -- Regards, Demosthenes Koptsis. -------------- next part -------------- A non-text attachment was scrubbed... Name: VirusCollectionTools-source.tar.gz Type: application/x-compressed-tar Size: 19753 bytes Desc: not available URL: From gambas at ...1... Sat Jan 1 16:06:12 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 1 Jan 2011 16:06:12 +0100 Subject: [Gambas-user] Using a timer and Last In-Reply-To: <4D1EF521.5080100@...1909...> References: <201101011023.30763.rterry@...1946...> <4D1EF521.5080100@...1909...> Message-ID: <201101011606.12575.gambas@...1...> > richard terry ha scritto: > > Hi List > > > > I've a couple of timers on different forms, which I need to auto-update > > some stuff periodically. > > > > What's the theory with Last and timers. > > > > for example say my program is executing a subroutine which uses Last, but > > at that instance the timer fires and becomes Last, can things go wrong? > > > > Can just the Public = False property of the timer, mean it then cannot be > > the Last event to fire? > > Hi Richard, happy new year. > > I think that there is no need to worry: a timer event is just as any > other one, only it is fired without user intervention. > > There is a single internal main loop, in gambas, which collects events > and dispatches them, one at a time, to the relevant handler. Just before > invoking the handler, the LAST variable is set. A gambas subroutine is > never interrupted, so the LAST variable remains untouched (unless you > modify it yourself). To be more precise, the LAST variable is saved (in > a stack, I believe), then set to the relevant value, then the handler is > called, then LAST is restored. As long as you avoid to use WAIT, nothing > can corrupt LAST (apart from your own program). The fact that LAST is > saved onto a stack, and restored afterwards, should keep you safe even > when you use WAIT in a handler. Yes, that's it. In Gambas 3 for sure. I don't remember if the value of LAST is saved before calling an event handler in Gambas 2... > > About the Public property, I don't understand. The meaning of "Public" > should only be relevant to the compiler, not to the runtime - "Public" > should not be a property, but simply a declarative switch. May be that > gambas uses the properties mechanism for simplicity, in order to allow > you to declare something public using the GUI. In Gambas, "Public" is a runtime thing too: it allows a symbol to be visible to the other classes, by putting inside the symbol table of the class. (Private symbols are private, so they do not need a symbol table at runtime, and so they are not visible to the other classes). "Public" applied to a variable has nothing to do with events otherwise. Regards, -- Beno?t Minisini From gambas.fr at ...626... Sat Jan 1 17:28:59 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 1 Jan 2011 17:28:59 +0100 Subject: [Gambas-user] Gambas3 Help Window In-Reply-To: <1293887007.4971.56.camel@...2493...> References: <1293887007.4971.56.camel@...2493...> Message-ID: 2011/1/1 Demosthenes Koptsis : > In my machine F1 or Help from IDE shows a window in the very top > position of screen. > > The window is impossible to catch it and move it on screen. use alt + mouse drag (leftmousedown+move) to move the windows (X triks) by catching it on every part of the windows ... you are under gnome ... it's a known problem that wil be corrected with the new screen management > > So i cant use it. > > i opened the Gambas app and i found that FHelpBrowser.class read the > settings. > > It would be nice if > FHelpBrowser had a ME.Center or a way to correct Setting.Read(). > > Also i saw that the FHelpBrowser window has only close button at > TitleBar. > > It would be nice to be able to Maximize, Minimize also the FHelpBrowser. > > > > -- > Regards, > Demosthenes Koptsis. > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From dag.jarle.johansen at ...626... Sat Jan 1 17:30:39 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Sat, 1 Jan 2011 13:30:39 -0300 Subject: [Gambas-user] Happy New Year Message-ID: To all of you, incredible good programmers, a happy 2011 Regards, Dag-Jarle From gambas at ...1... Sat Jan 1 17:32:39 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 1 Jan 2011 17:32:39 +0100 Subject: [Gambas-user] DataControls with Visible = False In-Reply-To: <1PXeOz-1ZJwAq0@...2518...> References: <1PXeOz-1ZJwAq0@...2518...> Message-ID: <201101011732.39830.gambas@...1...> > Gambas 3 rev. 3390 > I tried to make a data-bound form the lazy way, without SQL commands. > Just a DataSource with some DataControls in it. > Works fine. > Then, for better layout of the form, I gave the values of the > DataControls to TextLabels, Buttons and so on. > Works also. > But when I turn the DataControls to visible=false (because their content > is shown somewhere else), they don't work anymore. I only get Null values > from them. > Is this by design? If so, I wonder what visibility has to do with > functionality. > Regards > Matti Yes, hidden children are not taken into account by the DataSource. Why do you need the contrary? -- Beno?t Minisini From dag.jarle.johansen at ...626... Sat Jan 1 17:33:04 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Sat, 1 Jan 2011 13:33:04 -0300 Subject: [Gambas-user] Gambas3 Help Window In-Reply-To: References: <1293887007.4971.56.camel@...2493...> Message-ID: good 2011/1/1 Fabien Bodard > 2011/1/1 Demosthenes Koptsis : > > In my machine F1 or Help from IDE shows a window in the very top > > position of screen. > > > > The window is impossible to catch it and move it on screen. > use alt + mouse drag (leftmousedown+move) to move the windows (X > triks) by catching it on every part of the windows ... > > you are under gnome ... it's a known problem that wil be corrected > with the new screen management > > > > > > > So i cant use it. > > > > i opened the Gambas app and i found that FHelpBrowser.class read the > > settings. > > > > It would be nice if > > FHelpBrowser had a ME.Center or a way to correct Setting.Read(). > > > > Also i saw that the FHelpBrowser window has only close button at > > TitleBar. > > > > It would be nice to be able to Maximize, Minimize also the FHelpBrowser. > > > > > > > > -- > > Regards, > > Demosthenes Koptsis. > > > > > > > ------------------------------------------------------------------------------ > > Learn how Oracle Real Application Clusters (RAC) One Node allows > customers > > to consolidate database storage, standardize their database environment, > and, > > should the need arise, upgrade to a full multi-node Oracle RAC database > > without downtime or disruption > > http://p.sf.net/sfu/oracle-sfdevnl > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Jan 1 17:34:42 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 1 Jan 2011 17:34:42 +0100 Subject: [Gambas-user] Some new features in Gambas 3 In-Reply-To: References: <201011271444.05812.gambas@...1...> Message-ID: <201101011734.42061.gambas@...1...> > > 2) A new set of native functions named Mk$() to create a string from > > the > > memory representation of a value. For example, MkShort$(1234) returns > > Chr$(210) & Chr$(4) (on a little endian machine). > > I'm updating GambasTester to handle new commands and features. > > And I don't quite understand these new functions... > MkByte$(65) returns "A" which is expected if string is created with ascii > encoding. > But MkBoolean(True) returns "^A", and according to documentation boolean > value size is one byte > in memory. This string occupies two bytes? "^A" is the way the IDE console displays Chr$(1). > > But moreover, what is intended use of these functions? One ask them to forge a string of binary data to be sent on an UDP socket. But this is not necessarily the right way to do that, as data on the network must be endianness-agnostic. So maybe these functions are not really useful indeed. Regards, -- Beno?t Minisini From gambas at ...1... Sat Jan 1 17:44:03 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 1 Jan 2011 17:44:03 +0100 Subject: [Gambas-user] time measure milliseconds ? In-Reply-To: <201012310840.33529.wally@...2037...> References: <201012310840.33529.wally@...2037...> Message-ID: <201101011744.03680.gambas@...1...> > Is there a possibility to make DateDiff return msec ? > Done in revision #3420. Use the new gb.Millisecond constant. Regards, -- Beno?t Minisini From gambas.fr at ...626... Sat Jan 1 18:34:08 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 1 Jan 2011 18:34:08 +0100 Subject: [Gambas-user] Label.Resize in Picture1_MouseMove In-Reply-To: <1293887523.4971.60.camel@...2493...> References: <1293887523.4971.60.camel@...2493...> Message-ID: label is not the only solution ... this is how I manage the box selection on many program. You need to use more the draw event and think like with a game ....refresh all composed image on move :) Gambas work that way. 2011/1/1 Demosthenes Koptsis : > hello, > > i converted my Mini Image Editor (demostration of Image class) > to Gambas3 at ubuntu 10.04 machine. > > i want to simulate a selection box tool for an image. > For this i made something not so professional but i think i found > something. > > For the selection of image area i use a label as gui with > 1) transparency > 2) border etched > 3) and no text > > when the user select an area from the PictureBox the Label with these > properties resizes and shows the selected area from the picture. > > i know that this is not a pro way but i wanted a fast solution and avoid > to make my one object, at this point. > > Now the problem. > > When the user grow the selection box from up-left to down-right the > Label object refreshes correctly and shows its Etched-border. > http://www.mediafire.com/imgbnc.php/4bc70a02a6a13510e9066b6e8a712fd1931d713bdd18b8556174a6382fb226744g.jpg > > > When the user move back the mouse pointer (from down-right to up-left) > of selection box the Label object is resized but does not draw its > border correctly... > http://www.mediafire.com/imgbnc.php/9e738ebdc8b6a49a9e298a50a38ae6eebf0990d655099fc62345f98c3d20e05d4g.jpg > > > i also give url with the project. > http://www.mediafire.com/?dsn3jptqd9prqkp > > > > -- > Regards, > Demosthenes Koptsis. > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas.fr at ...626... Sat Jan 1 18:34:36 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 1 Jan 2011 18:34:36 +0100 Subject: [Gambas-user] Label.Resize in Picture1_MouseMove In-Reply-To: References: <1293887523.4971.60.camel@...2493...> Message-ID: 2011/1/1 Fabien Bodard : > label is not the only solution ... this is how I manage the box > selection on many program. > > You need to use more the draw event and think like with a game > ....refresh all composed image on move :) > > Gambas work that way. > > 2011/1/1 Demosthenes Koptsis : >> hello, >> >> i converted my Mini Image Editor (demostration of Image class) >> to Gambas3 at ubuntu 10.04 machine. >> >> i want to simulate a selection box tool for an image. >> For this i made something not so professional but i think i found >> something. >> >> For the selection of image area i use a label as gui with >> 1) transparency >> 2) border etched >> 3) and no text >> >> when the user select an area from the PictureBox the Label with these >> properties resizes and shows the selected area from the picture. >> >> i know that this is not a pro way but i wanted a fast solution and avoid >> to make my one object, at this point. >> >> Now the problem. >> >> When the user grow the selection box from up-left to down-right the >> Label object refreshes correctly and shows its Etched-border. >> http://www.mediafire.com/imgbnc.php/4bc70a02a6a13510e9066b6e8a712fd1931d713bdd18b8556174a6382fb226744g.jpg >> >> >> When the user move back the mouse pointer (from down-right to up-left) >> of selection box the Label object is resized but does not draw its >> border correctly... >> http://www.mediafire.com/imgbnc.php/9e738ebdc8b6a49a9e298a50a38ae6eebf0990d655099fc62345f98c3d20e05d4g.jpg >> >> >> i also give url with the project. >> http://www.mediafire.com/?dsn3jptqd9prqkp >> >> >> >> -- >> Regards, >> Demosthenes Koptsis. >> >> >> ------------------------------------------------------------------------------ >> Learn how Oracle Real Application Clusters (RAC) One Node allows customers >> to consolidate database storage, standardize their database environment, and, >> should the need arise, upgrade to a full multi-node Oracle RAC database >> without downtime or disruption >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Fabien Bodard > -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: DemoPictureSelection-0.0.1.tar.gz Type: application/x-gzip Size: 5479 bytes Desc: not available URL: From demosthenesk at ...626... Sat Jan 1 19:37:34 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 01 Jan 2011 20:37:34 +0200 Subject: [Gambas-user] Label.Resize in Picture1_MouseMove In-Reply-To: References: <1293887523.4971.60.camel@...2493...> Message-ID: <1293907054.9751.9.camel@...2494...> Do you suggest to use the DrawingArea instead PictureBox? As i see the draw event is in DrawingArea only. My intension is not to draw something. i want to resize an object with transparency and border (as Label) and after to use its X,Y, Width, Height in Image.Copy object. On Sat, 2011-01-01 at 18:34 +0100, Fabien Bodard wrote: > label is not the only solution ... this is how I manage the box > selection on many program. > > You need to use more the draw event and think like with a game > ....refresh all composed image on move :) > > Gambas work that way. > > 2011/1/1 Demosthenes Koptsis : > > hello, > > > > i converted my Mini Image Editor (demostration of Image class) > > to Gambas3 at ubuntu 10.04 machine. > > > > i want to simulate a selection box tool for an image. > > For this i made something not so professional but i think i found > > something. > > > > For the selection of image area i use a label as gui with > > 1) transparency > > 2) border etched > > 3) and no text > > > > when the user select an area from the PictureBox the Label with these > > properties resizes and shows the selected area from the picture. > > > > i know that this is not a pro way but i wanted a fast solution and avoid > > to make my one object, at this point. > > > > Now the problem. > > > > When the user grow the selection box from up-left to down-right the > > Label object refreshes correctly and shows its Etched-border. > > http://www.mediafire.com/imgbnc.php/4bc70a02a6a13510e9066b6e8a712fd1931d713bdd18b8556174a6382fb226744g.jpg > > > > > > When the user move back the mouse pointer (from down-right to up-left) > > of selection box the Label object is resized but does not draw its > > border correctly... > > http://www.mediafire.com/imgbnc.php/9e738ebdc8b6a49a9e298a50a38ae6eebf0990d655099fc62345f98c3d20e05d4g.jpg > > > > > > i also give url with the project. > > http://www.mediafire.com/?dsn3jptqd9prqkp > > > > > > > > -- > > Regards, > > Demosthenes Koptsis. > > > > > > ------------------------------------------------------------------------------ > > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > > to consolidate database storage, standardize their database environment, and, > > should the need arise, upgrade to a full multi-node Oracle RAC database > > without downtime or disruption > > http://p.sf.net/sfu/oracle-sfdevnl > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > -- Regards, Demosthenes From gambas at ...1... Sat Jan 1 19:54:34 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 1 Jan 2011 19:54:34 +0100 Subject: [Gambas-user] BUG: Textlabel contents not displaying when value changes from "" In-Reply-To: References: Message-ID: <201101011954.34891.gambas@...1...> > I'm using a Textlabel with Transparent = True. This displays a > numeric value that can change while the program is being used. If the > value is zero, it displays nothing (.text = ""). > > The problem is that if the control has no .text value, and is then > given one, it does not display. If the value changes (e.g. from "1" > to "2"), the change is reflected. I tried changing the code so that > it sets the text value to " " (space) instead of "", but that did not > help. If I set Transparent = False it works correctly. The textlabel > is over a picturebox, but that is not the problem; if I move it to > another part of the form it has the same behavior. I also tried > performing a .Raise after updating the value, but that did not help. > > What I ended-up doing in my code was to always load a value, even if > zero, and set the .Visible property based on whether or not it was > zero. This solved my issue, but I wanted to report the bug. I'm > running version 2.22 > > -George > That bug should be fixed in revision #3421. Regards, -- Beno?t Minisini From gambas.fr at ...626... Sat Jan 1 19:58:52 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 1 Jan 2011 19:58:52 +0100 Subject: [Gambas-user] Label.Resize in Picture1_MouseMove In-Reply-To: <1293907054.9751.9.camel@...2494...> References: <1293887523.4971.60.camel@...2493...> <1293907054.9751.9.camel@...2494...> Message-ID: 2011/1/1 Demosthenes Koptsis : > Do you suggest to use the DrawingArea instead PictureBox? > > As i see the draw event is in DrawingArea only. yes ... that what i suggest... as the way i use is more powerfull and that way you can add all feature you want. > My intension is not to draw something. > > i want to resize an object with transparency and border (as Label) and > after to use its X,Y, Width, Height in Image.Copy object. > > > On Sat, 2011-01-01 at 18:34 +0100, Fabien Bodard wrote: >> label is not the only solution ... this is how I manage the box >> selection on many program. >> >> You need to use more the draw event and think like with a game >> ....refresh all composed image on move :) >> >> Gambas work that way. >> >> 2011/1/1 Demosthenes Koptsis : >> > hello, >> > >> > i converted my Mini Image Editor (demostration of Image class) >> > to Gambas3 at ubuntu 10.04 machine. >> > >> > i want to simulate a selection box tool for an image. >> > For this i made something not so professional but i think i found >> > something. >> > >> > For the selection of image area i use a label as gui with >> > 1) transparency >> > 2) border etched >> > 3) and no text >> > >> > when the user select an area from the PictureBox the Label with these >> > properties resizes and shows the selected area from the picture. >> > >> > i know that this is not a pro way but i wanted a fast solution and avoid >> > to make my one object, at this point. >> > >> > Now the problem. >> > >> > When the user grow the selection box from up-left to down-right the >> > Label object refreshes correctly and shows its Etched-border. >> > http://www.mediafire.com/imgbnc.php/4bc70a02a6a13510e9066b6e8a712fd1931d713bdd18b8556174a6382fb226744g.jpg >> > >> > >> > When the user move back the mouse pointer (from down-right to up-left) >> > of selection box the Label object is resized but does not draw its >> > border correctly... >> > http://www.mediafire.com/imgbnc.php/9e738ebdc8b6a49a9e298a50a38ae6eebf0990d655099fc62345f98c3d20e05d4g.jpg >> > >> > >> > i also give url with the project. >> > http://www.mediafire.com/?dsn3jptqd9prqkp >> > >> > >> > >> > -- >> > Regards, >> > Demosthenes Koptsis. >> > >> > >> > ------------------------------------------------------------------------------ >> > Learn how Oracle Real Application Clusters (RAC) One Node allows customers >> > to consolidate database storage, standardize their database environment, and, >> > should the need arise, upgrade to a full multi-node Oracle RAC database >> > without downtime or disruption >> > http://p.sf.net/sfu/oracle-sfdevnl >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> >> > > -- > Regards, > Demosthenes > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From kevinfishburne at ...1887... Sat Jan 1 20:05:02 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 01 Jan 2011 14:05:02 -0500 Subject: [Gambas-user] Some new features in Gambas 3 In-Reply-To: <201101011734.42061.gambas@...1...> References: <201011271444.05812.gambas@...1...> <201101011734.42061.gambas@...1...> Message-ID: <4D1F7ADE.7000807@...1887...> On 01/01/2011 11:34 AM, Beno?t Minisini wrote: >>> 2) A new set of native functions named Mk$() to create a string from >>> the >>> memory representation of a value. For example, MkShort$(1234) returns >>> Chr$(210)& Chr$(4) (on a little endian machine). >> I'm updating GambasTester to handle new commands and features. >> >> And I don't quite understand these new functions... >> MkByte$(65) returns "A" which is expected if string is created with ascii >> encoding. >> But MkBoolean(True) returns "^A", and according to documentation boolean >> value size is one byte >> in memory. This string occupies two bytes? > "^A" is the way the IDE console displays Chr$(1). > >> But moreover, what is intended use of these functions? > One ask them to forge a string of binary data to be sent on an UDP socket. But > this is not necessarily the right way to do that, as data on the network must > be endianness-agnostic. So maybe these functions are not really useful indeed. It's hard to know what uses people will put functions to once they're in the wild. The original use was what Beno?t described. Whether endianness is an issue depends on what the UDP data is being sent to or received from. In my case it's the same program on the same architecture, so it works fine. I think a note in the documentation about endianness would help should someone want to use the functions. It seems to me a little strange to have ASC and STR$ but not equivalents for other datatypes. Some day some other programmer will see these functions and be extremely happy, probably for some purpose we haven't yet imagined. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Sat Jan 1 20:15:12 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 1 Jan 2011 20:15:12 +0100 Subject: [Gambas-user] More on Print bugs. In-Reply-To: <4D1EA1E7.7010307@...169...> References: <4D1EA1E7.7010307@...169...> Message-ID: <201101012015.12745.gambas@...1...> > Benoit, > I have investigated print problems further and posted following question > on Ubuntu One website. It would appear to be a Ubuntu problem not a > Gambas problem. > > There are many different Print dialogs but one is very common and is > used by Gimp, Shutter, Evloution and Simple Scan. In all these apps the > "Page Size" and "Orientation" are disabled. The same dialog in Firefox, > Thunderbird and GEdit works OK. I program in Gambas3 which uses this > dialog in conjunction with the GTK+ library and it also has these > options disabled. If I use the QT4 library then a different print dialog > is displayed with no problems. Anybody else notice this problem and > found a solution? As I told you before, this was fixed, at least on my machine: "Page size" and "Orientation" are not disabled anymore. So are you sure that you use a recent svn revision? Can somebody else confirm that "Page size" and "Orientation" are not disabled anymore on their GTK+ printer configuration dialog? Here is Michael's project, slightly modified. -- Beno?t Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: Printing-0.0.2.tar.gz Type: application/x-compressed-tar Size: 74649 bytes Desc: not available URL: From gambas at ...1... Sat Jan 1 20:16:31 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 1 Jan 2011 20:16:31 +0100 Subject: [Gambas-user] gambas3 deb file error In-Reply-To: <1293882601.458.3.camel@...2493...> References: <1293882601.458.3.camel@...2493...> Message-ID: <201101012016.31423.gambas@...1...> > hello, > > for every svn i get from Gambas svn i make a deb file with checkinstall > so to be easy the install/uninstall procedure of Gambas. > > i got the Gambas3-svn3418 and checkinstall made successfully a deb file. > But during install i got the following error. > > --------- > Unpacking gambas3 (from .../gambas3_svn3418-1_amd64.deb) ... > dpkg: error > processing > /home/user/Downloads/Gambas/gambas3-svn3418/gambas3_svn3418-1_amd64.deb > (--install): trying to overwrite > '/usr/share/icons/hicolor/icon-theme.cache', which is also in package > gambas2-2.22 0:svn3417-1 > dpkg-deb: subprocess paste killed by signal (Broken pipe) > Processing triggers for hicolor-icon-theme ... > Errors were encountered while processing: > /home/user/Downloads/Gambas/gambas3-svn3418/gambas3_svn3418-1_amd64.deb > /var/tmp/tmp.PEmlIoDYrR/dpkginstall.log (END) > --------- > > Gambas3 try to overwrite gambas2 files. > > can this issue fixed in order to have both Gambas2, and 3 installed and > work with them separately? Normally there is no "icon-theme.cache" file in a Gambas package (so it cannot be overwritten). Why do you have this file in it? -- Beno?t Minisini From tobiasboe1 at ...20... Sat Jan 1 20:47:08 2011 From: tobiasboe1 at ...20... (tobias) Date: Sat, 01 Jan 2011 20:47:08 +0100 Subject: [Gambas-user] Embedder example Message-ID: <4D1F84BC.5060205@...20...> Good evening Beno?t, i forward a mail to you my teacher sent me. he wants to be introduced to you first... so, his name is Dr. Hans Lehmann and he is writing a book about gambas. i would send you the table of contents if you are interested and the dokuwiki page is at www.gambas-projekt.de. the topic: he says that he finds the embedder example more confusing than helping to understand the complexity of embedding extern started programs and so he wrote another one which is attached. he would be pleased if you test it. if it is a problem that variable names and comments are german, i would translate it quickly for you. he asks if you are interested in more programs for this purpose? regards, tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: EMBED-0.0.13.tar.gz Type: application/x-gzip Size: 65768 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: EMBGnuPlot-0.0.20.tar.gz Type: application/x-gzip Size: 51557 bytes Desc: not available URL: From gambas at ...1... Sat Jan 1 20:53:20 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 1 Jan 2011 20:53:20 +0100 Subject: [Gambas-user] Embedder example In-Reply-To: <4D1F84BC.5060205@...20...> References: <4D1F84BC.5060205@...20...> Message-ID: <201101012053.20509.gambas@...1...> > Good evening Beno?t, > > i forward a mail to you my teacher sent me. he wants to be introduced to > you first... so, his name is Dr. Hans Lehmann and he is writing a book > about gambas. i would send you the table of contents if you are > interested and the dokuwiki page is at www.gambas-projekt.de. > the topic: he says that he finds the embedder example more confusing > than helping to understand the complexity of embedding extern started > programs and so he wrote another one which is attached. he would be > pleased if you test it. if it is a problem that variable names and > comments are german, i would translate it quickly for you. > he asks if you are interested in more programs for this purpose? > > regards, > tobi Yes, I am. And yes, variables names and other symbols should be translated to english, as they will be read everywhere in the world. I will look at the example and tell what I think. Regards, -- Beno?t Minisini From zachsmith022 at ...626... Sat Jan 1 21:40:42 2011 From: zachsmith022 at ...626... (Zach Smith) Date: Sat, 1 Jan 2011 14:40:42 -0600 Subject: [Gambas-user] More on Print bugs. In-Reply-To: <201101012015.12745.gambas@...1...> References: <4D1EA1E7.7010307@...169...> <201101012015.12745.gambas@...1...> Message-ID: 2011/1/1 Beno?t Minisini : > Can somebody else confirm that "Page size" and "Orientation" are not disabled > anymore on their GTK+ printer configuration dialog? It works with gambas3 rev. 3416, Arch. From gambas at ...1... Sat Jan 1 21:53:47 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 1 Jan 2011 21:53:47 +0100 Subject: [Gambas-user] Gambas3 Help Window In-Reply-To: <1293887007.4971.56.camel@...2493...> References: <1293887007.4971.56.camel@...2493...> Message-ID: <201101012153.47642.gambas@...1...> > In my machine F1 or Help from IDE shows a window in the very top > position of screen. > > The window is impossible to catch it and move it on screen. > > So i cant use it. > > i opened the Gambas app and i found that FHelpBrowser.class read the > settings. > > It would be nice if > FHelpBrowser had a ME.Center or a way to correct Setting.Read(). > > Also i saw that the FHelpBrowser window has only close button at > TitleBar. > > It would be nice to be able to Maximize, Minimize also the FHelpBrowser. I added support for multiple screens and desktop layout in the gb.settings component, when using the Settings.Read() or Settings.Write() methods on a Window object. Consequently, the position of your windows should be ok even if you have panels and multiple screens everywhere. Regards, -- Beno?t Minisini From gambas at ...1... Sat Jan 1 22:03:26 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 1 Jan 2011 22:03:26 +0100 Subject: [Gambas-user] Gambas3 complains about gb.settings In-Reply-To: <1293888700.6829.2.camel@...2493...> References: <1293888700.6829.2.camel@...2493...> Message-ID: <201101012203.26705.gambas@...1...> > i converted a project from Gambas2 to Gambas3. > But Gambas3 complains about gb.settings. > > i have never used this component for this project. > If i go to components dialog it is clicked and i cant unmark it. > > if i add in .project file the line > Component=gb.settings it works. It is a new requirement of the gb.form.mdi component on Gambas 3. But the automatic converter didn't add it automatically. Regards, -- Beno?t Minisini From mdavies5 at ...169... Sat Jan 1 23:32:37 2011 From: mdavies5 at ...169... (Michael) Date: Sun, 02 Jan 2011 09:32:37 +1100 Subject: [Gambas-user] Gambas3 Help Window In-Reply-To: <201101012153.47642.gambas@...1...> References: <1293887007.4971.56.camel@...2493...> <201101012153.47642.gambas@...1...> Message-ID: <4D1FAB85.3050904@...169...> I had the same problem but in Ubuntu 10.10 you can overcome it by holding down the 'special' key.(IE The Windows key on my keyboard between CTRL and ALT) and clicking the help window anywhere. You don't need to click the window header. I think this feature was added to the last Gnome release Regards Michael On 02/01/11 07:53, Beno?t Minisini wrote: >> In my machine F1 or Help from IDE shows a window in the very top >> position of screen. >> >> The window is impossible to catch it and move it on screen. >> >> So i cant use it. >> >> i opened the Gambas app and i found that FHelpBrowser.class read the >> settings. >> >> It would be nice if >> FHelpBrowser had a ME.Center or a way to correct Setting.Read(). >> >> Also i saw that the FHelpBrowser window has only close button at >> TitleBar. >> >> It would be nice to be able to Maximize, Minimize also the FHelpBrowser. > I added support for multiple screens and desktop layout in the gb.settings > component, when using the Settings.Read() or Settings.Write() methods on a > Window object. > > Consequently, the position of your windows should be ok even if you have > panels and multiple screens everywhere. > > Regards, > From rterry at ...1946... Sun Jan 2 00:13:46 2011 From: rterry at ...1946... (richard terry) Date: Sun, 2 Jan 2011 10:13:46 +1100 Subject: [Gambas-user] Code snippet questions Message-ID: <201101021013.46316.rterry@...1946...> Hi List Could someone explain to me how code snippets work/are used. I note you can access them and add new snippets and a trigger word. How does one then get back the code in the IDE Also Benoit, it would be really nice to have menu option on the IDE menu which when you swipe a section of code and select 'Add code snippet', the popup dialog for code snippet adding appears with your code in it and the cursor on the shortcut line. Regards Richard From rterry at ...1946... Sun Jan 2 00:21:38 2011 From: rterry at ...1946... (richard terry) Date: Sun, 2 Jan 2011 10:21:38 +1100 Subject: [Gambas-user] break points - removing question Message-ID: <201101021021.38435.rterry@...1946...> Hi Benoit, Is there any way you could insitute removing breakpoints other than those in the current routine which we already can? sometimes I put in a breakpoint to check something, then having validated things are ok, want it removed so the program execution continues past this next time, but the subroutine itself has already executed, and for example, I may be stopped at another breakpoint. Hope this makes sense. Richard From zachsmith022 at ...626... Sun Jan 2 00:59:23 2011 From: zachsmith022 at ...626... (Zach Smith) Date: Sat, 1 Jan 2011 17:59:23 -0600 Subject: [Gambas-user] code for VB button control array hangs program Message-ID: Add a button to a program and modify code to read: Public Sub Button1_Click(index As Integer) End If you try to run the program, nothing happens and the problem line is not identified. This may happen if you import VB code and don't realize control arrays are not allowed. There are 2 Stack backtrace lines, but I'm not sure how to interpret them: FMain.$load.1594 FMain.?.? In my case, there is no line 1594. From ea7dfh at ...2382... Sun Jan 2 01:00:17 2011 From: ea7dfh at ...2382... (EA7DFH) Date: Sun, 02 Jan 2011 01:00:17 +0100 Subject: [Gambas-user] Code snippet questions In-Reply-To: <201101021013.46316.rterry@...1946...> References: <201101021013.46316.rterry@...1946...> Message-ID: <4D1FC011.6010203@...2382...> El 02/01/11 00:13, richard terry escribi?: > Hi List > > Could someone explain to me how code snippets work/are used. > > I note you can access them and add new snippets and a trigger word. > > How does one then get back the code in the IDE > > Also Benoit, it would be really nice to have menu option on the IDE menu > which when you swipe a section of code and select 'Add code snippet', the > popup dialog for code snippet adding appears with your code in it and the > cursor on the shortcut line. > > Regards > > Richard A while back I did asked the same, so Beno?t kindly answered: El 25/09/10 02:04, Beno?t Minisini escribi?: >> >> Hi all >> >> >> >> What's is the way to insert a code snippet triggered from an string in >> >> Gambas3? >> >> >> >> I'm referring to the third tab in the Preferences dialog of the IDE. I >> >> am unable to get the (template) snippet into the code editor... >> >> >> >> Using latest Gambas3 SVN. >> >> >> >> Thanks > > > > You type the first letters of the snippet (one, two or three characters, > > depending on the snippet), and then you press TAB. > > > > They work almost like in gedit. > > > > Regards, > > -- Jesus, EA7DFH From mdavies5 at ...169... Sun Jan 2 04:59:10 2011 From: mdavies5 at ...169... (Michael) Date: Sun, 02 Jan 2011 14:59:10 +1100 Subject: [Gambas-user] More on Print bugs. In-Reply-To: <201101012015.12745.gambas@...1...> References: <4D1EA1E7.7010307@...169...> <201101012015.12745.gambas@...1...> Message-ID: <4D1FF80E.1070601@...169...> Sorry about forgetting your previous advice. I moved house and was off air for 10 days. This problem is not unique to Gambas. Various other apps have the same problem and have been reported. Evince and Gimp overcome it by using the GTK+ "GtkPageSetupUnixDialog". I'm not sure how they then pass the information to the native print Dialog. The GTK+ reference manual points out that they only use their GtkPrintUnixDialogif a native dialog does not exist. I am using Gambas3 V3425 with LibGTK2.0 V2.22.0 and Gambas2-GB-GTK V.2.21.0-1build1. Should I have a Gambas3-GB-GTK? As a work around I decided to use the QT4 library but this brought it's own set of problems. Using the code I previously supplied, on the line "Paint.Begin(hPrinter)" I get an error "Device already being painted". If I remove this line and the "Paint.End" line then the document will print in Landscape but the font is very, very small. I have to reset the font.size to 56 to get a size approximating 14. If I set a breakpoint on the Paint.Begin line and test for Paint.Device, it already knows that the device is my printer without it being set. I was under the impression that the Gambas code was portable between GTK or QT4 without major changes. As an experiment I also set the library back to GTK+ and ran the print module without any Paint.Begin or Paint.End lines. No errors reported. Sorry to keep on about this problem but I moved from Windows to Ubuntu and from .NET to Gambas2 and was delighted with the whole process. I think if Gambas3 is released for production in it's current form it will not improve it's reputation. Regards Michael On 02/01/11 06:15, Beno?t Minisini wrote: >> Benoit, >> I have investigated print problems further and posted following question >> on Ubuntu One website. It would appear to be a Ubuntu problem not a >> Gambas problem. >> >> There are many different Print dialogs but one is very common and is >> used by Gimp, Shutter, Evloution and Simple Scan. In all these apps the >> "Page Size" and "Orientation" are disabled. The same dialog in Firefox, >> Thunderbird and GEdit works OK. I program in Gambas3 which uses this >> dialog in conjunction with the GTK+ library and it also has these >> options disabled. If I use the QT4 library then a different print dialog >> is displayed with no problems. Anybody else notice this problem and >> found a solution? > As I told you before, this was fixed, at least on my machine: "Page size" and > "Orientation" are not disabled anymore. > > So are you sure that you use a recent svn revision? > > Can somebody else confirm that "Page size" and "Orientation" are not disabled > anymore on their GTK+ printer configuration dialog? > > Here is Michael's project, slightly modified. > > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From demosthenesk at ...626... Sun Jan 2 09:25:41 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 02 Jan 2011 10:25:41 +0200 Subject: [Gambas-user] gambas3 deb file error In-Reply-To: <201101012016.31423.gambas@...1...> References: <1293882601.458.3.camel@...2493...> <201101012016.31423.gambas@...1...> Message-ID: <1293956741.11665.3.camel@...2494...> i dont know why this file is there. everything i do, i do it through checkinstall. anyway i --force-overwrite the deb files to install them and i saw that all are ok. On Sat, 2011-01-01 at 20:16 +0100, Beno?t Minisini wrote: > > hello, > > > > for every svn i get from Gambas svn i make a deb file with checkinstall > > so to be easy the install/uninstall procedure of Gambas. > > > > i got the Gambas3-svn3418 and checkinstall made successfully a deb file. > > But during install i got the following error. > > > > --------- > > Unpacking gambas3 (from .../gambas3_svn3418-1_amd64.deb) ... > > dpkg: error > > processing > > /home/user/Downloads/Gambas/gambas3-svn3418/gambas3_svn3418-1_amd64.deb > > (--install): trying to overwrite > > '/usr/share/icons/hicolor/icon-theme.cache', which is also in package > > gambas2-2.22 0:svn3417-1 > > dpkg-deb: subprocess paste killed by signal (Broken pipe) > > Processing triggers for hicolor-icon-theme ... > > Errors were encountered while processing: > > /home/user/Downloads/Gambas/gambas3-svn3418/gambas3_svn3418-1_amd64.deb > > /var/tmp/tmp.PEmlIoDYrR/dpkginstall.log (END) > > --------- > > > > Gambas3 try to overwrite gambas2 files. > > > > can this issue fixed in order to have both Gambas2, and 3 installed and > > work with them separately? > > Normally there is no "icon-theme.cache" file in a Gambas package (so it cannot > be overwritten). Why do you have this file in it? > -- Regards, Demosthenes From demosthenesk at ...626... Sun Jan 2 11:10:02 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 02 Jan 2011 12:10:02 +0200 Subject: [Gambas-user] Gambas3 Help Window In-Reply-To: <4D1FAB85.3050904@...169...> References: <1293887007.4971.56.camel@...2493...> <201101012153.47642.gambas@...1...> <4D1FAB85.3050904@...169...> Message-ID: <1293963002.3658.1.camel@...2493...> Thanks all of you for your answers. In my case i have one monitor and for temporary solution i hack the Gambas code by adding ME.Center after Settings.Read() On Sun, 2011-01-02 at 09:32 +1100, Michael wrote: > I had the same problem but in Ubuntu 10.10 you can overcome it by > holding down the 'special' key.(IE The Windows key on my keyboard > between CTRL and ALT) and clicking the help window anywhere. You don't > need to click the window header. I think this feature was added to the > last Gnome release > > Regards > Michael > > > On 02/01/11 07:53, Beno?t Minisini wrote: > >> In my machine F1 or Help from IDE shows a window in the very top > >> position of screen. > >> > >> The window is impossible to catch it and move it on screen. > >> > >> So i cant use it. > >> > >> i opened the Gambas app and i found that FHelpBrowser.class read the > >> settings. > >> > >> It would be nice if > >> FHelpBrowser had a ME.Center or a way to correct Setting.Read(). > >> > >> Also i saw that the FHelpBrowser window has only close button at > >> TitleBar. > >> > >> It would be nice to be able to Maximize, Minimize also the FHelpBrowser. > > I added support for multiple screens and desktop layout in the gb.settings > > component, when using the Settings.Read() or Settings.Write() methods on a > > Window object. > > > > Consequently, the position of your windows should be ok even if you have > > panels and multiple screens everywhere. > > > > Regards, > > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. From gambas at ...1... Sun Jan 2 12:20:41 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 2 Jan 2011 12:20:41 +0100 Subject: [Gambas-user] More on Print bugs. In-Reply-To: <4D1FF80E.1070601@...169...> References: <4D1EA1E7.7010307@...169...> <201101012015.12745.gambas@...1...> <4D1FF80E.1070601@...169...> Message-ID: <201101021220.41104.gambas@...1...> > Sorry about forgetting your previous advice. I moved house and was off > air for 10 days. This problem is not unique to Gambas. Various other > apps have the same problem and have been reported. Evince and Gimp > overcome it by using the GTK+ "GtkPageSetupUnixDialog". I'm not sure how > they then pass the information to the native print Dialog. The GTK+ > reference manual points out that they only use their > GtkPrintUnixDialogif a native dialog does not exist. > I am using Gambas3 V3425 with LibGTK2.0 V2.22.0 and Gambas2-GB-GTK > V.2.21.0-1build1. Should I have a Gambas3-GB-GTK? > > As a work around I decided to use the QT4 library but this brought it's > own set of problems. Using the code I previously supplied, on the line > "Paint.Begin(hPrinter)" I get an error "Device already being painted". > If I remove this line and the "Paint.End" line then the document will > print in Landscape but the font is very, very small. I have to reset the > font.size to 56 to get a size approximating 14. > If I set a breakpoint on the Paint.Begin line and test for Paint.Device, > it already knows that the device is my printer without it being set. > I was under the impression that the Gambas code was portable between GTK > or QT4 without major changes. > > As an experiment I also set the library back to GTK+ and ran the print > module without any Paint.Begin or Paint.End lines. No errors reported. > > Sorry to keep on about this problem but I moved from Windows to Ubuntu > and from .NET to Gambas2 and was delighted with the whole process. I > think if Gambas3 is released for production in it's current form it will > not improve it's reputation. > Regards > > Michael > As I asked you before, are you sure that you run the latest revision? I use the same system than you (Buggy Maverick, with GTK+ 2.22.0, but with KDE). The GTK+ print dialog problem and the Qt printer font size problem have been fixed for a while. I checked that with your example. And nobody else has reported these problems since the fix. As for Paint.Begin / Paint.End, you should not use them inside the Print event. And as for the Gambas 3 reputation if it will release now, the result will not be worse than Vista, Ubuntu or Visual Basic. I'm not scared. Regards, -- Beno?t Minisini From pinozollo at ...626... Sun Jan 2 12:52:59 2011 From: pinozollo at ...626... (Pino Zollo) Date: Sun, 2 Jan 2011 08:52:59 -0300 Subject: [Gambas-user] Project translation: a request Message-ID: <201101020853.00208.pinozollo@...626...> Hi to the gambists ! I have an almost complete translation of all the messages of a GAMBAS project from French to Spanish.... now I would like to translate the same to Italian .... For me it would be much easier to translate from Spanish to Italian but the translation window presents the original language on the left, which is French. Is there any way to change it to another language ? If not it would be a very nice feature to add...i.e. the possibility of choosing the original language to start from. Happy 2011 ! Pino -- "In the universe there is no time existing as a physical reality, there is no past, no present and no future" "Time is a mind construction into which one experiences motion" "Time is a flow of irreversible material changes" -Davide Fiscaletti Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From gambas at ...1... Sun Jan 2 13:15:26 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 2 Jan 2011 13:15:26 +0100 Subject: [Gambas-user] Happy new year! Message-ID: <201101021315.26958.gambas@...1...> Hi, I wish everyone an happy new year 2011! May the best of the old year be the worst of the new year. And not the contrary. And if you go to the website now: You will see a little poem I written. :-) And you will see that now you can "flattr" gambas if you like it! Best regards, -- Beno?t Minisini From gambas at ...1... Sun Jan 2 14:13:50 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 2 Jan 2011 14:13:50 +0100 Subject: [Gambas-user] break points - removing question In-Reply-To: <201101021021.38435.rterry@...1946...> References: <201101021021.38435.rterry@...1946...> Message-ID: <201101021413.50935.gambas@...1...> > Hi Benoit, > > Is there any way you could insitute removing breakpoints other than those > in the current routine which we already can? > > sometimes I put in a breakpoint to check something, then having validated > things are ok, want it removed so the program execution continues past this > next time, but the subroutine itself has already executed, and for example, > I may be stopped at another breakpoint. > > Hope this makes sense. > > Richard > Sorry, I don't understand the story there. :-/ -- Beno?t Minisini From gambas at ...1... Sun Jan 2 14:17:20 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 2 Jan 2011 14:17:20 +0100 Subject: [Gambas-user] Gambas3 complains about gb.settings In-Reply-To: <201101012203.26705.gambas@...1...> References: <1293888700.6829.2.camel@...2493...> <201101012203.26705.gambas@...1...> Message-ID: <201101021417.20548.gambas@...1...> > > i converted a project from Gambas2 to Gambas3. > > But Gambas3 complains about gb.settings. > > > > i have never used this component for this project. > > If i go to components dialog it is clicked and i cant unmark it. > > > > if i add in .project file the line > > Component=gb.settings it works. > > It is a new requirement of the gb.form.mdi component on Gambas 3. But the > automatic converter didn't add it automatically. > > Regards, OK, fixed in revision #3428. -- Beno?t Minisini From gambas at ...1... Sun Jan 2 14:28:59 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 2 Jan 2011 14:28:59 +0100 Subject: [Gambas-user] Gambas bug tracker Message-ID: <201101021428.59806.gambas@...1...> Hi, Now, from the website, you can go to the new Gambas bug tracker located on code.google.com. I'd like to have a bug tracker written in Gambas, but for now, let's use the Google one. Normally, each time something is modified in the bug tracker, a mail is sent to that mailing-list. That way, we will be able to use either the mailing-list or the bug tracker to communicate. If you have any question or remark about the bug tracker, ask them here! Regards, -- Beno?t Minisini From sotema at ...626... Sun Jan 2 15:30:19 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Sun, 02 Jan 2011 15:30:19 +0100 Subject: [Gambas-user] Balloon no more displayed Message-ID: <1293978619.6545.16.camel@...2476...> Hi to all, Since updated to last svn 3247 the balloon disappear from my project, i send you the project to investigate it. Run the project After the language selection a wizard will start: don't check checkbox on the first step, leave any field blank in the second step and hit next: the step will not change but no balloon will appear, or at least it is hidden ( not on top). I cant figure out if it is a bug or a problem with my code. Tanks for help. Best wishes for a new GAMBAS year. Emanuele -------------- next part -------------- A non-text attachment was scrubbed... Name: gbPneus.tar.gz Type: application/x-compressed-tar Size: 42883 bytes Desc: not available URL: From dr.diesel at ...626... Sun Jan 2 16:00:12 2011 From: dr.diesel at ...626... (Dr.Diesel) Date: Sun, 2 Jan 2011 07:00:12 -0800 (PST) Subject: [Gambas-user] Gambas bug tracker In-Reply-To: <201101021428.59806.gambas@...1...> References: <201101021428.59806.gambas@...1...> Message-ID: <30572139.post@...1379...> Beno?t Minisini wrote: > > Hi, > > Now, from the website, you can go to the new Gambas bug tracker located on > code.google.com. > > I'd like to have a bug tracker written in Gambas, but for now, let's use > the > Google one. > > Normally, each time something is modified in the bug tracker, a mail is > sent > to that mailing-list. > > That way, we will be able to use either the mailing-list or the bug > tracker to > communicate. > > If you have any question or remark about the bug tracker, ask them here! > > Regards, > > -- > Beno?t Minisini > > Direct link: http://code.google.com/p/gambas/ -- View this message in context: http://old.nabble.com/Gambas-bug-tracker-tp30571716p30572139.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sun Jan 2 16:05:34 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 2 Jan 2011 16:05:34 +0100 Subject: [Gambas-user] Gambas bug tracker In-Reply-To: <30572139.post@...1379...> References: <201101021428.59806.gambas@...1...> <30572139.post@...1379...> Message-ID: <201101021605.34504.gambas@...1...> > > Direct link: > > http://code.google.com/p/gambas/ Or http://code.google.com/p/gambas/issues/list to go directly to the bug tracker. -- Beno?t Minisini From demosthenesk at ...626... Sun Jan 2 16:16:35 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 02 Jan 2011 17:16:35 +0200 Subject: [Gambas-user] About Gambas3 IDE Message-ID: <1293981395.9214.2.camel@...2493...> Benoit, the design of IDE of Gambas3 is finished? i make screenshots about Gambas3 for my book for the menus, bars etc. i see that in menus in Gambas2 there were icons before menus in Gambas3 in menus i see only text. -- Regards, Demosthenes Koptsis. From gambas at ...1... Sun Jan 2 16:23:36 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 2 Jan 2011 16:23:36 +0100 Subject: [Gambas-user] About Gambas3 IDE In-Reply-To: <1293981395.9214.2.camel@...2493...> References: <1293981395.9214.2.camel@...2493...> Message-ID: <201101021623.36437.gambas@...1...> > Benoit, > > the design of IDE of Gambas3 is finished? Is the final release released? :-) > > i make screenshots about Gambas3 for my book for the menus, bars etc. > > i see that in menus in Gambas2 there were icons before menus > in Gambas3 in menus i see only text. Mmm... Have you ever heard about "widget style" or "widget theme" in Gnome (or in KDE) ? -- Beno?t Minisini From soleilpqd at ...626... Sun Jan 2 16:53:44 2011 From: soleilpqd at ...626... (=?UTF-8?B?UGjhuqFtIFF1YW5nIETGsMahbmc=?=) Date: Sun, 2 Jan 2011 22:53:44 +0700 Subject: [Gambas-user] KeyPress event with grid view Message-ID: Hi and Happy new year ! With a grid view on a form I can get KeyPress event. It's fine. But with a grid view contained in a vsplit view, no KeyPress event. I tried KeyPress whit VSplit view, same result. Is it a bug or I forgot setting something? Gambas 2.22 on Fedora 14 GNOME. From demosthenesk at ...626... Sun Jan 2 16:55:50 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 02 Jan 2011 17:55:50 +0200 Subject: [Gambas-user] About Gambas3 IDE In-Reply-To: <201101021623.36437.gambas@...1...> References: <1293981395.9214.2.camel@...2493...> <201101021623.36437.gambas@...1...> Message-ID: <1293983750.9904.3.camel@...2493...> On Sun, 2011-01-02 at 16:23 +0100, Beno?t Minisini wrote: > > Benoit, > > > > the design of IDE of Gambas3 is finished? > > Is the final release released? :-) ok! > > > > i make screenshots about Gambas3 for my book for the menus, bars etc. > > > > i see that in menus in Gambas2 there were icons before menus > > in Gambas3 in menus i see only text. > > Mmm... Have you ever heard about "widget style" or "widget theme" in Gnome (or > in KDE) ? is it widget theme issue? i change all my themes in Gnome, none give me icons in menus, still i get only text. which theme works for Gambas3, and it is tested? (in Gambas2 menus had icons) -- Regards, Demosthenes Koptsis. From gambas at ...1... Sun Jan 2 17:01:13 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 2 Jan 2011 17:01:13 +0100 Subject: [Gambas-user] About Gambas3 IDE In-Reply-To: <1293983750.9904.3.camel@...2493...> References: <1293981395.9214.2.camel@...2493...> <201101021623.36437.gambas@...1...> <1293983750.9904.3.camel@...2493...> Message-ID: <201101021701.13947.gambas@...1...> > On Sun, 2011-01-02 at 16:23 +0100, Beno?t Minisini wrote: > > > Benoit, > > > > > > the design of IDE of Gambas3 is finished? > > > > Is the final release released? :-) > > ok! > > > > i make screenshots about Gambas3 for my book for the menus, bars etc. > > > > > > i see that in menus in Gambas2 there were icons before menus > > > in Gambas3 in menus i see only text. > > > > Mmm... Have you ever heard about "widget style" or "widget theme" in > > Gnome (or in KDE) ? > > is it widget theme issue? > > i change all my themes in Gnome, none give me icons in menus, still i > get only text. > > which theme works for Gambas3, and it is tested? > (in Gambas2 menus had icons) Gambas 3 is a QT4 application. Ubuntu made a QT4 widget style that remove icons from the menus. So you must change the QT4 widget style by using the Qt4 qtconfig program (beware, on Ubuntu, you can have qtconfig installed for both QT3 and QT4, but only one of them is run). Regards, -- Beno?t Minisini From admhardsoft at ...253... Sun Jan 2 16:40:17 2011 From: admhardsoft at ...253... (admhardsoft at ...253...) Date: Sun, 2 Jan 2011 15:40:17 +0000 Subject: [Gambas-user] About gambas y webpages development Message-ID: <916281280-1293982806-cardhu_decombobulator_blackberry.rim.net-1639984299-@...2521...> Hi I wanna know if I can use gamba for developmen dinamic website for instance in PHP, java?. Somebdy can give any idea what free software ias similar to macromedia dreamweaver for develpment website dinamic? Thanks to everybody Happy new year 2011 Tomas Sent on the TELUS Mobility network with BlackBerry From gambas at ...1... Sun Jan 2 17:06:46 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 2 Jan 2011 17:06:46 +0100 Subject: [Gambas-user] Further news on valuebox bugs in Gambas3 In-Reply-To: <4D1E83F4.5060004@...169...> References: <4D1E83F4.5060004@...169...> Message-ID: <201101021706.46912.gambas@...1...> > I reported bugs when a date valuebox is housed in a Vbox. I then moved > all my controls to a Panel and got the same problems if the > Panel.Arrangement was set to Vertical. > I then moved all Valueboxes to a Frame and got no problems. Obviously > the Frame does not have an Arrangement property. > > One further clue. When overcoming the problems, by using a Frame or by > setting .Arrangement to NONE in Vbox or Panel, the datePicker disappears > from the ValueBox. > > Hope this helps. I have a pending new ValueBox to integrate, rewritten by "Durandal", a french gambas user. I will give news about that as soon as I deal with it. Regards, -- Beno?t Minisini From demosthenesk at ...626... Sun Jan 2 18:33:31 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 02 Jan 2011 19:33:31 +0200 Subject: [Gambas-user] Gambas3 complains about gb.settings In-Reply-To: <201101021417.20548.gambas@...1...> References: <1293888700.6829.2.camel@...2493...> <201101012203.26705.gambas@...1...> <201101021417.20548.gambas@...1...> Message-ID: <1293989611.11319.2.camel@...2493...> Thank you !!! I really love this project, it was pitty not to run it and it was annoying manually edit the .project file for each project with this configuration. Thanks again! On Sun, 2011-01-02 at 14:17 +0100, Beno?t Minisini wrote: > > > i converted a project from Gambas2 to Gambas3. > > > But Gambas3 complains about gb.settings. > > > > > > i have never used this component for this project. > > > If i go to components dialog it is clicked and i cant unmark it. > > > > > > if i add in .project file the line > > > Component=gb.settings it works. > > > > It is a new requirement of the gb.form.mdi component on Gambas 3. But the > > automatic converter didn't add it automatically. > > > > Regards, > > OK, fixed in revision #3428. > -- Regards, Demosthenes Koptsis. From gambas.fr at ...626... Sun Jan 2 19:19:48 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 2 Jan 2011 19:19:48 +0100 Subject: [Gambas-user] About Gambas3 IDE In-Reply-To: <201101021701.13947.gambas@...1...> References: <1293981395.9214.2.camel@...2493...> <201101021623.36437.gambas@...1...> <1293983750.9904.3.camel@...2493...> <201101021701.13947.gambas@...1...> Message-ID: on ubuntu use gconf-editor and : set desktop>gnome>interface>menu_have_icons to true -- Fabien Bodard From gambas at ...1... Sun Jan 2 19:26:49 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 2 Jan 2011 19:26:49 +0100 Subject: [Gambas-user] About Gambas3 IDE In-Reply-To: References: <1293981395.9214.2.camel@...2493...> <201101021701.13947.gambas@...1...> Message-ID: <201101021926.49746.gambas@...1...> > on ubuntu use gconf-editor and : > > set desktop>gnome>interface>menu_have_icons to true Couldn't they add a checkbox somewhere for that? Pffff. -- Beno?t Minisini From demosthenesk at ...626... Sun Jan 2 19:56:50 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 02 Jan 2011 20:56:50 +0200 Subject: [Gambas-user] About Gambas3 IDE In-Reply-To: References: <1293981395.9214.2.camel@...2493...> <201101021623.36437.gambas@...1...> <1293983750.9904.3.camel@...2493...> <201101021701.13947.gambas@...1...> Message-ID: <1293994610.2428.1.camel@...2494...> Yes, Fabien that was it! Anyway the icon on the form, that it is not showed in running mode but only in deign mode, does it have a same solution? Thanks! On Sun, 2011-01-02 at 19:19 +0100, Fabien Bodard wrote: > on ubuntu use gconf-editor and : > > set desktop>gnome>interface>menu_have_icons to true > > > > > -- Regards, Demosthenes From gambas at ...1... Sun Jan 2 20:17:47 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 2 Jan 2011 20:17:47 +0100 Subject: [Gambas-user] code for VB button control array hangs program In-Reply-To: References: Message-ID: <201101022017.47227.gambas@...1...> > Add a button to a program and modify code to read: > > Public Sub Button1_Click(index As Integer) > End > > If you try to run the program, nothing happens and the problem line is > not identified. This may happen if you import VB code and don't > realize control arrays are not allowed. > > There are 2 Stack backtrace lines, but I'm not sure how to interpret them: > FMain.$load.1594 > FMain.?.? > > In my case, there is no line 1594. > It should be fixed in revision #3430. Regards, -- Beno?t Minisini From zachsmith022 at ...626... Sun Jan 2 20:47:19 2011 From: zachsmith022 at ...626... (Zach Smith) Date: Sun, 2 Jan 2011 13:47:19 -0600 Subject: [Gambas-user] predefined date formats don't work in Gambas 3 Message-ID: These work in Gambas 2 but not Gambas 3. Print Format(Now, gb.GeneralDate) Print Format(Now, gb.LongDate) Print Format(Now, gb.MediumDate) Print Format(Now, gb.ShortDate) Print Format(Now, gb.LongTime) Print Format(Now, gb.MediumTime) Print Format(Now, gb.ShortTime) From gambas at ...1... Sun Jan 2 21:09:03 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 2 Jan 2011 21:09:03 +0100 Subject: [Gambas-user] predefined date formats don't work in Gambas 3 In-Reply-To: References: Message-ID: <201101022109.03086.gambas@...1...> > These work in Gambas 2 but not Gambas 3. > > Print Format(Now, gb.GeneralDate) > Print Format(Now, gb.LongDate) > Print Format(Now, gb.MediumDate) > Print Format(Now, gb.ShortDate) > Print Format(Now, gb.LongTime) > Print Format(Now, gb.MediumTime) > Print Format(Now, gb.ShortTime) > Fixed in revision #3432. Regards, -- Beno?t Minisini From gambas.fr at ...626... Sun Jan 2 21:30:39 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 2 Jan 2011 21:30:39 +0100 Subject: [Gambas-user] About Gambas3 IDE In-Reply-To: <1293994610.2428.1.camel@...2494...> References: <1293981395.9214.2.camel@...2493...> <201101021623.36437.gambas@...1...> <1293983750.9904.3.camel@...2493...> <201101021701.13947.gambas@...1...> <1293994610.2428.1.camel@...2494...> Message-ID: change the windows style.... ubuntu choose a style with no icon ... linux is not windows.... icons at top left are not required 2011/1/2 Demosthenes Koptsis : > Yes, Fabien that was it! > > Anyway the icon on the form, that it is not showed in running mode but > only in deign mode, does it have a same solution? > > Thanks! > > On Sun, 2011-01-02 at 19:19 +0100, Fabien Bodard wrote: >> on ubuntu use gconf-editor and : >> >> set desktop>gnome>interface>menu_have_icons to true >> >> >> >> >> > > -- > Regards, > Demosthenes > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...1... Sun Jan 2 22:08:42 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 2 Jan 2011 22:08:42 +0100 Subject: [Gambas-user] Balloon no more displayed In-Reply-To: <1293978619.6545.16.camel@...2476...> References: <1293978619.6545.16.camel@...2476...> Message-ID: <201101022208.42424.gambas@...1...> > Hi to all, > Since updated to last svn 3247 the balloon disappear from my project, i > send you the project to investigate it. > Run the project > After the language selection a wizard will start: don't check checkbox > on the first step, > leave any field blank in the second step and hit next: the step will not > change but no balloon will appear, or at least it is hidden ( not on > top). > I cant figure out if it is a bug or a problem with my code. > Tanks for help. > Best wishes for a new GAMBAS year. > Emanuele I see the balloon as expected, but I'm using KDE. I'm going to test with Gnome... -- Beno?t Minisini From gambas at ...1... Sun Jan 2 22:13:28 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 2 Jan 2011 22:13:28 +0100 Subject: [Gambas-user] Balloon no more displayed In-Reply-To: <201101022208.42424.gambas@...1...> References: <1293978619.6545.16.camel@...2476...> <201101022208.42424.gambas@...1...> Message-ID: <201101022213.28151.gambas@...1...> > > Hi to all, > > Since updated to last svn 3247 I think you meant 3427 instead? > > the balloon disappear from my project, i > > send you the project to investigate it. > > Run the project > > After the language selection a wizard will start: don't check checkbox > > on the first step, > > leave any field blank in the second step and hit next: the step will not > > change but no balloon will appear, or at least it is hidden ( not on > > top). > > I cant figure out if it is a bug or a problem with my code. > > Tanks for help. > > Best wishes for a new GAMBAS year. > > Emanuele > > I see the balloon as expected, but I'm using KDE. I'm going to test with > Gnome... It works too with Gnome. Are you sure that you are correctly recompile the latest revision? Which desktop and window manager do you use? -- Beno?t Minisini From gael.lehech at ...626... Sun Jan 2 23:56:21 2011 From: gael.lehech at ...626... (=?ISO-8859-1?Q?Ga=EBl_Le_Hec=27H?=) Date: Sun, 2 Jan 2011 23:56:21 +0100 Subject: [Gambas-user] Settings.ReadWindow.335: #13: Null object Message-ID: hi, try to launch help browser with F1 in gambas3 ide r3431 and I got this error : Settings.ReadWindow.335: #13: Null object And then the IDE window close. Removed ~/.config/gambas3/gambas3.conf but now : bash-4.1$ gambas3 warning: unable to load 16/cancel Settings.ReadWindow.335: #13: Null object 0: Settings.ReadWindow.335 1: Settings.Read.385 2: FToolBox._new.23 3: FMain._new.32 4: Project.Main.264 And the ide don't launch. I went back to rev 3403 and no problem. All this on SalixOS 13.1 with LXDE as window manager. best regards, Ga?l Le Hec'H From rterry at ...1946... Sun Jan 2 23:57:50 2011 From: rterry at ...1946... (richard terry) Date: Mon, 3 Jan 2011 09:57:50 +1100 Subject: [Gambas-user] Sig 11 with menu items remains Message-ID: <201101030957.50707.rterry@...1946...> Hi Benoit/List: A reminder prior to the release that that annoying Sig11 bug remains with the menu items, you'll remember I tried to use valgrind with it some time ago without success and I think the suggestion was that maybe it is related to a QT4 bug. Maybe someone else on the list is aware of this or can help. I've emailed Ian, who is much more switched on than me about computing to see if he can liase with you on this. Also lately I've been getting some Sig11 with Result objects, not sure why, just to let you know they exist, I'll try and track these down. Another thing - at some point before you release, any chance of re-debating the spacing property, which as you know used to be in pixels, but now somehow relates to something else which I find a major pain, as it was wonderful to be able to space once controls by 1 pixel, which no isn't possible. One last thing - which we have debated before is the behaviour of gambas of removing a collection member when it is set to null, which causes our project a great deal of greif as we use collections to transfer data from our backend, and compare old data to changed data, and to us, having a collection member has changed from something to null is significant. If setting mycollection!date to null removes it from a collection we miss out one one database field being updated. As you know we don't use your data objects. Regards Richard. From rterry at ...1946... Mon Jan 3 00:05:22 2011 From: rterry at ...1946... (richard terry) Date: Mon, 3 Jan 2011 10:05:22 +1100 Subject: [Gambas-user] break points - removing question In-Reply-To: <201101021413.50935.gambas@...1...> References: <201101021021.38435.rterry@...1946...> <201101021413.50935.gambas@...1...> Message-ID: <201101031005.22757.rterry@...1946...> On Monday 03 January 2011 00:13:50 Beno?t Minisini wrote: > > Hi Benoit, > > > > Is there any way you could insitute removing breakpoints other than those > > in the current routine which we already can? > > > > sometimes I put in a breakpoint to check something, then having validated > > things are ok, want it removed so the program execution continues past > > this next time, but the subroutine itself has already executed, and for > > example, I may be stopped at another breakpoint. > > > > Hope this makes sense. > > > > Richard > > Sorry, I don't understand the story there. :-/ > Ok, I'll try again. Imagine you have a bug in your program, and you want to stop the program exection at various points so you use 'toggle breakpoint' in a number of subroutines. Once gambas execution enters a subroutine, one has the ability to, when the program has paused, swipe any thing, inspect the contents and step on either line by line or run the program untili the next code break. Problem is, that having inspected something, one might find that that particular subroutine is working ok, so one no longer wants to have the code break in a previous routine, but since one has 'passed it by', gambas won't let you click on it to remove it, one has to stop the program. IE the question is can it be possible to remove a toggle breakpoint from a subroutine that the program is currently not executing without stopping the program? Regards Richard From gambas at ...1... Mon Jan 3 00:12:05 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 3 Jan 2011 00:12:05 +0100 Subject: [Gambas-user] break points - removing question In-Reply-To: <201101031005.22757.rterry@...1946...> References: <201101021021.38435.rterry@...1946...> <201101021413.50935.gambas@...1...> <201101031005.22757.rterry@...1946...> Message-ID: <201101030012.05634.gambas@...1...> > On Monday 03 January 2011 00:13:50 Beno?t Minisini wrote: > > > Hi Benoit, > > > > > > Is there any way you could insitute removing breakpoints other than > > > those in the current routine which we already can? > > > > > > sometimes I put in a breakpoint to check something, then having > > > validated things are ok, want it removed so the program execution > > > continues past this next time, but the subroutine itself has already > > > executed, and for example, I may be stopped at another breakpoint. > > > > > > Hope this makes sense. > > > > > > Richard > > > > Sorry, I don't understand the story there. :-/ > > Ok, I'll try again. > > Imagine you have a bug in your program, and you want to stop the program > exection at various points so you use 'toggle breakpoint' in a number of > subroutines. > > Once gambas execution enters a subroutine, one has the ability to, when the > program has paused, swipe any thing, inspect the contents and step on > either line by line or run the program untili the next code break. > > Problem is, that having inspected something, one might find that that > particular subroutine is working ok, so one no longer wants to have the > code break in a previous routine, but since one has 'passed it by', gambas > won't let you click on it to remove it, one has to stop the program. > > > IE the question is can it be possible to remove a toggle breakpoint from a > subroutine that the program is currently not executing without stopping the > program? > > Regards > > Richard > Where did you see that you couldn't? You can remove any breakpoint anywhere in the code as soon as the running program is paused. You have a list of all breakpoints in the debugging panel. Just select the one you want to remove there, and click on the "Remove current breakpoint" bouton. And removing it directly form the editor should also works. Otherwise it is a bug! Regards, -- Beno?t Minisini From sotema at ...626... Mon Jan 3 00:16:48 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Mon, 03 Jan 2011 00:16:48 +0100 Subject: [Gambas-user] Balloon no more displayed In-Reply-To: <201101022213.28151.gambas@...1...> References: <1293978619.6545.16.camel@...2476...> <201101022208.42424.gambas@...1...> <201101022213.28151.gambas@...1...> Message-ID: <1294010208.1902.27.camel@...2476...> Hi Beno?t, found it. The balloon appear as expected if i disable the Desktop Effects. With them enabled i cannot see the balloon nor with QT nor with GTK. Ubuntu 10.10 x86_64 Gnome svn rev 3432 Il giorno dom, 02/01/2011 alle 22.13 +0100, Beno?t Minisini ha scritto: > > > Hi to all, > > > Since updated to last svn 3247 > > I think you meant 3427 instead? > > > > the balloon disappear from my project, i > > > send you the project to investigate it. > > > Run the project > > > After the language selection a wizard will start: don't check checkbox > > > on the first step, > > > leave any field blank in the second step and hit next: the step will not > > > change but no balloon will appear, or at least it is hidden ( not on > > > top). > > > I cant figure out if it is a bug or a problem with my code. > > > Tanks for help. > > > Best wishes for a new GAMBAS year. > > > Emanuele > > > > I see the balloon as expected, but I'm using KDE. I'm going to test with > > Gnome... > > It works too with Gnome. Are you sure that you are correctly recompile the > latest revision? Which desktop and window manager do you use? > From gambas at ...1... Mon Jan 3 00:20:30 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 3 Jan 2011 00:20:30 +0100 Subject: [Gambas-user] Sig 11 with menu items remains In-Reply-To: <201101030957.50707.rterry@...1946...> References: <201101030957.50707.rterry@...1946...> Message-ID: <201101030020.30887.gambas@...1...> > Hi Benoit/List: > > > A reminder prior to the release that that annoying Sig11 bug remains with > the menu items, you'll remember I tried to use valgrind with it some time > ago without success and I think the suggestion was that maybe it is > related to a QT4 bug. > > Maybe someone else on the list is aware of this or can help. > > I've emailed Ian, who is much more switched on than me about computing to > see if he can liase with you on this. > > Also lately I've been getting some Sig11 with Result objects, not sure why, > just to let you know they exist, I'll try and track these down. If you want to help tracking these bugs, compile Gambas with optimizations disabled (run 'make "CFLAGS=-O0 -g" "CXXFLAGS=-O0 -g"' instead of just 'make'), and enable core dumps. Then, as soon as you get a crash, a core file will be generated, and by using gdb on it, you will get a backtrace of the crash you can send me. > > Another thing - at some point before you release, any chance of > re-debating the spacing property, which as you know used to be in pixels, > but now somehow relates to something else which I find a major pain, as it > was wonderful to be able to space once controls by 1 pixel, which no isn't > possible. I think you are annoyed because your GUI is maybe too cluttered, aren't you? :-) I don't want to remove the current Spacing property. But I could add the old one if someone find a good name for it. I have already used "Margin", "Padding, and "Spacing". Internally, the old spacing property is there. It's just a matter of finding a good name! > > One last thing - which we have debated before is the behaviour of gambas of > removing a collection member when it is set to null, which causes our > project a great deal of greif as we use collections to transfer data from > our backend, and compare old data to changed data, and to us, having a > collection member has changed from something to null is significant. If > setting mycollection!date to null removes it from a collection we miss > out one one database field being updated. > > As you know we don't use your data objects. > I won't change the behaviour of the Collection class just for you. It will break all other Gambas applications except yours. Just don't use Collection and create your own container class that fits your needs. Regards, -- Beno?t Minisini From gambas at ...1... Mon Jan 3 00:26:40 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 3 Jan 2011 00:26:40 +0100 Subject: [Gambas-user] Balloon no more displayed In-Reply-To: <1294010208.1902.27.camel@...2476...> References: <1293978619.6545.16.camel@...2476...> <201101022213.28151.gambas@...1...> <1294010208.1902.27.camel@...2476...> Message-ID: <201101030026.40670.gambas@...1...> > Hi Beno?t, > found it. The balloon appear as expected if i disable the Desktop > Effects. With them enabled i cannot see the balloon nor with QT nor with > GTK. > > Ubuntu 10.10 x86_64 > Gnome > svn rev 3432 > So this is a Compiz problem... but I can't test it on my machine. I have a NVIDIA card: The NVIDIA driver freezes quickly, so I use Nouveau. I have repeated freezes too with Nouveau, but you have just to wait one minute at each freeze, and the system goes back to normal. But the 3D part of the nouveau is buggy too, so I had to disable it. And so I can't use Compiz at all! If someone that knows Compiz well could investigate... Regards, -- Beno?t Minisini From ihaywood at ...1979... Mon Jan 3 01:07:57 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Mon, 3 Jan 2011 11:07:57 +1100 Subject: [Gambas-user] Sig 11 with menu items remains In-Reply-To: <201101030020.30887.gambas@...1...> References: <201101030957.50707.rterry@...1946...> <201101030020.30887.gambas@...1...> Message-ID: 2011/1/3 Beno?t Minisini : >> Hi Benoit/List: >> >> >> A reminder prior to the release that that annoying Sig11 bug remains with >> the menu items, you'll remember I tried to use valgrind with it some time >> ago without success and I think the suggestion was that maybe it is >> related to a QT4 bug. >> >> Maybe someone else on the list is aware of this or can help. >> >> I've emailed Ian, who is much more switched on than me about computing to >> see if he can liase with you on this. >> >> Also lately I've been getting some Sig11 with Result objects, not sure why, >> just to let you know they exist, I'll try and track these down. > > If you want to help tracking these bugs, compile Gambas with optimizations > disabled (run 'make "CFLAGS=-O0 -g" "CXXFLAGS=-O0 -g"' instead of just > 'make'), and enable core dumps. Then, as soon as you get a crash, a core file > will be generated, and by using gdb on it, you will get a backtrace of the > crash you can send me. Ok, will do. > I don't want to remove the current Spacing property. But I could add the old > one if someone find a good name for it. I have already used "Margin", > "Padding, and "Spacing". Internally, the old spacing property is there. It's > just a matter of finding a good name! PixelSpacing? > Just don't use Collection and create your own container class that fits your > needs. while the Collection.Add() loophole remains we are sweet. :-) but point taken, we will switch to a class emulating Collection using _get/_set Ian From gambas at ...2524... Mon Jan 3 01:10:17 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 03 Jan 2011 00:10:17 +0000 Subject: [Gambas-user] Issue 3 in gambas: gtk+ problem with scrollbar maximum Message-ID: <0-6813199134517018827-140501792405594223-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any New issue 3 by zachsmith022: gtk+ problem with scrollbar maximum http://code.google.com/p/gambas/issues/detail?id=3 Drag the scrollbars to the limits. Scrollbar1 has a max limit of 100 but only goes to 99. Works OK in qt4. Running gambas 3. By doing that carefully, you have done 50% of the bug fix job! Attachments: Test1-0.0.1.tar.gz 4.7 KB From gambas at ...2524... Mon Jan 3 01:20:22 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 03 Jan 2011 00:20:22 +0000 Subject: [Gambas-user] Issue 3 in gambas: gtk+ problem with scrollbar maximum In-Reply-To: <0-6813199134517018827-140501792405594223-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-140501792405594223-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-140501792405594223-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-2.99.0 Comment #1 on issue 3 by benoit.minisini: gtk+ problem with scrollbar maximum http://code.google.com/p/gambas/issues/detail?id=3 (No comment was entered for this change.) From gambas at ...2524... Mon Jan 3 01:25:23 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 03 Jan 2011 00:25:23 +0000 Subject: [Gambas-user] Issue 3 in gambas: gtk+ problem with scrollbar maximum In-Reply-To: <1-6813199134517018827-140501792405594223-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-140501792405594223-gambas=googlecode.com@...2524...> <0-6813199134517018827-140501792405594223-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-140501792405594223-gambas=googlecode.com@...2524...> Comment #2 on issue 3 by zachsmith022: gtk+ problem with scrollbar maximum http://code.google.com/p/gambas/issues/detail?id=3 Also, if you change the autosize property to true for the label in the test code, then the alignment=center setting no longer works. With alignment=center and AutoResize=true, I would expect the label to grow or shrink symmetrically from the center point of the label. From gambas at ...2524... Mon Jan 3 01:29:33 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 03 Jan 2011 00:29:33 +0000 Subject: [Gambas-user] Issue 3 in gambas: gtk+ problem with scrollbar maximum In-Reply-To: <2-6813199134517018827-140501792405594223-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-140501792405594223-gambas=googlecode.com@...2524...> <0-6813199134517018827-140501792405594223-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-140501792405594223-gambas=googlecode.com@...2524...> Updates: Labels: -Version-2.99.0 Version-TRUNK GUI-GTK Comment #3 on issue 3 by benoit.minisini: gtk+ problem with scrollbar maximum http://code.google.com/p/gambas/issues/detail?id=3 (No comment was entered for this change.) From gambas at ...2524... Mon Jan 3 01:33:35 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 03 Jan 2011 00:33:35 +0000 Subject: [Gambas-user] Issue 3 in gambas: gtk+ problem with scrollbar maximum In-Reply-To: <3-6813199134517018827-140501792405594223-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-140501792405594223-gambas=googlecode.com@...2524...> <0-6813199134517018827-140501792405594223-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-140501792405594223-gambas=googlecode.com@...2524...> Comment #4 on issue 3 by benoit.minisini: gtk+ problem with scrollbar maximum http://code.google.com/p/gambas/issues/detail?id=3 Please create another issue if you want to report another bug! From gambas at ...2524... Mon Jan 3 01:37:36 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 03 Jan 2011 00:37:36 +0000 Subject: [Gambas-user] Issue 1 in gambas: Gambas 3 has not been release yet In-Reply-To: <0-6813199134517018827-10510653250435311728-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-10510653250435311728-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-10510653250435311728-gambas=googlecode.com@...2524...> Updates: Labels: -Version-2.99.0 Version-TRUNK Comment #1 on issue 1 by benoit.minisini: Gambas 3 has not been release yet http://code.google.com/p/gambas/issues/detail?id=1 (No comment was entered for this change.) From gambas at ...2524... Mon Jan 3 01:47:38 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 03 Jan 2011 00:47:38 +0000 Subject: [Gambas-user] Issue 4 in gambas: Autosizing and centering a label does not center a label Message-ID: <0-6813199134517018827-14811208213942043935-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any New issue 4 by zachsmith022: Autosizing and centering a label does not center a label http://code.google.com/p/gambas/issues/detail?id=4 If you set label properties to autosize=true and alignment=center it does not center the label. I would expect the label to grow or shrink symmetrically from the center point of the label. From gambas at ...2524... Mon Jan 3 01:54:51 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 03 Jan 2011 00:54:51 +0000 Subject: [Gambas-user] Issue 4 in gambas: Autosizing and centering a label does not center a label In-Reply-To: <0-6813199134517018827-14811208213942043935-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-14811208213942043935-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-14811208213942043935-gambas=googlecode.com@...2524...> Updates: Labels: -Version Version-TRUNK Comment #1 on issue 4 by benoit.minisini: Autosizing and centering a label does not center a label http://code.google.com/p/gambas/issues/detail?id=4 Please specify the Version label! From gambas at ...2524... Mon Jan 3 01:58:52 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 03 Jan 2011 00:58:52 +0000 Subject: [Gambas-user] Issue 4 in gambas: Autosizing and centering a label does not center a label In-Reply-To: <1-6813199134517018827-14811208213942043935-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-14811208213942043935-gambas=googlecode.com@...2524...> <0-6813199134517018827-14811208213942043935-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-14811208213942043935-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #2 on issue 4 by benoit.minisini: Autosizing and centering a label does not center a label http://code.google.com/p/gambas/issues/detail?id=4 This is not a bug but a feature. As soon as a Label is vertically centered, then AutoResize only acts horizontally. From gambas at ...2524... Mon Jan 3 02:02:53 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 03 Jan 2011 01:02:53 +0000 Subject: [Gambas-user] Issue 4 in gambas: Autosizing and centering a label does not center a label In-Reply-To: <2-6813199134517018827-14811208213942043935-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-14811208213942043935-gambas=googlecode.com@...2524...> <0-6813199134517018827-14811208213942043935-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-14811208213942043935-gambas=googlecode.com@...2524...> Updates: Owner: benoit.minisini Comment #3 on issue 4 by benoit.minisini: Autosizing and centering a label does not center a label http://code.google.com/p/gambas/issues/detail?id=4 (No comment was entered for this change.) From zachsmith022 at ...626... Mon Jan 3 02:26:33 2011 From: zachsmith022 at ...626... (Zach Smith) Date: Sun, 2 Jan 2011 19:26:33 -0600 Subject: [Gambas-user] Gambas bug tracker In-Reply-To: <201101021605.34504.gambas@...1...> References: <201101021428.59806.gambas@...1...> <30572139.post@...1379...> <201101021605.34504.gambas@...1...> Message-ID: 2011/1/2 Beno?t Minisini : > Or http://code.google.com/p/gambas/issues/list to go directly to the bug > tracker. There seems to be no way to set the issue labels while submitting. Are they disabled for non-admins? From gambas at ...1... Mon Jan 3 02:46:03 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 3 Jan 2011 02:46:03 +0100 Subject: [Gambas-user] Gambas bug tracker In-Reply-To: References: <201101021428.59806.gambas@...1...> <201101021605.34504.gambas@...1...> Message-ID: <201101030246.03725.gambas@...1...> > 2011/1/2 Beno?t Minisini : > > Or http://code.google.com/p/gambas/issues/list to go directly to the bug > > tracker. > > There seems to be no way to set the issue labels while submitting. > Are they disabled for non-admins? > Apparently yes... This is a stupid thing! -- Beno?t Minisini From rterry at ...1946... Mon Jan 3 03:04:14 2011 From: rterry at ...1946... (richard terry) Date: Mon, 3 Jan 2011 13:04:14 +1100 Subject: [Gambas-user] break points - removing question In-Reply-To: <201101030012.05634.gambas@...1...> References: <201101021021.38435.rterry@...1946...> <201101031005.22757.rterry@...1946...> <201101030012.05634.gambas@...1...> Message-ID: <201101031304.14944.rterry@...1946...> On Monday 03 January 2011 10:12:05 Beno?t Minisini wrote: > > On Monday 03 January 2011 00:13:50 Beno?t Minisini wrote: > > > > Hi Benoit, > > > > > > > > Is there any way you could insitute removing breakpoints other than > > > > those in the current routine which we already can? > > > > > > > > sometimes I put in a breakpoint to check something, then having > > > > validated things are ok, want it removed so the program execution > > > > continues past this next time, but the subroutine itself has already > > > > executed, and for example, I may be stopped at another breakpoint. > > > > > > > > Hope this makes sense. > > > > > > > > Richard > > > > > > Sorry, I don't understand the story there. :-/ > > > > Ok, I'll try again. > > > > Imagine you have a bug in your program, and you want to stop the program > > exection at various points so you use 'toggle breakpoint' in a number of > > subroutines. > > > > Once gambas execution enters a subroutine, one has the ability to, when > > the program has paused, swipe any thing, inspect the contents and step on > > either line by line or run the program untili the next code break. > > > > Problem is, that having inspected something, one might find that that > > particular subroutine is working ok, so one no longer wants to have the > > code break in a previous routine, but since one has 'passed it by', > > gambas won't let you click on it to remove it, one has to stop the > > program. > > > > > > IE the question is can it be possible to remove a toggle breakpoint from > > a subroutine that the program is currently not executing without stopping > > the program? > > > > Regards > > > > Richard > > Where did you see that you couldn't? You can remove any breakpoint anywhere > in the code as soon as the running program is paused. You have a list of > all breakpoints in the debugging panel. Just select the one you want to > remove there, and click on the "Remove current breakpoint" bouton. And > removing it directly form the editor should also works. Otherwise it is a > bug! Ok, I'll try that, I using just click on the breakpoint in the IDE to remove it. Richard > > Regards, > From rterry at ...1946... Mon Jan 3 03:15:00 2011 From: rterry at ...1946... (richard terry) Date: Mon, 3 Jan 2011 13:15:00 +1100 Subject: [Gambas-user] Sig 11 with menu items remains In-Reply-To: <201101030020.30887.gambas@...1...> References: <201101030957.50707.rterry@...1946...> <201101030020.30887.gambas@...1...> Message-ID: <201101031315.00100.rterry@...1946...> On Monday 03 January 2011 10:20:30 Beno?t Minisini wrote: > > Hi Benoit/List: > > > > > > A reminder prior to the release that that annoying Sig11 bug remains with > > the menu items, you'll remember I tried to use valgrind with it some time > > ago without success and I think the suggestion was that maybe it is > > related to a QT4 bug. > > > > Maybe someone else on the list is aware of this or can help. > > > > I've emailed Ian, who is much more switched on than me about computing to > > see if he can liase with you on this. > > > > Also lately I've been getting some Sig11 with Result objects, not sure > > why, just to let you know they exist, I'll try and track these down. > > If you want to help tracking these bugs, compile Gambas with optimizations > disabled (run 'make "CFLAGS=-O0 -g" "CXXFLAGS=-O0 -g"' instead of just > 'make'), and enable core dumps. Then, as soon as you get a crash, a core > file will be generated, and by using gdb on it, you will get a backtrace > of the crash you can send me. > > > Another thing - at some point before you release, any chance of > > re-debating the spacing property, which as you know used to be in pixels, > > but now somehow relates to something else which I find a major pain, as > > it was wonderful to be able to space once controls by 1 pixel, which no > > isn't possible. > > I think you are annoyed because your GUI is maybe too cluttered, aren't > you? It's difficult with a medical application as the amount of information needed on the screen is often massive and one thing we have avoided is having heirachical popup modal windows to enter/view information and by in large have succeeded pretty well, however we often deal with complex forms. > :-) > > I don't want to remove the current Spacing property. But I could add the > old one if someone find a good name for it. I have already used "Margin", > "Padding, and "Spacing". Internally, the old spacing property is there. > It's just a matter of finding a good name! PROPERTY Spacing AS Boolean Returns or sets the number of pixels that separates children controls. if there is popup help it will explain that spacing is in pixels However from within gambas there is no way of defining this. If spacing is pulled from the system, couldn't you just display the default spacing as an integer, but allow the user to type over it with another integer value? Regards Richard > > > One last thing - which we have debated before is the behaviour of gambas > > of removing a collection member when it is set to null, which causes our > > project a great deal of greif as we use collections to transfer data from > > our backend, and compare old data to changed data, and to us, having a > > collection member has changed from something to null is significant. If > > setting mycollection!date to null removes it from a collection we miss > > out one one database field being updated. > > > > As you know we don't use your data objects. > > I won't change the behaviour of the Collection class just for you. It will > break all other Gambas applications except yours. > > Just don't use Collection and create your own container class that fits > your needs. > > Regards, > From austinium at ...43... Mon Jan 3 07:55:58 2011 From: austinium at ...43... (vikram) Date: Sun, 2 Jan 2011 22:55:58 -0800 (PST) Subject: [Gambas-user] Spinbox issue Message-ID: <384520.7831.qm@...2469...> Hi, I am using Gambas2.21, on Debian Squeeze, attached is an application that uses GB.GTK. The form has a spinbox an a button, the user can key in values into the spinbox(not just do so by using the mouse to click on the up and down arrows). The form also has a button with Default property enabled. When the user keys in any value that is within the range of the spinbox and presses enter(without the spinbox losing focus) the value that is in the spinbox is not reflected. I have attached a sample project for your reference. bug? Regards, Vikram Shankar Nair -------------- next part -------------- A non-text attachment was scrubbed... Name: SpinBoxIssue.tar.gz Type: application/x-gzip Size: 7843 bytes Desc: not available URL: From rterry at ...1946... Mon Jan 3 08:37:25 2011 From: rterry at ...1946... (richard terry) Date: Mon, 3 Jan 2011 18:37:25 +1100 Subject: [Gambas-user] Sudden IDE bug > unable to load my project > gambas vaporises. Message-ID: <201101031837.25540.rterry@...1946...> Mm.............Help................. Ok, deep breath. I'd done two things 1) Set an argument in the project properties, which was just a flag, and working fine. 2) I'd created a new menu using the menu editor, just a single menu item with no children. I then tried to assign this menu to a menubutton, but the menu item I'd just added, wasn't showing up in the popup menu's list. I repeated the process to no avail, thought I'd just shut down gambas then reload, but on reload just as the tips show > gambas vaporises!! Given that I've still got a Sig11 problem with menu's I suspect this must have something to do with it. Bumma. I'll shut down and re-boot and see if that makes any difference, but any suggestions in the meantime would be welcomed. Regards Richard From gambas at ...2524... Mon Jan 3 09:16:23 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 03 Jan 2011 08:16:23 +0000 Subject: [Gambas-user] Issue 5 in gambas: GUI crash on menu editor Message-ID: <0-6813199134517018827-4365405718336369436-gambas=googlecode.com@...2524...> Status: New Owner: benoit.minisini Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any New issue 5 by ihaywood3: GUI crash on menu editor http://code.google.com/p/gambas/issues/detail?id=5 1) Describe the problem. Clicking on the menu editor button in the form editor causes GUI crash stacktrace from GUI is: Settings.ReadWindow.335: #13: Null object 0: Settings.ReadWindow.335 1: Settings.Read.385 2: FMenu.Form_Open.47 3: FMenu.Run.18 4: FForm.Action_Activate.2870 5: >Action.Raise.217 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Operating system: Linux Distribution: Ubuntu Architecture: x86 GUI component: QT4 Desktop used: Gnome 3) Provide a little project that reproduces the bug or the crash. 4) If your project needs a database, try to provide it, or part of it. 5) Explain clearly how to reproduce the bug or the crash. 6) By doing that carefully, you have done 50% of the bug fix job! From gambas at ...2524... Mon Jan 3 10:14:33 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 03 Jan 2011 09:14:33 +0000 Subject: [Gambas-user] Issue 5 in gambas: GUI crash on menu editor In-Reply-To: <0-6813199134517018827-4365405718336369436-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-4365405718336369436-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-4365405718336369436-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 5 by benoit.minisini: GUI crash on menu editor http://code.google.com/p/gambas/issues/detail?id=5 (No comment was entered for this change.) From tommyline at ...2525... Mon Jan 3 10:25:19 2011 From: tommyline at ...2525... (Tomek) Date: Mon, 03 Jan 2011 10:25:19 +0100 Subject: [Gambas-user] Gambas3 can't read single datatype from file. Message-ID: Hi Benoit. While trying to read binary file I found that reading the single datatype from file gives me constant value of 00E-312, no matter what is in the file, while it works fine in Gambas2. Am I doing something wrong? Read #model_file, s 's is declared with - Dim s As Single All other datatypes seem to work fine. Regards Tomasz (Tommyline) ---------------------------------------------------------------------- KONKURS! Wybierz nagrode roku i wygraj! Sprawdz >> http://linkint.pl/f28a0 From gambas at ...2524... Mon Jan 3 10:39:39 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 03 Jan 2011 09:39:39 +0000 Subject: [Gambas-user] Issue 5 in gambas: GUI crash on menu editor In-Reply-To: <1-6813199134517018827-4365405718336369436-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-4365405718336369436-gambas=googlecode.com@...2524...> <0-6813199134517018827-4365405718336369436-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-4365405718336369436-gambas=googlecode.com@...2524...> Comment #2 on issue 5 by ihaywood3: GUI crash on menu editor http://code.google.com/p/gambas/issues/detail?id=5 Index: comp/src/gb.settings/.src/Settings.class =================================================================== --- comp/src/gb.settings/.src/Settings.class (revision 3432) +++ comp/src/gb.settings/.src/Settings.class (working copy) @@ -332,6 +332,8 @@ ' Print "ReadWindow: "; X;; Y; " / "; S;; Screens[S].AvailableX;; Screens[S].AvailableY ' Endif + If IsNull(aPos) Then Return If aPos.Count >= 4 And hWindow.Resizable Then W = Max(32, W) H = Max(32, H) From rterry at ...1946... Mon Jan 3 10:39:55 2011 From: rterry at ...1946... (richard terry) Date: Mon, 3 Jan 2011 20:39:55 +1100 Subject: [Gambas-user] Little project with the menu problem > will vaporise gambas Message-ID: <201101032039.55500.rterry@...1946...> Hi benoit, This little project will show that a menu generated by the menu editor (menu5 - if you look at the form and checkout the menu editor) is not available in the list of popup menu's. After I closed this project and tried to re-load it the project won't load - gambas starts and it dies. I had to tar this by hand because I could'nt load the project to run again, however to re-create this is simple > new project > add a menubutton >add an ordinary menu with several items Then I close the mnu editor Then I opened the menu editor, added a new menu just called mnu5 but with no children, This wasn't available to the popup menulist for the menubutton. Hope this helps Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: menuproject.tar.gz Type: application/x-compressed-tar Size: 20480 bytes Desc: not available URL: From gambas at ...2524... Mon Jan 3 11:03:59 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 03 Jan 2011 10:03:59 +0000 Subject: [Gambas-user] Issue 6 in gambas: signal #11 with Gtk+ Message-ID: <0-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any New issue 6 by sotema: signal #11 with Gtk+ http://code.google.com/p/gambas/issues/detail?id=6 1) Describe the problem. Closing a Wizard, when start the Main Form the project crashes with segmentation fault. Not a fixed problem. Sometimes it works fine. No problem with QT 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK 3432 Operating system: Linux Distribution: Ubuntu 10.04 / 10.10... Architecture: x86_64 GUI component: GTK+ Desktop used: Gnome 3) Provide a little project that reproduces the bug or the crash. attached the project and debug info from gdb. 4) If your project needs a database, try to provide it, or part of it. no needs for it just a MySQL or Postgres Server running. In the wizard provide the username and password for the Admin user (root/postgres). No database will be create at this time. 5) Explain clearly how to reproduce the bug or the crash. Run the project, after setting the language, fill the wizard info (do not check the checkbox in step1), close the wizard. The project may crash. 6) By doing that carefully, you have done 50% of the bug fix job! Attachments: gbPneus.tar.gz 56.4 KB Signal #11 977 bytes From demosthenesk at ...626... Mon Jan 3 12:33:45 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 03 Jan 2011 13:33:45 +0200 Subject: [Gambas-user] Gambas3, Byref is not working Message-ID: <1294054425.30081.2.camel@...2493...> Hi, i made an example for BYREF but it is not working -------------------------------- ' Gambas class file Public Sub Form_Open() Dim Number1 As Integer Number1 = 10 IncrementVariable1(Number1) Print Number1 IncrementVariable2(Number1) Print Number1 End Private Sub IncrementVariable1(Num1 As Integer) 'ByVal sub Num1 = Num1 + 1 End Private Sub IncrementVariable2(ByRef Num2 As Integer) 'ByRef sub Num2 = Num2 + 1 End -------------------------------- result: 10 10 <- this shouldn't be 11? -- Regards, Demosthenes Koptsis. From gambas at ...1... Mon Jan 3 12:35:38 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 3 Jan 2011 12:35:38 +0100 Subject: [Gambas-user] Gambas3, Byref is not working In-Reply-To: <1294054425.30081.2.camel@...2493...> References: <1294054425.30081.2.camel@...2493...> Message-ID: <201101031235.38164.gambas@...1...> > Hi, > > i made an example for BYREF but it is not working > > -------------------------------- > ' Gambas class file > > Public Sub Form_Open() > > Dim Number1 As Integer > > Number1 = 10 > > IncrementVariable1(Number1) > > Print Number1 > > IncrementVariable2(Number1) > > Print Number1 > > End > > Private Sub IncrementVariable1(Num1 As Integer) > 'ByVal sub > Num1 = Num1 + 1 > > End > > Private Sub IncrementVariable2(ByRef Num2 As Integer) > 'ByRef sub > > Num2 = Num2 + 1 > > End > -------------------------------- > result: > 10 > 10 <- this shouldn't be 11? Did you read the documentation on ByRef ? -- Beno?t Minisini From ihaywood at ...1979... Mon Jan 3 12:45:59 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Mon, 3 Jan 2011 22:45:59 +1100 Subject: [Gambas-user] signal 11 from menus Message-ID: I'm not filing this as a bug as I'm not sure it is. The project Richard and I work on was segfaulting when opening a submenu. I enclose the stacktrace from GDB and a small project that elicits it. As you can see from the project, the cause is generating the submenu structure twice, the second time from within the Menu_Show () handler. By only generating the menus once the problem is solved. Ian -------------- next part -------------- Program received signal SIGSEGV, Segmentation fault. 0x002d05e0 in ?? () from /lib/tls/i686/cmov/libc.so.6 (gdb) bt #0 0x002d05e0 in ?? () from /lib/tls/i686/cmov/libc.so.6 #1 0x00dfad50 in ?? () from /usr/lib/libQtGui.so.4 #2 0x00dfc39f in QMenu::popup(QPoint const&, QAction*) () from /usr/lib/libQtGui.so.4 #3 0x00dfef05 in QMenu::internalDelayedPopup() () from /usr/lib/libQtGui.so.4 #4 0x00dff486 in QMenu::timerEvent(QTimerEvent*) () from /usr/lib/libQtGui.so.4 #5 0x0141a254 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4 #6 0x009b8326 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4 #7 0x00e020cc in QMenu::event(QEvent*) () from /usr/lib/libQtGui.so.4 #8 0x0095a4dc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #9 0x009610f9 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #10 0x01409a3b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4 #11 0x01438d66 in ?? () from /usr/lib/libQtCore.so.4 #12 0x01435917 in ?? () from /usr/lib/libQtCore.so.4 #13 0x017105e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0 #14 0x017142d8 in ?? () from /lib/libglib-2.0.so.0 #15 0x017144b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0 #16 0x014355d5 in QEventDispatcherGlib::processEvents(QFlags) () from /usr/lib/libQtCore.so.4 #17 0x00a1a135 in ?? () from /usr/lib/libQtGui.so.4 #18 0x01408059 in QEventLoop::processEvents(QFlags) () from /usr/lib/libQtCore.so.4 #19 0x014084aa in QEventLoop::exec(QFlags) () from /usr/lib/libQtCore.so.4 #20 0x00dfcdde in QMenu::exec(QPoint const&, QAction*) () from /usr/lib/libQtGui.so.4 #21 0x0033293c in CMENU_popup (_object=0x824ac1c, pos=...) at CMenu.cpp:595 #22 0x00332a17 in Menu_Popup (_object=0x824ac1c, _param=0x80a7abc) at CMenu.cpp:624 #23 0x08056052 in EXEC_native () at gbx_exec.c:1243 #24 0x080552db in EXEC_native_check (defined=1 '\001') at gbx_exec.c:1035 #25 0x0808e54a in EXEC_loop () at gbx_exec_loop.c:979 #26 0x08054af1 in EXEC_function_loop () at gbx_exec.c:861 #27 0x08054a6b in EXEC_function_real () at gbx_exec.c:848 #28 0x08056b77 in EXEC_public_desc (class=0x80d567c, object=0x826e3d4, desc=0x80eed5c, nparam=0) at gbx_exec.c:1497 #29 0x08071759 in raise_event (observer=0x826e3d4, object=0x8253a5c, func_id=118, nparam=0) at gbx_api.c:476 #30 0x080719db in GB_Raise (object=0x8253a5c, event_id=6, nparam=0) at gbx_api.c:580 #31 0x0031cc31 in CWidget::eventFilter (this=0x383644, widget=0x824b5b8, event=0xbfffeae0) at CWidget.cpp:2277 #32 0x01408d9c in QCoreApplicationPrivate::sendThroughApplicationEventFilters(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4 #33 0x0095a463 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #34 0x009619f7 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #35 0x01409a3b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4 #36 0x00960952 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer&, bool) () from /usr/lib/libQtGui.so.4 #37 0x009ec088 in ?? () from /usr/lib/libQtGui.so.4 #38 0x009eb511 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4 #39 0x00a1a60a in ?? () from /usr/lib/libQtGui.so.4 #40 0x017105e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0 #41 0x017142d8 in ?? () from /lib/libglib-2.0.so.0 #42 0x017144b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0 #43 0x014355d5 in QEventDispatcherGlib::processEvents(QFlags) () from /usr/lib/libQtCore.so.4 #44 0x00a1a135 in ?? () from /usr/lib/libQtGui.so.4 #45 0x01408059 in QEventLoop::processEvents(QFlags) () from /usr/lib/libQtCore.so.4 #46 0x014084aa in QEventLoop::exec(QFlags) () from /usr/lib/libQtCore.so.4 #47 0x0140c69f in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4 #48 0x0095a577 in QApplication::exec() () from /usr/lib/libQtGui.so.4 #49 0x0031368c in hook_loop () at main.cpp:721 #50 0x0807bc26 in main (argc=1, argv=0xbffff524) at gbx.c:371 -------------- next part -------------- A non-text attachment was scrubbed... Name: elicit-sig11-with-menu-0.0.1.tar.gz Type: application/x-gzip Size: 4877 bytes Desc: not available URL: From demosthenesk at ...626... Mon Jan 3 12:59:11 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 03 Jan 2011 13:59:11 +0200 Subject: [Gambas-user] Gambas3, Byref is not working In-Reply-To: <201101031235.38164.gambas@...1...> References: <1294054425.30081.2.camel@...2493...> <201101031235.38164.gambas@...1...> Message-ID: <1294055951.30580.0.camel@...2493...> oops i found it. i had to do this IncrementVariable2(ByRef Number1) On Mon, 2011-01-03 at 12:35 +0100, Beno?t Minisini wrote: > > Hi, > > > > i made an example for BYREF but it is not working > > > > -------------------------------- > > ' Gambas class file > > > > Public Sub Form_Open() > > > > Dim Number1 As Integer > > > > Number1 = 10 > > > > IncrementVariable1(Number1) > > > > Print Number1 > > > > IncrementVariable2(Number1) > > > > Print Number1 > > > > End > > > > Private Sub IncrementVariable1(Num1 As Integer) > > 'ByVal sub > > Num1 = Num1 + 1 > > > > End > > > > Private Sub IncrementVariable2(ByRef Num2 As Integer) > > 'ByRef sub > > > > Num2 = Num2 + 1 > > > > End > > -------------------------------- > > result: > > 10 > > 10 <- this shouldn't be 11? > > Did you read the documentation on ByRef ? > -- Regards, Demosthenes Koptsis. From gambas at ...1... Mon Jan 3 13:26:08 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 3 Jan 2011 13:26:08 +0100 Subject: [Gambas-user] Project translation: a request In-Reply-To: <201101020853.00208.pinozollo@...626...> References: <201101020853.00208.pinozollo@...626...> Message-ID: <201101031326.08167.gambas@...1...> > Hi to the gambists ! > > I have an almost complete translation of all the messages of a GAMBAS > project from French to Spanish.... now I would like to translate the same > to Italian .... > > For me it would be much easier to translate from Spanish to Italian but the > translation window presents the original language on the left, which is > French. > > Is there any way to change it to another language ? > > If not it would be a very nice feature to add...i.e. the possibility of > choosing the original language to start from. > > Happy 2011 ! > > Pino Hi, It has been implemented in revision #3433. Regards, -- Beno?t Minisini From gambas at ...2524... Mon Jan 3 14:01:19 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 03 Jan 2011 13:01:19 +0000 Subject: [Gambas-user] Issue 5 in gambas: GUI crash on menu editor In-Reply-To: <2-6813199134517018827-4365405718336369436-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-4365405718336369436-gambas=googlecode.com@...2524...> <0-6813199134517018827-4365405718336369436-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-4365405718336369436-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #3 on issue 5 by benoit.minisini: GUI crash on menu editor http://code.google.com/p/gambas/issues/detail?id=5 Fixed in revision #3434 From gambas at ...2524... Mon Jan 3 14:09:23 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 03 Jan 2011 13:09:23 +0000 Subject: [Gambas-user] Issue 3 in gambas: gtk+ problem with scrollbar maximum In-Reply-To: <4-6813199134517018827-140501792405594223-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-140501792405594223-gambas=googlecode.com@...2524...> <0-6813199134517018827-140501792405594223-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-140501792405594223-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #5 on issue 3 by benoit.minisini: gtk+ problem with scrollbar maximum http://code.google.com/p/gambas/issues/detail?id=3 Fixed in revision #3435 From gambas at ...1... Mon Jan 3 14:13:02 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 3 Jan 2011 14:13:02 +0100 Subject: [Gambas-user] Sudden IDE bug > unable to load my project > gambas vaporises. In-Reply-To: <201101031837.25540.rterry@...1946...> References: <201101031837.25540.rterry@...1946...> Message-ID: <201101031413.02358.gambas@...1...> > Mm.............Help................. > > Ok, deep breath. > > I'd done two things > > 1) Set an argument in the project properties, which was just a flag, and > working fine. > > 2) I'd created a new menu using the menu editor, just a single menu item > with no children. I then tried to assign this menu to a menubutton, but > the menu item I'd just added, wasn't showing up in the popup menu's list. > I repeated the process to no avail, thought I'd just shut down gambas then > reload, but on reload just as the tips show > gambas vaporises!! > > Given that I've still got a Sig11 problem with menu's I suspect this must > have something to do with it. > > Bumma. > > I'll shut down and re-boot and see if that makes any difference, but any > suggestions in the meantime would be welcomed. > > Regards > > Richard > As I told you before: - Compile gambas with no optimizations. - Unable core dump. Then, just after a crash, you can get a useful backtrace by using gdb on the generated core dump. Regards, -- Beno?t Minisini From gambas at ...2524... Mon Jan 3 15:59:11 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 03 Jan 2011 14:59:11 +0000 Subject: [Gambas-user] Issue 6 in gambas: signal #11 with Gtk+ In-Reply-To: <0-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Comment #1 on issue 6 by benoit.minisini: signal #11 with Gtk+ http://code.google.com/p/gambas/issues/detail?id=6 That backtrace is theoritically impossible. :-) Can you recompile Gambas with no optimization, and try to get a new backtrace again? From gambas at ...2524... Mon Jan 3 16:03:12 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 03 Jan 2011 15:03:12 +0000 Subject: [Gambas-user] Issue 6 in gambas: signal #11 with Gtk+ In-Reply-To: <1-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> <0-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Updates: Labels: -Version Version-TRUNK Comment #2 on issue 6 by benoit.minisini: signal #11 with Gtk+ http://code.google.com/p/gambas/issues/detail?id=6 (No comment was entered for this change.) From jussi.lahtinen at ...626... Mon Jan 3 17:35:36 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 3 Jan 2011 18:35:36 +0200 Subject: [Gambas-user] Some new features in Gambas 3 In-Reply-To: <4D1F7ADE.7000807@...1887...> References: <201011271444.05812.gambas@...1...> <201101011734.42061.gambas@...1...> <4D1F7ADE.7000807@...1887...> Message-ID: I think native functions should be for general use only. And I don't think MkXXX$() functions now represents good practice to be used as now intended. If your software runs on linux (what else?), you probably still need to write these functions by your self to correct endianess accordingly to sender/receiver architecture mismatch. http://en.wikipedia.org/wiki/Endianness#Endianness_and_operating_systems_on_architectures If we have problems to figure out proper usage for these functions, then I don't think they really have any general usage, and therefore Gambas should not have native support for them. But I think there are at least two reasonable options... 1. Change behaviour of MkXXX$() functions to be more like conversion functions, that has 'locked' endianess. This is probably best option. Or 2., Kevin, maybe you should pick up MkXXX$() functions form current Gambas source code for your own library. But of course this is all up to Benoit! Regards, Jussi On Sat, Jan 1, 2011 at 21:05, Kevin Fishburne < kevinfishburne at ...1887...> wrote: > On 01/01/2011 11:34 AM, Beno?t Minisini wrote: > >>> 2) A new set of native functions named Mk$() to create a string > from > >>> the > >>> memory representation of a value. For example, MkShort$(1234) returns > >>> Chr$(210)& Chr$(4) (on a little endian machine). > >> I'm updating GambasTester to handle new commands and features. > >> > >> And I don't quite understand these new functions... > >> MkByte$(65) returns "A" which is expected if string is created with > ascii > >> encoding. > >> But MkBoolean(True) returns "^A", and according to documentation boolean > >> value size is one byte > >> in memory. This string occupies two bytes? > > "^A" is the way the IDE console displays Chr$(1). > > > >> But moreover, what is intended use of these functions? > > One ask them to forge a string of binary data to be sent on an UDP > socket. But > > this is not necessarily the right way to do that, as data on the network > must > > be endianness-agnostic. So maybe these functions are not really useful > indeed. > It's hard to know what uses people will put functions to once they're in > the wild. The original use was what Beno?t described. Whether endianness > is an issue depends on what the UDP data is being sent to or received > from. In my case it's the same program on the same architecture, so it > works fine. I think a note in the documentation about endianness would > help should someone want to use the functions. > > It seems to me a little strange to have ASC and STR$ but not equivalents > for other datatypes. Some day some other programmer will see these > functions and be extremely happy, probably for some purpose we haven't > yet imagined. > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Jan 3 17:45:28 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 3 Jan 2011 17:45:28 +0100 Subject: [Gambas-user] Some new features in Gambas 3 In-Reply-To: References: <201011271444.05812.gambas@...1...> <4D1F7ADE.7000807@...1887...> Message-ID: <201101031745.29035.gambas@...1...> > I think native functions should be for general use only. > And I don't think MkXXX$() functions now represents good practice to be > used as now intended. > If your software runs on linux (what else?), you probably still need to > write these functions by your self > to correct endianess accordingly to sender/receiver architecture mismatch. > http://en.wikipedia.org/wiki/Endianness#Endianness_and_operating_systems_on > _architectures > > If we have problems to figure out proper usage for these functions, then I > don't think > they really have any general usage, and therefore Gambas should not have > native support for them. > > But I think there are at least two reasonable options... > > 1. Change behaviour of MkXXX$() functions to be more like conversion > functions, that has 'locked' endianess. > This is probably best option. > > Or 2., Kevin, maybe you should pick up MkXXX$() functions form current > Gambas source code for your own library. > > But of course this is all up to Benoit! > Regards, > Jussi > I can't add an optional argument to these functions that would specify the endianness to use. *That* would be the best option. Either I find a way to implement that anyway, either I should remove them as you suggest. Actually if you want to be endianness aware, you must use a Stream (OPEN, MEMORY, PIPE,...). Stream handle endianness automatically with their ByteOrder property. Regards, -- Beno?t Minisini From gambas at ...2524... Mon Jan 3 17:54:45 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 03 Jan 2011 16:54:45 +0000 Subject: [Gambas-user] Issue 6 in gambas: signal #11 with Gtk+ In-Reply-To: <2-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> <0-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Comment #3 on issue 6 by sotema: signal #11 with Gtk+ http://code.google.com/p/gambas/issues/detail?id=6 Il giorno lun, 03/01/2011 alle 14.59 +0000, gambas at ...2524... ha scritto: do you mean configure --enable-opt=no ? i tried it with rev 3436 and got the following: when close the wizard the MainForm opens and freeze. and the gdb output: Program received signal SIGSEGV, Segmentation fault. 0x0000000000a90890 in ?? () gdb) bt #0 0x0000000000a90890 in ?? () Cannot access memory at address 0x7fffffffde98 and no more. The next time i got the following: (gdb) bt #0 0x00007ffff752c368 in ?? () from /lib/libc.so.6 #1 0x000000000041d193 in GB_Raise (object=0x7fd0f8, event_id=22, nparam=0) at gbx_api.c:510 #2 0x00007ffff6d59ea1 in activate_window (window=0x9b6e30) at CWindow.cpp:229 #3 0x00007ffff6d5c00f in post_focus_change () at gapplication.cpp:1106 #4 0x00000000004103ac in EVENT_check_post () at gbx_event.c:230 #5 0x00007ffff6d5ad31 in do_iteration (do_not_block=, do_not_sleep=false) at main.cpp:511 #6 0x00007ffff6d5b14a in my_loop () at main.cpp:434 #7 0x0000000000422804 in main (argc=1, argv=) at gbx.c:371 Tell me what can i do for further investigate the problem. From gambas at ...2524... Mon Jan 3 18:13:59 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 03 Jan 2011 17:13:59 +0000 Subject: [Gambas-user] Issue 6 in gambas: signal #11 with Gtk+ In-Reply-To: <3-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> <0-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Comment #4 on issue 6 by benoit.minisini: signal #11 with Gtk+ http://code.google.com/p/gambas/issues/detail?id=6 No, I mean doing: $ make "CFLAGS=-O0 -g" "CXXFLAGS=-O0 -g" instead of just "make". That way, you don't have to run ./configure again. And you can use "valgrind" to get more useful information. How to use valgrind is explained on the "Reporting a problem" page of the website. From gambas at ...2524... Mon Jan 3 18:57:41 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 03 Jan 2011 17:57:41 +0000 Subject: [Gambas-user] Issue 7 in gambas: font size of tabstrip control inherited by child controls Message-ID: <0-6813199134517018827-8359884942079903320-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any New issue 7 by zachsmith022: font size of tabstrip control inherited by child controls http://code.google.com/p/gambas/issues/detail?id=7 1) If you add a label, textlabel, or button to a tabstrip control and then change the font size of the tabstrip control higher in the IDE, the font sizes of the child controls change as well. The font property of each child control is blank in the properties tab and if you double-click on it, it shows as normal size although it is showing as a larger font size in the IDE. When the code runs, the one difference between GTK+ and Qt4 is that with GTK+ the tab font size reverts to normal size. 2) Version: TRUNK Operating system: Linux Distribution: ArchLinux Architecture: x86_64 GUI component: QT4 / GTK+ Desktop used: Xfce 3) see attached project Attachments: Tabstrip-0.0.1.tar.gz 4.6 KB From gambas at ...1... Mon Jan 3 20:37:48 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 3 Jan 2011 20:37:48 +0100 Subject: [Gambas-user] Gambas3 can't read single datatype from file. In-Reply-To: References: Message-ID: <201101032037.48982.gambas@...1...> > Hi Benoit. > While trying to read binary file I found that reading the single datatype > from file gives me constant value of 00E-312, no matter what is in the > file, while it works fine in Gambas2. Am I doing something wrong? > > Read #model_file, s 's is declared with - Dim s As Single > > All other datatypes seem to work fine. > > Regards Tomasz (Tommyline) > It works there. Are you sure that you use the latest revision? If you are, then please provide a little example project. Regards, -- Beno?t Minisini From gambas at ...1... Mon Jan 3 20:53:22 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 3 Jan 2011 20:53:22 +0100 Subject: [Gambas-user] Spinbox issue In-Reply-To: <384520.7831.qm@...2469...> References: <384520.7831.qm@...2469...> Message-ID: <201101032053.22060.gambas@...1...> > Hi, > > I am using Gambas2.21, on Debian Squeeze, attached is an application that > uses GB.GTK. The form has a spinbox an a button, the user can key in > values into the spinbox(not just do so by using the mouse to click on the > up and down arrows). The form also has a button with Default property > enabled. When the user keys in any value that is within the range of the > spinbox and presses enter(without the spinbox losing focus) the value that > is in the spinbox is not reflected. > > I have attached a sample project for your reference. > > bug? > > Regards, > Vikram Shankar Nair Yes, bug. Or GTK+ strangeness. Anyway it should be fixed in revision #3437. Regards, -- Beno?t Minisini From gambas at ...1... Mon Jan 3 20:54:20 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 3 Jan 2011 20:54:20 +0100 Subject: [Gambas-user] KeyPress event with grid view In-Reply-To: References: Message-ID: <201101032054.20780.gambas@...1...> > Hi and Happy new year ! > > With a grid view on a form I can get KeyPress event. It's fine. > But with a grid view contained in a vsplit view, no KeyPress event. I tried > KeyPress whit VSplit view, same result. > Is it a bug or I forgot setting something? > Gambas 2.22 on Fedora 14 GNOME. Can you make a little project example that shows the problem? Thanks in advance. -- Beno?t Minisini From gambas at ...2524... Mon Jan 3 21:06:44 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 03 Jan 2011 20:06:44 +0000 Subject: [Gambas-user] Issue 6 in gambas: signal #11 with Gtk+ In-Reply-To: <4-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> <0-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Comment #5 on issue 6 by sotema: signal #11 with Gtk+ http://code.google.com/p/gambas/issues/detail?id=6 Compiled as you suggested. Output from valgrind attached Hope this help. From gambas at ...2524... Mon Jan 3 21:22:10 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 03 Jan 2011 20:22:10 +0000 Subject: [Gambas-user] Issue 6 in gambas: signal #11 with Gtk+ In-Reply-To: <5-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> <0-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Comment #6 on issue 6 by benoit.minisini: signal #11 with Gtk+ http://code.google.com/p/gambas/issues/detail?id=6 I don't see the valgrind output... From jussi.lahtinen at ...626... Mon Jan 3 21:24:17 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 3 Jan 2011 22:24:17 +0200 Subject: [Gambas-user] Inconsistency with floating point notation. Message-ID: Little problem with floating points... as you can see (below) -2E-16 is non zero, but if you write same value with other notation (-0.0000000000000002) it will be interpreted as zero. If -0.000000000000000166533453693773 > -2E-16 Then Debug "First is bigger." Endif If -0.000000000000000166533453693773 > -0.0000000000000002 Then Debug "Not anymore..." Endif If -0.000000000000000166533453693773 = -0.0000000000000002 Then Debug "Now it is equal." Endif If -0.0000000000000002 <> -2E-16 Then Debug "They are not equal?" Endif Debug Format$(-2E-16, ".#####################################################") Debug Format$(-0.0000000000000002, ".#####################################################") Result: mTest.DoTests.573: First is bigger. mTest.DoTests.581: Now it is equal. mTest.DoTests.585: They are not equal? mTest.DoTests.588: -.0000000000000002 mTest.DoTests.589: 0 Gambas 3 rev 3436 @ Ubuntu 10.10 64bit Jussi From sotema at ...626... Mon Jan 3 21:34:18 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Mon, 03 Jan 2011 21:34:18 +0100 Subject: [Gambas-user] Issue 6 in gambas: signal #11 with Gtk+ In-Reply-To: <6-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> <0-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> <6-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Message-ID: <1294086858.3326.0.camel@...2476...> Forgive me... Il giorno lun, 03/01/2011 alle 20.22 +0000, gambas at ...2524... ha scritto: > Comment #6 on issue 6 by benoit.minisini: signal #11 with Gtk+ > http://code.google.com/p/gambas/issues/detail?id=6 > > I don't see the valgrind output... > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- ==3316== Memcheck, a memory error detector ==3316== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==3316== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info ==3316== Command: gbx3 ==3316== ==3316== Conditional jump or move depends on uninitialised value(s) ==3316== at 0xABA0E40: inflateReset2 (in /lib/libz.so.1.2.3.4) ==3316== by 0xABA0F2F: inflateInit2_ (in /lib/libz.so.1.2.3.4) ==3316== by 0x82B14AF: png_create_read_struct_2 (in /lib/libpng12.so.0.44.0) ==3316== by 0x13266A39: ??? (in /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so) ==3316== by 0x7C3C599: ??? (in /usr/lib/libgdk_pixbuf-2.0.so.0.2200.0) ==3316== by 0x7C3C987: gdk_pixbuf_loader_close (in /usr/lib/libgdk_pixbuf-2.0.so.0.2200.0) ==3316== by 0x60B1E59: pixbufFromMemory(_GdkPixbuf**, char*, unsigned int, bool*) (gpicture.cpp:59) ==3316== by 0x60B2ADD: gPicture::fromMemory(char*, unsigned int) (gpicture.cpp:329) ==3316== by 0x60EB40E: CPICTURE_load_image(gPicture**, char const*, int) (gb.form.picture.h:124) ==3316== by 0x60EB611: get_picture(char const*, int) (gb.form.picture.h:168) ==3316== by 0x60EB777: CPICTURE_get(void*, void*) (CPicture.cpp:137) ==3316== by 0x41111F: EXEC_native (gbx_exec.c:1243) ==3316== by 0x41210C: EXEC_special (gbx_exec.c:1555) ==3316== by 0x4149C8: EXEC_push_array (gbx_exec_push.c:567) ==3316== by 0x45168F: EXEC_loop (gbx_exec_loop.c:521) ==3316== by 0x40F69D: EXEC_function_loop (gbx_exec.c:861) ==3316== by 0x40F600: EXEC_function_real (gbx_exec.c:848) ==3316== by 0x41253D: EXEC_special_inheritance (gbx_exec.c:1745) ==3316== by 0x41303E: EXEC_new (gbx_exec.c:1910) ==3316== by 0x45251D: EXEC_loop (gbx_exec_loop.c:823) ==3316== by 0x40F69D: EXEC_function_loop (gbx_exec.c:861) ==3316== by 0x40F600: EXEC_function_real (gbx_exec.c:848) ==3316== by 0x411F62: EXEC_public_desc (gbx_exec.c:1497) ==3316== by 0x43D413: main (gbx.c:362) ==3316== ==3316== Invalid read of size 8 ==3316== at 0x4312F5: GB_Raise (gbx_api.c:510) ==3316== by 0x6102AE6: activate_window(gMainWindow*) (CWindow.cpp:229) ==3316== by 0x6102B4B: cb_activate(gMainWindow*) (CWindow.cpp:243) ==3316== by 0x60BDFD5: gControl::emit(void*) (gcontrol.cpp:1545) ==3316== by 0x60E2A76: gMainWindow::setActiveWindow(gControl*) (gmainwindow.cpp:1246) ==3316== by 0x6108919: post_focus_change(void*) (gapplication.cpp:1106) ==3316== by 0x41CE48: EVENT_check_post (gbx_event.c:230) ==3316== by 0x610595B: do_iteration(bool, bool) (main.cpp:511) ==3316== by 0x610569F: my_loop() (main.cpp:434) ==3316== by 0x43D453: main (gbx.c:371) ==3316== Address 0x13ba9778 is 8 bytes inside a block of size 768 free'd ==3316== at 0x4C27D71: free (vg_replace_malloc.c:366) ==3316== by 0x4059EE: my_free (gb_alloc_temp.h:350) ==3316== by 0x43E65A: OBJECT_free (gbx_object.c:238) ==3316== by 0x43EB77: OBJECT_release (gbx_object.c:349) ==3316== by 0x4178F1: CLASS_free (gbx_class.c:662) ==3316== by 0x410A2E: EXEC_native_quick (gbx_exec.c:1113) ==3316== by 0x410028: EXEC_native_check (gbx_exec.c:1033) ==3316== by 0x452C92: EXEC_loop (gbx_exec_loop.c:979) ==3316== by 0x40F69D: EXEC_function_loop (gbx_exec.c:861) ==3316== by 0x40F600: EXEC_function_real (gbx_exec.c:848) ==3316== by 0x411F62: EXEC_public_desc (gbx_exec.c:1497) ==3316== by 0x43D413: main (gbx.c:362) ==3316== ==3316== Invalid read of size 8 ==3316== at 0x431308: GB_Raise (gbx_api.c:510) ==3316== by 0x6102AE6: activate_window(gMainWindow*) (CWindow.cpp:229) ==3316== by 0x6102B4B: cb_activate(gMainWindow*) (CWindow.cpp:243) ==3316== by 0x60BDFD5: gControl::emit(void*) (gcontrol.cpp:1545) ==3316== by 0x60E2A76: gMainWindow::setActiveWindow(gControl*) (gmainwindow.cpp:1246) ==3316== by 0x6108919: post_focus_change(void*) (gapplication.cpp:1106) ==3316== by 0x41CE48: EVENT_check_post (gbx_event.c:230) ==3316== by 0x610595B: do_iteration(bool, bool) (main.cpp:511) ==3316== by 0x610569F: my_loop() (main.cpp:434) ==3316== by 0x43D453: main (gbx.c:371) ==3316== Address 0x13ba9778 is 8 bytes inside a block of size 768 free'd ==3316== at 0x4C27D71: free (vg_replace_malloc.c:366) ==3316== by 0x4059EE: my_free (gb_alloc_temp.h:350) ==3316== by 0x43E65A: OBJECT_free (gbx_object.c:238) ==3316== by 0x43EB77: OBJECT_release (gbx_object.c:349) ==3316== by 0x4178F1: CLASS_free (gbx_class.c:662) ==3316== by 0x410A2E: EXEC_native_quick (gbx_exec.c:1113) ==3316== by 0x410028: EXEC_native_check (gbx_exec.c:1033) ==3316== by 0x452C92: EXEC_loop (gbx_exec_loop.c:979) ==3316== by 0x40F69D: EXEC_function_loop (gbx_exec.c:861) ==3316== by 0x40F600: EXEC_function_real (gbx_exec.c:848) ==3316== by 0x411F62: EXEC_public_desc (gbx_exec.c:1497) ==3316== by 0x43D413: main (gbx.c:362) ==3316== ==3316== Invalid read of size 8 ==3316== at 0x60EE625: CWIDGET_check(void*) (CWidget.cpp:324) ==3316== by 0x43131F: GB_Raise (gbx_api.c:510) ==3316== by 0x6102AE6: activate_window(gMainWindow*) (CWindow.cpp:229) ==3316== by 0x6102B4B: cb_activate(gMainWindow*) (CWindow.cpp:243) ==3316== by 0x60BDFD5: gControl::emit(void*) (gcontrol.cpp:1545) ==3316== by 0x60E2A76: gMainWindow::setActiveWindow(gControl*) (gmainwindow.cpp:1246) ==3316== by 0x6108919: post_focus_change(void*) (gapplication.cpp:1106) ==3316== by 0x41CE48: EVENT_check_post (gbx_event.c:230) ==3316== by 0x610595B: do_iteration(bool, bool) (main.cpp:511) ==3316== by 0x610569F: my_loop() (main.cpp:434) ==3316== by 0x43D453: main (gbx.c:371) ==3316== Address 0x13ba9788 is 24 bytes inside a block of size 768 free'd ==3316== at 0x4C27D71: free (vg_replace_malloc.c:366) ==3316== by 0x4059EE: my_free (gb_alloc_temp.h:350) ==3316== by 0x43E65A: OBJECT_free (gbx_object.c:238) ==3316== by 0x43EB77: OBJECT_release (gbx_object.c:349) ==3316== by 0x4178F1: CLASS_free (gbx_class.c:662) ==3316== by 0x410A2E: EXEC_native_quick (gbx_exec.c:1113) ==3316== by 0x410028: EXEC_native_check (gbx_exec.c:1033) ==3316== by 0x452C92: EXEC_loop (gbx_exec_loop.c:979) ==3316== by 0x40F69D: EXEC_function_loop (gbx_exec.c:861) ==3316== by 0x40F600: EXEC_function_real (gbx_exec.c:848) ==3316== by 0x411F62: EXEC_public_desc (gbx_exec.c:1497) ==3316== by 0x43D413: main (gbx.c:362) ==3316== ==3316== Invalid read of size 2 ==3316== at 0x5712930: getenv (getenv.c:84) ==3316== by 0x11B2F25F: ??? (in /usr/lib/libcanberra.so.0.2.4) ==3316== by 0x11B26FBE: ??? (in /usr/lib/libcanberra.so.0.2.4) ==3316== by 0x11B30180: ??? (in /usr/lib/libcanberra.so.0.2.4) ==3316== by 0x57134F1: exit (exit.c:78) ==3316== by 0x43D58B: main (gbx.c:400) ==3316== Address 0x5d8f0d8 is 8 bytes inside a block of size 32 free'd ==3316== at 0x4C27D71: free (vg_replace_malloc.c:366) ==3316== by 0x43F086: STRING_free_real (gbx_string.c:214) ==3316== by 0x43564F: LOCAL_exit (gbx_local.c:536) ==3316== by 0x43C994: main_exit (gbx.c:139) ==3316== by 0x43D56F: main (gbx.c:394) ==3316== ==3316== ==3316== HEAP SUMMARY: ==3316== in use at exit: 2,592,390 bytes in 11,709 blocks ==3316== total heap usage: 148,217 allocs, 136,508 frees, 31,137,845 bytes allocated ==3316== ==3316== LEAK SUMMARY: ==3316== definitely lost: 14,968 bytes in 86 blocks ==3316== indirectly lost: 86,304 bytes in 949 blocks ==3316== possibly lost: 1,700,640 bytes in 5,488 blocks ==3316== still reachable: 790,478 bytes in 5,186 blocks ==3316== suppressed: 0 bytes in 0 blocks ==3316== Rerun with --leak-check=full to see details of leaked memory ==3316== ==3316== For counts of detected and suppressed errors, rerun with: -v ==3316== Use --track-origins=yes to see where uninitialised values come from ==3316== ERROR SUMMARY: 9 errors from 5 contexts (suppressed: 19 from 8) From gambas at ...2524... Mon Jan 3 21:43:41 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 03 Jan 2011 20:43:41 +0000 Subject: [Gambas-user] Issue 6 in gambas: signal #11 with Gtk+ In-Reply-To: <6-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> References: <6-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> <0-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Message-ID: <7-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Comment #7 on issue 6 by benoit.minisini: signal #11 with Gtk+ http://code.google.com/p/gambas/issues/detail?id=6 Putting the valgrind output back from the mailing-list... Attachments: valg.out 7.7 KB From rterry at ...1946... Tue Jan 4 01:35:58 2011 From: rterry at ...1946... (richard terry) Date: Tue, 4 Jan 2011 11:35:58 +1100 Subject: [Gambas-user] Sudden IDE bug > unable to load my project > gambas vaporises. In-Reply-To: <201101031413.02358.gambas@...1...> References: <201101031837.25540.rterry@...1946...> <201101031413.02358.gambas@...1...> Message-ID: <201101041135.58095.rterry@...1946...> On Tuesday 04 January 2011 00:13:02 Beno?t Minisini wrote: > > Mm.............Help................. > > > > Ok, deep breath. > > > > I'd done two things > > > > 1) Set an argument in the project properties, which was just a flag, and > > working fine. > > > > 2) I'd created a new menu using the menu editor, just a single menu item > > with no children. I then tried to assign this menu to a menubutton, but > > the menu item I'd just added, wasn't showing up in the popup menu's list. > > I repeated the process to no avail, thought I'd just shut down gambas > > then reload, but on reload just as the tips show > gambas vaporises!! > > > > Given that I've still got a Sig11 problem with menu's I suspect this must > > have something to do with it. > > > > Bumma. > > > > I'll shut down and re-boot and see if that makes any difference, but any > > suggestions in the meantime would be welcomed. > > > > Regards > > > > Richard > > As I told you before: > > - Compile gambas with no optimizations. > - Unable core dump. > > Then, just after a crash, you can get a useful backtrace by using gdb on > the generated core dump. > > Regards, > I'll try - I did send you a mini-project which causes the error as I thought that would be more useful. Regards richard From gambas at ...1... Tue Jan 4 03:36:02 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 4 Jan 2011 03:36:02 +0100 Subject: [Gambas-user] Inconsistency with floating point notation. In-Reply-To: References: Message-ID: <201101040336.02938.gambas@...1...> > Little problem with floating points... as you can see (below) -2E-16 is non > zero, > but if you write same value with other notation (-0.0000000000000002) it > will be interpreted as zero. > It should be fixed in revision #3439. Regards, -- Beno?t Minisini From gambas at ...1... Tue Jan 4 03:42:46 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 4 Jan 2011 03:42:46 +0100 Subject: [Gambas-user] signal 11 from menus In-Reply-To: References: Message-ID: <201101040342.46798.gambas@...1...> > I'm not filing this as a bug as I'm not sure it is. > A segfault is normally a bug. Gambas should never segfault. :-) > The project Richard and I work on was segfaulting when opening a submenu. > I enclose the stacktrace from GDB and a small project that elicits it. > As you can see from the project, the cause is generating the submenu > structure twice, the second time from within the Menu_Show () handler. > > By only generating the menus once the problem is solved. > > Ian The crash comes from the fact that the Menu Show event is raised just before showing the menu. And during that event, you are clearing the menu that is being show. Qt4 does not like that (neither GTK+). Maybe I should prevent that with a internal flag... Regards, -- Beno?t Minisini From gambas at ...1... Tue Jan 4 03:44:52 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 4 Jan 2011 03:44:52 +0100 Subject: [Gambas-user] signal 11 from menus In-Reply-To: <201101040342.46798.gambas@...1...> References: <201101040342.46798.gambas@...1...> Message-ID: <201101040344.52746.gambas@...1...> > > The crash comes from the fact that the Menu Show event is raised just > before showing the menu. And during that event, you are clearing the menu > that is being show. Qt4 does not like that (neither GTK+). > > Maybe I should prevent that with a internal flag... > > Regards, Actually sometimes clearing the menu being shown works, I do that in the IDE. I must investigate deeper... -- Beno?t Minisini From gambas at ...2524... Tue Jan 4 05:26:45 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 04 Jan 2011 04:26:45 +0000 Subject: [Gambas-user] Issue 8 in gambas: GTK+ label is visible when visible=false and autoresize=true Message-ID: <0-6813199134517018827-7816974949307265558-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any New issue 8 by zachsmith022: GTK+ label is visible when visible=false and autoresize=true http://code.google.com/p/gambas/issues/detail?id=8 1) When a label visible property is set to false and the autoresize property is set to true, the label is visible. 2) Version: TRUNK Operating system: Linux Distribution: ArchLinux Architecture: x86_64 GUI component: GTK+ Desktop used: Xfce 3) sample code provided Attachments: Test2-0.0.1.tar.gz 4.5 KB From wally at ...2037... Tue Jan 4 07:29:46 2011 From: wally at ...2037... (wally) Date: Tue, 4 Jan 2011 07:29:46 +0100 Subject: [Gambas-user] firmata protocol gambas Message-ID: <201101040729.46625.wally@...2037...> Firmata is a generic protocol for communicating with microcontrollers from software on a host computer. Are there any efforts known to implement firmata protocol for Gambas ? Is anybody interested in gambas_firmata at all ? http://www.firmata.org/wiki/Main_Page wally From austinium at ...43... Tue Jan 4 07:44:56 2011 From: austinium at ...43... (vikram) Date: Mon, 3 Jan 2011 22:44:56 -0800 (PST) Subject: [Gambas-user] Button - Default Property - Doubt Message-ID: <69917.49835.qm@...2468...> Hi, Thanks for the reply on the Spinbox issue :) Heres another issue i faced recently, I had set the default property for a button on one of the forms of my project. This would allow the user to press the enter key instead of clicking the said button. Trouble is that even if another button has focus when the user presses Enter, the button with the default event set still gets called. With other controls this behavior is intended, for instance if the user presses enter while the focus is at a textbox the default button being called is what is expected, but if the user uses Tab to navigate to another button and then presses Enter then shouldn't that button's click function be executed? I have attached a sample project for your reference. Is there any way to avoid this? OS: Debian Squeeze (GNOME) GB.GTK component used. Gambas version 2.21 Best Regards, Vikram -------------- next part -------------- A non-text attachment was scrubbed... Name: DefaultButtonIssue.tar Type: application/x-tar Size: 7908 bytes Desc: not available URL: From ivan-kern at ...308... Tue Jan 4 10:39:15 2011 From: ivan-kern at ...308... (ivan-kern at ...308...) Date: Tue, 04 Jan 2011 10:39:15 +0100 Subject: [Gambas-user] Gambas2 Message-ID: Me.Close does not work from the code if a form is opened ShowModal. ? PUBLIC SUB Form_Open() ? Code......... ? WAIT ? ME.Close END ? Ubuntu 10.04 GTK+ Gambas2 Rev. 3439 --- Exklusiv: Neue E-Mail-Adresse @iPhone.de jetzt verf?gbar! Sichern Sie sich jetzt ihre pers?nliche E-Mail-Adresse at ...2527... From demosthenesk at ...626... Tue Jan 4 10:59:35 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 04 Jan 2011 11:59:35 +0200 Subject: [Gambas-user] How to use a STRUCTURE... Message-ID: <1294135175.4083.4.camel@...2493...> In docs there is about structures http://gambasdoc.org/help/cat/structdecl?v3 A structure is exactly like a class that would have only public variables. i made an example for usage of STRUCTURES after declaration. i made this example because i couldn't find one in wiki and i had to consult c++ help about usage of STRUCTURES. So i think this makes things more easy. Is this example correct? If it is it would be nice to add it in wiki after declaration of struct. -------------------- ' Gambas module file Public Struct Product Weight As Integer Price As Float End Struct Public apple As New Product Public Sub Main() Dim banana As New Product apple.Price = 12.34 apple.Weight = 23 banana.Price = 20.54 banana.Weight = 16 Print "The apple is weight:"; apple.Weight Print "The apple costs:"; apple.Price Print "The banana is weight"; banana.Weight Print "The banana costs:"; banana.Price End -------------------- -- Regards, Demosthenes Koptsis. From rterry at ...1946... Tue Jan 4 11:32:29 2011 From: rterry at ...1946... (richard terry) Date: Tue, 4 Jan 2011 21:32:29 +1100 Subject: [Gambas-user] following up the menu sig11 question Message-ID: <201101042132.29223.rterry@...1946...> Thanks for all the help to solve this Ian/Benoit. Now I've another problem around this menu. In the program, which has multiple modules, I generate the popup menu of health issues, on multiple forms. Rather than leave the code duplicated in each form on a dozen occurrences or whatever it will be, I removed it to another module, and just passed the menu to this, works fine. however, having been what I thought was very clever, it then turned out that the mnu event (I called it "mnuHealthIssues", is unavailable to the module that calls this subroutine. Is there any want that an event handler generated in another module, can be recognised by the module that created the menu? Hope that's not too confusing. Thanks. Richard From Karl.Reinl at ...2345... Tue Jan 4 12:09:55 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Tue, 04 Jan 2011 12:09:55 +0100 Subject: [Gambas-user] Gambas2 In-Reply-To: References: Message-ID: <1294139395.6846.4.camel@...40...> Am Dienstag, den 04.01.2011, 10:39 +0100 schrieb ivan-kern at ...308...: > Me.Close does not work from the code if a form is opened ShowModal. > > PUBLIC SUB Form_Open() > Code......... > WAIT > ME.Close > END > > Ubuntu 10.04 > GTK+ > Gambas2 Rev. 3439 > Salut, whats happened, if you stay in debugger on WAIT ? And calling Close during Open, I don't know !?! -- Amicalement Charlie From gambas at ...1... Tue Jan 4 17:13:59 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 4 Jan 2011 17:13:59 +0100 Subject: [Gambas-user] signal 11 from menus In-Reply-To: <201101040344.52746.gambas@...1...> References: <201101040342.46798.gambas@...1...> <201101040344.52746.gambas@...1...> Message-ID: <201101041713.59490.gambas@...1...> > > The crash comes from the fact that the Menu Show event is raised just > > before showing the menu. And during that event, you are clearing the menu > > that is being show. Qt4 does not like that (neither GTK+). > > > > Maybe I should prevent that with a internal flag... > > > > Regards, > > Actually sometimes clearing the menu being shown works, I do that in the > IDE. I must investigate deeper... OK, the crash should not occur anymore in revision #3440. Regards, -- Beno?t Minisini From bleketux at ...626... Wed Jan 5 03:25:52 2011 From: bleketux at ...626... (MSulchan Darmawan) Date: Wed, 5 Jan 2011 09:25:52 +0700 Subject: [Gambas-user] OOT: Email filtering for gambas issue Message-ID: <20110105092552.76039455@...2286...> Dear all, I did by filtering From header, but I saw someone accidently hit reply and send the email to mailing list instead of replying in google code. By doing that, the filter missed it. So I prefer to filter using Subject header, but maybe it is easier if there is special subject tag, such as "[gb-issue]" maybe ? :D How do you safely filter email from gambas issue ? Thanks in advance. -- Cheers, [-Sulchan-] claws-mail 3.7.8cvs1 @ lucid lynx 10.04 LTS -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From gambas at ...1... Wed Jan 5 03:28:58 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 5 Jan 2011 03:28:58 +0100 Subject: [Gambas-user] following up the menu sig11 question In-Reply-To: <201101042132.29223.rterry@...1946...> References: <201101042132.29223.rterry@...1946...> Message-ID: <201101050328.58955.gambas@...1...> > Thanks for all the help to solve this Ian/Benoit. > > Now I've another problem around this menu. > > In the program, which has multiple modules, I generate the popup menu of > health issues, on multiple forms. Rather than leave the code duplicated in > each form on a dozen occurrences or whatever it will be, I removed it to > another module, and just passed the menu to this, works fine. > > however, having been what I thought was very clever, it then turned out > that the mnu event (I called it "mnuHealthIssues", is unavailable to the > module that calls this subroutine. > > Is there any want that an event handler generated in another module, can be > recognised by the module that created the menu? > > Hope that's not too confusing. > > Thanks. > > Richard > Look at Object.Attach(). It will allow you to define which object exactly will receive the events generated by your menu. Regards, -- Beno?t Minisini From ron at ...1740... Wed Jan 5 09:36:05 2011 From: ron at ...1740... (Ron) Date: Wed, 05 Jan 2011 09:36:05 +0100 Subject: [Gambas-user] Eval Gambas2 Message-ID: <4D242D75.7000908@...1740...> Hi, I'm trying to implement some sort of basic scripting with the use of Eval() inside my project. It works for a lot of math, formatting and comparison commands and works quite nicely. But I need the IF THEN to work too. IIf ( Test AS Boolean , TrueExpression , FalseExpression , FalseExpression ) or If ( Test AS Boolean , TrueExpression , FalseExpression ) Works, but evaluates both TrueExpression and FalseExpression regardless of test (as explained in docs) Is there a way to get IF Test THEN TrueExpression to work inside Eval() ? Regards, Ron_2nd. From gambas at ...1... Wed Jan 5 10:23:53 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 5 Jan 2011 10:23:53 +0100 Subject: [Gambas-user] Eval Gambas2 In-Reply-To: <4D242D75.7000908@...1740...> References: <4D242D75.7000908@...1740...> Message-ID: <201101051023.53935.gambas@...1...> > Hi, > > I'm trying to implement some sort of basic scripting with the use of > Eval() inside my project. > > It works for a lot of math, formatting and comparison commands and works > quite nicely. > > But I need the IF THEN to work too. > > IIf ( Test AS Boolean , TrueExpression , FalseExpression , > FalseExpression ) or > If ( Test AS Boolean , TrueExpression , FalseExpression ) > > Works, but evaluates both TrueExpression and FalseExpression regardless > of test (as explained in docs) > > Is there a way to get > IF Test THEN TrueExpression > to work inside Eval() ? > > Regards, > Ron_2nd. > No way. Eval() only evaluates expressions. -- Beno?t Minisini From ron at ...1740... Wed Jan 5 10:27:47 2011 From: ron at ...1740... (Ron) Date: Wed, 05 Jan 2011 10:27:47 +0100 Subject: [Gambas-user] Eval Gambas2 In-Reply-To: <201101051023.53935.gambas@...1...> References: <4D242D75.7000908@...1740...> <201101051023.53935.gambas@...1...> Message-ID: <4D243993.6090904@...1740...> On 5-1-2011 10:23, Beno?t Minisini wrote: >> Hi, >> >> I'm trying to implement some sort of basic scripting with the use of >> Eval() inside my project. >> >> It works for a lot of math, formatting and comparison commands and works >> quite nicely. >> >> But I need the IF THEN to work too. >> >> IIf ( Test AS Boolean , TrueExpression , FalseExpression , >> FalseExpression ) or >> If ( Test AS Boolean , TrueExpression , FalseExpression ) >> >> Works, but evaluates both TrueExpression and FalseExpression regardless >> of test (as explained in docs) >> >> Is there a way to get >> IF Test THEN TrueExpression >> to work inside Eval() ? >> >> Regards, >> Ron_2nd. >> > No way. Eval() only evaluates expressions. > Ok clear ;-) Got some sort of work around so I can use IIf the way I want, instead of If(Dev_26_Value = "On", Twitter.PostTweet("TV is On!"), Twitter.PostTweet("TV is Off!")) do: Twitter.PostTweet(If(Dev_26_Value = "On","TV is On!", "TV is Off!")) Shorter anyway... Regards, Ron_2nd. From soleilpqd at ...626... Wed Jan 5 16:25:06 2011 From: soleilpqd at ...626... (=?UTF-8?B?UGjhuqFtIFF1YW5nIETGsMahbmc=?=) Date: Wed, 5 Jan 2011 22:25:06 +0700 Subject: [Gambas-user] KeyPress event with grid view In-Reply-To: <201101032054.20780.gambas@...1...> References: <201101032054.20780.gambas@...1...> Message-ID: Thank for reply, Here is my form. I tried remove all code and run the "fresh" form but nothing happens. 2011/1/4 Beno?t Minisini > > Hi and Happy new year ! > > > > With a grid view on a form I can get KeyPress event. It's fine. > > But with a grid view contained in a vsplit view, no KeyPress event. I > tried > > KeyPress whit VSplit view, same result. > > Is it a bug or I forgot setting something? > > Gambas 2.22 on Fedora 14 GNOME. > > Can you make a little project example that shows the problem? > > Thanks in advance. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > 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: demoKeyPress-0.0.1.tar.gz Type: application/x-gzip Size: 7998 bytes Desc: not available URL: From jussi.lahtinen at ...626... Wed Jan 5 16:37:11 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 5 Jan 2011 17:37:11 +0200 Subject: [Gambas-user] OOT: Email filtering for gambas issue In-Reply-To: <20110105092552.76039455@...2286...> References: <20110105092552.76039455@...2286...> Message-ID: ? Every message from gambas mailing list has [Gambas-user] in subject line..? Jussi On Wed, Jan 5, 2011 at 04:25, MSulchan Darmawan wrote: > Dear all, > > I did by filtering From header, but I saw someone accidently hit reply > and send the email to mailing list instead of replying in google code. > By doing that, the filter missed it. > > So I prefer to filter using Subject header, but maybe it is easier if > there is special subject tag, such as "[gb-issue]" maybe ? :D > > How do you safely filter email from gambas issue ? > Thanks in advance. > > -- > Cheers, > [-Sulchan-] > claws-mail 3.7.8cvs1 @ lucid lynx 10.04 LTS > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...1... Wed Jan 5 18:12:39 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 5 Jan 2011 18:12:39 +0100 Subject: [Gambas-user] New MaskBox control Message-ID: <201101051812.39507.gambas@...1...> Hi, As an intermediate goal before rewriting the ValueBox control, I have implemented a MaskBox control, that is a TextBox with a mask. How does it work ? By setting the mask property, you define which characters are non-editable separators, and which characters can be entered by the user At the moment, the following mask characters are implemented: '9' : any digit. '0' : any digit, with '0' as default '6' : any hexdecimal character 'A' : any letter ('A'-'Z' and 'a'-'z') '?' : any character. Every other character is a separator. If you want to use a mask character as separator, use the '\' escape character. Examples: To enter a date, set Mask to "00/00/0000". To enter an IP address,set Mask to "999.999.999.999" To enter a french currency, set Mask to "999 999 990,00 ?" Make remarks and enjoy it! Regards, -- Beno?t Minisini From gambas at ...1... Wed Jan 5 18:18:59 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 5 Jan 2011 18:18:59 +0100 Subject: [Gambas-user] New MaskBox control In-Reply-To: <201101051812.39507.gambas@...1...> References: <201101051812.39507.gambas@...1...> Message-ID: <201101051818.59538.gambas@...1...> > To enter a french currency, set Mask to "999 999 990,00 ?" > Forget that example, it does not work well at the moment... -- Beno?t Minisini From mdavies5 at ...169... Thu Jan 6 03:36:06 2011 From: mdavies5 at ...169... (Michael) Date: Thu, 06 Jan 2011 13:36:06 +1100 Subject: [Gambas-user] New MaskBox control In-Reply-To: <201101051812.39507.gambas@...1...> References: <201101051812.39507.gambas@...1...> Message-ID: <4D252A96.2000000@...169...> Benoit, Great Idea. I have installed version 3447 and confirmed this with svn -info but I cannot find the MaskBox in the toolbox. This may be my lack of Linux. I have installed with: cd trunk svn update ./reconf ./configure -C make When I look at the properties of file /usr/local/bin/gbx3 it has a modified date of 2nd Dec 2010. Is this correct? Is there a step in the installation that I have missed? Regards Michael On 06/01/11 04:12, Beno?t Minisini wrote: > Hi, > > As an intermediate goal before rewriting the ValueBox control, I have > implemented a MaskBox control, that is a TextBox with a mask. > > How does it work ? > > By setting the mask property, you define which characters are non-editable > separators, and which characters can be entered by the user > > At the moment, the following mask characters are implemented: > > '9' : any digit. > '0' : any digit, with '0' as default > '6' : any hexdecimal character > 'A' : any letter ('A'-'Z' and 'a'-'z') > '?' : any character. > > Every other character is a separator. If you want to use a mask character as > separator, use the '\' escape character. > > Examples: > > To enter a date, set Mask to "00/00/0000". > To enter an IP address,set Mask to "999.999.999.999" > To enter a french currency, set Mask to "999 999 990,00 ?" > > Make remarks and enjoy it! > > Regards, > From firman.isb at ...626... Thu Jan 6 06:48:23 2011 From: firman.isb at ...626... (firman) Date: Wed, 5 Jan 2011 21:48:23 -0800 (PST) Subject: [Gambas-user] Did anyone have a script to record webcame picture in video files In-Reply-To: <201012291858.43095.gambas@...1...> References: <30442622.post@...1379...> <30496252.post@...1379...> <30510255.post@...1379...> <30512324.post@...1379...> <30513973.post@...1379...> <30517734.post@...1379...> <30527087.post@...1379...> <30536752.post@...1379...> <30552084.post@...1379...> <201012291858.43095.gambas@...1...> Message-ID: <30602748.post@...1379...> I'm newbe in programing language, can u give me a way to use mencoder in my project Mr. Benoit, please? Beno?t Minisini wrote: > >> OK Mr. Fabien.. I have a project for make a cctv monitoring system, then >> i >> used webcam for simulation my project. When i tried to make program using >> gambas3, the program has working but one button could not work.. that was >> record button, files record can create but zero (0 bytes).. I need to >> record video picture from webcam 1 to 4 in avi, mpg or any other video >> format. So i need help for solve my problem... and now i send u again >> source archive that i had make from gambas3... if u or anybody have a >> good >> script or source for solving my problem, i hope... >> http://old.nabble.com/file/p30552084/TACAMCCTVrev2-0.0.1.tar.gz >> TACAMCCTVrev2-0.0.1.tar.gz >> > > Maybe I will say something stupid, but did you google "linux how to record > webcam"? > > Hint: the answer is the "mencoder" program. > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > 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/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30602748.html Sent from the gambas-user mailing list archive at Nabble.com. From austinium at ...43... Thu Jan 6 07:51:25 2011 From: austinium at ...43... (vikram) Date: Wed, 5 Jan 2011 22:51:25 -0800 (PST) Subject: [Gambas-user] Difference in SpinBox behavior between gb.gtk & gb.qt Message-ID: <679101.13762.qm@...2464...> Hi, The SpinBox control when used in an application using the gb.gtk component allows the user to input values that are larger than it's MaxValue property. Say the MaxValue for a SpinBox is 100, the user can enter 999 and click the button to move to the next form, the SpinBox now automatically changes the value to 100. This is good because junk values won't get saved, but the problem is that there is no way of extracting the value with SpinBox.Value to show the user an error message that the value he wanted(999) is not valid! If on the other hand the application uses the gb.qt component the user cannot enter any value greater than 100, the SpinBox control wouldn't let him! Is there anyway the same can be achieved in applications using the gb.gtk component? Regards, Vikram Nair -------------- next part -------------- A non-text attachment was scrubbed... Name: SpinBoxIssue2GTK.tar.gz Type: application/x-gzip Size: 8728 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: SpinBoxIssue2TQ.tar.gz Type: application/x-gzip Size: 7885 bytes Desc: not available URL: From oceanosoftlapalma at ...626... Thu Jan 6 07:53:20 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Thu, 6 Jan 2011 07:53:20 +0100 Subject: [Gambas-user] OOT: Email filtering for gambas issue In-Reply-To: References: <20110105092552.76039455@...2286...> Message-ID: Yes 2011/1/5 Jussi Lahtinen > ? > Every message from gambas mailing list has [Gambas-user] in subject line..? > > Jussi > On Wed, Jan 5, 2011 at 04:25, MSulchan Darmawan > wrote: > > > Dear all, > > > > I did by filtering From header, but I saw someone accidently hit reply > > and send the email to mailing list instead of replying in google code. > > By doing that, the filter missed it. > > > > So I prefer to filter using Subject header, but maybe it is easier if > > there is special subject tag, such as "[gb-issue]" maybe ? :D > > > > How do you safely filter email from gambas issue ? > > Thanks in advance. > > > > -- > > Cheers, > > [-Sulchan-] > > claws-mail 3.7.8cvs1 @ lucid lynx 10.04 LTS > > > > > > > ------------------------------------------------------------------------------ > > Learn how Oracle Real Application Clusters (RAC) One Node allows > customers > > to consolidate database storage, standardize their database environment, > > and, > > should the need arise, upgrade to a full multi-node Oracle RAC database > > without downtime or disruption > > http://p.sf.net/sfu/oracle-sfdevnl > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bleketux at ...626... Thu Jan 6 08:11:36 2011 From: bleketux at ...626... (MSulchan Darmawan) Date: Thu, 6 Jan 2011 14:11:36 +0700 Subject: [Gambas-user] OOT: Email filtering for gambas issue In-Reply-To: References: <20110105092552.76039455@...2286...> Message-ID: <20110106141136.122af5af@...2286...> On Wed, 5 Jan 2011 17:37:11 +0200 Jussi Lahtinen wrote: > ? > Every message from gambas mailing list has [Gambas-user] in subject > line..? I see now Beno?t using google code for gambas bug ticket, what I want to do is to filter the ticket appart from mailing list. So I propose [gb-issue] if it is possible to set it on google code :D -- Cheers, [-Sulchan-] claws-mail 3.7.8cvs1 @ lucid lynx 10.04 LTS -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From Karl.Reinl at ...2345... Thu Jan 6 09:00:16 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Thu, 06 Jan 2011 09:00:16 +0100 Subject: [Gambas-user] OOT: Email filtering for gambas issue In-Reply-To: <20110106141136.122af5af@...2286...> References: <20110105092552.76039455@...2286...> <20110106141136.122af5af@...2286...> Message-ID: <1294300816.6437.1.camel@...40...> Am Donnerstag, den 06.01.2011, 14:11 +0700 schrieb MSulchan Darmawan: > On Wed, 5 Jan 2011 17:37:11 +0200 > Jussi Lahtinen wrote: > > > ? > > Every message from gambas mailing list has [Gambas-user] in subject > > line..? > > I see now Beno?t using google code for gambas bug ticket, what I want > to do is to filter the ticket appart from mailing list. So I propose > [gb-issue] if it is possible to set it on google code :D > Salut, I do it by filtering SENDER and set it as first rule for gambas -- Amicalement Charlie From mdavies5 at ...169... Thu Jan 6 11:01:08 2011 From: mdavies5 at ...169... (Michael) Date: Thu, 06 Jan 2011 21:01:08 +1100 Subject: [Gambas-user] Difference in SpinBox behavior between gb.gtk & gb.qt In-Reply-To: <679101.13762.qm@...2464...> References: <679101.13762.qm@...2464...> Message-ID: <4D2592E4.5090402@...169...> Vikram, As a workaround you could check the Spinbox.Keydown event and ignore keys if they take the value above 100 Regards Michael On 06/01/11 17:51, vikram wrote: > Hi, > > The SpinBox control when used in an application using the gb.gtk component allows the user to input values that are larger than it's MaxValue property. Say the MaxValue for a SpinBox is 100, the user can enter 999 and click the button to move to the next form, the SpinBox now automatically changes the value to 100. This is good because junk values won't get saved, but the problem is that there is no way of extracting the value with SpinBox.Value to show the user an error message that the value he wanted(999) is not valid! > > If on the other hand the application uses the gb.qt component the user cannot enter any value greater than 100, the SpinBox control wouldn't let him! Is there anyway the same can be achieved in applications using the gb.gtk component? > > Regards, > Vikram Nair > > > > > > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1946... Thu Jan 6 13:27:29 2011 From: rterry at ...1946... (richard terry) Date: Thu, 6 Jan 2011 23:27:29 +1100 Subject: [Gambas-user] super big favour needed Message-ID: <201101062327.30030.rterry@...1946...> Hi list/Benoit. I've spent ages looking through the gambas IDE code to try and find where/how you set up the popup form with a scrolling list of tools and the code to drag and drop this onto the toolbar. I wonder if anyone/Benoit could be kind enough to point me to this so I can copy the concepts for my program. Regards richard From gambas at ...1... Thu Jan 6 13:35:51 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 6 Jan 2011 13:35:51 +0100 Subject: [Gambas-user] super big favour needed In-Reply-To: <201101062327.30030.rterry@...1946...> References: <201101062327.30030.rterry@...1946...> Message-ID: <201101061335.51540.gambas@...1...> > Hi list/Benoit. > > I've spent ages looking through the gambas IDE code to try and find > where/how you set up the popup form with a scrolling list of tools and the > code to drag and drop this onto the toolbar. > > I wonder if anyone/Benoit could be kind enough to point me to this so I can > copy the concepts for my program. > > Regards > > richard Huu. What "popup of tools" are you talking about? -- Beno?t Minisini From jussi.lahtinen at ...626... Thu Jan 6 13:43:26 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 6 Jan 2011 14:43:26 +0200 Subject: [Gambas-user] New MaskBox control In-Reply-To: <4D252A96.2000000@...169...> References: <201101051812.39507.gambas@...1...> <4D252A96.2000000@...169...> Message-ID: Did you delete old installation? My compilation script: #!/bin/sh sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 /usr/local/bin/gbi3 sudo rm -rf /usr/local/lib/gambas3 sudo rm -rf /usr/local/share/gambas3 cd ~/trunk ./reconf-all && ./configure -C && make && sudo make install sudo -k Jussi On Thu, Jan 6, 2011 at 04:36, Michael wrote: > Benoit, > Great Idea. I have installed version 3447 and confirmed this with svn > -info but I cannot find the MaskBox in the toolbox. This may be my lack > of Linux. I have installed with: > cd trunk > svn update > ./reconf > ./configure -C > make > > When I look at the properties of file /usr/local/bin/gbx3 it has a > modified date of 2nd Dec 2010. Is this correct? Is there a step in the > installation that I have missed? > > Regards > Michael > > > On 06/01/11 04:12, Beno?t Minisini wrote: > > Hi, > > > > As an intermediate goal before rewriting the ValueBox control, I have > > implemented a MaskBox control, that is a TextBox with a mask. > > > > How does it work ? > > > > By setting the mask property, you define which characters are > non-editable > > separators, and which characters can be entered by the user > > > > At the moment, the following mask characters are implemented: > > > > '9' : any digit. > > '0' : any digit, with '0' as default > > '6' : any hexdecimal character > > 'A' : any letter ('A'-'Z' and 'a'-'z') > > '?' : any character. > > > > Every other character is a separator. If you want to use a mask character > as > > separator, use the '\' escape character. > > > > Examples: > > > > To enter a date, set Mask to "00/00/0000". > > To enter an IP address,set Mask to "999.999.999.999" > > To enter a french currency, set Mask to "999 999 990,00 ?" > > > > Make remarks and enjoy it! > > > > Regards, > > > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Thu Jan 6 13:54:09 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 6 Jan 2011 14:54:09 +0200 Subject: [Gambas-user] Did anyone have a script to record webcame picture in video files In-Reply-To: <30602748.post@...1379...> References: <30442622.post@...1379...> <30496252.post@...1379...> <30510255.post@...1379...> <30512324.post@...1379...> <30513973.post@...1379...> <30517734.post@...1379...> <30527087.post@...1379...> <30536752.post@...1379...> <30552084.post@...1379...> <201012291858.43095.gambas@...1...> <30602748.post@...1379...> Message-ID: See documentation for shell command. And follow this link to learn how to do recording with command line. https://help.ubuntu.com/community/Webcam Jussi On Thu, Jan 6, 2011 at 07:48, firman wrote: > > > I'm newbe in programing language, can u give me a way to use mencoder in my > project Mr. Benoit, please? > > > > Beno?t Minisini wrote: > > > >> OK Mr. Fabien.. I have a project for make a cctv monitoring system, then > >> i > >> used webcam for simulation my project. When i tried to make program > using > >> gambas3, the program has working but one button could not work.. that > was > >> record button, files record can create but zero (0 bytes).. I need to > >> record video picture from webcam 1 to 4 in avi, mpg or any other video > >> format. So i need help for solve my problem... and now i send u again > >> source archive that i had make from gambas3... if u or anybody have a > >> good > >> script or source for solving my problem, i hope... > >> http://old.nabble.com/file/p30552084/TACAMCCTVrev2-0.0.1.tar.gz > >> TACAMCCTVrev2-0.0.1.tar.gz > >> > > > > Maybe I will say something stupid, but did you google "linux how to > record > > webcam"? > > > > Hint: the answer is the "mencoder" program. > > > > -- > > Beno?t Minisini > > > > > ------------------------------------------------------------------------------ > > Learn how Oracle Real Application Clusters (RAC) One Node allows > customers > > to consolidate database storage, standardize their database environment, > > and, > > should the need arise, upgrade to a full multi-node Oracle RAC database > > without downtime or disruption > > http://p.sf.net/sfu/oracle-sfdevnl > > _______________________________________________ > > 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/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30602748.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Thu Jan 6 14:18:28 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 6 Jan 2011 14:18:28 +0100 Subject: [Gambas-user] super big favour needed In-Reply-To: <201101061335.51540.gambas@...1...> References: <201101062327.30030.rterry@...1946...> <201101061335.51540.gambas@...1...> Message-ID: just use the gb.form.mdi component and in it the toolbar... what you see is just the toolbar widget... you don't have to copy ... just use it Le 6 janvier 2011 13:35, Beno?t Minisini a ?crit : >> Hi list/Benoit. >> >> I've spent ages looking through the gambas IDE code to try and find >> where/how you set up the popup form with a scrolling list of tools and the >> code to drag and drop this onto the toolbar. >> >> I wonder if anyone/Benoit could be kind enough to point me to this so I can >> copy the concepts for my program. >> >> Regards >> >> richard > > Huu. What "popup of tools" are you talking about? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas.fr at ...626... Thu Jan 6 14:30:49 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 6 Jan 2011 14:30:49 +0100 Subject: [Gambas-user] Did anyone have a script to record webcame picture in video files In-Reply-To: References: <30442622.post@...1379...> <30496252.post@...1379...> <30510255.post@...1379...> <30512324.post@...1379...> <30513973.post@...1379...> <30517734.post@...1379...> <30527087.post@...1379...> <30536752.post@...1379...> <30552084.post@...1379...> <201012291858.43095.gambas@...1...> <30602748.post@...1379...> Message-ID: 2011/1/6 Jussi Lahtinen : > See documentation for shell command. > > And follow this link to learn how to do recording with command line. > https://help.ubuntu.com/community/Webcam > > Jussi > > > > On Thu, Jan 6, 2011 at 07:48, firman wrote: > >> >> >> I'm newbe in programing language, can u give me a way to use mencoder in my >> project Mr. Benoit, please? >> >> >> >> Beno?t Minisini wrote: >> > >> >> OK Mr. Fabien.. I have a project for make a cctv monitoring system, then >> >> i >> >> used webcam for simulation my project. When i tried to make program >> using >> >> gambas3, the program has working but one button could not work.. that >> was >> >> record button, files record can create but zero (0 bytes).. I need to >> >> record video picture from webcam 1 to 4 in avi, mpg or any other video >> >> format. So i need help for solve my problem... and now i send u again >> >> source archive that i had make from gambas3... if u or anybody have a >> >> good >> >> script or source for solving my problem, i hope... >> >> http://old.nabble.com/file/p30552084/TACAMCCTVrev2-0.0.1.tar.gz >> >> TACAMCCTVrev2-0.0.1.tar.gz >> >> >> > >> > Maybe I will say something stupid, but did you google "linux how to >> record >> > webcam"? >> > >> > Hint: the answer is the "mencoder" program. >> > >> > -- >> > Beno?t Minisini >> > >> > >> ------------------------------------------------------------------------------ >> > Learn how Oracle Real Application Clusters (RAC) One Node allows >> customers >> > to consolidate database storage, standardize their database environment, >> > and, >> > should the need arise, upgrade to a full multi-node Oracle RAC database >> > without downtime or disruption >> > http://p.sf.net/sfu/oracle-sfdevnl >> > _______________________________________________ >> > 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/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30602748.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------------ >> Learn how Oracle Real Application Clusters (RAC) One Node allows customers >> to consolidate database storage, standardize their database environment, >> and, >> should the need arise, upgrade to a full multi-node Oracle RAC database >> without downtime or disruption >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > then use the exec command or shell command and process to use command line program from you code -- Fabien Bodard From wellspinto at ...626... Thu Jan 6 15:50:35 2011 From: wellspinto at ...626... (Wellington de Souza Pinto) Date: Thu, 6 Jan 2011 12:50:35 -0200 Subject: [Gambas-user] MaskBox Idea complement Message-ID: Hi! The maskbox mask property accepts Sample MaskBox.Mask = gb.date -> to set mask to system date format (dd/mm/yy, dd-mm-yyy, ...) MaskBox.Mask = gb.currency -> to set mask to system currency using Decimal separator, tousands separator and country signal (E$, US$, BRZ, R$,...) In MaskBox When type the simbol (Ex. ".", "," or "/") the control must by positioned in pos of simbol + 1 Sample: Mask = "999,999.99" (currency type) If i type "." (decimal separator) the cursor position next the "." to type the cents. ... Reguards, From gambas at ...1... Thu Jan 6 15:53:35 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 6 Jan 2011 15:53:35 +0100 Subject: [Gambas-user] MaskBox Idea complement In-Reply-To: References: Message-ID: <201101061553.35835.gambas@...1...> > Hi! > > The maskbox mask property accepts > > Sample > > MaskBox.Mask = gb.date -> to set mask to system date format (dd/mm/yy, > dd-mm-yyy, ...) > MaskBox.Mask = gb.currency -> to set mask to system currency using Decimal > separator, tousands separator and country signal (E$, US$, BRZ, R$,...) > This will be the job of the future ValueBox. MaskBox will keep being low- level. > In MaskBox When type the simbol (Ex. ".", "," or "/") the control must by > positioned in pos of simbol + 1 > Sample: > Mask = "999,999.99" (currency type) > If i type "." (decimal separator) the cursor position next the "." to > type the cents. It should do that. But maybe it's buggy... -- Beno?t Minisini From jussi.lahtinen at ...626... Thu Jan 6 16:43:59 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 6 Jan 2011 17:43:59 +0200 Subject: [Gambas-user] Crash! Message-ID: Hi! I cannot really isolate my problem, but in this case it happens when loading string data from file to object (something like "someobject.sStr = Read #hFile As String"). Gambas 3 rev 3447 @ Ubuntu 10.10 64bit $ gbc3 -agpmt OK $ gdb gbx3 GNU gdb (GDB) 7.2-ubuntu Copyright (C) 2010 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 "x86_64-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /usr/local/bin/gbx3...done. (gdb) set args -p (gdb) run Starting program: /usr/local/bin/gbx3 -p [Thread debugging using libthread_db enabled] [New Thread 0x7fffef2ba700 (LWP 3790)] warning: unable to load Qt translation: en_GB.utf8 Program received signal SIGSEGV, Segmentation fault. 0x0000000000414b91 in SUBR_leave (nparam=2) at gbx_subr.c:42 42 BORROW(RP); (gdb) bt #0 0x0000000000414b91 in SUBR_leave (nparam=2) at gbx_subr.c:42 #1 0x0000000000430132 in EXEC_loop () at gbx_exec_loop.c:480 #2 0x0000000000409a75 in EXEC_function_loop () at gbx_exec.c:861 #3 0x000000000040a4c5 in EXEC_function_real () at gbx_exec.c:848 #4 0x00000000004227e5 in main (argc=1, argv=) at gbx.c:362 (gdb) f 1 #1 0x0000000000430132 in EXEC_loop () at gbx_exec_loop.c:480 480 (*(EXEC_FUNC_CODE)SubrTable[(code >> 8) - 0x28])(code); Also see attached valgrind log. Jussi -------------- next part -------------- A non-text attachment was scrubbed... Name: valgrind-memcheck.log Type: text/x-log Size: 4341 bytes Desc: not available URL: From rterry at ...1946... Thu Jan 6 22:00:48 2011 From: rterry at ...1946... (richard terry) Date: Fri, 7 Jan 2011 08:00:48 +1100 Subject: [Gambas-user] super big favour needed In-Reply-To: <201101061335.51540.gambas@...1...> References: <201101062327.30030.rterry@...1946...> <201101061335.51540.gambas@...1...> Message-ID: <201101070800.48848.rterry@...1946...> On Thursday 06 January 2011 23:35:51 Beno?t Minisini wrote: > > Hi list/Benoit. > > > > I've spent ages looking through the gambas IDE code to try and find > > where/how you set up the popup form with a scrolling list of tools and > > the code to drag and drop this onto the toolbar. > > > > I wonder if anyone/Benoit could be kind enough to point me to this so I > > can copy the concepts for my program. > > > > Regards > > > > richard > > Huu. What "popup of tools" are you talking about? > When you right click on the menu in the IDE and get a menu, then if you choose configure, up comes a dialog with samples of all the tool menu items. You can scroll down, and then drag and drop the tool onto the toolbar. With so much work to do in EAsyGP, it would be great to just be able to modify the code for our use if that is permissible as it would save me time I can then devote to something else. Ian/I's target for a EasyGP release is end June 20011 and much work to go! REgards richards From firman.isb at ...626... Fri Jan 7 01:54:01 2011 From: firman.isb at ...626... (firman) Date: Thu, 6 Jan 2011 16:54:01 -0800 (PST) Subject: [Gambas-user] Did anyone have a script to record webcame picture in video files In-Reply-To: References: <30442622.post@...1379...> <30496252.post@...1379...> <30510255.post@...1379...> <30512324.post@...1379...> <30513973.post@...1379...> <30517734.post@...1379...> <30527087.post@...1379...> <30536752.post@...1379...> <30552084.post@...1379...> <201012291858.43095.gambas@...1...> <30602748.post@...1379...> Message-ID: <30610605.post@...1379...> ok. i'll try to use mencoder. thanks all and i'll give u the report... Fabien Bodard-4 wrote: > > 2011/1/6 Jussi Lahtinen : >> See documentation for shell command. >> >> And follow this link to learn how to do recording with command line. >> https://help.ubuntu.com/community/Webcam >> >> Jussi >> >> >> >> On Thu, Jan 6, 2011 at 07:48, firman wrote: >> >>> >>> >>> I'm newbe in programing language, can u give me a way to use mencoder in >>> my >>> project Mr. Benoit, please? >>> >>> >>> >>> Beno?t Minisini wrote: >>> > >>> >> OK Mr. Fabien.. I have a project for make a cctv monitoring system, >>> then >>> >> i >>> >> used webcam for simulation my project. When i tried to make program >>> using >>> >> gambas3, the program has working but one button could not work.. that >>> was >>> >> record button, files record can create but zero (0 bytes).. I need to >>> >> record video picture from webcam 1 to 4 in avi, mpg or any other >>> video >>> >> format. So i need help for solve my problem... and now i send u again >>> >> source archive that i had make from gambas3... if u or anybody have a >>> >> good >>> >> script or source for solving my problem, i hope... >>> >> http://old.nabble.com/file/p30552084/TACAMCCTVrev2-0.0.1.tar.gz >>> >> TACAMCCTVrev2-0.0.1.tar.gz >>> >> >>> > >>> > Maybe I will say something stupid, but did you google "linux how to >>> record >>> > webcam"? >>> > >>> > Hint: the answer is the "mencoder" program. >>> > >>> > -- >>> > Beno?t Minisini >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > Learn how Oracle Real Application Clusters (RAC) One Node allows >>> customers >>> > to consolidate database storage, standardize their database >>> environment, >>> > and, >>> > should the need arise, upgrade to a full multi-node Oracle RAC >>> database >>> > without downtime or disruption >>> > http://p.sf.net/sfu/oracle-sfdevnl >>> > _______________________________________________ >>> > 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/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30602748.html >>> Sent from the gambas-user mailing list archive at Nabble.com. >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Learn how Oracle Real Application Clusters (RAC) One Node allows >>> customers >>> to consolidate database storage, standardize their database environment, >>> and, >>> should the need arise, upgrade to a full multi-node Oracle RAC database >>> without downtime or disruption >>> http://p.sf.net/sfu/oracle-sfdevnl >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------------------------ >> Learn how Oracle Real Application Clusters (RAC) One Node allows >> customers >> to consolidate database storage, standardize their database environment, >> and, >> should the need arise, upgrade to a full multi-node Oracle RAC database >> without downtime or disruption >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > then use the exec command or shell command and process to use command > line program from you code > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > 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/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30610605.html Sent from the gambas-user mailing list archive at Nabble.com. From mdavies5 at ...169... Fri Jan 7 03:24:39 2011 From: mdavies5 at ...169... (Michael) Date: Fri, 07 Jan 2011 13:24:39 +1100 Subject: [Gambas-user] New MaskBox control In-Reply-To: References: <201101051812.39507.gambas@...1...> <4D252A96.2000000@...169...> Message-ID: <4D267967.8080200@...169...> Thanks Jussi, This solves all my problems. The MaskBox works fine and the problem I had with setting page orientation is solved. I never knew you had to delete the old installation, I thought the MAKE command would overwrite old files. I got my install scripts from the internet and nobody thought to mention that the old version needed to be deleted first. Thanks again;-) Regards Michael On 06/01/11 23:43, Jussi Lahtinen wrote: > Did you delete old installation? > > My compilation script: > > #!/bin/sh > sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 > /usr/local/bin/gbi3 > sudo rm -rf /usr/local/lib/gambas3 > sudo rm -rf /usr/local/share/gambas3 > cd ~/trunk > ./reconf-all&& ./configure -C&& make&& sudo make install > sudo -k > > Jussi > > > > On Thu, Jan 6, 2011 at 04:36, Michael wrote: > >> Benoit, >> Great Idea. I have installed version 3447 and confirmed this with svn >> -info but I cannot find the MaskBox in the toolbox. This may be my lack >> of Linux. I have installed with: >> cd trunk >> svn update >> ./reconf >> ./configure -C >> make >> >> When I look at the properties of file /usr/local/bin/gbx3 it has a >> modified date of 2nd Dec 2010. Is this correct? Is there a step in the >> installation that I have missed? >> >> Regards >> Michael > From wally at ...2037... Fri Jan 7 07:55:23 2011 From: wally at ...2037... (wally) Date: Fri, 7 Jan 2011 07:55:23 +0100 Subject: [Gambas-user] compiling gb.gtk on OpenSuse 11.3 ? Message-ID: <201101070755.23195.wally@...2037...> Which OpenSuse packages must be installed to get gb.gtk enabled/ compiled ? configure messages: checking for GTK+ toolkit component with pkg-config... no no || GTK+ toolkit is disabled || GTKglext toolkit is disabled || THESE COMPONENTS ARE DISABLED: || - gb.gtk wally From wally at ...2037... Fri Jan 7 14:09:08 2011 From: wally at ...2037... (wally) Date: Fri, 7 Jan 2011 14:09:08 +0100 Subject: [Gambas-user] compiling gb.gtk on OpenSuse 11.3 ? Message-ID: <201101071409.08744.wally@...2037...> Which OpenSuse packages must be installed to get gb.gtk enabled/ compiled ? configure messages: checking for GTK+ toolkit component with pkg-config... no no || GTK+ toolkit is disabled || GTKglext toolkit is disabled || THESE COMPONENTS ARE DISABLED: || - gb.gtk ... or, what is missing: :~> rpm -qa gtk* gtkglarea2-1.99.0-3.3.i586 gtk2-engine-murrine-0.90.3-8.1.i586 gtkimageview-devel-1.6.4-3.1.i586 gtkspell-devel-2.0.15-6.1.i586 gtk2-engines-2.20.1-1.6.i586 gtksourceview-devel-2.10.1-1.6.i586 gtksourceview18-1.8.5-136.1.i586 gtk-vnc-devel-0.3.10-3.1.i586 gtkmathview-devel-0.8.0-7.1.i586 gtkhtml2-3.30.1-1.8.i586 gtkglext-1.2.0-183.1.1.i586 gtk2-metatheme-sonar-11.3.0-2.3.noarch gtk2-branding-openSUSE-11.3-3.1.noarch gtk2-devel-2.20.1-2.13.i586 gtkextra2-devel-2.1.1-8.2.i586 gtkglextmm-1.2.0-0.pm.6.1.i586 gtkhtml314-sharp-2.26.0-11.2.i586 gtk2-2.20.1-2.13.i586 gtkmm2-2.20.3-2.3.i586 gtkglext-devel-1.2.0-183.1.1.i586 gtkhtml2-devel-3.30.1-1.8.i586 gtkspell-2.0.15-6.1.i586 gtksourceview18-devel-1.8.5-136.1.i586 gtkglarea2-devel-1.99.0-3.3.i586 gtk-sharp-beans-devel-2.13.92-3.2.i586 gtkmm2-devel-2.20.3-2.3.i586 gtk2-metatheme-gilouche-11.1.2-5.1.noarch gtk2-engines-devel-2.20.1-1.6.i586 gtk-sharp2-2.12.10-23.2.i586 gtk-doc-1.14-1.5.noarch gtkglextmm-devel-1.2.0-0.pm.6.1.i586 gtk-sharp-beans-2.13.92-3.2.i586 ~> rpm -qa libgtk* libgtksourceviewmm-2_0-2-1.9.5-8.1.i586 libgtkgl-2_0-1-1.99.0-3.3.i586 libgtksourceview-2_0-0-2.10.1-1.6.i586 libgtk-vnc-1_0-0-0.3.10-3.1.i586 libgtkmathview-0.8.0-7.1.i586 libgtksourceviewmm-2_0-devel-1.9.5-8.1.i586 libgtkimageview0-1.6.4-3.1.i586 libgtkdatabox-0_9_0-1-0.9.0.1-14.2.i586 libgtkextra-x11-2_0-1-2.1.1-8.2.i586 libgtkdatabox-devel-0.9.0.1-14.2.i586 wally From demosthenesk at ...626... Sat Jan 8 09:32:08 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 08 Jan 2011 10:32:08 +0200 Subject: [Gambas-user] Gambas3 Pointers example Message-ID: <1294475528.4079.5.camel@...2493...> Hello, i remake an example for pointers in Gambas3-svn3432, ubuntu 10.04 LTS, AMD64 The example is the next: ------------------------- ' Gambas module file Public Sub Main() Dim pPointer As Pointer Dim hMemory As Stream Dim iA As Integer pPointer = Alloc(SizeOf(gb.Integer)) hMemory = Memory pPointer For Read Write Write #hMemory, 10 As Integer iA = Read #hMemory As Integer Print iA Free(pPointer) End ------------------------- the iA var when it prints is not 10 but something else like 0 or 32621 or similar. What am i doing wrong? -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Sat Jan 8 17:09:34 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 08 Jan 2011 18:09:34 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] Message-ID: <1294502974.10206.1.camel@...2493...> But if i write, iA = Integer@(pPointer) Print iA then iA gets the value 10. why is that? what's the difference between iA = Read #hMemory As Integer iA = Integer@(pPointer) ? -- Regards, Demosthenes Koptsis. -------------- next part -------------- An embedded message was scrubbed... From: Demosthenes Koptsis Subject: Gambas3 Pointers example Date: Sat, 08 Jan 2011 10:32:12 +0200 Size: 972 URL: From jussi.lahtinen at ...626... Sat Jan 8 19:40:27 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 8 Jan 2011 20:40:27 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] In-Reply-To: <1294502974.10206.1.camel@...2493...> References: <1294502974.10206.1.camel@...2493...> Message-ID: Behaviour confirmed with Gambas 3 rev 3447 @ Ubuntu 10.10 64bit. Though I don't think this is bug, since stream pointer position moves after write. "Seek #hMemory, 0" will fix that, in this case. See more from documentation of Seek. However I don't know how Interger@ gets correct position... Jussi On Sat, Jan 8, 2011 at 18:09, Demosthenes Koptsis wrote: > > But if i write, > > iA = Integer@(pPointer) > Print iA > > then iA gets the value 10. > > why is that? > > what's the difference between > iA = Read #hMemory As Integer > iA = Integer@(pPointer) > > ? > -- > Regards, > Demosthenes Koptsis. > > > ---------- Forwarded message ---------- > From: Demosthenes Koptsis > To: Gambas User List > Date: Sat, 08 Jan 2011 10:32:12 +0200 > Subject: Gambas3 Pointers example > Hello, > i remake an example for pointers in Gambas3-svn3432, ubuntu 10.04 LTS, > AMD64 > > The example is the next: > > ------------------------- > ' Gambas module file > > Public Sub Main() > > Dim pPointer As Pointer > Dim hMemory As Stream > Dim iA As Integer > > pPointer = Alloc(SizeOf(gb.Integer)) > hMemory = Memory pPointer For Read Write > > Write #hMemory, 10 As Integer > iA = Read #hMemory As Integer > > Print iA > > Free(pPointer) > > End > ------------------------- > > the iA var when it prints is not 10 but something else like 0 or 32621 > or similar. > > What am i doing wrong? > > > > -- > Regards, > Demosthenes Koptsis. > > > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any > company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jussi.lahtinen at ...626... Sat Jan 8 19:43:46 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 8 Jan 2011 20:43:46 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] In-Reply-To: References: <1294502974.10206.1.camel@...2493...> Message-ID: Argh... of course: This uses internal counter: iA = Read #hMemory As Integer This uses pPointer as address: iA = Integer@(pPointer) Jussi On Sat, Jan 8, 2011 at 20:40, Jussi Lahtinen wrote: > Behaviour confirmed with Gambas 3 rev 3447 @ Ubuntu 10.10 64bit. > Though I don't think this is bug, since stream pointer position moves after > write. > "Seek #hMemory, 0" will fix that, in this case. See more from documentation > of Seek. > > However I don't know how Interger@ gets correct position... > > Jussi > > > > > > On Sat, Jan 8, 2011 at 18:09, Demosthenes Koptsis wrote: > >> >> But if i write, >> >> iA = Integer@(pPointer) >> Print iA >> >> then iA gets the value 10. >> >> why is that? >> >> what's the difference between >> iA = Read #hMemory As Integer >> iA = Integer@(pPointer) >> >> ? >> -- >> Regards, >> Demosthenes Koptsis. >> >> >> ---------- Forwarded message ---------- >> From: Demosthenes Koptsis >> To: Gambas User List >> Date: Sat, 08 Jan 2011 10:32:12 +0200 >> Subject: Gambas3 Pointers example >> Hello, >> i remake an example for pointers in Gambas3-svn3432, ubuntu 10.04 LTS, >> AMD64 >> >> The example is the next: >> >> ------------------------- >> ' Gambas module file >> >> Public Sub Main() >> >> Dim pPointer As Pointer >> Dim hMemory As Stream >> Dim iA As Integer >> >> pPointer = Alloc(SizeOf(gb.Integer)) >> hMemory = Memory pPointer For Read Write >> >> Write #hMemory, 10 As Integer >> iA = Read #hMemory As Integer >> >> Print iA >> >> Free(pPointer) >> >> End >> ------------------------- >> >> the iA var when it prints is not 10 but something else like 0 or 32621 >> or similar. >> >> What am i doing wrong? >> >> >> >> -- >> Regards, >> Demosthenes Koptsis. >> >> >> ------------------------------------------------------------------------------ >> Gaining the trust of online customers is vital for the success of any >> company >> that requires sensitive data to be transmitted over the Web. Learn how >> to >> best implement a security strategy that keeps consumers' information >> secure >> and instills the confidence they need to proceed with transactions. >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > From demosthenesk at ...626... Sat Jan 8 20:46:32 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 08 Jan 2011 21:46:32 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] In-Reply-To: References: <1294502974.10206.1.camel@...2493...> Message-ID: <1294515992.2802.22.camel@...2494...> Thanks Jussi! It's nice to understand the language. I didn't say that there was a bug, my mind just did not go to the behavior of WRITE instruction, which it moved the stream pointer after writing the data. I remade the example to show this detail for better comprehension. ------------------------------------- ' Gambas module file Public Sub Main() Dim pPointer As Pointer Dim hMemory As Stream Dim iA As Integer pPointer = Alloc(SizeOf(gb.Integer)) hMemory = Memory pPointer For Read Write Write #hMemory, 10 As Integer 'get stream pointer position Print Seek(hMemory) '4 'set stream pointer potition Seek #hMemory, 0 'get stream pointer position Print Seek(hMemory) '0 'read from memory stream iA = Read #hMemory As Integer Print iA '10 'read from address iA = Integer@(pPointer) Print iA '10 Free(pPointer) End ------------------------------------- something else, as i read the docs i found a way to write to a pointer by instructions hMemory = Memory pPointer For Read Write Write #hMemory, 10 As Integer is there any other way that i did not notice? there is also PRINT to stream but as i see it converts the expression to string with Str$, so it is not a good option. On Sat, 2011-01-08 at 20:43 +0200, Jussi Lahtinen wrote: > Argh... of course: > > This uses internal counter: > iA = Read #hMemory As Integer > > This uses pPointer as address: > iA = Integer@(pPointer) > > > Jussi > > > On Sat, Jan 8, 2011 at 20:40, Jussi Lahtinen wrote: > > > Behaviour confirmed with Gambas 3 rev 3447 @ Ubuntu 10.10 64bit. > > Though I don't think this is bug, since stream pointer position moves after > > write. > > "Seek #hMemory, 0" will fix that, in this case. See more from documentation > > of Seek. > > > > However I don't know how Interger@ gets correct position... > > > > Jussi > > > > > > > > > > > > On Sat, Jan 8, 2011 at 18:09, Demosthenes Koptsis wrote: > > > >> > >> But if i write, > >> > >> iA = Integer@(pPointer) > >> Print iA > >> > >> then iA gets the value 10. > >> > >> why is that? > >> > >> what's the difference between > >> iA = Read #hMemory As Integer > >> iA = Integer@(pPointer) > >> > >> ? > >> -- > >> Regards, > >> Demosthenes Koptsis. > >> > >> > >> ---------- Forwarded message ---------- > >> From: Demosthenes Koptsis > >> To: Gambas User List > >> Date: Sat, 08 Jan 2011 10:32:12 +0200 > >> Subject: Gambas3 Pointers example > >> Hello, > >> i remake an example for pointers in Gambas3-svn3432, ubuntu 10.04 LTS, > >> AMD64 > >> > >> The example is the next: > >> > >> ------------------------- > >> ' Gambas module file > >> > >> Public Sub Main() > >> > >> Dim pPointer As Pointer > >> Dim hMemory As Stream > >> Dim iA As Integer > >> > >> pPointer = Alloc(SizeOf(gb.Integer)) > >> hMemory = Memory pPointer For Read Write > >> > >> Write #hMemory, 10 As Integer > >> iA = Read #hMemory As Integer > >> > >> Print iA > >> > >> Free(pPointer) > >> > >> End > >> ------------------------- > >> > >> the iA var when it prints is not 10 but something else like 0 or 32621 > >> or similar. > >> > >> What am i doing wrong? > >> > >> > >> > >> -- > >> Regards, > >> Demosthenes Koptsis. > >> > >> > >> ------------------------------------------------------------------------------ > >> Gaining the trust of online customers is vital for the success of any > >> company > >> that requires sensitive data to be transmitted over the Web. Learn how > >> to > >> best implement a security strategy that keeps consumers' information > >> secure > >> and instills the confidence they need to proceed with transactions. > >> http://p.sf.net/sfu/oracle-sfdevnl > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > > > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes From jussi.lahtinen at ...626... Sat Jan 8 21:07:28 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 8 Jan 2011 22:07:28 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] In-Reply-To: <1294515992.2802.22.camel@...2494...> References: <1294502974.10206.1.camel@...2493...> <1294515992.2802.22.camel@...2494...> Message-ID: > hMemory = Memory pPointer For Read Write > Write #hMemory, 10 As Integer > > is there any other way that i did not notice? > I'm not sure I understand what do you mean/need... Documentation gives two options; *WRITE* [ *#* *Stream* *,* ] *Expression* *AS* *Datatype* *WRITE* [ *#* *Stream* *,* ] *String* [ *,* *Length* ] But I personally use streams just for reading data from external functions. So, in other words, my third option is to pass pointer to external function and let it write to stream. You can see example from my GambasTester project (attached), just search "modf". Here is C++ reference: http://www.cplusplus.com/reference/clibrary/cmath/modf/ Jussi P.S. Test will not pass right now, because some new functions (possibly obsolete) are missing from test. -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTester-0.9.15.tar.gz Type: application/x-gzip Size: 14952 bytes Desc: not available URL: From jussi.lahtinen at ...626... Sat Jan 8 21:33:34 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 8 Jan 2011 22:33:34 +0200 Subject: [Gambas-user] Crash! In-Reply-To: References: Message-ID: With compiler optimizations removed: Starting program: /usr/local/bin/gbx3 -p [Thread debugging using libthread_db enabled] [New Thread 0x7fffef2ba700 (LWP 19548)] warning: unable to load Qt translation: en_GB.utf8 Program received signal SIGSEGV, Segmentation fault. 0x000000000042420f in SUBR_leave (nparam=2) at gbx_subr.c:42 42 BORROW(RP); (gdb) f 1 #1 0x000000000042600b in SUBR_read (code=32000) at gbx_subr_file.c:441 441 SUBR_LEAVE(); (gdb) bt #0 0x000000000042420f in SUBR_leave (nparam=2) at gbx_subr.c:42 #1 0x000000000042600b in SUBR_read (code=32000) at gbx_subr_file.c:441 #2 0x00000000004513f7 in EXEC_loop () at gbx_exec_loop.c:480 #3 0x000000000040f69e in EXEC_function_loop () at gbx_exec.c:861 #4 0x000000000040f601 in EXEC_function_real () at gbx_exec.c:848 #5 0x0000000000411f63 in EXEC_public_desc (class=0x731148, object=0x0, desc=0x8faae8, nparam=0) at gbx_exec.c:1497 #6 0x000000000043d428 in main (argc=1, argv=0x7fffffffe338) at gbx.c:362 Jussi On Thu, Jan 6, 2011 at 17:43, Jussi Lahtinen wrote: > Hi! > I cannot really isolate my problem, but in this case it happens when > loading string data from file to object > (something like "someobject.sStr = Read #hFile As String"). > > Gambas 3 rev 3447 @ Ubuntu 10.10 64bit > > $ gbc3 -agpmt > OK > $ gdb gbx3 > GNU gdb (GDB) 7.2-ubuntu > Copyright (C) 2010 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 "x86_64-linux-gnu". > For bug reporting instructions, please see: > ... > Reading symbols from /usr/local/bin/gbx3...done. > (gdb) set args -p > (gdb) run > Starting program: /usr/local/bin/gbx3 -p > [Thread debugging using libthread_db enabled] > [New Thread 0x7fffef2ba700 (LWP 3790)] > warning: unable to load Qt translation: en_GB.utf8 > > Program received signal SIGSEGV, Segmentation fault. > 0x0000000000414b91 in SUBR_leave (nparam=2) at gbx_subr.c:42 > 42 BORROW(RP); > (gdb) bt > #0 0x0000000000414b91 in SUBR_leave (nparam=2) at gbx_subr.c:42 > #1 0x0000000000430132 in EXEC_loop () at gbx_exec_loop.c:480 > #2 0x0000000000409a75 in EXEC_function_loop () at gbx_exec.c:861 > #3 0x000000000040a4c5 in EXEC_function_real () at gbx_exec.c:848 > #4 0x00000000004227e5 in main (argc=1, argv=) > at gbx.c:362 > > (gdb) f 1 > #1 0x0000000000430132 in EXEC_loop () at gbx_exec_loop.c:480 > 480 (*(EXEC_FUNC_CODE)SubrTable[(code >> 8) - 0x28])(code); > > > Also see attached valgrind log. > > Jussi > > From jussi.lahtinen at ...626... Sat Jan 8 21:44:25 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 8 Jan 2011 22:44:25 +0200 Subject: [Gambas-user] Another crash. Message-ID: This is from GambasTester, when these two lines are uncommented: pp2 = Pointer@(pp) Debug Pointer@(pp2) Starting program: /usr/local/bin/gbx3 -p [Thread debugging using libthread_db enabled] mTest.DoTests.307: This Gambas version is somewhat tested for string errors. mTest.DoTests.1126: Program received signal SIGSEGV, Segmentation fault. 0x0000000000409140 in VALUE_read (value=0x678ba0, addr=0xc, type=11) at gbx_value.c:1071 1071 value->_pointer.value = *((void **)addr); (gdb) bt #0 0x0000000000409140 in VALUE_read (value=0x678ba0, addr=0xc, type=11) at gbx_value.c:1071 #1 0x000000000042b0bd in SUBR_ptr (code=40715) at gbx_subr_extern.c:247 #2 0x00000000004513f7 in EXEC_loop () at gbx_exec_loop.c:480 #3 0x000000000040f69e in EXEC_function_loop () at gbx_exec.c:861 #4 0x000000000040f601 in EXEC_function_real () at gbx_exec.c:848 #5 0x0000000000411f63 in EXEC_public_desc (class=0x6cba98, object=0x7bef98, desc=0x7bd638, nparam=0) at gbx_exec.c:1497 #6 0x0000000000431212 in raise_event (observer=0x7bef98, object=0x7bef98, func_id=149, nparam=0) at gbx_api.c:476 #7 0x0000000000431636 in GB_Raise (object=0x7bef98, event_id=20, nparam=0) at gbx_api.c:580 #8 0x00007ffff6b42138 in gMainWindow::emitOpen (this=0x7bf060) at gmainwindow.cpp:445 #9 0x00007ffff6b43128 in gMainWindow::setVisible (this=0x7bf060, vl=12) at gmainwindow.cpp:470 #10 0x0000000000411120 in EXEC_native () at gbx_exec.c:1243 #11 0x0000000000411ee6 in EXEC_public_desc (class=0x6cba98, object=0x0, desc=0x7ffff6d9cdb0, nparam=0) at gbx_exec.c:1487 #12 0x000000000043d428 in main (argc=1, argv=0x7fffffffe338) at gbx.c:362 (gdb) f 1 #1 0x000000000042b0bd in SUBR_ptr (code=40715) at gbx_subr_extern.c:247 247 VALUE_read(RETURN, ptr, code & 0xF); Gambas 3 rev 3447 @ Ubuntu 10.10 64bit. Jussi P.S. Core file was too big to attach. -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTester-0.9.15.tar.gz Type: application/x-gzip Size: 14952 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: valgrind-callgrind.log Type: text/x-log Size: 668 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: valgrind-memcheck.log Type: text/x-log Size: 2829 bytes Desc: not available URL: From demosthenesk at ...626... Sat Jan 8 22:07:19 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 08 Jan 2011 23:07:19 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] In-Reply-To: References: <1294502974.10206.1.camel@...2493...> <1294515992.2802.22.camel@...2494...> Message-ID: <1294520839.3676.2.camel@...2494...> On Sat, 2011-01-08 at 22:07 +0200, Jussi Lahtinen wrote: > > hMemory = Memory pPointer For Read Write > > Write #hMemory, 10 As Integer > > > > is there any other way that i did not notice? thanks Jussi. i just wondered if there is something else than write instruction for writing into a pointer. But as i see a pointer is manipulated by stream read/write instructions. Never mind just exploring Gambas3 and docs. > > > > I'm not sure I understand what do you mean/need... > Documentation gives two options; > > *WRITE* [ *#* *Stream* *,* ] *Expression* *AS* *Datatype* > *WRITE* [ *#* *Stream* *,* ] *String* [ *,* *Length* ] > > But I personally use streams just for reading data from external functions. > So, in other words, my third option is to pass pointer to external function > and let it write to stream. > > You can see example from my GambasTester project (attached), just search > "modf". > Here is C++ reference: > http://www.cplusplus.com/reference/clibrary/cmath/modf/ > > Jussi > P.S. Test will not pass right now, because some new functions (possibly > obsolete) are missing from test. > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes From gambas at ...1... Sat Jan 8 23:41:19 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 8 Jan 2011 23:41:19 +0100 Subject: [Gambas-user] Another crash. In-Reply-To: References: Message-ID: <201101082341.19997.gambas@...1...> > This is from GambasTester, when these two lines are uncommented: > pp2 = Pointer@(pp) > Debug Pointer@(pp2) > > > Starting program: /usr/local/bin/gbx3 -p > [Thread debugging using libthread_db enabled] > mTest.DoTests.307: This Gambas version is somewhat tested for string > errors. mTest.DoTests.1126: > Program received signal SIGSEGV, Segmentation fault. > 0x0000000000409140 in VALUE_read (value=0x678ba0, addr=0xc, type=11) > at gbx_value.c:1071 > 1071 value->_pointer.value = *((void **)addr); > (gdb) bt > #0 0x0000000000409140 in VALUE_read (value=0x678ba0, addr=0xc, type=11) > at gbx_value.c:1071 > #1 0x000000000042b0bd in SUBR_ptr (code=40715) at gbx_subr_extern.c:247 > #2 0x00000000004513f7 in EXEC_loop () at gbx_exec_loop.c:480 > #3 0x000000000040f69e in EXEC_function_loop () at gbx_exec.c:861 > #4 0x000000000040f601 in EXEC_function_real () at gbx_exec.c:848 > #5 0x0000000000411f63 in EXEC_public_desc (class=0x6cba98, > object=0x7bef98, > > desc=0x7bd638, nparam=0) at gbx_exec.c:1497 > #6 0x0000000000431212 in raise_event (observer=0x7bef98, object=0x7bef98, > func_id=149, nparam=0) at gbx_api.c:476 > #7 0x0000000000431636 in GB_Raise (object=0x7bef98, event_id=20, nparam=0) > at gbx_api.c:580 > #8 0x00007ffff6b42138 in gMainWindow::emitOpen (this=0x7bf060) > at gmainwindow.cpp:445 > #9 0x00007ffff6b43128 in gMainWindow::setVisible (this=0x7bf060, vl=12) > at gmainwindow.cpp:470 > #10 0x0000000000411120 in EXEC_native () at gbx_exec.c:1243 > #11 0x0000000000411ee6 in EXEC_public_desc (class=0x6cba98, object=0x0, > desc=0x7ffff6d9cdb0, nparam=0) at gbx_exec.c:1487 > #12 0x000000000043d428 in main (argc=1, argv=0x7fffffffe338) at gbx.c:362 > (gdb) f 1 > #1 0x000000000042b0bd in SUBR_ptr (code=40715) at gbx_subr_extern.c:247 > 247 VALUE_read(RETURN, ptr, code & 0xF); > > > > Gambas 3 rev 3447 @ Ubuntu 10.10 64bit. > > Jussi > P.S. Core file was too big to attach. But I have the project and a way to reproduce it, so it is better than just having a backtrace or a valgrind log! Another point. The following code is useless: #If SYSTEM = "Linux" Private sSystem As String = "Linux" #Else If SYSTEM = "FreeBSD" Private sSystem As String = "FreeBSD" #Else If SYSTEM = "OpenBSD" Private sSystem As String = "OpenBSD" #Else If SYSTEM = "NetBSD" Private sSystem As String = "NetBSD" #Else If SYSTEM = "Solaris" Private sSystem As String = "Solaris" #Else Private sSystem As String = "Unknown" #Endif #If ARCHITECTURE = "x86" Private sArchitecture As String = "x86" #Else If ARCHITECTURE = "x86_64" Private sArchitecture As String = "x86_64" #Else If ARCHITECTURE = "ARM" Private sArchitecture As String = "ARM" #Else If ARCHITECTURE = "PPC" Private sArchitecture As String = "PPC" #Else Private sArchitecture As String = "Unknown" #Endif Just use System.Family and System.Architecture ! Regards, -- Beno?t Minisini From gambas at ...1... Sat Jan 8 23:47:49 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 8 Jan 2011 23:47:49 +0100 Subject: [Gambas-user] Another crash. In-Reply-To: References: Message-ID: <201101082347.49553.gambas@...1...> > This is from GambasTester, when these two lines are uncommented: > pp2 = Pointer@(pp) > Debug Pointer@(pp2) > > > Starting program: /usr/local/bin/gbx3 -p > [Thread debugging using libthread_db enabled] > mTest.DoTests.307: This Gambas version is somewhat tested for string > errors. mTest.DoTests.1126: > Program received signal SIGSEGV, Segmentation fault. > 0x0000000000409140 in VALUE_read (value=0x678ba0, addr=0xc, type=11) > at gbx_value.c:1071 > 1071 value->_pointer.value = *((void **)addr); > (gdb) bt > #0 0x0000000000409140 in VALUE_read (value=0x678ba0, addr=0xc, type=11) > at gbx_value.c:1071 > #1 0x000000000042b0bd in SUBR_ptr (code=40715) at gbx_subr_extern.c:247 > #2 0x00000000004513f7 in EXEC_loop () at gbx_exec_loop.c:480 > #3 0x000000000040f69e in EXEC_function_loop () at gbx_exec.c:861 > #4 0x000000000040f601 in EXEC_function_real () at gbx_exec.c:848 > #5 0x0000000000411f63 in EXEC_public_desc (class=0x6cba98, > object=0x7bef98, > > desc=0x7bd638, nparam=0) at gbx_exec.c:1497 > #6 0x0000000000431212 in raise_event (observer=0x7bef98, object=0x7bef98, > func_id=149, nparam=0) at gbx_api.c:476 > #7 0x0000000000431636 in GB_Raise (object=0x7bef98, event_id=20, nparam=0) > at gbx_api.c:580 > #8 0x00007ffff6b42138 in gMainWindow::emitOpen (this=0x7bf060) > at gmainwindow.cpp:445 > #9 0x00007ffff6b43128 in gMainWindow::setVisible (this=0x7bf060, vl=12) > at gmainwindow.cpp:470 > #10 0x0000000000411120 in EXEC_native () at gbx_exec.c:1243 > #11 0x0000000000411ee6 in EXEC_public_desc (class=0x6cba98, object=0x0, > desc=0x7ffff6d9cdb0, nparam=0) at gbx_exec.c:1487 > #12 0x000000000043d428 in main (argc=1, argv=0x7fffffffe338) at gbx.c:362 > (gdb) f 1 > #1 0x000000000042b0bd in SUBR_ptr (code=40715) at gbx_subr_extern.c:247 > 247 VALUE_read(RETURN, ptr, code & 0xF); > > > > Gambas 3 rev 3447 @ Ubuntu 10.10 64bit. > > Jussi > P.S. Core file was too big to attach. I don't understand the test that raises "error 84". Format$() formats a number in a localizable way. Str$() with a string just returns that string, so it useless. And you compare the localized string returned by Format$() with an not localized string, so it will fail. Are you american or english? :-) -- Beno?t Minisini From fabianfloresvadell at ...626... Sun Jan 9 00:09:09 2011 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Sat, 8 Jan 2011 20:09:09 -0300 Subject: [Gambas-user] ancestor of user classes Message-ID: Hi. I believe than not, but I won't leave place to doubts. The users classes have some default ancestor? (I mean, like the class "object" in Python). Thanks. -- Fabi?n Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com From gambas at ...1... Sun Jan 9 01:14:40 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 9 Jan 2011 01:14:40 +0100 Subject: [Gambas-user] Another crash. In-Reply-To: <201101082347.49553.gambas@...1...> References: <201101082347.49553.gambas@...1...> Message-ID: <201101090114.40239.gambas@...1...> > > I don't understand the test that raises "error 84". > > Format$() formats a number in a localizable way. Str$() with a string just > returns that string, so it useless. And you compare the localized string > returned by Format$() with an not localized string, so it will fail. Are > you american or english? :-) You really should check all your test for localizations, otherwise your program only with an american-like localization. Check the consistency of your tests too. Comparing what returns Val() with what returns Str$() is a non-sense. I had to remove a lot of tests until I get the crash... Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Sun Jan 9 01:26:24 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 9 Jan 2011 02:26:24 +0200 Subject: [Gambas-user] Another crash. In-Reply-To: <201101082341.19997.gambas@...1...> References: <201101082341.19997.gambas@...1...> Message-ID: > Another point. The following code is useless: > > #If SYSTEM = "Linux" > Private sSystem As String = "Linux" > #Else If SYSTEM = "FreeBSD" > Private sSystem As String = "FreeBSD" > #Else If SYSTEM = "OpenBSD" > Private sSystem As String = "OpenBSD" > #Else If SYSTEM = "NetBSD" > Private sSystem As String = "NetBSD" > #Else If SYSTEM = "Solaris" > Private sSystem As String = "Solaris" > #Else > Private sSystem As String = "Unknown" > #Endif > > #If ARCHITECTURE = "x86" > Private sArchitecture As String = "x86" > #Else If ARCHITECTURE = "x86_64" > Private sArchitecture As String = "x86_64" > #Else If ARCHITECTURE = "ARM" > Private sArchitecture As String = "ARM" > #Else If ARCHITECTURE = "PPC" > Private sArchitecture As String = "PPC" > #Else > Private sArchitecture As String = "Unknown" > #Endif > > Just use System.Family and System.Architecture ! > sArchitecture, etc are in fact checked against System.Architecture! So, functionally pointless, but idea is check if preprocessors works. Jussi From jussi.lahtinen at ...626... Sun Jan 9 01:29:14 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 9 Jan 2011 02:29:14 +0200 Subject: [Gambas-user] Another crash. In-Reply-To: <201101090114.40239.gambas@...1...> References: <201101082347.49553.gambas@...1...> <201101090114.40239.gambas@...1...> Message-ID: Argh!! They supposed to be like Str$(3.1415) not Str$("3.1415")... what a mess. I'll fix that later. Jussi 2011/1/9 Beno?t Minisini > > > > I don't understand the test that raises "error 84". > > > > Format$() formats a number in a localizable way. Str$() with a string > just > > returns that string, so it useless. And you compare the localized string > > returned by Format$() with an not localized string, so it will fail. Are > > you american or english? :-) > > You really should check all your test for localizations, otherwise your > program only with an american-like localization. > > Check the consistency of your tests too. Comparing what returns Val() with > what returns Str$() is a non-sense. > > I had to remove a lot of tests until I get the crash... > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any > company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Jan 9 01:29:32 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 9 Jan 2011 01:29:32 +0100 Subject: [Gambas-user] Another crash. In-Reply-To: References: Message-ID: <201101090129.32052.gambas@...1...> > This is from GambasTester, when these two lines are uncommented: > pp2 = Pointer@(pp) > Debug Pointer@(pp2) > I fixed that in revision #3451. Now your code raises en error as expected (it reads memory at address 12, which is a forbidden memory address). Regards, -- Beno?t Minisini From gambas at ...1... Sun Jan 9 01:30:17 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 9 Jan 2011 01:30:17 +0100 Subject: [Gambas-user] Another crash. In-Reply-To: References: <201101082341.19997.gambas@...1...> Message-ID: <201101090130.17931.gambas@...1...> > > Another point. The following code is useless: > > > > #If SYSTEM = "Linux" > > Private sSystem As String = "Linux" > > #Else If SYSTEM = "FreeBSD" > > Private sSystem As String = "FreeBSD" > > #Else If SYSTEM = "OpenBSD" > > Private sSystem As String = "OpenBSD" > > #Else If SYSTEM = "NetBSD" > > Private sSystem As String = "NetBSD" > > #Else If SYSTEM = "Solaris" > > Private sSystem As String = "Solaris" > > #Else > > Private sSystem As String = "Unknown" > > #Endif > > > > #If ARCHITECTURE = "x86" > > Private sArchitecture As String = "x86" > > #Else If ARCHITECTURE = "x86_64" > > Private sArchitecture As String = "x86_64" > > #Else If ARCHITECTURE = "ARM" > > Private sArchitecture As String = "ARM" > > #Else If ARCHITECTURE = "PPC" > > Private sArchitecture As String = "PPC" > > #Else > > Private sArchitecture As String = "Unknown" > > #Endif > > > > Just use System.Family and System.Architecture ! > > sArchitecture, etc are in fact checked against System.Architecture! > So, functionally pointless, but idea is check if preprocessors works. > > Jussi Aaa... I didn't understood. Good idea! :-) -- Beno?t Minisini From rterry at ...1946... Sun Jan 9 09:39:44 2011 From: rterry at ...1946... (richard terry) Date: Sun, 9 Jan 2011 19:39:44 +1100 Subject: [Gambas-user] Gui question = menu shadow left on screen after click Message-ID: <201101091939.44372.rterry@...1946...> Hi list Enclosed is picture - when I click on a menu item, and the code attatched to a menu item has any sort of delay to it - for example accessing a database to pull back data, then the shadow of the menu remains on the screen. I've tried putting a wait before the actioning of the menu item, but it makes no difference. Obviously no functionality affected, but looks odd to the user. Any one know of a solution? Regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas_menu_shadow.png Type: image/png Size: 28580 bytes Desc: not available URL: From gambas at ...2524... Sun Jan 9 10:42:17 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 09 Jan 2011 09:42:17 +0000 Subject: [Gambas-user] Issue 6 in gambas: signal #11 with Gtk+ In-Reply-To: <7-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> References: <7-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> <0-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Message-ID: <8-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Comment #8 on issue 6 by sotema: signal #11 with Gtk+ http://code.google.com/p/gambas/issues/detail?id=6 Hi Benoit, I rewrite the full Wizard class five days ago, since then no crash occured. I did not change a lot the code but, btw You can set the status closed. Thanks, Emanuele From demosthenesk at ...626... Sun Jan 9 11:12:08 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 09 Jan 2011 12:12:08 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] In-Reply-To: <1294520839.3676.2.camel@...2494...> References: <1294502974.10206.1.camel@...2493...> <1294515992.2802.22.camel@...2494...> <1294520839.3676.2.camel@...2494...> Message-ID: <1294567928.22763.0.camel@...2493...> Here is another question-case. i Alloc 12 bytes. i set in memory an integer 4 bytes then i set in memory a float 8 bytes. i can read the memory stream with READ, ok! How can i to this with Integer@() and Float@() functions? How can i move inside memory and use Integer@() and Float@() example: -------------------------- ' Gambas module file Public Sub Main() Dim pPointer As Pointer Dim hMemory As Stream Dim iA As Integer Dim fA As Float pPointer = Alloc(12) hMemory = Memory pPointer For Read Write Print "Stream pointer potition at:"; Seek(hMemory) Print "Writing to memory stream a 4 byte integer" Write #hMemory, 10 As Integer Print "Stream pointer potition at:"; Seek(hMemory) Print "Writing to memory stream a 8 byte float" Write #hMemory, 4.2 As Float Print "Stream pointer potition at:"; Seek(hMemory) Print "Set stream potition at the begining" Seek #hMemory, 0 Print "Stream pointer potition at:"; Seek(hMemory) Print "Read the integer" iA = Read #hMemory As Integer Print iA Print "Stream pointer potition at:"; Seek(hMemory) Print "Read the float" fA = Read #hMemory As Float Print fA Print "Stream pointer potition at:"; Seek(hMemory) Print "\nRead the pointer" Print "Integer read:"; Integer@(pPointer) Print "Float read:"; Float@(pPointer) Free(pPointer) End -------------------------- output: -------------------------- Stream pointer potition at:0 Writing to memory stream a 4 byte integer Stream pointer potition at:4 Writing to memory stream a 8 byte float Stream pointer potition at:12 Set stream potition at the beginning Stream pointer potition at:0 Read the integer 10 Stream pointer potition at:4 Read the float 4.2 Stream pointer potition at:12 Read the pointer Integer read:10 Float read:-9.25596411572894E+61 -------------------------- On Sat, 2011-01-08 at 23:07 +0200, Demosthenes Koptsis wrote: > On Sat, 2011-01-08 at 22:07 +0200, Jussi Lahtinen wrote: > > > hMemory = Memory pPointer For Read Write > > > Write #hMemory, 10 As Integer > > > > > > is there any other way that i did not notice? > > thanks Jussi. > i just wondered if there is something else than write instruction for > writing into a pointer. > > But as i see a pointer is manipulated by stream read/write instructions. > > Never mind just exploring Gambas3 and docs. > > > > > > > > I'm not sure I understand what do you mean/need... > > Documentation gives two options; > > > > *WRITE* [ *#* *Stream* *,* ] *Expression* *AS* *Datatype* > > *WRITE* [ *#* *Stream* *,* ] *String* [ *,* *Length* ] > > > > But I personally use streams just for reading data from external functions. > > So, in other words, my third option is to pass pointer to external function > > and let it write to stream. > > > > You can see example from my GambasTester project (attached), just search > > "modf". > > Here is C++ reference: > > http://www.cplusplus.com/reference/clibrary/cmath/modf/ > > > > Jussi > > P.S. Test will not pass right now, because some new functions (possibly > > obsolete) are missing from test. > > ------------------------------------------------------------------------------ > > Gaining the trust of online customers is vital for the success of any company > > that requires sensitive data to be transmitted over the Web. Learn how to > > best implement a security strategy that keeps consumers' information secure > > and instills the confidence they need to proceed with transactions. > > http://p.sf.net/sfu/oracle-sfdevnl > > _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Regards, Demosthenes Koptsis. From sotema at ...626... Sun Jan 9 13:41:30 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Sun, 09 Jan 2011 13:41:30 +0100 Subject: [Gambas-user] Balloon no more displayed In-Reply-To: <201101030026.40670.gambas@...1...> References: <1293978619.6545.16.camel@...2476...> <201101022213.28151.gambas@...1...> <1294010208.1902.27.camel@...2476...> <201101030026.40670.gambas@...1...> Message-ID: <1294576890.1904.7.camel@...2476...> Hi Beno?t, return to this after a while because it seems not a compiz related problem, or at least, not only. If your first opened Form isn't the FMAIN and is Modal then the balloon is hidden by the form. If you open the FMAIN and then open a Modal Form the balloon is corretly displayed. The attached sample demonstrate the problem. Run it and you can see the balloon moving the Form1 apart; then set the FMain as start up class and now the balloon is visible. Regards, Emanuele Il giorno lun, 03/01/2011 alle 00.26 +0100, Beno?t Minisini ha scritto: > > Hi Beno?t, > > found it. The balloon appear as expected if i disable the Desktop > > Effects. With them enabled i cannot see the balloon nor with QT nor with > > GTK. > > > > Ubuntu 10.10 x86_64 > > Gnome > > svn rev 3432 > > > > So this is a Compiz problem... but I can't test it on my machine. > > I have a NVIDIA card: > > The NVIDIA driver freezes quickly, so I use Nouveau. > > I have repeated freezes too with Nouveau, but you have just to wait one minute > at each freeze, and the system goes back to normal. > > But the 3D part of the nouveau is buggy too, so I had to disable it. And so I > can't use Compiz at all! > > If someone that knows Compiz well could investigate... > > Regards, > -------------- next part -------------- A non-text attachment was scrubbed... Name: balloon.tar.gz Type: application/x-compressed-tar Size: 6291 bytes Desc: not available URL: From demosthenesk at ...626... Sun Jan 9 14:59:08 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 09 Jan 2011 15:59:08 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 In-Reply-To: <1294567928.22763.0.camel@...2493...> References: <1294502974.10206.1.camel@...2493...> <1294515992.2802.22.camel@...2494...> <1294520839.3676.2.camel@...2494...> <1294567928.22763.0.camel@...2493...> Message-ID: <1294581548.25937.3.camel@...2493...> this example on pointers raises signal #6. Gambas3 svn3432 Ubuntu 10.04, AMD64 --------------------------- ' Gambas module file 'char *getwd(char *buf); Extern getwd(buf As Pointer) As Pointer In "libc:6" Public Sub Main() Dim pBuf As Pointer Dim pFunc As Pointer Dim sWorkingDirectory As String 'getwd pBuf = Alloc(SizeOf(gb.String)) pFunc = Alloc(SizeOf(gb.String)) pFunc = getwd(pBuf) sWorkingDirectory = Str@(pFunc) Free(pFunc) Free(pBuf) Print sWorkingDirectory End --------------------------- output: --------------------------- *** glibc detected *** Pointers86: free(): invalid next size (fast): 0x0000000001af39a0 *** ======= Backtrace: ========= /lib/libc.so.6(+0x775b6)[0x7f4d6a2495b6] /lib/libc.so.6(cfree+0x73)[0x7f4d6a24fe83] Pointers86[0x405308] Pointers86[0x422f50] /lib/libc.so.6(__libc_start_main+0xfd)[0x7f4d6a1f0c4d] Pointers86[0x4043f9] ======= Memory map: ======== 00400000-00445000 r-xp 00000000 08:14 2377106 /usr/local/bin/gbx3 00644000-00645000 r--p 00044000 08:14 2377106 /usr/local/bin/gbx3 00645000-0064f000 rw-p 00045000 08:14 2377106 /usr/local/bin/gbx3 0064f000-00651000 rw-p 00000000 00:00 0 01ade000-01aff000 rw-p 00000000 00:00 0 [heap] 7f4d64000000-7f4d64021000 rw-p 00000000 00:00 0 7f4d64021000-7f4d68000000 ---p 00000000 00:00 0 7f4d69fbb000-7f4d69fd1000 r-xp 00000000 08:14 1179728 /lib/libgcc_s.so.1 7f4d69fd1000-7f4d6a1d0000 ---p 00016000 08:14 1179728 /lib/libgcc_s.so.1 7f4d6a1d0000-7f4d6a1d1000 r--p 00015000 08:14 1179728 /lib/libgcc_s.so.1 7f4d6a1d1000-7f4d6a1d2000 rw-p 00016000 08:14 1179728 /lib/libgcc_s.so.1 7f4d6a1d2000-7f4d6a34c000 r-xp 00000000 08:14 1180003 /lib/libc-2.11.1.so 7f4d6a34c000-7f4d6a54b000 ---p 0017a000 08:14 1180003 /lib/libc-2.11.1.so 7f4d6a54b000-7f4d6a54f000 r--p 00179000 08:14 1180003 /lib/libc-2.11.1.so 7f4d6a54f000-7f4d6a550000 rw-p 0017d000 08:14 1180003 /lib/libc-2.11.1.so 7f4d6a550000-7f4d6a555000 rw-p 00000000 00:00 0 7f4d6a555000-7f4d6a55c000 r-xp 00000000 08:14 2231491 /usr/lib/libffi.so.5.0.10 7f4d6a55c000-7f4d6a75b000 ---p 00007000 08:14 2231491 /usr/lib/libffi.so.5.0.10 7f4d6a75b000-7f4d6a75c000 r--p 00006000 08:14 2231491 /usr/lib/libffi.so.5.0.10 7f4d6a75c000-7f4d6a75d000 rw-p 00007000 08:14 2231491 /usr/lib/libffi.so.5.0.10 7f4d6a75d000-7f4d6a775000 r-xp 00000000 08:14 1180001 /lib/libpthread-2.11.1.so 7f4d6a775000-7f4d6a974000 ---p 00018000 08:14 1180001 /lib/libpthread-2.11.1.so 7f4d6a974000-7f4d6a975000 r--p 00017000 08:14 1180001 /lib/libpthread-2.11.1.so 7f4d6a975000-7f4d6a976000 rw-p 00018000 08:14 1180001 /lib/libpthread-2.11.1.so 7f4d6a976000-7f4d6a97a000 rw-p 00000000 00:00 0 7f4d6a97a000-7f4d6a97c000 r-xp 00000000 08:14 1180008 /lib/libdl-2.11.1.so 7f4d6a97c000-7f4d6ab7c000 ---p 00002000 08:14 1180008 /lib/libdl-2.11.1.so 7f4d6ab7c000-7f4d6ab7d000 r--p 00002000 08:14 1180008 /lib/libdl-2.11.1.so 7f4d6ab7d000-7f4d6ab7e000 rw-p 00003000 08:14 1180008 /lib/libdl-2.11.1.so 7f4d6ab7e000-7f4d6ac00000 r-xp 00000000 08:14 1179958 /lib/libm-2.11.1.so 7f4d6ac00000-7f4d6adff000 ---p 00082000 08:14 1179958 /lib/libm-2.11.1.so 7f4d6adff000-7f4d6ae00000 r--p 00081000 08:14 1179958 /lib/libm-2.11.1.so 7f4d6ae00000-7f4d6ae01000 rw-p 00082000 08:14 1179958 /lib/libm-2.11.1.so 7f4d6ae01000-7f4d6ae21000 r-xp 00000000 08:14 1179985 /lib/ld-2.11.1.so 7f4d6ae95000-7f4d6ae96000 rw-p 00000000 00:00 0 7f4d6ae96000-7f4d6aed5000 r--p 00000000 08:14 2237984 /usr/lib/locale/en_US.utf8/LC_CTYPE 7f4d6aed5000-7f4d6aff3000 r--p 00000000 08:14 2239899 /usr/lib/locale/en_US.utf8/LC_COLLATE 7f4d6aff3000-7f4d6aff7000 rw-p 00000000 00:00 0 7f4d6b00b000-7f4d6b00c000 r--p 00000000 08:14 2237989 /usr/lib/locale/en_US.utf8/LC_NUMERIC 7f4d6b00c000-7f4d6b00d000 r--p 00000000 08:14 2232077 /usr/lib/locale/en_US.utf8/LC_TIME 7f4d6b00d000-7f4d6b00e000 r--p 00000000 08:14 2234328 /usr/lib/locale/en_US.utf8/LC_MONETARY 7f4d6b00e000-7f4d6b00f000 r--p 00000000 08:14 2235935 /usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES 7f4d6b00f000-7f4d6b010000 r--p 00000000 08:14 2237938 /usr/lib/locale/en_US.utf8/LC_PAPER 7f4d6b010000-7f4d6b011000 r--p 00000000 08:14 2237858 /usr/lib/locale/en_US.utf8/LC_NAME 7f4d6b011000-7f4d6b012000 r--p 00000000 08:14 2235936 /usr/lib/locale/en_US.utf8/LC_ADDRESS 7f4d6b012000-7f4d6b013000 r--p 00000000 08:14 2235937 /usr/lib/locale/en_US.utf8/LC_TELEPHONE 7f4d6b013000-7f4d6b014000 r--p 00000000 08:14 2239858 /usr/lib/locale/en_US.utf8/LC_MEASUREMENT 7f4d6b014000-7f4d6b01b000 r--s 00000000 08:14 2233563 /usr/lib/gconv/gconv-modules.cache 7f4d6b01b000-7f4d6b01c000 r--p 00000000 08:14 2235940 /usr/lib/locale/en_US.utf8/LC_IDENTIFICATION 7f4d6b01c000-7f4d6b020000 rw-p 00000000 00:00 0 7f4d6b020000-7f4d6b021000 r--p 0001f000 08:14 1179985 /lib/ld-2.11.1.so 7f4d6b021000-7f4d6b022000 rw-p 00020000 08:14 1179985 /lib/ld-2.11.1.so 7f4d6b022000-7f4d6b023000 rw-p 00000000 00:00 0 7fff5c542000-7fff5c557000 rw-p 00000000 00:00 0 [stack] 7fff5c5ff000-7fff5c600000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] /mnt/store/LINUX/DOCUMENTS/DEVELOPMENT/Gambas/??????????????? ?? Gambas/?? ?????? ??? Gambas3/Projects/Pointers86 --------------------------- the last line is in Greek some part, it is the name of current directory. From jussi.lahtinen at ...626... Sun Jan 9 15:00:39 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 9 Jan 2011 16:00:39 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] In-Reply-To: <1294567928.22763.0.camel@...2493...> References: <1294502974.10206.1.camel@...2493...> <1294515992.2802.22.camel@...2494...> <1294520839.3676.2.camel@...2494...> <1294567928.22763.0.camel@...2493...> Message-ID: > Here is another question-case. > > i Alloc 12 bytes. > i set in memory an integer 4 bytes > then i set in memory a float 8 bytes. > > i can read the memory stream with READ, ok! > > How can i to this with Integer@() and Float@() functions? > How can i move inside memory and use Integer@() and Float@() > I haven't try this in gambas, but in C/C++ variables are in memory in straight row without any metadata. I assume this is also case in gambas, so; iFirstInteger = Integer@(pPointer) iNextInteger = Integer@(pPointer + 4) Jussi From jussi.lahtinen at ...626... Sun Jan 9 15:05:21 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 9 Jan 2011 16:05:21 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 In-Reply-To: <1294581548.25937.3.camel@...2493...> References: <1294502974.10206.1.camel@...2493...> <1294515992.2802.22.camel@...2494...> <1294520839.3676.2.camel@...2494...> <1294567928.22763.0.camel@...2493...> <1294581548.25937.3.camel@...2493...> Message-ID: Hmmm..... you cannot do alloc with size of string. Size of string is depended on length of string! Jussi On Sun, Jan 9, 2011 at 15:59, Demosthenes Koptsis wrote: > this example on pointers raises signal #6. > Gambas3 svn3432 Ubuntu 10.04, AMD64 > > --------------------------- > ' Gambas module file > 'char *getwd(char *buf); > Extern getwd(buf As Pointer) As Pointer In "libc:6" > > Public Sub Main() > > Dim pBuf As Pointer > Dim pFunc As Pointer > Dim sWorkingDirectory As String > > 'getwd > pBuf = Alloc(SizeOf(gb.String)) > pFunc = Alloc(SizeOf(gb.String)) > > pFunc = getwd(pBuf) > > sWorkingDirectory = Str@(pFunc) > Free(pFunc) > Free(pBuf) > Print sWorkingDirectory > > End > --------------------------- > > output: > --------------------------- > *** glibc detected *** Pointers86: free(): invalid next size (fast): > 0x0000000001af39a0 *** > ======= Backtrace: ========= > /lib/libc.so.6(+0x775b6)[0x7f4d6a2495b6] > /lib/libc.so.6(cfree+0x73)[0x7f4d6a24fe83] > Pointers86[0x405308] > Pointers86[0x422f50] > /lib/libc.so.6(__libc_start_main+0xfd)[0x7f4d6a1f0c4d] > Pointers86[0x4043f9] > ======= Memory map: ======== > 00400000-00445000 r-xp 00000000 08:14 > 2377106 /usr/local/bin/gbx3 > 00644000-00645000 r--p 00044000 08:14 > 2377106 /usr/local/bin/gbx3 > 00645000-0064f000 rw-p 00045000 08:14 > 2377106 /usr/local/bin/gbx3 > 0064f000-00651000 rw-p 00000000 00:00 0 > 01ade000-01aff000 rw-p 00000000 00:00 0 > [heap] > 7f4d64000000-7f4d64021000 rw-p 00000000 00:00 0 > 7f4d64021000-7f4d68000000 ---p 00000000 00:00 0 > 7f4d69fbb000-7f4d69fd1000 r-xp 00000000 08:14 > 1179728 /lib/libgcc_s.so.1 > 7f4d69fd1000-7f4d6a1d0000 ---p 00016000 08:14 > 1179728 /lib/libgcc_s.so.1 > 7f4d6a1d0000-7f4d6a1d1000 r--p 00015000 08:14 > 1179728 /lib/libgcc_s.so.1 > 7f4d6a1d1000-7f4d6a1d2000 rw-p 00016000 08:14 > 1179728 /lib/libgcc_s.so.1 > 7f4d6a1d2000-7f4d6a34c000 r-xp 00000000 08:14 > 1180003 /lib/libc-2.11.1.so > 7f4d6a34c000-7f4d6a54b000 ---p 0017a000 08:14 > 1180003 /lib/libc-2.11.1.so > 7f4d6a54b000-7f4d6a54f000 r--p 00179000 08:14 > 1180003 /lib/libc-2.11.1.so > 7f4d6a54f000-7f4d6a550000 rw-p 0017d000 08:14 > 1180003 /lib/libc-2.11.1.so > 7f4d6a550000-7f4d6a555000 rw-p 00000000 00:00 0 > 7f4d6a555000-7f4d6a55c000 r-xp 00000000 08:14 > 2231491 /usr/lib/libffi.so.5.0.10 > 7f4d6a55c000-7f4d6a75b000 ---p 00007000 08:14 > 2231491 /usr/lib/libffi.so.5.0.10 > 7f4d6a75b000-7f4d6a75c000 r--p 00006000 08:14 > 2231491 /usr/lib/libffi.so.5.0.10 > 7f4d6a75c000-7f4d6a75d000 rw-p 00007000 08:14 > 2231491 /usr/lib/libffi.so.5.0.10 > 7f4d6a75d000-7f4d6a775000 r-xp 00000000 08:14 > 1180001 /lib/libpthread-2.11.1.so > 7f4d6a775000-7f4d6a974000 ---p 00018000 08:14 > 1180001 /lib/libpthread-2.11.1.so > 7f4d6a974000-7f4d6a975000 r--p 00017000 08:14 > 1180001 /lib/libpthread-2.11.1.so > 7f4d6a975000-7f4d6a976000 rw-p 00018000 08:14 > 1180001 /lib/libpthread-2.11.1.so > 7f4d6a976000-7f4d6a97a000 rw-p 00000000 00:00 0 > 7f4d6a97a000-7f4d6a97c000 r-xp 00000000 08:14 > 1180008 /lib/libdl-2.11.1.so > 7f4d6a97c000-7f4d6ab7c000 ---p 00002000 08:14 > 1180008 /lib/libdl-2.11.1.so > 7f4d6ab7c000-7f4d6ab7d000 r--p 00002000 08:14 > 1180008 /lib/libdl-2.11.1.so > 7f4d6ab7d000-7f4d6ab7e000 rw-p 00003000 08:14 > 1180008 /lib/libdl-2.11.1.so > 7f4d6ab7e000-7f4d6ac00000 r-xp 00000000 08:14 > 1179958 /lib/libm-2.11.1.so > 7f4d6ac00000-7f4d6adff000 ---p 00082000 08:14 > 1179958 /lib/libm-2.11.1.so > 7f4d6adff000-7f4d6ae00000 r--p 00081000 08:14 > 1179958 /lib/libm-2.11.1.so > 7f4d6ae00000-7f4d6ae01000 rw-p 00082000 08:14 > 1179958 /lib/libm-2.11.1.so > 7f4d6ae01000-7f4d6ae21000 r-xp 00000000 08:14 > 1179985 /lib/ld-2.11.1.so > 7f4d6ae95000-7f4d6ae96000 rw-p 00000000 00:00 0 > 7f4d6ae96000-7f4d6aed5000 r--p 00000000 08:14 > 2237984 /usr/lib/locale/en_US.utf8/LC_CTYPE > 7f4d6aed5000-7f4d6aff3000 r--p 00000000 08:14 > 2239899 /usr/lib/locale/en_US.utf8/LC_COLLATE > 7f4d6aff3000-7f4d6aff7000 rw-p 00000000 00:00 0 > 7f4d6b00b000-7f4d6b00c000 r--p 00000000 08:14 > 2237989 /usr/lib/locale/en_US.utf8/LC_NUMERIC > 7f4d6b00c000-7f4d6b00d000 r--p 00000000 08:14 > 2232077 /usr/lib/locale/en_US.utf8/LC_TIME > 7f4d6b00d000-7f4d6b00e000 r--p 00000000 08:14 > 2234328 /usr/lib/locale/en_US.utf8/LC_MONETARY > 7f4d6b00e000-7f4d6b00f000 r--p 00000000 08:14 > 2235935 > /usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES > 7f4d6b00f000-7f4d6b010000 r--p 00000000 08:14 > 2237938 /usr/lib/locale/en_US.utf8/LC_PAPER > 7f4d6b010000-7f4d6b011000 r--p 00000000 08:14 > 2237858 /usr/lib/locale/en_US.utf8/LC_NAME > 7f4d6b011000-7f4d6b012000 r--p 00000000 08:14 > 2235936 /usr/lib/locale/en_US.utf8/LC_ADDRESS > 7f4d6b012000-7f4d6b013000 r--p 00000000 08:14 > 2235937 /usr/lib/locale/en_US.utf8/LC_TELEPHONE > 7f4d6b013000-7f4d6b014000 r--p 00000000 08:14 > 2239858 /usr/lib/locale/en_US.utf8/LC_MEASUREMENT > 7f4d6b014000-7f4d6b01b000 r--s 00000000 08:14 > 2233563 /usr/lib/gconv/gconv-modules.cache > 7f4d6b01b000-7f4d6b01c000 r--p 00000000 08:14 > 2235940 /usr/lib/locale/en_US.utf8/LC_IDENTIFICATION > 7f4d6b01c000-7f4d6b020000 rw-p 00000000 00:00 0 > 7f4d6b020000-7f4d6b021000 r--p 0001f000 08:14 > 1179985 /lib/ld-2.11.1.so > 7f4d6b021000-7f4d6b022000 rw-p 00020000 08:14 > 1179985 /lib/ld-2.11.1.so > 7f4d6b022000-7f4d6b023000 rw-p 00000000 00:00 0 > 7fff5c542000-7fff5c557000 rw-p 00000000 00:00 0 > [stack] > 7fff5c5ff000-7fff5c600000 r-xp 00000000 00:00 0 > [vdso] > ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 > [vsyscall] > /mnt/store/LINUX/DOCUMENTS/DEVELOPMENT/Gambas/??????????????? ?? > Gambas/?? ?????? ??? Gambas3/Projects/Pointers86 > --------------------------- > > the last line is in Greek some part, it is the name of current > directory. > > > > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any > company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sun Jan 9 16:45:30 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 9 Jan 2011 17:45:30 +0200 Subject: [Gambas-user] Another crash. In-Reply-To: <201101090114.40239.gambas@...1...> References: <201101082347.49553.gambas@...1...> <201101090114.40239.gambas@...1...> Message-ID: I wonder what would be best way to test different localizations... do I need to install all the language packages? Or possibly just some component of language package? Jussi 2011/1/9 Beno?t Minisini > > > > I don't understand the test that raises "error 84". > > > > Format$() formats a number in a localizable way. Str$() with a string > just > > returns that string, so it useless. And you compare the localized string > > returned by Format$() with an not localized string, so it will fail. Are > > you american or english? :-) > > You really should check all your test for localizations, otherwise your > program only with an american-like localization. > > Check the consistency of your tests too. Comparing what returns Val() with > what returns Str$() is a non-sense. > > I had to remove a lot of tests until I get the crash... > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any > company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From soleilpqd at ...626... Sun Jan 9 17:04:38 2011 From: soleilpqd at ...626... (=?UTF-8?B?UGjhuqFtIFF1YW5nIETGsMahbmc=?=) Date: Sun, 9 Jan 2011 23:04:38 +0700 Subject: [Gambas-user] Form Key press event raised twice? Message-ID: Hi, New project with new FMain: PUBLIC SUB Form_KeyPress() PRINT Key.Code, Key.Text END In run-time, when I press a key, eg. 'a', I get: 97 a 97 a Gambas 2.22, Fedora 14 I want to know if it's a bug?. If it's a bug, it will be fixed, so I wait. But if it's a feature, I have to change some code.. Best regards. From demosthenesk at ...626... Sun Jan 9 20:29:20 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 09 Jan 2011 21:29:20 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 In-Reply-To: References: <1294502974.10206.1.camel@...2493...> <1294515992.2802.22.camel@...2494...> <1294520839.3676.2.camel@...2494...> <1294567928.22763.0.camel@...2493...> <1294581548.25937.3.camel@...2493...> Message-ID: <1294601360.4599.1.camel@...2494...> so what can i do for char *getwd(char *buf); ? On Sun, 2011-01-09 at 16:05 +0200, Jussi Lahtinen wrote: > Hmmm..... you cannot do alloc with size of string. > Size of string is depended on length of string! > > Jussi > > > On Sun, Jan 9, 2011 at 15:59, Demosthenes Koptsis wrote: > > > this example on pointers raises signal #6. > > Gambas3 svn3432 Ubuntu 10.04, AMD64 > > > > --------------------------- > > ' Gambas module file > > 'char *getwd(char *buf); > > Extern getwd(buf As Pointer) As Pointer In "libc:6" > > > > Public Sub Main() > > > > Dim pBuf As Pointer > > Dim pFunc As Pointer > > Dim sWorkingDirectory As String > > > > 'getwd > > pBuf = Alloc(SizeOf(gb.String)) > > pFunc = Alloc(SizeOf(gb.String)) > > > > pFunc = getwd(pBuf) > > > > sWorkingDirectory = Str@(pFunc) > > Free(pFunc) > > Free(pBuf) > > Print sWorkingDirectory > > > > End > > --------------------------- > > > > output: > > --------------------------- > > *** glibc detected *** Pointers86: free(): invalid next size (fast): > > 0x0000000001af39a0 *** > > ======= Backtrace: ========= > > /lib/libc.so.6(+0x775b6)[0x7f4d6a2495b6] > > /lib/libc.so.6(cfree+0x73)[0x7f4d6a24fe83] > > Pointers86[0x405308] > > Pointers86[0x422f50] > > /lib/libc.so.6(__libc_start_main+0xfd)[0x7f4d6a1f0c4d] > > Pointers86[0x4043f9] > > ======= Memory map: ======== > > 00400000-00445000 r-xp 00000000 08:14 > > 2377106 /usr/local/bin/gbx3 > > 00644000-00645000 r--p 00044000 08:14 > > 2377106 /usr/local/bin/gbx3 > > 00645000-0064f000 rw-p 00045000 08:14 > > 2377106 /usr/local/bin/gbx3 > > 0064f000-00651000 rw-p 00000000 00:00 0 > > 01ade000-01aff000 rw-p 00000000 00:00 0 > > [heap] > > 7f4d64000000-7f4d64021000 rw-p 00000000 00:00 0 > > 7f4d64021000-7f4d68000000 ---p 00000000 00:00 0 > > 7f4d69fbb000-7f4d69fd1000 r-xp 00000000 08:14 > > 1179728 /lib/libgcc_s.so.1 > > 7f4d69fd1000-7f4d6a1d0000 ---p 00016000 08:14 > > 1179728 /lib/libgcc_s.so.1 > > 7f4d6a1d0000-7f4d6a1d1000 r--p 00015000 08:14 > > 1179728 /lib/libgcc_s.so.1 > > 7f4d6a1d1000-7f4d6a1d2000 rw-p 00016000 08:14 > > 1179728 /lib/libgcc_s.so.1 > > 7f4d6a1d2000-7f4d6a34c000 r-xp 00000000 08:14 > > 1180003 /lib/libc-2.11.1.so > > 7f4d6a34c000-7f4d6a54b000 ---p 0017a000 08:14 > > 1180003 /lib/libc-2.11.1.so > > 7f4d6a54b000-7f4d6a54f000 r--p 00179000 08:14 > > 1180003 /lib/libc-2.11.1.so > > 7f4d6a54f000-7f4d6a550000 rw-p 0017d000 08:14 > > 1180003 /lib/libc-2.11.1.so > > 7f4d6a550000-7f4d6a555000 rw-p 00000000 00:00 0 > > 7f4d6a555000-7f4d6a55c000 r-xp 00000000 08:14 > > 2231491 /usr/lib/libffi.so.5.0.10 > > 7f4d6a55c000-7f4d6a75b000 ---p 00007000 08:14 > > 2231491 /usr/lib/libffi.so.5.0.10 > > 7f4d6a75b000-7f4d6a75c000 r--p 00006000 08:14 > > 2231491 /usr/lib/libffi.so.5.0.10 > > 7f4d6a75c000-7f4d6a75d000 rw-p 00007000 08:14 > > 2231491 /usr/lib/libffi.so.5.0.10 > > 7f4d6a75d000-7f4d6a775000 r-xp 00000000 08:14 > > 1180001 /lib/libpthread-2.11.1.so > > 7f4d6a775000-7f4d6a974000 ---p 00018000 08:14 > > 1180001 /lib/libpthread-2.11.1.so > > 7f4d6a974000-7f4d6a975000 r--p 00017000 08:14 > > 1180001 /lib/libpthread-2.11.1.so > > 7f4d6a975000-7f4d6a976000 rw-p 00018000 08:14 > > 1180001 /lib/libpthread-2.11.1.so > > 7f4d6a976000-7f4d6a97a000 rw-p 00000000 00:00 0 > > 7f4d6a97a000-7f4d6a97c000 r-xp 00000000 08:14 > > 1180008 /lib/libdl-2.11.1.so > > 7f4d6a97c000-7f4d6ab7c000 ---p 00002000 08:14 > > 1180008 /lib/libdl-2.11.1.so > > 7f4d6ab7c000-7f4d6ab7d000 r--p 00002000 08:14 > > 1180008 /lib/libdl-2.11.1.so > > 7f4d6ab7d000-7f4d6ab7e000 rw-p 00003000 08:14 > > 1180008 /lib/libdl-2.11.1.so > > 7f4d6ab7e000-7f4d6ac00000 r-xp 00000000 08:14 > > 1179958 /lib/libm-2.11.1.so > > 7f4d6ac00000-7f4d6adff000 ---p 00082000 08:14 > > 1179958 /lib/libm-2.11.1.so > > 7f4d6adff000-7f4d6ae00000 r--p 00081000 08:14 > > 1179958 /lib/libm-2.11.1.so > > 7f4d6ae00000-7f4d6ae01000 rw-p 00082000 08:14 > > 1179958 /lib/libm-2.11.1.so > > 7f4d6ae01000-7f4d6ae21000 r-xp 00000000 08:14 > > 1179985 /lib/ld-2.11.1.so > > 7f4d6ae95000-7f4d6ae96000 rw-p 00000000 00:00 0 > > 7f4d6ae96000-7f4d6aed5000 r--p 00000000 08:14 > > 2237984 /usr/lib/locale/en_US.utf8/LC_CTYPE > > 7f4d6aed5000-7f4d6aff3000 r--p 00000000 08:14 > > 2239899 /usr/lib/locale/en_US.utf8/LC_COLLATE > > 7f4d6aff3000-7f4d6aff7000 rw-p 00000000 00:00 0 > > 7f4d6b00b000-7f4d6b00c000 r--p 00000000 08:14 > > 2237989 /usr/lib/locale/en_US.utf8/LC_NUMERIC > > 7f4d6b00c000-7f4d6b00d000 r--p 00000000 08:14 > > 2232077 /usr/lib/locale/en_US.utf8/LC_TIME > > 7f4d6b00d000-7f4d6b00e000 r--p 00000000 08:14 > > 2234328 /usr/lib/locale/en_US.utf8/LC_MONETARY > > 7f4d6b00e000-7f4d6b00f000 r--p 00000000 08:14 > > 2235935 > > /usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES > > 7f4d6b00f000-7f4d6b010000 r--p 00000000 08:14 > > 2237938 /usr/lib/locale/en_US.utf8/LC_PAPER > > 7f4d6b010000-7f4d6b011000 r--p 00000000 08:14 > > 2237858 /usr/lib/locale/en_US.utf8/LC_NAME > > 7f4d6b011000-7f4d6b012000 r--p 00000000 08:14 > > 2235936 /usr/lib/locale/en_US.utf8/LC_ADDRESS > > 7f4d6b012000-7f4d6b013000 r--p 00000000 08:14 > > 2235937 /usr/lib/locale/en_US.utf8/LC_TELEPHONE > > 7f4d6b013000-7f4d6b014000 r--p 00000000 08:14 > > 2239858 /usr/lib/locale/en_US.utf8/LC_MEASUREMENT > > 7f4d6b014000-7f4d6b01b000 r--s 00000000 08:14 > > 2233563 /usr/lib/gconv/gconv-modules.cache > > 7f4d6b01b000-7f4d6b01c000 r--p 00000000 08:14 > > 2235940 /usr/lib/locale/en_US.utf8/LC_IDENTIFICATION > > 7f4d6b01c000-7f4d6b020000 rw-p 00000000 00:00 0 > > 7f4d6b020000-7f4d6b021000 r--p 0001f000 08:14 > > 1179985 /lib/ld-2.11.1.so > > 7f4d6b021000-7f4d6b022000 rw-p 00020000 08:14 > > 1179985 /lib/ld-2.11.1.so > > 7f4d6b022000-7f4d6b023000 rw-p 00000000 00:00 0 > > 7fff5c542000-7fff5c557000 rw-p 00000000 00:00 0 > > [stack] > > 7fff5c5ff000-7fff5c600000 r-xp 00000000 00:00 0 > > [vdso] > > ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 > > [vsyscall] > > /mnt/store/LINUX/DOCUMENTS/DEVELOPMENT/Gambas/??????????????? ?? > > Gambas/?? ?????? ??? Gambas3/Projects/Pointers86 > > --------------------------- > > > > the last line is in Greek some part, it is the name of current > > directory. > > > > > > > > ------------------------------------------------------------------------------ > > Gaining the trust of online customers is vital for the success of any > > company > > that requires sensitive data to be transmitted over the Web. Learn how to > > best implement a security strategy that keeps consumers' information secure > > and instills the confidence they need to proceed with transactions. > > http://p.sf.net/sfu/oracle-sfdevnl > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes From demosthenesk at ...626... Sun Jan 9 20:32:00 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 09 Jan 2011 21:32:00 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 In-Reply-To: <1294601360.4599.1.camel@...2494...> References: <1294502974.10206.1.camel@...2493...> <1294515992.2802.22.camel@...2494...> <1294520839.3676.2.camel@...2494...> <1294567928.22763.0.camel@...2493...> <1294581548.25937.3.camel@...2493...> <1294601360.4599.1.camel@...2494...> Message-ID: <1294601520.4599.3.camel@...2494...> Although i get the working directory, > > /mnt/store/LINUX/DOCUMENTS/DEVELOPMENT/Gambas/??????????????? ?? > > > Gambas/?? ?????? ??? Gambas3/Projects/Pointers86 but maybe the implementation of char *getwd(char *buf); is not correct.... i dont know! On Sun, 2011-01-09 at 21:29 +0200, Demosthenes Koptsis wrote: > so what can i do for > > char *getwd(char *buf); > > ? > On Sun, 2011-01-09 at 16:05 +0200, Jussi Lahtinen wrote: > > Hmmm..... you cannot do alloc with size of string. > > Size of string is depended on length of string! > > > > Jussi > > > > > > On Sun, Jan 9, 2011 at 15:59, Demosthenes Koptsis wrote: > > > > > this example on pointers raises signal #6. > > > Gambas3 svn3432 Ubuntu 10.04, AMD64 > > > > > > --------------------------- > > > ' Gambas module file > > > 'char *getwd(char *buf); > > > Extern getwd(buf As Pointer) As Pointer In "libc:6" > > > > > > Public Sub Main() > > > > > > Dim pBuf As Pointer > > > Dim pFunc As Pointer > > > Dim sWorkingDirectory As String > > > > > > 'getwd > > > pBuf = Alloc(SizeOf(gb.String)) > > > pFunc = Alloc(SizeOf(gb.String)) > > > > > > pFunc = getwd(pBuf) > > > > > > sWorkingDirectory = Str@(pFunc) > > > Free(pFunc) > > > Free(pBuf) > > > Print sWorkingDirectory > > > > > > End > > > --------------------------- > > > > > > output: > > > --------------------------- > > > *** glibc detected *** Pointers86: free(): invalid next size (fast): > > > 0x0000000001af39a0 *** > > > ======= Backtrace: ========= > > > /lib/libc.so.6(+0x775b6)[0x7f4d6a2495b6] > > > /lib/libc.so.6(cfree+0x73)[0x7f4d6a24fe83] > > > Pointers86[0x405308] > > > Pointers86[0x422f50] > > > /lib/libc.so.6(__libc_start_main+0xfd)[0x7f4d6a1f0c4d] > > > Pointers86[0x4043f9] > > > ======= Memory map: ======== > > > 00400000-00445000 r-xp 00000000 08:14 > > > 2377106 /usr/local/bin/gbx3 > > > 00644000-00645000 r--p 00044000 08:14 > > > 2377106 /usr/local/bin/gbx3 > > > 00645000-0064f000 rw-p 00045000 08:14 > > > 2377106 /usr/local/bin/gbx3 > > > 0064f000-00651000 rw-p 00000000 00:00 0 > > > 01ade000-01aff000 rw-p 00000000 00:00 0 > > > [heap] > > > 7f4d64000000-7f4d64021000 rw-p 00000000 00:00 0 > > > 7f4d64021000-7f4d68000000 ---p 00000000 00:00 0 > > > 7f4d69fbb000-7f4d69fd1000 r-xp 00000000 08:14 > > > 1179728 /lib/libgcc_s.so.1 > > > 7f4d69fd1000-7f4d6a1d0000 ---p 00016000 08:14 > > > 1179728 /lib/libgcc_s.so.1 > > > 7f4d6a1d0000-7f4d6a1d1000 r--p 00015000 08:14 > > > 1179728 /lib/libgcc_s.so.1 > > > 7f4d6a1d1000-7f4d6a1d2000 rw-p 00016000 08:14 > > > 1179728 /lib/libgcc_s.so.1 > > > 7f4d6a1d2000-7f4d6a34c000 r-xp 00000000 08:14 > > > 1180003 /lib/libc-2.11.1.so > > > 7f4d6a34c000-7f4d6a54b000 ---p 0017a000 08:14 > > > 1180003 /lib/libc-2.11.1.so > > > 7f4d6a54b000-7f4d6a54f000 r--p 00179000 08:14 > > > 1180003 /lib/libc-2.11.1.so > > > 7f4d6a54f000-7f4d6a550000 rw-p 0017d000 08:14 > > > 1180003 /lib/libc-2.11.1.so > > > 7f4d6a550000-7f4d6a555000 rw-p 00000000 00:00 0 > > > 7f4d6a555000-7f4d6a55c000 r-xp 00000000 08:14 > > > 2231491 /usr/lib/libffi.so.5.0.10 > > > 7f4d6a55c000-7f4d6a75b000 ---p 00007000 08:14 > > > 2231491 /usr/lib/libffi.so.5.0.10 > > > 7f4d6a75b000-7f4d6a75c000 r--p 00006000 08:14 > > > 2231491 /usr/lib/libffi.so.5.0.10 > > > 7f4d6a75c000-7f4d6a75d000 rw-p 00007000 08:14 > > > 2231491 /usr/lib/libffi.so.5.0.10 > > > 7f4d6a75d000-7f4d6a775000 r-xp 00000000 08:14 > > > 1180001 /lib/libpthread-2.11.1.so > > > 7f4d6a775000-7f4d6a974000 ---p 00018000 08:14 > > > 1180001 /lib/libpthread-2.11.1.so > > > 7f4d6a974000-7f4d6a975000 r--p 00017000 08:14 > > > 1180001 /lib/libpthread-2.11.1.so > > > 7f4d6a975000-7f4d6a976000 rw-p 00018000 08:14 > > > 1180001 /lib/libpthread-2.11.1.so > > > 7f4d6a976000-7f4d6a97a000 rw-p 00000000 00:00 0 > > > 7f4d6a97a000-7f4d6a97c000 r-xp 00000000 08:14 > > > 1180008 /lib/libdl-2.11.1.so > > > 7f4d6a97c000-7f4d6ab7c000 ---p 00002000 08:14 > > > 1180008 /lib/libdl-2.11.1.so > > > 7f4d6ab7c000-7f4d6ab7d000 r--p 00002000 08:14 > > > 1180008 /lib/libdl-2.11.1.so > > > 7f4d6ab7d000-7f4d6ab7e000 rw-p 00003000 08:14 > > > 1180008 /lib/libdl-2.11.1.so > > > 7f4d6ab7e000-7f4d6ac00000 r-xp 00000000 08:14 > > > 1179958 /lib/libm-2.11.1.so > > > 7f4d6ac00000-7f4d6adff000 ---p 00082000 08:14 > > > 1179958 /lib/libm-2.11.1.so > > > 7f4d6adff000-7f4d6ae00000 r--p 00081000 08:14 > > > 1179958 /lib/libm-2.11.1.so > > > 7f4d6ae00000-7f4d6ae01000 rw-p 00082000 08:14 > > > 1179958 /lib/libm-2.11.1.so > > > 7f4d6ae01000-7f4d6ae21000 r-xp 00000000 08:14 > > > 1179985 /lib/ld-2.11.1.so > > > 7f4d6ae95000-7f4d6ae96000 rw-p 00000000 00:00 0 > > > 7f4d6ae96000-7f4d6aed5000 r--p 00000000 08:14 > > > 2237984 /usr/lib/locale/en_US.utf8/LC_CTYPE > > > 7f4d6aed5000-7f4d6aff3000 r--p 00000000 08:14 > > > 2239899 /usr/lib/locale/en_US.utf8/LC_COLLATE > > > 7f4d6aff3000-7f4d6aff7000 rw-p 00000000 00:00 0 > > > 7f4d6b00b000-7f4d6b00c000 r--p 00000000 08:14 > > > 2237989 /usr/lib/locale/en_US.utf8/LC_NUMERIC > > > 7f4d6b00c000-7f4d6b00d000 r--p 00000000 08:14 > > > 2232077 /usr/lib/locale/en_US.utf8/LC_TIME > > > 7f4d6b00d000-7f4d6b00e000 r--p 00000000 08:14 > > > 2234328 /usr/lib/locale/en_US.utf8/LC_MONETARY > > > 7f4d6b00e000-7f4d6b00f000 r--p 00000000 08:14 > > > 2235935 > > > /usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES > > > 7f4d6b00f000-7f4d6b010000 r--p 00000000 08:14 > > > 2237938 /usr/lib/locale/en_US.utf8/LC_PAPER > > > 7f4d6b010000-7f4d6b011000 r--p 00000000 08:14 > > > 2237858 /usr/lib/locale/en_US.utf8/LC_NAME > > > 7f4d6b011000-7f4d6b012000 r--p 00000000 08:14 > > > 2235936 /usr/lib/locale/en_US.utf8/LC_ADDRESS > > > 7f4d6b012000-7f4d6b013000 r--p 00000000 08:14 > > > 2235937 /usr/lib/locale/en_US.utf8/LC_TELEPHONE > > > 7f4d6b013000-7f4d6b014000 r--p 00000000 08:14 > > > 2239858 /usr/lib/locale/en_US.utf8/LC_MEASUREMENT > > > 7f4d6b014000-7f4d6b01b000 r--s 00000000 08:14 > > > 2233563 /usr/lib/gconv/gconv-modules.cache > > > 7f4d6b01b000-7f4d6b01c000 r--p 00000000 08:14 > > > 2235940 /usr/lib/locale/en_US.utf8/LC_IDENTIFICATION > > > 7f4d6b01c000-7f4d6b020000 rw-p 00000000 00:00 0 > > > 7f4d6b020000-7f4d6b021000 r--p 0001f000 08:14 > > > 1179985 /lib/ld-2.11.1.so > > > 7f4d6b021000-7f4d6b022000 rw-p 00020000 08:14 > > > 1179985 /lib/ld-2.11.1.so > > > 7f4d6b022000-7f4d6b023000 rw-p 00000000 00:00 0 > > > 7fff5c542000-7fff5c557000 rw-p 00000000 00:00 0 > > > [stack] > > > 7fff5c5ff000-7fff5c600000 r-xp 00000000 00:00 0 > > > [vdso] > > > ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 > > > [vsyscall] > > > /mnt/store/LINUX/DOCUMENTS/DEVELOPMENT/Gambas/??????????????? ?? > > > Gambas/?? ?????? ??? Gambas3/Projects/Pointers86 > > > --------------------------- > > > > > > the last line is in Greek some part, it is the name of current > > > directory. > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Gaining the trust of online customers is vital for the success of any > > > company > > > that requires sensitive data to be transmitted over the Web. Learn how to > > > best implement a security strategy that keeps consumers' information secure > > > and instills the confidence they need to proceed with transactions. > > > http://p.sf.net/sfu/oracle-sfdevnl > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > > Gaining the trust of online customers is vital for the success of any company > > that requires sensitive data to be transmitted over the Web. Learn how to > > best implement a security strategy that keeps consumers' information secure > > and instills the confidence they need to proceed with transactions. > > http://p.sf.net/sfu/oracle-sfdevnl > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Regards, Demosthenes From demosthenesk at ...626... Sun Jan 9 20:54:25 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 09 Jan 2011 21:54:25 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] In-Reply-To: References: <1294502974.10206.1.camel@...2493...> <1294515992.2802.22.camel@...2494...> <1294520839.3676.2.camel@...2494...> <1294567928.22763.0.camel@...2493...> Message-ID: <1294602865.4599.18.camel@...2494...> This is what is said here http://gambasdoc.org/help/howto/extern?v3 "More On Pointers" READ #mypointer, var1_4byte mypointer += 4 READ #mypointer, var2_4byte i tried Print "\nRead the pointer" Print "Integer read:"; Integer@(pPointer) pPointer += 4 Print "Float read:"; Float@(pPointer) But this raises an error, "Type mismatch, wanted number get pointer instead" Is this a bug? As i see there is no intrinsic function of Gambas3 for moving in memory forward or backward from a starting memory address. Is it useful to be one? what do you say? As i see there is only a way to move inside a memory stream with SEEK. On Sun, 2011-01-09 at 16:00 +0200, Jussi Lahtinen wrote: > > Here is another question-case. > > > > i Alloc 12 bytes. > > i set in memory an integer 4 bytes > > then i set in memory a float 8 bytes. > > > > i can read the memory stream with READ, ok! > > > > How can i to this with Integer@() and Float@() functions? > > How can i move inside memory and use Integer@() and Float@() > > > > > I haven't try this in gambas, but in C/C++ variables are in memory in > straight row without any metadata. > I assume this is also case in gambas, so; > iFirstInteger = Integer@(pPointer) > iNextInteger = Integer@(pPointer + 4) > > > Jussi > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes From gambas at ...1... Sun Jan 9 21:33:06 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 9 Jan 2011 21:33:06 +0100 Subject: [Gambas-user] Another crash. In-Reply-To: References: <201101090114.40239.gambas@...1...> Message-ID: <201101092133.06090.gambas@...1...> > I wonder what would be best way to test different localizations... do I > need to install all the language packages? > Or possibly just some component of language package? > > Jussi > You must install the support for the locale you want your Gambas program to use. For example, if you want to run a Gambas program in spanish, you must install the spanish glibc locale support. Regards, -- Beno?t Minisini From gambas at ...1... Sun Jan 9 21:37:25 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 9 Jan 2011 21:37:25 +0100 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 In-Reply-To: <1294601360.4599.1.camel@...2494...> References: <1294502974.10206.1.camel@...2493...> <1294601360.4599.1.camel@...2494...> Message-ID: <201101092137.25209.gambas@...1...> > so what can i do for > > char *getwd(char *buf); > > ? > You must know C programming first, and understand how getwd works. By typing 'man getwd', you will learn that you must not use that function, it is dangerous and so deprecated. Then you will read that buf must be a pointer to a memory allocation of PATH_MAX bytes. You must find the value of this constant inside the standard C header files. SizeOf(gb.String) is 4 (on 32 bits system). It is the number of bytes used by Gambas to store a pointer to a Gambas string. This is the reason why you get a crash. Regards, -- Beno?t Minisini From gambas at ...1... Sun Jan 9 22:04:26 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 9 Jan 2011 22:04:26 +0100 Subject: [Gambas-user] Gui question = menu shadow left on screen after click In-Reply-To: <201101091939.44372.rterry@...1946...> References: <201101091939.44372.rterry@...1946...> Message-ID: <201101092204.26240.gambas@...1...> > Hi list > > Enclosed is picture - when I click on a menu item, and the code attatched > to a menu item "attached" how ? Where ? -- Beno?t Minisini From jussi.lahtinen at ...626... Sun Jan 9 22:20:18 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 9 Jan 2011 23:20:18 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] In-Reply-To: <1294602865.4599.18.camel@...2494...> References: <1294502974.10206.1.camel@...2493...> <1294515992.2802.22.camel@...2494...> <1294520839.3676.2.camel@...2494...> <1294567928.22763.0.camel@...2493...> <1294602865.4599.18.camel@...2494...> Message-ID: pPointer += 4 > Print "Float read:"; Float@(pPointer) > > But this raises an error, "Type mismatch, wanted number get pointer > instead" > Is this a bug? > Probably, I'll look that more closely later... > As i see there is no intrinsic function of Gambas3 for moving in memory > forward or backward from a starting memory address. > Is it useful to be one? what do you say? > > As i see there is only a way to move inside a memory stream with SEEK. > Quickly thinking I don't see any need for anything else than "SEEK", "pPointer + something" and of course automatically with read/write. Jussi From demosthenesk at ...626... Sun Jan 9 22:17:44 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 09 Jan 2011 23:17:44 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 In-Reply-To: <201101092137.25209.gambas@...1...> References: <1294502974.10206.1.camel@...2493...> <1294601360.4599.1.camel@...2494...> <201101092137.25209.gambas@...1...> Message-ID: <1294607864.5416.9.camel@...2494...> yes i read the man and i know that is suggested not to use this function. Although i just use it for demonstration for pointers. That i didn't do is to check the header files. The other thing is that i am total newbie to man 3 and i need some time to get used to it, so please be patient. i see that the usage of external functions are more far than a medium level of Basic programming but i think i can manage it in time. On Sun, 2011-01-09 at 21:37 +0100, Beno?t Minisini wrote: > > so what can i do for > > > > char *getwd(char *buf); > > > > ? > > > > You must know C programming first, and understand how getwd works. By typing > 'man getwd', you will learn that you must not use that function, it is > dangerous and so deprecated. > > Then you will read that buf must be a pointer to a memory allocation of > PATH_MAX bytes. You must find the value of this constant inside the standard C > header files. > > SizeOf(gb.String) is 4 (on 32 bits system). It is the number of bytes used by > Gambas to store a pointer to a Gambas string. This is the reason why you get a > crash. > > Regards, > -- Regards, Demosthenes From jussi.lahtinen at ...626... Sun Jan 9 22:48:41 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 9 Jan 2011 23:48:41 +0200 Subject: [Gambas-user] Another crash. In-Reply-To: <201101092133.06090.gambas@...1...> References: <201101090114.40239.gambas@...1...> <201101092133.06090.gambas@...1...> Message-ID: Hmmm... I installed all packages for French that I found, but still: $ LANG=fr_FR gbx3 gbx3: warning: cannot switch to language '(null)'. Did you install the corresponding locale packages? (process:9277): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale. Suggestions? Jussi 2011/1/9 Beno?t Minisini > > I wonder what would be best way to test different localizations... do I > > need to install all the language packages? > > Or possibly just some component of language package? > > > > Jussi > > > > You must install the support for the locale you want your Gambas program to > use. > > For example, if you want to run a Gambas program in spanish, you must > install > the spanish glibc locale support. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any > company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From simonart.dominique at ...11... Sun Jan 9 22:50:57 2011 From: simonart.dominique at ...11... (Simonart Dominique) Date: Sun, 09 Jan 2011 22:50:57 +0100 Subject: [Gambas-user] feature suggestion Message-ID: <4D2A2DC1.5040802@...11...> Hi, Often I've to write things like that: With Joueur(0) If Joueur(2).Nombre(Joueur(2).C1) < .Nombre(.C1) Then ... ... End With As I already have a With Joueur(0) activated I cannot define another one for Joueur(2). It would be nice to have the possibility to define temporary Alias names inside a Procedure, as for example: ALIAS Joueur(2), J2 With Joueur(0) IF J2.Nombre(J2.C1) < .Nombre(.C1) Then ... ... End With regards, Dominique Simonart From gambas at ...1... Sun Jan 9 23:06:56 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 9 Jan 2011 23:06:56 +0100 Subject: [Gambas-user] feature suggestion In-Reply-To: <4D2A2DC1.5040802@...11...> References: <4D2A2DC1.5040802@...11...> Message-ID: <201101092306.56525.gambas@...1...> > Hi, > > Often I've to write things like that: > > With Joueur(0) > If Joueur(2).Nombre(Joueur(2).C1) < .Nombre(.C1) Then ... > ... > End With > > As I already have a With Joueur(0) activated I cannot define > another one for Joueur(2). > > It would be nice to have the possibility to define temporary > Alias names inside a Procedure, as for example: > > ALIAS Joueur(2), J2 > With Joueur(0) > IF J2.Nombre(J2.C1) < .Nombre(.C1) Then ... > ... > End With > > regards, > Dominique Simonart > Maybe you can use a variable named J2 for that? -- Beno?t Minisini From demosthenesk at ...626... Mon Jan 10 00:16:41 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 10 Jan 2011 01:16:41 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 In-Reply-To: <201101092137.25209.gambas@...1...> References: <1294502974.10206.1.camel@...2493...> <1294601360.4599.1.camel@...2494...> <201101092137.25209.gambas@...1...> Message-ID: <1294615001.6613.25.camel@...2494...> 1) Ok, i found why this function is dangerous. https://buildsecurityin.us-cert.gov/bsi/articles/knowledge/coding/760-BSI.html "Since the user cannot specify the length of the buffer passed to getwd(), use of this function is discouraged. The length of a pathname described in {PATH_MAX} is file system-dependent and may vary from one mount point to another, or might even be unlimited. It is possible to overflow this buffer in such a way as to cause applications to fail or possible system security violations." But here i make a test no real life project. 2) So, i found in /usr/include/linux/limits.h Line Number: 12 #define PATH_MAX 4096 /* # chars in a path name including nul */ is this the value? i tried this value in my example with no success, i make somewhere else the mistake. --------------- ' Gambas module file ' Gambas module file 'char *getwd(char *buf); Extern getwd(buf As Pointer) As Pointer In "libc:6" Public Sub Main() Dim pBuf As Pointer Dim pFunc As Pointer Dim sWorkingDirectory As String 'getwd pBuf = Alloc(4096) pFunc = Alloc(4096) pFunc = getwd(pBuf) sWorkingDirectory = Str@(pFunc) Free(pFunc) Free(pBuf) Print sWorkingDirectory End --------------- signal #6 ---------------- *** glibc detected *** Pointers5: double free or corruption (!prev): 0x0893f498 *** ======= Backtrace: ========= /lib/tls/i686/cmov/libc.so.6(+0x6b591)[0x17b591] /lib/tls/i686/cmov/libc.so.6(+0x6cde8)[0x17cde8] /lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0x17fecd] Pointers5[0x805ed2e] Pointers5[0x8076a6a] Pointers5[0x8050a99] Pointers5[0x80513d8] Pointers5[0x80689cd] /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x126bd6] Pointers5[0x804b151] ======= Memory map: ======== 00110000-00263000 r-xp 00000000 08:04 2019753 /lib/tls/i686/cmov/libc-2.11.1.so 00263000-00264000 ---p 00153000 08:04 2019753 /lib/tls/i686/cmov/libc-2.11.1.so 00264000-00266000 r--p 00153000 08:04 2019753 /lib/tls/i686/cmov/libc-2.11.1.so 00266000-00267000 rw-p 00155000 08:04 2019753 /lib/tls/i686/cmov/libc-2.11.1.so 00267000-0026a000 rw-p 00000000 00:00 0 00428000-00438000 r-xp 00000000 08:04 1906544 /usr/local/lib/gambas3/gb.eval.so.0.0.0 00438000-00439000 r--p 0000f000 08:04 1906544 /usr/local/lib/gambas3/gb.eval.so.0.0.0 00439000-0043b000 rw-p 00010000 08:04 1906544 /usr/local/lib/gambas3/gb.eval.so.0.0.0 0043b000-0043c000 rw-p 00000000 00:00 0 0046e000-0046f000 r-xp 00000000 00:00 0 [vdso] 006c9000-006ce000 r-xp 00000000 08:04 688690 /usr/lib/libffi.so.5.0.10 006ce000-006cf000 ---p 00005000 08:04 688690 /usr/lib/libffi.so.5.0.10 006cf000-006d0000 r--p 00005000 08:04 688690 /usr/lib/libffi.so.5.0.10 006d0000-006d1000 rw-p 00006000 08:04 688690 /usr/lib/libffi.so.5.0.10 00739000-0075d000 r-xp 00000000 08:04 2019761 /lib/tls/i686/cmov/libm-2.11.1.so 0075d000-0075e000 r--p 00023000 08:04 2019761 /lib/tls/i686/cmov/libm-2.11.1.so 0075e000-0075f000 rw-p 00024000 08:04 2019761 /lib/tls/i686/cmov/libm-2.11.1.so 00aa5000-00ac2000 r-xp 00000000 08:04 1995027 /lib/libgcc_s.so.1 00ac2000-00ac3000 r--p 0001c000 08:04 1995027 /lib/libgcc_s.so.1 00ac3000-00ac4000 rw-p 0001d000 08:04 1995027 /lib/libgcc_s.so.1 00bca000-00bcc000 r-xp 00000000 08:04 2019759 /lib/tls/i686/cmov/libdl-2.11.1.so 00bcc000-00bcd000 r--p 00001000 08:04 2019759 /lib/tls/i686/cmov/libdl-2.11.1.so 00bcd000-00bce000 rw-p 00002000 08:04 2019759 /lib/tls/i686/cmov/libdl-2.11.1.so 00c25000-00c3a000 r-xp 00000000 08:04 2019772 /lib/tls/i686/cmov/libpthread-2.11.1.so 00c3a000-00c3b000 r--p 00014000 08:04 2019772 /lib/tls/i686/cmov/libpthread-2.11.1.so 00c3b000-00c3c000 rw-p 00015000 08:04 2019772 /lib/tls/i686/cmov/libpthread-2.11.1.so 00c3c000-00c3e000 rw-p 00000000 00:00 0 00dc3000-00dc7000 r-xp 00000000 08:04 1906676 /usr/local/lib/gambas3/gb.debug.so.0.0.0 00dc7000-00dc8000 r--p 00003000 08:04 1906676 /usr/local/lib/gambas3/gb.debug.so.0.0.0 00dc8000-00dc9000 rw-p 00004000 08:04 1906676 /usr/local/lib/gambas3/gb.debug.so.0.0.0 00eeb000-00f06000 r-xp 00000000 08:04 1996732 /lib/ld-2.11.1.so 00f06000-00f07000 r--p 0001a000 08:04 1996732 /lib/ld-2.11.1.so 00f07000-00f08000 rw-p 0001b000 08:04 1996732 /lib/ld-2.11.1.so 08048000-0807e000 r-xp 00000000 08:04 1785292 /usr/local/bin/gbx3 0807e000-0807f000 r--p 00035000 08:04 1785292 /usr/local/bin/gbx3 0807f000-08084000 rw-p 00036000 08:04 1785292 /usr/local/bin/gbx3 08084000-08086000 rw-p 00000000 00:00 0 08932000-08953000 rw-p 00000000 00:00 0 [heap] b7500000-b7521000 rw-p 00000000 00:00 0 b7521000-b7600000 ---p 00000000 00:00 0 b768a000-b76c9000 r--p 00000000 08:04 737484 /usr/lib/locale/en_US.utf8/LC_CTYPE b76c9000-b77e7000 r--p 00000000 08:04 737483 /usr/lib/locale/en_US.utf8/LC_COLLATE b77e7000-b77e9000 rw-p 00000000 00:00 0 b77f1000-b77f2000 r--p 00000000 08:04 737500 /usr/lib/locale/en_US.utf8/LC_NUMERIC b77f2000-b77f3000 r--p 00000000 08:04 735917 /usr/lib/locale/en_US.utf8/LC_TIME b77f3000-b77f4000 r--p 00000000 08:04 735918 /usr/lib/locale/en_US.utf8/LC_MONETARY b77f4000-b77f5000 r--p 00000000 08:04 752258 /usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES b77f5000-b77f6000 r--p 00000000 08:04 737523 /usr/lib/locale/en_US.utf8/LC_PAPER b77f6000-b77f7000 r--p 00000000 08:04 737455 /usr/lib/locale/en_US.utf8/LC_NAME b77f7000-b77f8000 r--p 00000000 08:04 735919 /usr/lib/locale/en_US.utf8/LC_ADDRESS b77f8000-b77f9000 r--p 00000000 08:04 735920 /usr/lib/locale/en_US.utf8/LC_TELEPHONE b77f9000-b77fa000 r--p 00000000 08:04 737398 /usr/lib/locale/en_US.utf8/LC_MEASUREMENT b77fa000-b7801000 r--s 00000000 08:04 1619066 /usr/lib/gconv/gconv-modules.cache b7801000-b7802000 r--p 00000000 08:04 735921 /usr/lib/locale/en_US.utf8/LC_IDENTIFICATION b7802000-b7806000 rw-p 00000000 00:00 0 bfa53000-bfa68000 rw-p 00000000 00:00 0 [stack] ---------------- i saw that the first line says *** glibc detected *** Pointers5: double free or corruption (!prev) and i rem the one Free(). now i get -------------- gbx3: warning: 1 allocation(s) non freed. ??m^@^@^@^@^@^@^@^@^@ocuments/Development/Gambas3/Pointers5 -------------- but no crash. i played with the values of Alloc and i found that in my case a 29 bytes are ok but with one Free() or else i get signal #11. is there a bug with Free(pBuf) Free(pFunc) ? 3) On the other hand, i have a general question. How to deal with char *pointers when their length is not known? 4) For example i try to use 'char *get_current_dir_name(void); Extern get_current_dir_name() As Pointer In "libc:6" again with no success. in manuall says: get_current_dir_name() will malloc(3) an array big enough to hold the absolute pathname of the current working directory. in my example: --------------------- ' Gambas module file 'char *get_current_dir_name(void); Extern get_current_dir_name() As Pointer In "libc:6" Public Sub Main() Dim pFunc As Pointer Dim sWorkingDirectory As String 'get_current_dir_name pFunc = Alloc(4096) pFunc = get_current_dir_name() sWorkingDirectory = Str@(pFunc) ' Free(pFunc) Print sWorkingDirectory End --------------------- if i use Free(pFunc) i get signal #11 gambas3-svn3418, ubuntu 10.04 On Sun, 2011-01-09 at 21:37 +0100, Beno?t Minisini wrote: > > so what can i do for > > > > char *getwd(char *buf); > > > > ? > > > > You must know C programming first, and understand how getwd works. By typing > 'man getwd', you will learn that you must not use that function, it is > dangerous and so deprecated. > > Then you will read that buf must be a pointer to a memory allocation of > PATH_MAX bytes. You must find the value of this constant inside the standard C > header files. > > SizeOf(gb.String) is 4 (on 32 bits system). It is the number of bytes used by > Gambas to store a pointer to a Gambas string. This is the reason why you get a > crash. > > Regards, > -- Regards, Demosthenes From simonart.dominique at ...11... Mon Jan 10 00:30:43 2011 From: simonart.dominique at ...11... (Simonart Dominique) Date: Mon, 10 Jan 2011 00:30:43 +0100 Subject: [Gambas-user] feature suggestion In-Reply-To: <201101092306.56525.gambas@...1...> References: <4D2A2DC1.5040802@...11...> <201101092306.56525.gambas@...1...> Message-ID: <4D2A4523.3010709@...11...> Of course you are right! The Joueur() instances of my class are quite big, but nowadays the RAM is gigantic! this is surely a reminiscence of my "economy of RAM" syndrom coming from the Amiga's days (512KKKKKK) so, Forget it! regards Dominique Simonart Le 09/01/2011 23:06, Beno?t Minisini a ?crit : >> Hi, >> >> Often I've to write things like that: >> >> With Joueur(0) >> If Joueur(2).Nombre(Joueur(2).C1)< .Nombre(.C1) Then ... >> ... >> End With >> >> As I already have a With Joueur(0) activated I cannot define >> another one for Joueur(2). >> >> It would be nice to have the possibility to define temporary >> Alias names inside a Procedure, as for example: >> >> ALIAS Joueur(2), J2 >> With Joueur(0) >> IF J2.Nombre(J2.C1)< .Nombre(.C1) Then ... >> ... >> End With >> >> regards, >> Dominique Simonart >> > > Maybe you can use a variable named J2 for that? > From gambas at ...1... Mon Jan 10 00:36:26 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 10 Jan 2011 00:36:26 +0100 Subject: [Gambas-user] feature suggestion In-Reply-To: <4D2A4523.3010709@...11...> References: <4D2A2DC1.5040802@...11...> <201101092306.56525.gambas@...1...> <4D2A4523.3010709@...11...> Message-ID: <201101100036.27033.gambas@...1...> > Of course you are right! > > The Joueur() instances of my class are quite big, but > nowadays the RAM is gigantic! > this is surely a reminiscence of my "economy of RAM" syndrom > coming from the Amiga's days (512KKKKKK) > so, Forget it! > > regards > Dominique Simonart > You are exactly using the same RAM with my solution or with yours! -- Beno?t Minisini From demosthenesk at ...626... Mon Jan 10 00:54:46 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 10 Jan 2011 01:54:46 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 In-Reply-To: <1294615001.6613.25.camel@...2494...> References: <1294502974.10206.1.camel@...2493...> <1294601360.4599.1.camel@...2494...> <201101092137.25209.gambas@...1...> <1294615001.6613.25.camel@...2494...> Message-ID: <1294617286.7535.11.camel@...2494...> so i manage to make it work... i saw an example that said to use PATH_MAX+1 https://buildsecurityin.us-cert.gov/bsi/articles/knowledge/coding/760-BSI.html so i did Example 1) ---------------------- ' Gambas module file 'char *getcwd(char *buf, size_t size); Extern getcwd(buf As Pointer, size As Integer) As Pointer In "libc:6" Public Sub Main() Dim pFunc As Pointer Dim pBuf As Pointer Dim sWorkingDirectory As String 'getcwd pFunc = Alloc(4097) pBuf = Alloc(4097) pFunc = getcwd(pBuf, 4097) sWorkingDirectory = Str@(pFunc) Print sWorkingDirectory Free(pFunc) ' Free(pBuf) Print sWorkingDirectory End ---------------------- a) note in 1st example that Print sWorkingDirectory Free(pFunc) Print sWorkingDirectory first print gives the correct output /home/user/Documents/Development/Gambas3/Pointers7 and the second after Free(pFunc) gives this ?s&^@^@^@^@^@^@^@^@^@ocuments/Development/Gambas3/Pointers7 b) if i use Free(pBuf) i get signal #6 and *** glibc detected *** Pointers7: double free or corruption (!prev): 0x087c94c0 *** Example 2 -------------------- ' Gambas module file 'char *get_current_dir_name(void); Extern get_current_dir_name() As Pointer In "libc:6" Public Sub Main() Dim pFunc As Pointer Dim sWorkingDirectory As String 'get_current_dir_name pFunc = Alloc(4097) pFunc = get_current_dir_name() sWorkingDirectory = Str@(pFunc) Print sWorkingDirectory Free(pFunc) End ----------------------- here i get correct results but if i use Free(pFunc) i get signal #11 Example 3 --------------------------- ' Gambas module file ' Gambas module file 'char *getwd(char *buf); Extern getwd(buf As Pointer) As Pointer In "libc:6" Public Sub Main() Dim pBuf As Pointer Dim pFunc As Pointer Dim sWorkingDirectory As String 'getwd pBuf = Alloc(4097) pFunc = Alloc(4097) pFunc = getwd(pBuf) sWorkingDirectory = Str@(pFunc) ' Free(pBuf) Print sWorkingDirectory Free(pFunc) Print sWorkingDirectory End -------------------------- here the same with example1. Free(pBuf) Free(pFunc) raises both signal #6 and *** glibc detected *** Pointers5: double free or corruption (!prev): 0x09b0e4a8 *** also Print sWorkingDirectory Free(pFunc) Print sWorkingDirectory first Print is correct second after Free is not correct /home/user/Documents/Development/Gambas3/Pointers5 ?s&^@^@^@^@^@^@^@^@^@ocuments/Development/Gambas3/Pointers5 On Mon, 2011-01-10 at 01:16 +0200, Demosthenes Koptsis wrote: > 1) Ok, i found why this function is dangerous. > https://buildsecurityin.us-cert.gov/bsi/articles/knowledge/coding/760-BSI.html > "Since the user cannot specify the length of the buffer passed to > getwd(), use of this function is discouraged. The length of a pathname > described in {PATH_MAX} is file system-dependent and may vary from one > mount point to another, or might even be unlimited. It is possible to > overflow this buffer in such a way as to cause applications to fail or > possible system security violations." > > But here i make a test no real life project. > > 2) So, i found in /usr/include/linux/limits.h > Line Number: 12 > #define PATH_MAX 4096 /* # chars in a path name including nul */ > > is this the value? > > i tried this value in my example with no success, i make somewhere else > the mistake. > > --------------- > ' Gambas module file > ' Gambas module file > 'char *getwd(char *buf); > Extern getwd(buf As Pointer) As Pointer In "libc:6" > > Public Sub Main() > > Dim pBuf As Pointer > Dim pFunc As Pointer > Dim sWorkingDirectory As String > > 'getwd > pBuf = Alloc(4096) > pFunc = Alloc(4096) > > pFunc = getwd(pBuf) > > sWorkingDirectory = Str@(pFunc) > Free(pFunc) > Free(pBuf) > Print sWorkingDirectory > > End > --------------- > > signal #6 > > ---------------- > *** glibc detected *** Pointers5: double free or corruption (!prev): > 0x0893f498 *** > ======= Backtrace: ========= > /lib/tls/i686/cmov/libc.so.6(+0x6b591)[0x17b591] > /lib/tls/i686/cmov/libc.so.6(+0x6cde8)[0x17cde8] > /lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0x17fecd] > Pointers5[0x805ed2e] > Pointers5[0x8076a6a] > Pointers5[0x8050a99] > Pointers5[0x80513d8] > Pointers5[0x80689cd] > /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x126bd6] > Pointers5[0x804b151] > ======= Memory map: ======== > 00110000-00263000 r-xp 00000000 08:04 > 2019753 /lib/tls/i686/cmov/libc-2.11.1.so > 00263000-00264000 ---p 00153000 08:04 > 2019753 /lib/tls/i686/cmov/libc-2.11.1.so > 00264000-00266000 r--p 00153000 08:04 > 2019753 /lib/tls/i686/cmov/libc-2.11.1.so > 00266000-00267000 rw-p 00155000 08:04 > 2019753 /lib/tls/i686/cmov/libc-2.11.1.so > 00267000-0026a000 rw-p 00000000 00:00 0 > 00428000-00438000 r-xp 00000000 08:04 > 1906544 /usr/local/lib/gambas3/gb.eval.so.0.0.0 > 00438000-00439000 r--p 0000f000 08:04 > 1906544 /usr/local/lib/gambas3/gb.eval.so.0.0.0 > 00439000-0043b000 rw-p 00010000 08:04 > 1906544 /usr/local/lib/gambas3/gb.eval.so.0.0.0 > 0043b000-0043c000 rw-p 00000000 00:00 0 > 0046e000-0046f000 r-xp 00000000 00:00 0 [vdso] > 006c9000-006ce000 r-xp 00000000 08:04 > 688690 /usr/lib/libffi.so.5.0.10 > 006ce000-006cf000 ---p 00005000 08:04 > 688690 /usr/lib/libffi.so.5.0.10 > 006cf000-006d0000 r--p 00005000 08:04 > 688690 /usr/lib/libffi.so.5.0.10 > 006d0000-006d1000 rw-p 00006000 08:04 > 688690 /usr/lib/libffi.so.5.0.10 > 00739000-0075d000 r-xp 00000000 08:04 > 2019761 /lib/tls/i686/cmov/libm-2.11.1.so > 0075d000-0075e000 r--p 00023000 08:04 > 2019761 /lib/tls/i686/cmov/libm-2.11.1.so > 0075e000-0075f000 rw-p 00024000 08:04 > 2019761 /lib/tls/i686/cmov/libm-2.11.1.so > 00aa5000-00ac2000 r-xp 00000000 08:04 1995027 /lib/libgcc_s.so.1 > 00ac2000-00ac3000 r--p 0001c000 08:04 1995027 /lib/libgcc_s.so.1 > 00ac3000-00ac4000 rw-p 0001d000 08:04 1995027 /lib/libgcc_s.so.1 > 00bca000-00bcc000 r-xp 00000000 08:04 > 2019759 /lib/tls/i686/cmov/libdl-2.11.1.so > 00bcc000-00bcd000 r--p 00001000 08:04 > 2019759 /lib/tls/i686/cmov/libdl-2.11.1.so > 00bcd000-00bce000 rw-p 00002000 08:04 > 2019759 /lib/tls/i686/cmov/libdl-2.11.1.so > 00c25000-00c3a000 r-xp 00000000 08:04 > 2019772 /lib/tls/i686/cmov/libpthread-2.11.1.so > 00c3a000-00c3b000 r--p 00014000 08:04 > 2019772 /lib/tls/i686/cmov/libpthread-2.11.1.so > 00c3b000-00c3c000 rw-p 00015000 08:04 > 2019772 /lib/tls/i686/cmov/libpthread-2.11.1.so > 00c3c000-00c3e000 rw-p 00000000 00:00 0 > 00dc3000-00dc7000 r-xp 00000000 08:04 > 1906676 /usr/local/lib/gambas3/gb.debug.so.0.0.0 > 00dc7000-00dc8000 r--p 00003000 08:04 > 1906676 /usr/local/lib/gambas3/gb.debug.so.0.0.0 > 00dc8000-00dc9000 rw-p 00004000 08:04 > 1906676 /usr/local/lib/gambas3/gb.debug.so.0.0.0 > 00eeb000-00f06000 r-xp 00000000 08:04 1996732 /lib/ld-2.11.1.so > 00f06000-00f07000 r--p 0001a000 08:04 1996732 /lib/ld-2.11.1.so > 00f07000-00f08000 rw-p 0001b000 08:04 1996732 /lib/ld-2.11.1.so > 08048000-0807e000 r-xp 00000000 08:04 1785292 /usr/local/bin/gbx3 > 0807e000-0807f000 r--p 00035000 08:04 1785292 /usr/local/bin/gbx3 > 0807f000-08084000 rw-p 00036000 08:04 1785292 /usr/local/bin/gbx3 > 08084000-08086000 rw-p 00000000 00:00 0 > 08932000-08953000 rw-p 00000000 00:00 0 [heap] > b7500000-b7521000 rw-p 00000000 00:00 0 > b7521000-b7600000 ---p 00000000 00:00 0 > b768a000-b76c9000 r--p 00000000 08:04 > 737484 /usr/lib/locale/en_US.utf8/LC_CTYPE > b76c9000-b77e7000 r--p 00000000 08:04 > 737483 /usr/lib/locale/en_US.utf8/LC_COLLATE > b77e7000-b77e9000 rw-p 00000000 00:00 0 > b77f1000-b77f2000 r--p 00000000 08:04 > 737500 /usr/lib/locale/en_US.utf8/LC_NUMERIC > b77f2000-b77f3000 r--p 00000000 08:04 > 735917 /usr/lib/locale/en_US.utf8/LC_TIME > b77f3000-b77f4000 r--p 00000000 08:04 > 735918 /usr/lib/locale/en_US.utf8/LC_MONETARY > b77f4000-b77f5000 r--p 00000000 08:04 > 752258 /usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES > b77f5000-b77f6000 r--p 00000000 08:04 > 737523 /usr/lib/locale/en_US.utf8/LC_PAPER > b77f6000-b77f7000 r--p 00000000 08:04 > 737455 /usr/lib/locale/en_US.utf8/LC_NAME > b77f7000-b77f8000 r--p 00000000 08:04 > 735919 /usr/lib/locale/en_US.utf8/LC_ADDRESS > b77f8000-b77f9000 r--p 00000000 08:04 > 735920 /usr/lib/locale/en_US.utf8/LC_TELEPHONE > b77f9000-b77fa000 r--p 00000000 08:04 > 737398 /usr/lib/locale/en_US.utf8/LC_MEASUREMENT > b77fa000-b7801000 r--s 00000000 08:04 > 1619066 /usr/lib/gconv/gconv-modules.cache > b7801000-b7802000 r--p 00000000 08:04 > 735921 /usr/lib/locale/en_US.utf8/LC_IDENTIFICATION > b7802000-b7806000 rw-p 00000000 00:00 0 > bfa53000-bfa68000 rw-p 00000000 00:00 0 [stack] > > ---------------- > > i saw that the first line says > *** glibc detected *** Pointers5: double free or corruption (!prev) > > and i rem the one Free(). > > now i get > -------------- > gbx3: warning: 1 allocation(s) non freed. > > ??m^@^@^@^@^@^@^@^@^@ocuments/Development/Gambas3/Pointers5 > -------------- > > but no crash. > > i played with the values of Alloc and i found that in my case a 29 bytes > are ok but with one Free() or else i get signal #11. > > is there a bug with > Free(pBuf) > Free(pFunc) > ? > > 3) On the other hand, i have a general question. > How to deal with char *pointers when their length is not known? > > 4) For example i try to use > 'char *get_current_dir_name(void); > Extern get_current_dir_name() As Pointer In "libc:6" > > again with no success. > > in manuall says: > get_current_dir_name() will malloc(3) an array big enough to hold the > absolute pathname of the current working directory. > > in my example: > > --------------------- > ' Gambas module file > 'char *get_current_dir_name(void); > Extern get_current_dir_name() As Pointer In "libc:6" > > Public Sub Main() > > Dim pFunc As Pointer > Dim sWorkingDirectory As String > > 'get_current_dir_name > pFunc = Alloc(4096) > > pFunc = get_current_dir_name() > > sWorkingDirectory = Str@(pFunc) > ' Free(pFunc) > Print sWorkingDirectory > > > End > --------------------- > > if i use > Free(pFunc) > > i get signal #11 > > gambas3-svn3418, ubuntu 10.04 > > > On Sun, 2011-01-09 at 21:37 +0100, Beno?t Minisini wrote: > > > so what can i do for > > > > > > char *getwd(char *buf); > > > > > > ? > > > > > > > You must know C programming first, and understand how getwd works. By typing > > 'man getwd', you will learn that you must not use that function, it is > > dangerous and so deprecated. > > > > Then you will read that buf must be a pointer to a memory allocation of > > PATH_MAX bytes. You must find the value of this constant inside the standard C > > header files. > > > > SizeOf(gb.String) is 4 (on 32 bits system). It is the number of bytes used by > > Gambas to store a pointer to a Gambas string. This is the reason why you get a > > crash. > > > > Regards, > > > -- Regards, Demosthenes From demosthenesk at ...626... Mon Jan 10 00:59:06 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 10 Jan 2011 01:59:06 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 In-Reply-To: <1294617286.7535.11.camel@...2494...> References: <1294502974.10206.1.camel@...2493...> <1294601360.4599.1.camel@...2494...> <201101092137.25209.gambas@...1...> <1294615001.6613.25.camel@...2494...> <1294617286.7535.11.camel@...2494...> Message-ID: <1294617546.7535.12.camel@...2494...> i attach the Projects in case you want to see them. On Mon, 2011-01-10 at 01:54 +0200, Demosthenes Koptsis wrote: > so i manage to make it work... > > i saw an example that said to use PATH_MAX+1 > https://buildsecurityin.us-cert.gov/bsi/articles/knowledge/coding/760-BSI.html > > so i did > > Example 1) ---------------------- > ' Gambas module file > 'char *getcwd(char *buf, size_t size); > Extern getcwd(buf As Pointer, size As Integer) As Pointer In "libc:6" > > Public Sub Main() > > Dim pFunc As Pointer > Dim pBuf As Pointer > Dim sWorkingDirectory As String > > 'getcwd > pFunc = Alloc(4097) > pBuf = Alloc(4097) > > pFunc = getcwd(pBuf, 4097) > > sWorkingDirectory = Str@(pFunc) > Print sWorkingDirectory > Free(pFunc) > ' Free(pBuf) > Print sWorkingDirectory > > End > ---------------------- > > a) note in 1st example that > Print sWorkingDirectory > Free(pFunc) > Print sWorkingDirectory > > first print gives the correct output > /home/user/Documents/Development/Gambas3/Pointers7 > > and the second after Free(pFunc) gives this > ?s&^@^@^@^@^@^@^@^@^@ocuments/Development/Gambas3/Pointers7 > > b) if i use Free(pBuf) > i get signal #6 > and > *** glibc detected *** Pointers7: double free or corruption (!prev): > 0x087c94c0 *** > > Example 2 -------------------- > ' Gambas module file > 'char *get_current_dir_name(void); > Extern get_current_dir_name() As Pointer In "libc:6" > > Public Sub Main() > > Dim pFunc As Pointer > Dim sWorkingDirectory As String > > 'get_current_dir_name > pFunc = Alloc(4097) > > pFunc = get_current_dir_name() > > sWorkingDirectory = Str@(pFunc) > Print sWorkingDirectory > Free(pFunc) > > End > ----------------------- > here i get correct results > but if i use Free(pFunc) i get signal #11 > > > > Example 3 --------------------------- > ' Gambas module file > ' Gambas module file > 'char *getwd(char *buf); > Extern getwd(buf As Pointer) As Pointer In "libc:6" > > Public Sub Main() > > Dim pBuf As Pointer > Dim pFunc As Pointer > Dim sWorkingDirectory As String > > 'getwd > pBuf = Alloc(4097) > pFunc = Alloc(4097) > > pFunc = getwd(pBuf) > > sWorkingDirectory = Str@(pFunc) > ' Free(pBuf) > Print sWorkingDirectory > Free(pFunc) > Print sWorkingDirectory > > End > -------------------------- > > here the same with example1. > Free(pBuf) > Free(pFunc) > raises both signal #6 > and > *** glibc detected *** Pointers5: double free or corruption (!prev): > 0x09b0e4a8 *** > > also > Print sWorkingDirectory > Free(pFunc) > Print sWorkingDirectory > > first Print is correct > second after Free is not correct > > /home/user/Documents/Development/Gambas3/Pointers5 > ?s&^@^@^@^@^@^@^@^@^@ocuments/Development/Gambas3/Pointers5 > > > > On Mon, 2011-01-10 at 01:16 +0200, Demosthenes Koptsis wrote: > > 1) Ok, i found why this function is dangerous. > > https://buildsecurityin.us-cert.gov/bsi/articles/knowledge/coding/760-BSI.html > > "Since the user cannot specify the length of the buffer passed to > > getwd(), use of this function is discouraged. The length of a pathname > > described in {PATH_MAX} is file system-dependent and may vary from one > > mount point to another, or might even be unlimited. It is possible to > > overflow this buffer in such a way as to cause applications to fail or > > possible system security violations." > > > > But here i make a test no real life project. > > > > 2) So, i found in /usr/include/linux/limits.h > > Line Number: 12 > > #define PATH_MAX 4096 /* # chars in a path name including nul */ > > > > is this the value? > > > > i tried this value in my example with no success, i make somewhere else > > the mistake. > > > > --------------- > > ' Gambas module file > > ' Gambas module file > > 'char *getwd(char *buf); > > Extern getwd(buf As Pointer) As Pointer In "libc:6" > > > > Public Sub Main() > > > > Dim pBuf As Pointer > > Dim pFunc As Pointer > > Dim sWorkingDirectory As String > > > > 'getwd > > pBuf = Alloc(4096) > > pFunc = Alloc(4096) > > > > pFunc = getwd(pBuf) > > > > sWorkingDirectory = Str@(pFunc) > > Free(pFunc) > > Free(pBuf) > > Print sWorkingDirectory > > > > End > > --------------- > > > > signal #6 > > > > ---------------- > > *** glibc detected *** Pointers5: double free or corruption (!prev): > > 0x0893f498 *** > > ======= Backtrace: ========= > > /lib/tls/i686/cmov/libc.so.6(+0x6b591)[0x17b591] > > /lib/tls/i686/cmov/libc.so.6(+0x6cde8)[0x17cde8] > > /lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0x17fecd] > > Pointers5[0x805ed2e] > > Pointers5[0x8076a6a] > > Pointers5[0x8050a99] > > Pointers5[0x80513d8] > > Pointers5[0x80689cd] > > /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x126bd6] > > Pointers5[0x804b151] > > ======= Memory map: ======== > > 00110000-00263000 r-xp 00000000 08:04 > > 2019753 /lib/tls/i686/cmov/libc-2.11.1.so > > 00263000-00264000 ---p 00153000 08:04 > > 2019753 /lib/tls/i686/cmov/libc-2.11.1.so > > 00264000-00266000 r--p 00153000 08:04 > > 2019753 /lib/tls/i686/cmov/libc-2.11.1.so > > 00266000-00267000 rw-p 00155000 08:04 > > 2019753 /lib/tls/i686/cmov/libc-2.11.1.so > > 00267000-0026a000 rw-p 00000000 00:00 0 > > 00428000-00438000 r-xp 00000000 08:04 > > 1906544 /usr/local/lib/gambas3/gb.eval.so.0.0.0 > > 00438000-00439000 r--p 0000f000 08:04 > > 1906544 /usr/local/lib/gambas3/gb.eval.so.0.0.0 > > 00439000-0043b000 rw-p 00010000 08:04 > > 1906544 /usr/local/lib/gambas3/gb.eval.so.0.0.0 > > 0043b000-0043c000 rw-p 00000000 00:00 0 > > 0046e000-0046f000 r-xp 00000000 00:00 0 [vdso] > > 006c9000-006ce000 r-xp 00000000 08:04 > > 688690 /usr/lib/libffi.so.5.0.10 > > 006ce000-006cf000 ---p 00005000 08:04 > > 688690 /usr/lib/libffi.so.5.0.10 > > 006cf000-006d0000 r--p 00005000 08:04 > > 688690 /usr/lib/libffi.so.5.0.10 > > 006d0000-006d1000 rw-p 00006000 08:04 > > 688690 /usr/lib/libffi.so.5.0.10 > > 00739000-0075d000 r-xp 00000000 08:04 > > 2019761 /lib/tls/i686/cmov/libm-2.11.1.so > > 0075d000-0075e000 r--p 00023000 08:04 > > 2019761 /lib/tls/i686/cmov/libm-2.11.1.so > > 0075e000-0075f000 rw-p 00024000 08:04 > > 2019761 /lib/tls/i686/cmov/libm-2.11.1.so > > 00aa5000-00ac2000 r-xp 00000000 08:04 1995027 /lib/libgcc_s.so.1 > > 00ac2000-00ac3000 r--p 0001c000 08:04 1995027 /lib/libgcc_s.so.1 > > 00ac3000-00ac4000 rw-p 0001d000 08:04 1995027 /lib/libgcc_s.so.1 > > 00bca000-00bcc000 r-xp 00000000 08:04 > > 2019759 /lib/tls/i686/cmov/libdl-2.11.1.so > > 00bcc000-00bcd000 r--p 00001000 08:04 > > 2019759 /lib/tls/i686/cmov/libdl-2.11.1.so > > 00bcd000-00bce000 rw-p 00002000 08:04 > > 2019759 /lib/tls/i686/cmov/libdl-2.11.1.so > > 00c25000-00c3a000 r-xp 00000000 08:04 > > 2019772 /lib/tls/i686/cmov/libpthread-2.11.1.so > > 00c3a000-00c3b000 r--p 00014000 08:04 > > 2019772 /lib/tls/i686/cmov/libpthread-2.11.1.so > > 00c3b000-00c3c000 rw-p 00015000 08:04 > > 2019772 /lib/tls/i686/cmov/libpthread-2.11.1.so > > 00c3c000-00c3e000 rw-p 00000000 00:00 0 > > 00dc3000-00dc7000 r-xp 00000000 08:04 > > 1906676 /usr/local/lib/gambas3/gb.debug.so.0.0.0 > > 00dc7000-00dc8000 r--p 00003000 08:04 > > 1906676 /usr/local/lib/gambas3/gb.debug.so.0.0.0 > > 00dc8000-00dc9000 rw-p 00004000 08:04 > > 1906676 /usr/local/lib/gambas3/gb.debug.so.0.0.0 > > 00eeb000-00f06000 r-xp 00000000 08:04 1996732 /lib/ld-2.11.1.so > > 00f06000-00f07000 r--p 0001a000 08:04 1996732 /lib/ld-2.11.1.so > > 00f07000-00f08000 rw-p 0001b000 08:04 1996732 /lib/ld-2.11.1.so > > 08048000-0807e000 r-xp 00000000 08:04 1785292 /usr/local/bin/gbx3 > > 0807e000-0807f000 r--p 00035000 08:04 1785292 /usr/local/bin/gbx3 > > 0807f000-08084000 rw-p 00036000 08:04 1785292 /usr/local/bin/gbx3 > > 08084000-08086000 rw-p 00000000 00:00 0 > > 08932000-08953000 rw-p 00000000 00:00 0 [heap] > > b7500000-b7521000 rw-p 00000000 00:00 0 > > b7521000-b7600000 ---p 00000000 00:00 0 > > b768a000-b76c9000 r--p 00000000 08:04 > > 737484 /usr/lib/locale/en_US.utf8/LC_CTYPE > > b76c9000-b77e7000 r--p 00000000 08:04 > > 737483 /usr/lib/locale/en_US.utf8/LC_COLLATE > > b77e7000-b77e9000 rw-p 00000000 00:00 0 > > b77f1000-b77f2000 r--p 00000000 08:04 > > 737500 /usr/lib/locale/en_US.utf8/LC_NUMERIC > > b77f2000-b77f3000 r--p 00000000 08:04 > > 735917 /usr/lib/locale/en_US.utf8/LC_TIME > > b77f3000-b77f4000 r--p 00000000 08:04 > > 735918 /usr/lib/locale/en_US.utf8/LC_MONETARY > > b77f4000-b77f5000 r--p 00000000 08:04 > > 752258 /usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES > > b77f5000-b77f6000 r--p 00000000 08:04 > > 737523 /usr/lib/locale/en_US.utf8/LC_PAPER > > b77f6000-b77f7000 r--p 00000000 08:04 > > 737455 /usr/lib/locale/en_US.utf8/LC_NAME > > b77f7000-b77f8000 r--p 00000000 08:04 > > 735919 /usr/lib/locale/en_US.utf8/LC_ADDRESS > > b77f8000-b77f9000 r--p 00000000 08:04 > > 735920 /usr/lib/locale/en_US.utf8/LC_TELEPHONE > > b77f9000-b77fa000 r--p 00000000 08:04 > > 737398 /usr/lib/locale/en_US.utf8/LC_MEASUREMENT > > b77fa000-b7801000 r--s 00000000 08:04 > > 1619066 /usr/lib/gconv/gconv-modules.cache > > b7801000-b7802000 r--p 00000000 08:04 > > 735921 /usr/lib/locale/en_US.utf8/LC_IDENTIFICATION > > b7802000-b7806000 rw-p 00000000 00:00 0 > > bfa53000-bfa68000 rw-p 00000000 00:00 0 [stack] > > > > ---------------- > > > > i saw that the first line says > > *** glibc detected *** Pointers5: double free or corruption (!prev) > > > > and i rem the one Free(). > > > > now i get > > -------------- > > gbx3: warning: 1 allocation(s) non freed. > > > > ??m^@^@^@^@^@^@^@^@^@ocuments/Development/Gambas3/Pointers5 > > -------------- > > > > but no crash. > > > > i played with the values of Alloc and i found that in my case a 29 bytes > > are ok but with one Free() or else i get signal #11. > > > > is there a bug with > > Free(pBuf) > > Free(pFunc) > > ? > > > > 3) On the other hand, i have a general question. > > How to deal with char *pointers when their length is not known? > > > > 4) For example i try to use > > 'char *get_current_dir_name(void); > > Extern get_current_dir_name() As Pointer In "libc:6" > > > > again with no success. > > > > in manuall says: > > get_current_dir_name() will malloc(3) an array big enough to hold the > > absolute pathname of the current working directory. > > > > in my example: > > > > --------------------- > > ' Gambas module file > > 'char *get_current_dir_name(void); > > Extern get_current_dir_name() As Pointer In "libc:6" > > > > Public Sub Main() > > > > Dim pFunc As Pointer > > Dim sWorkingDirectory As String > > > > 'get_current_dir_name > > pFunc = Alloc(4096) > > > > pFunc = get_current_dir_name() > > > > sWorkingDirectory = Str@(pFunc) > > ' Free(pFunc) > > Print sWorkingDirectory > > > > > > End > > --------------------- > > > > if i use > > Free(pFunc) > > > > i get signal #11 > > > > gambas3-svn3418, ubuntu 10.04 > > > > > > On Sun, 2011-01-09 at 21:37 +0100, Beno?t Minisini wrote: > > > > so what can i do for > > > > > > > > char *getwd(char *buf); > > > > > > > > ? > > > > > > > > > > You must know C programming first, and understand how getwd works. By typing > > > 'man getwd', you will learn that you must not use that function, it is > > > dangerous and so deprecated. > > > > > > Then you will read that buf must be a pointer to a memory allocation of > > > PATH_MAX bytes. You must find the value of this constant inside the standard C > > > header files. > > > > > > SizeOf(gb.String) is 4 (on 32 bits system). It is the number of bytes used by > > > Gambas to store a pointer to a Gambas string. This is the reason why you get a > > > crash. > > > > > > Regards, > > > > > > -- Regards, Demosthenes -------------- next part -------------- A non-text attachment was scrubbed... Name: Pointers.tar.bz2 Type: application/x-bzip-compressed-tar Size: 6894 bytes Desc: not available URL: From rterry at ...1946... Mon Jan 10 02:08:32 2011 From: rterry at ...1946... (richard terry) Date: Mon, 10 Jan 2011 12:08:32 +1100 Subject: [Gambas-user] Gui question = menu shadow left on screen after click In-Reply-To: <201101092204.26240.gambas@...1...> References: <201101091939.44372.rterry@...1946...> <201101092204.26240.gambas@...1...> Message-ID: <201101101208.32355.rterry@...1946...> On Monday 10 January 2011 08:04:26 Beno?t Minisini wrote: > > Hi list > > > > Enclosed is picture - when I click on a menu item, and the code > > attatched to a menu item > > "attached" how ? Where ? > to explain further Menu may have several items: -- display result -- delete document -- display audit trail etc. I've quickly made this code up to illustrate: public sub mnu_click() Select case last.tag case "show result" Webbrowser1.html = shtml case "delete" case "audit trail" Audit_Trail_Show() End select end Public sub Audit_Trail_Show() ... do lots of stuff in here ... eg. > database queries ... prepare html .. show in webview etc end Now, because say show result is really quick, the code executes, the spot on the screen where the menu wndow was is removed by gambas or whatever and no shadow appears The code under Audit_Trail_Show() is alot slower, and it seems to be executed first completely, before gambas decides to refresh the screen area where the menu was occupying, so that a gray area remains on the screen as per the picture until the screen is refreshed, which seems to take place after the Audit_Trail_Show occurs. Does that make more sense? rEgards Richard From jussi.lahtinen at ...626... Mon Jan 10 20:16:16 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 10 Jan 2011 21:16:16 +0200 Subject: [Gambas-user] Another crash. In-Reply-To: References: <201101090114.40239.gambas@...1...> <201101092133.06090.gambas@...1...> Message-ID: OK, "LANG=fr_FR.utf8 gbx3" solved this problem. I though I already tried it, but apparently I didn't. But now I got GambasTester fixed. I hope it is really usable now. Jussi P.S. Still few commands untested. On Sun, Jan 9, 2011 at 23:48, Jussi Lahtinen wrote: > Hmmm... I installed all packages for French that I found, but still: > $ LANG=fr_FR gbx3 > gbx3: warning: cannot switch to language '(null)'. Did you install the > corresponding locale packages? > > (process:9277): Gtk-WARNING **: Locale not supported by C library. > Using the fallback 'C' locale. > > > Suggestions? > > Jussi > > > 2011/1/9 Beno?t Minisini > >> > I wonder what would be best way to test different localizations... do I >> >> > need to install all the language packages? >> > Or possibly just some component of language package? >> > >> > Jussi >> > >> >> You must install the support for the locale you want your Gambas program >> to >> use. >> >> For example, if you want to run a Gambas program in spanish, you must >> install >> the spanish glibc locale support. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Gaining the trust of online customers is vital for the success of any >> company >> that requires sensitive data to be transmitted over the Web. Learn how >> to >> best implement a security strategy that keeps consumers' information >> secure >> and instills the confidence they need to proceed with transactions. >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> 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: GambasTester-0.9.17.tar.gz Type: application/x-gzip Size: 14887 bytes Desc: not available URL: From jussi.lahtinen at ...626... Mon Jan 10 20:54:12 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 10 Jan 2011 21:54:12 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 In-Reply-To: <1294617286.7535.11.camel@...2494...> References: <1294502974.10206.1.camel@...2493...> <1294601360.4599.1.camel@...2494...> <201101092137.25209.gambas@...1...> <1294615001.6613.25.camel@...2494...> <1294617286.7535.11.camel@...2494...> Message-ID: > > first print gives the correct output > /home/user/Documents/Development/Gambas3/Pointers7 > > and the second after Free(pFunc) gives this > ?s&^@^@^@^@^@^@^@^@^@ocuments/Development/Gambas3/Pointers7 > This has something to do how strings are handled in Gambas, I don't think this is bug. Some lines of simplified example code and explanation: Dim pPointer As Pointer Dim hMemory As Stream Dim s As String pPointer = Alloc(4) ' Alloc for four characters, last one means 'end of string'. hMemory = Memory pPointer For Write Write #hMemory, Asc("a") As Byte Write #hMemory, Asc("b") As Byte Write #hMemory, Asc("c") As Byte Write #hMemory, Asc("\0") As Byte s = Str@(pPointer) ' This associates address to variable. Ie, in address pPointer is content of this string. Print s ' This will print out; "abc" Seek #hMemory, 0 Write #hMemory, Asc("x") As Byte ' These two lines will access to address pPointer and change first character in there. Print s ' Therefore string changes to "xbc". Variable 's' is just representation of content in some (in this case pPointer) address. > > b) if i use Free(pBuf) > i get signal #6 > I don't think this should happen... Benoit? > here i get correct results > but if i use Free(pFunc) i get signal #11 > This shouldn't happen, it is bug. However I couldn't reproduce it with Gambas 3 rev 3451, but I got signal 6 from it. Jussi From jussi.lahtinen at ...626... Mon Jan 10 20:58:18 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 10 Jan 2011 21:58:18 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 In-Reply-To: References: <1294502974.10206.1.camel@...2493...> <1294601360.4599.1.camel@...2494...> <201101092137.25209.gambas@...1...> <1294615001.6613.25.camel@...2494...> <1294617286.7535.11.camel@...2494...> Message-ID: Oh, I forgot to mention, that when you do "Free(pPointer)", Gambas doesn't occupy that memory address for you anymore. And therefore some other process can write something to it, and result is not necessarily human readable. Jussi On Mon, Jan 10, 2011 at 21:54, Jussi Lahtinen wrote: > > >> first print gives the correct output >> /home/user/Documents/Development/Gambas3/Pointers7 >> >> and the second after Free(pFunc) gives this >> ?s&^@^@^@^@^@^@^@^@^@ocuments/Development/Gambas3/Pointers7 >> > > > This has something to do how strings are handled in Gambas, I don't think > this is bug. > > Some lines of simplified example code and explanation: > > Dim pPointer As Pointer > Dim hMemory As Stream > Dim s As String > > pPointer = Alloc(4) ' Alloc for four characters, last one means 'end of > string'. > hMemory = Memory pPointer For Write > Write #hMemory, Asc("a") As Byte > Write #hMemory, Asc("b") As Byte > Write #hMemory, Asc("c") As Byte > Write #hMemory, Asc("\0") As Byte > > s = Str@(pPointer) ' This associates address to variable. Ie, in address > pPointer is content of this string. > > Print s ' This will print out; "abc" > > Seek #hMemory, 0 > Write #hMemory, Asc("x") As Byte ' These two lines will access to address > pPointer and change first character in there. > > Print s ' Therefore string changes to "xbc". Variable 's' is just > representation of content in some (in this case pPointer) address. > > > > >> >> b) if i use Free(pBuf) >> i get signal #6 >> > > I don't think this should happen... Benoit? > > > > >> here i get correct results >> but if i use Free(pFunc) i get signal #11 >> > > This shouldn't happen, it is bug. > However I couldn't reproduce it with Gambas 3 rev 3451, > but I got signal 6 from it. > > > Jussi > > From demosthenesk at ...626... Mon Jan 10 22:05:55 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 10 Jan 2011 23:05:55 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 In-Reply-To: References: <1294502974.10206.1.camel@...2493...> <1294601360.4599.1.camel@...2494...> <201101092137.25209.gambas@...1...> <1294615001.6613.25.camel@...2494...> <1294617286.7535.11.camel@...2494...> Message-ID: <1294693555.4768.29.camel@...2494...> On Mon, 2011-01-10 at 21:58 +0200, Jussi Lahtinen wrote: > Oh, I forgot to mention, that when you do "Free(pPointer)", Gambas doesn't > occupy that memory address for you anymore. > And therefore some other process can write something to it, and result is > not necessarily human readable. > > Jussi > Ok, understood. But i have put the contents of memory address to a variable. sWorkingDirectory = Str@(pFunc) if i free pFunc why variable sWorkingDirectory is affected? if this is happend i must know it, so to use variables before free any pointer. > > On Mon, Jan 10, 2011 at 21:54, Jussi Lahtinen wrote: > > > > > > >> first print gives the correct output > >> /home/user/Documents/Development/Gambas3/Pointers7 > >> > >> and the second after Free(pFunc) gives this > >> ?s&^@^@^@^@^@^@^@^@^@ocuments/Development/Gambas3/Pointers7 > >> > > > > > > This has something to do how strings are handled in Gambas, I don't think > > this is bug. > > > > Some lines of simplified example code and explanation: > > > > Dim pPointer As Pointer > > Dim hMemory As Stream > > Dim s As String > > > > pPointer = Alloc(4) ' Alloc for four characters, last one means 'end of > > string'. > > hMemory = Memory pPointer For Write > > Write #hMemory, Asc("a") As Byte > > Write #hMemory, Asc("b") As Byte > > Write #hMemory, Asc("c") As Byte > > Write #hMemory, Asc("\0") As Byte > > > > s = Str@(pPointer) ' This associates address to variable. Ie, in address > > pPointer is content of this string. > > > > Print s ' This will print out; "abc" > > > > Seek #hMemory, 0 > > Write #hMemory, Asc("x") As Byte ' These two lines will access to address > > pPointer and change first character in there. > > > > Print s ' Therefore string changes to "xbc". Variable 's' is just > > representation of content in some (in this case pPointer) address. > > Yes this is happens! This is behaved like s variable acts as a pointer to pPointer. As it beahaves seems s is linked with pPointer. I think that s should not point to pPointer but copy its value to s variable. Result = String@ ( Pointer AS Pointer ) Result i think is a value, so this value is assigned to s var. After assignation s has a value and should not change it if i Free a pointer. If i write to pPointer or Free it, the s var is placed in other adress normally in RAM. As i understand the case, pPointer = Alloc(4) allocate a memory address1 Dim s as string allocate a memory address2 if i use s=Str@(pPointer) this means address1=adress2 ? s holds a value, Str@(pPointer) returns a value not its address and should not be linked s by addresses as pointers Am i wrong? For now i will upgrade Gambas to latest revision and try again. > > > > > >> > >> b) if i use Free(pBuf) > >> i get signal #6 > >> > > > > I don't think this should happen... Benoit? > > > > > > > > > >> here i get correct results > >> but if i use Free(pFunc) i get signal #11 > >> > > > > This shouldn't happen, it is bug. > > However I couldn't reproduce it with Gambas 3 rev 3451, > > but I got signal 6 from it. > > > > > > Jussi > > > > > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes From gambas at ...2524... Mon Jan 10 22:42:41 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 10 Jan 2011 21:42:41 +0000 Subject: [Gambas-user] Issue 9 in gambas: expanding a treeview item does not move the internal cursor Message-ID: <0-6813199134517018827-7364263139078494543-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any New issue 9 by dominika... at ...2122...: expanding a treeview item does not move the internal cursor http://code.google.com/p/gambas/issues/detail?id=9 Usign gb.gtk TreeView with 2 expandable items: Public Sub FrmTreeView_Expand() Message(FrmTreeView.Current.key) End Message always show the key of the last clicked (not the expanded) item, if expanded with double click, it works. [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.32-27-generic DistributionVendor=Ubuntu DistributionRelease="Ubuntu 10.04.1 LTS" [System] CPUArchitecture=i686 TotalRam=1026420 kB [Gambas] Gambas1=Not Installed Gambas2=Not Installed Gambas3=2.99.0 Gambas3Path=/usr/local/bin/gbx3 From demosthenesk at ...626... Mon Jan 10 23:26:46 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 11 Jan 2011 00:26:46 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 In-Reply-To: <1294693555.4768.29.camel@...2494...> References: <1294502974.10206.1.camel@...2493...> <1294601360.4599.1.camel@...2494...> <201101092137.25209.gambas@...1...> <1294615001.6613.25.camel@...2494...> <1294617286.7535.11.camel@...2494...> <1294693555.4768.29.camel@...2494...> Message-ID: <1294698406.9166.2.camel@...2494...> i made some examples in c++ and i get the same behavior when i free a pointer the variable that holds its value is unusable. ok, sorry i must study about pointers i think i mixed up some things in the last post... sorry On Mon, 2011-01-10 at 23:05 +0200, Demosthenes Koptsis wrote: > On Mon, 2011-01-10 at 21:58 +0200, Jussi Lahtinen wrote: > > Oh, I forgot to mention, that when you do "Free(pPointer)", Gambas doesn't > > occupy that memory address for you anymore. > > And therefore some other process can write something to it, and result is > > not necessarily human readable. > > > > Jussi > > > > Ok, understood. > But i have put the contents of memory address to a variable. > > sWorkingDirectory = Str@(pFunc) > > if i free pFunc why variable sWorkingDirectory is affected? > > if this is happend i must know it, so to use variables before free any > pointer. > > > > > > On Mon, Jan 10, 2011 at 21:54, Jussi Lahtinen wrote: > > > > > > > > > > >> first print gives the correct output > > >> /home/user/Documents/Development/Gambas3/Pointers7 > > >> > > >> and the second after Free(pFunc) gives this > > >> ?s&^@^@^@^@^@^@^@^@^@ocuments/Development/Gambas3/Pointers7 > > >> > > > > > > > > > This has something to do how strings are handled in Gambas, I don't think > > > this is bug. > > > > > > Some lines of simplified example code and explanation: > > > > > > Dim pPointer As Pointer > > > Dim hMemory As Stream > > > Dim s As String > > > > > > pPointer = Alloc(4) ' Alloc for four characters, last one means 'end of > > > string'. > > > hMemory = Memory pPointer For Write > > > Write #hMemory, Asc("a") As Byte > > > Write #hMemory, Asc("b") As Byte > > > Write #hMemory, Asc("c") As Byte > > > Write #hMemory, Asc("\0") As Byte > > > > > > s = Str@(pPointer) ' This associates address to variable. Ie, in address > > > pPointer is content of this string. > > > > > > Print s ' This will print out; "abc" > > > > > > Seek #hMemory, 0 > > > Write #hMemory, Asc("x") As Byte ' These two lines will access to address > > > pPointer and change first character in there. > > > > > > Print s ' Therefore string changes to "xbc". Variable 's' is just > > > representation of content in some (in this case pPointer) address. > > > > > Yes this is happens! > > This is behaved like s variable acts as a pointer to pPointer. > As it beahaves seems s is linked with pPointer. > I think that s should not point to pPointer but copy its value to s > variable. > > Result = String@ ( Pointer AS Pointer ) > > Result i think is a value, so this value is assigned to s var. > After assignation s has a value and should not change it if i Free a > pointer. > > If i write to pPointer or Free it, the s var is placed in other adress > normally in RAM. > > As i understand the case, > > pPointer = Alloc(4) allocate a memory address1 > Dim s as string allocate a memory address2 > > if i use > s=Str@(pPointer) > > this means > address1=adress2 ? > > s holds a value, Str@(pPointer) returns a value not its address and > should not be linked s by addresses as pointers > > Am i wrong? > > > For now i will upgrade Gambas to latest revision and try again. > > > > > > > > >> > > >> b) if i use Free(pBuf) > > >> i get signal #6 > > >> > > > > > > I don't think this should happen... Benoit? > > > > > > > > > > > > > > >> here i get correct results > > >> but if i use Free(pFunc) i get signal #11 > > >> > > > > > > This shouldn't happen, it is bug. > > > However I couldn't reproduce it with Gambas 3 rev 3451, > > > but I got signal 6 from it. > > > > > > > > > Jussi > > > > > > > > ------------------------------------------------------------------------------ > > Gaining the trust of online customers is vital for the success of any company > > that requires sensitive data to be transmitted over the Web. Learn how to > > best implement a security strategy that keeps consumers' information secure > > and instills the confidence they need to proceed with transactions. > > http://p.sf.net/sfu/oracle-sfdevnl > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Regards, Demosthenes From gambas at ...1... Mon Jan 10 23:57:14 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 10 Jan 2011 23:57:14 +0100 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] In-Reply-To: <1294602865.4599.18.camel@...2494...> References: <1294502974.10206.1.camel@...2493...> <1294602865.4599.18.camel@...2494...> Message-ID: <201101102357.14939.gambas@...1...> > This is what is said here > http://gambasdoc.org/help/howto/extern?v3 > "More On Pointers" > READ #mypointer, var1_4byte > mypointer += 4 > READ #mypointer, var2_4byte > > > i tried > Print "\nRead the pointer" > Print "Integer read:"; Integer@(pPointer) > pPointer += 4 > Print "Float read:"; Float@(pPointer) > > But this raises an error, "Type mismatch, wanted number get pointer > instead" Is this a bug? > I have implemented pointer arithmetic in revision #3452, so you should not have that error anymore. Regards, -- Beno?t Minisini From demosthenesk at ...626... Tue Jan 11 00:07:23 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 11 Jan 2011 01:07:23 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] In-Reply-To: <201101102357.14939.gambas@...1...> References: <1294502974.10206.1.camel@...2493...> <1294602865.4599.18.camel@...2494...> <201101102357.14939.gambas@...1...> Message-ID: <1294700843.2090.1.camel@...2494...> That's nice! I ll test again tomorrow. On Mon, 2011-01-10 at 23:57 +0100, Beno?t Minisini wrote: > > This is what is said here > > http://gambasdoc.org/help/howto/extern?v3 > > "More On Pointers" > > READ #mypointer, var1_4byte > > mypointer += 4 > > READ #mypointer, var2_4byte > > > > > > i tried > > Print "\nRead the pointer" > > Print "Integer read:"; Integer@(pPointer) > > pPointer += 4 > > Print "Float read:"; Float@(pPointer) > > > > But this raises an error, "Type mismatch, wanted number get pointer > > instead" Is this a bug? > > > > I have implemented pointer arithmetic in revision #3452, so you should not > have that error anymore. > > Regards, > -- Regards, Demosthenes From gambas at ...2524... Tue Jan 11 02:22:56 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 11 Jan 2011 01:22:56 +0000 Subject: [Gambas-user] Issue 10 in gambas: image transparency works in Qt but not GTK+ Message-ID: <0-6813199134517018827-18386256488694340998-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any New issue 10 by zachsmith022: image transparency works in Qt but not GTK+ http://code.google.com/p/gambas/issues/detail?id=10 1) Run the code (borrowed from Gambas About dialog) to see that image image transparency works in Qt but not GTK+. 2) Version: TRUNK r3439 Operating system: Linux Distribution: ArchLinux Architecture: x86_64 GUI component: GTK+ Desktop used: Xfce Attachments: Transparency-0.0.1.tar.gz 4.6 KB From eilert-sprachen at ...221... Tue Jan 11 08:37:17 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 11 Jan 2011 08:37:17 +0100 Subject: [Gambas-user] Little editor "feature" in Gambas2 Message-ID: <4D2C08AD.7020303@...221...> Moin, Just found this one, don't know if it's been removed in Gambas3. When I define several arrays of strings on one line within a SUB, later the names are recognized. Example: DIM sMyStrings1, sMyStrings2 AS NEW String[] Then type sMyStrings1. and the list with "Add, Bounds, Clear..." will appear. However, if I define the arrays outside the SUBs for public use, they will be recognized only if defined solely one by one on a separate line each, i. e. PUBLIC sMyStrings1, sMyStrings2 AS NEW String[] then within a SUB type sMyStrings1. and nothing happens, but if I do PUBLIC sMyStrings1 AS NEW String[] PUBLIC sMyStrings2 AS NEW String[] they are recognized. Or am I doing something false here the interpreter will understand wrong? Regards Rolf From ivan-kern at ...308... Tue Jan 11 09:02:23 2011 From: ivan-kern at ...308... (ivan-kern at ...308...) Date: Tue, 11 Jan 2011 09:02:23 +0100 Subject: [Gambas-user] Menu.Picture Message-ID: Hi,?It seems to be possible to add a?picture to menu, but it? works only with sub-menu.The?top-menu shows no picture. Gambas2 Rev. 3439Ubuntu 10.04GTK+ ?RegardsIvan --- Exklusiv: Neue E-Mail-Adresse @iPhone.de jetzt verf?gbar! Sichern Sie sich jetzt ihre pers?nliche E-Mail-Adresse at ...2527... From joe1962 at ...626... Tue Jan 11 09:04:00 2011 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Tue, 11 Jan 2011 03:04:00 -0500 Subject: [Gambas-user] Gambas bug tracker In-Reply-To: <201101021428.59806.gambas@...1...> References: <201101021428.59806.gambas@...1...> Message-ID: On 1/2/11, Beno?t Minisini wrote: > > Now, from the website, you can go to the new Gambas bug tracker located on > code.google.com. > > I'd like to have a bug tracker written in Gambas, but for now, let's use the > Google one. > Too bad google code has been blocking my country for some time now. Oh well... Regards, Joe1962 From gambas at ...1... Tue Jan 11 10:41:52 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 11 Jan 2011 10:41:52 +0100 Subject: [Gambas-user] Gambas bug tracker In-Reply-To: References: <201101021428.59806.gambas@...1...> Message-ID: <201101111041.52057.gambas@...1...> > On 1/2/11, Beno?t Minisini wrote: > > Now, from the website, you can go to the new Gambas bug tracker located > > on code.google.com. > > > > I'd like to have a bug tracker written in Gambas, but for now, let's use > > the Google one. > > Too bad google code has been blocking my country for some time now. Oh > well... > > Regards, > Joe1962 > Really? What is your country? -- Beno?t Minisini From rterry at ...1946... Tue Jan 11 10:50:02 2011 From: rterry at ...1946... (richard terry) Date: Tue, 11 Jan 2011 20:50:02 +1100 Subject: [Gambas-user] Menu name in toolbox disappearing Message-ID: <201101112050.02648.rterry@...1946...> Hi Benoit, I've mentioned this before and got no response, though I know how busy you are, its not critical as I can edit the form definition and fix it. In some situations, (if one accidently deletes the property menu of a menubutton in the toolbox, seems often one can't get it back, despite the menu still being there. I've taken to manually editing the form file, as below: { HBox4 HBox MoveScaled(21,-1,29,3) Background = &HFFFFFF& Padding = 1 { MenuButton1 MenuButton MoveScaled(4,0,21,3) Expand = True Text = ("Health Issue") Menu = "mnuHealthIssues" } } Here, to re-link Menu to mnuHealthIssues. Regards Richard From gambas at ...2524... Tue Jan 11 11:00:45 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 11 Jan 2011 10:00:45 +0000 Subject: [Gambas-user] Issue 10 in gambas: image transparency works in Qt but not GTK+ In-Reply-To: <0-6813199134517018827-18386256488694340998-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-18386256488694340998-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-18386256488694340998-gambas=googlecode.com@...2524...> Updates: Status: WontFix Labels: -Version Version-TRUNK GUI-GTK Comment #1 on issue 10 by benoit.minisini: image transparency works in Qt but not GTK+ http://code.google.com/p/gambas/issues/detail?id=10 gb.gtk controls always have a background at the moment, so even if its Picture has an alpha channel, a PictureBox control is always opaque. From gambas at ...2524... Tue Jan 11 11:04:45 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 11 Jan 2011 10:04:45 +0000 Subject: [Gambas-user] Issue 9 in gambas: expanding a treeview item does not move the internal cursor In-Reply-To: <0-6813199134517018827-7364263139078494543-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-7364263139078494543-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-7364263139078494543-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-TRUNK GUI-GTK Comment #1 on issue 9 by benoit.minisini: expanding a treeview item does not move the internal cursor http://code.google.com/p/gambas/issues/detail?id=9 Are you sure? The internal cursor is returned by FrmTreeView.Item. FrmTreeView.Current returns the current item. Have you looked at the TreeView example? From gambas at ...2524... Tue Jan 11 11:08:52 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 11 Jan 2011 10:08:52 +0000 Subject: [Gambas-user] Issue 8 in gambas: GTK+ label is visible when visible=false and autoresize=true In-Reply-To: <0-6813199134517018827-7816974949307265558-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-7816974949307265558-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-7816974949307265558-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK GUI-GTK Comment #1 on issue 8 by benoit.minisini: GTK+ label is visible when visible=false and autoresize=true http://code.google.com/p/gambas/issues/detail?id=8 (No comment was entered for this change.) From gambas at ...2524... Tue Jan 11 11:12:52 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 11 Jan 2011 10:12:52 +0000 Subject: [Gambas-user] Issue 6 in gambas: signal #11 with Gtk+ In-Reply-To: <8-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> References: <8-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> <0-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Message-ID: <9-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Updates: Status: Accepted Comment #9 on issue 6 by benoit.minisini: signal #11 with Gtk+ http://code.google.com/p/gambas/issues/detail?id=6 It's a pity, as the bug is there yet. You should have kept the crashing code somewhere for me, maybe I can fix it in the future. From gambas at ...2524... Tue Jan 11 11:16:54 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 11 Jan 2011 10:16:54 +0000 Subject: [Gambas-user] Issue 7 in gambas: font size of tabstrip control inherited by child controls In-Reply-To: <0-6813199134517018827-8359884942079903320-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-8359884942079903320-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-8359884942079903320-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: GUI-GTK Comment #1 on issue 7 by benoit.minisini: font size of tabstrip control inherited by child controls http://code.google.com/p/gambas/issues/detail?id=7 (No comment was entered for this change.) From gambas at ...2524... Tue Jan 11 11:21:00 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 11 Jan 2011 10:21:00 +0000 Subject: [Gambas-user] Issue 1 in gambas: Gambas 3 has not been release yet In-Reply-To: <1-6813199134517018827-10510653250435311728-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-10510653250435311728-gambas=googlecode.com@...2524...> <0-6813199134517018827-10510653250435311728-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-10510653250435311728-gambas=googlecode.com@...2524...> Updates: Status: Accepted Comment #2 on issue 1 by benoit.minisini: Gambas 3 has not been release yet http://code.google.com/p/gambas/issues/detail?id=1 (No comment was entered for this change.) From gambas at ...2524... Tue Jan 11 12:36:31 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 11 Jan 2011 11:36:31 +0000 Subject: [Gambas-user] Issue 6 in gambas: signal #11 with Gtk+ In-Reply-To: <9-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> References: <9-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> <0-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Message-ID: <10-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Comment #10 on issue 6 by sotema: signal #11 with Gtk+ http://code.google.com/p/gambas/issues/detail?id=6 I kept both the dbg and the valgrind output, can send it whenever you want. From sotema at ...626... Tue Jan 11 12:42:05 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Tue, 11 Jan 2011 12:42:05 +0100 Subject: [Gambas-user] Issue 6 in gambas: signal #11 with Gtk+ In-Reply-To: <9-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> References: <8-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> <0-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> <9-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Message-ID: <1294746125.4978.0.camel@...2516...> And the crashing code too it's available Regards, Emanuele Il giorno mar, 11/01/2011 alle 10.12 +0000, gambas at ...2524... ha scritto: > Updates: > Status: Accepted > > Comment #9 on issue 6 by benoit.minisini: signal #11 with Gtk+ > http://code.google.com/p/gambas/issues/detail?id=6 > > It's a pity, as the bug is there yet. > > You should have kept the crashing code somewhere for me, maybe I can fix it > in the future. > > > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From demosthenesk at ...626... Tue Jan 11 17:38:11 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 11 Jan 2011 18:38:11 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] In-Reply-To: <201101102357.14939.gambas@...1...> References: <1294502974.10206.1.camel@...2493...> <1294602865.4599.18.camel@...2494...> <201101102357.14939.gambas@...1...> Message-ID: <1294763892.9683.1.camel@...2493...> In the following example, i get "illegal instruction" at line 9 Print MkPointer$(pPointer) -------------- ' Gambas module file Public Sub Main() Dim pPointer As Pointer pPointer = Alloc(1) Print MkPointer$(pPointer) Free(pPointer) End -------------- -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Tue Jan 11 17:42:54 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 11 Jan 2011 18:42:54 +0200 Subject: [Gambas-user] MkXXX$() functions Message-ID: <1294764174.9683.6.camel@...2493...> Hello, i do not understand the MkXXX$() functions. How to use them and where? i tried to print the return of them but i did not understand the representation of memory as string. Print MkBool$(True) gives ^A -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Tue Jan 11 18:32:35 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 11 Jan 2011 19:32:35 +0200 Subject: [Gambas-user] Tests against pointers in Gambas3 Message-ID: <1294767155.9683.11.camel@...2493...> Hi, i study the cases of pointers and i found at this page http://www.yolinux.com/TUTORIALS/C++MemoryCorruptionAndMemoryLeaks.html cases of program crashes from bad usage of pointers. i made a test for Attempting to write to memory already freed. --------------------------- ' Gambas module file Public Sub Main() Dim pPointer As Pointer Dim hMemory As Stream pPointer = Alloc(SizeOf(gb.Integer)) hMemory = Memory pPointer For Read Write Print pPointer Free(pPointer) Write #hMemory, 10 As Integer Print pPointer Print Int@(pPointer) Print pPointer End --------------------------- in this example i free the pointer and then try to write to it. The result is that i can write and read normally after Free(pPointer) Is this ok? -- Regards, Demosthenes Koptsis. From jussi.lahtinen at ...626... Tue Jan 11 18:55:02 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 11 Jan 2011 19:55:02 +0200 Subject: [Gambas-user] MkXXX$() functions In-Reply-To: <1294764174.9683.6.camel@...2493...> References: <1294764174.9683.6.camel@...2493...> Message-ID: Please read this (last messages): http://old.nabble.com/Some-new-features-in-Gambas-3-td30318459.html Jussi On Tue, Jan 11, 2011 at 18:42, Demosthenes Koptsis wrote: > Hello, > > i do not understand the MkXXX$() functions. > > How to use them and where? > > i tried to print the return of them but i did not understand the > representation of memory as string. > > Print MkBool$(True) > gives > ^A > > > -- > Regards, > Demosthenes Koptsis. > > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From demosthenesk at ...626... Tue Jan 11 19:12:30 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 11 Jan 2011 20:12:30 +0200 Subject: [Gambas-user] MkXXX$() functions In-Reply-To: References: <1294764174.9683.6.camel@...2493...> Message-ID: <1294769550.9683.13.camel@...2493...> Thanks Jussi, yesterday i was searching for this post cause i was remembered that somewhere this question was stated but i could not find it. i will read it. On Tue, 2011-01-11 at 19:55 +0200, Jussi Lahtinen wrote: > Please read this (last messages): > http://old.nabble.com/Some-new-features-in-Gambas-3-td30318459.html > > Jussi > > > On Tue, Jan 11, 2011 at 18:42, Demosthenes Koptsis > wrote: > > > Hello, > > > > i do not understand the MkXXX$() functions. > > > > How to use them and where? > > > > i tried to print the return of them but i did not understand the > > representation of memory as string. > > > > Print MkBool$(True) > > gives > > ^A > > > > > > -- > > Regards, > > Demosthenes Koptsis. > > > > > > > > ------------------------------------------------------------------------------ > > Protect Your Site and Customers from Malware Attacks > > Learn about various malware tactics and how to avoid them. Understand > > malware threats, the impact they can have on your business, and how you > > can protect your company and customers by using code signing. > > http://p.sf.net/sfu/oracle-sfdevnl > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. From math.eber at ...221... Tue Jan 11 19:27:09 2011 From: math.eber at ...221... (Matti) Date: Tue, 11 Jan 2011 19:27:09 +0100 Subject: [Gambas-user] DataControls with Visible = False In-Reply-To: <201101011732.39830.gambas@...1...> References: <1PXeOz-1ZJwAq0@...2518...> <201101011732.39830.gambas@...1...> Message-ID: <4D2CA0FD.1@...221...> "Need" is too much. In some situations it could be comfortable to have hidden DataControls that work: 1. A database field with long text can't be displayed in a DataControl, because it's not multiline. So I have to display it in a TextLabel. 2. I want to display a field as a heading, or in the window title. 3. I want to have the text of a field on a button or a label. Generally, if I want to retrieve fields from a database, but want another look and/or function than DataControl = TextBox. In these cases it would be handy to have hidden DataControls that retrieve the data, and in the code just hand them over to the other controls. Do you understand now? Of course, these things can be done with a SQL query and result set. It was just a question of laziness. By the way: why have the children of DataSource the properties "enabled" and "visible" then? If visible=false then enabled=false, and visible=true and enabled=false doesn't make sense, does it? Regards Matti Am 01.01.2011 17:32, schrieb Beno?t Minisini: > > Yes, hidden children are not taken into account by the DataSource. Why do you > need the contrary? > From jussi.lahtinen at ...626... Tue Jan 11 19:32:44 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 11 Jan 2011 20:32:44 +0200 Subject: [Gambas-user] Tests against pointers in Gambas3 In-Reply-To: <1294767155.9683.11.camel@...2493...> References: <1294767155.9683.11.camel@...2493...> Message-ID: Seems that Gambas still owns that address, but it is not "protected" anymore and so it can be used to other purposes. I'm not sure when Gambas *actually* frees that address. There are fundamental problems when you compare C/C++ and any basic language in this way. Same line in C may mean very different thing than in basic. Basic languages are high level languages ( http://en.wikipedia.org/wiki/High-level_programming_language ), they hide much from you about what actually happens. Even one simple line of code in basic can mean many many lines in machine code. That makes them user friendly (you don't have to know all details and write so much code), but also slower. Hello world, in assembly (low level language); section .text global _start ;must be declared for linker (ld) _start: ;tell linker entry point mov edx,len ;message length mov ecx,msg ;message to write mov ebx,1 ;file descriptor (stdout) mov eax,4 ;system call number (sys_write) int 0x80 ;call kernel mov eax,1 ;system call number (sys_exit) int 0x80 ;call kernel section .data msg db 'Hello, world!',0xa ;our dear string len equ $ - msg ;length of our dear string in C (not *that* low level); #include main() { printf("Hello world"); } in Gambas (high level language); Public Sub Main() Print "Hello world" End Gambas uses technology called bytecode interpreter. http://en.wikipedia.org/wiki/Interpreter_%28computing%29 Jussi On Tue, Jan 11, 2011 at 19:32, Demosthenes Koptsis wrote: > Hi, > > i study the cases of pointers and i found at this page > http://www.yolinux.com/TUTORIALS/C++MemoryCorruptionAndMemoryLeaks.html > > cases of program crashes from bad usage of pointers. > > i made a test for > Attempting to write to memory already freed. > > --------------------------- > ' Gambas module file > > Public Sub Main() > > Dim pPointer As Pointer > Dim hMemory As Stream > > pPointer = Alloc(SizeOf(gb.Integer)) > hMemory = Memory pPointer For Read Write > > Print pPointer > > Free(pPointer) > > Write #hMemory, 10 As Integer > > Print pPointer > Print Int@(pPointer) > Print pPointer > > End > --------------------------- > > in this example i free the pointer and then try to write to it. > The result is that i can write and read normally after Free(pPointer) > > Is this ok? > > -- > Regards, > Demosthenes Koptsis. > > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Tue Jan 11 19:42:43 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 11 Jan 2011 20:42:43 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 In-Reply-To: <1294693555.4768.29.camel@...2494...> References: <1294502974.10206.1.camel@...2493...> <1294601360.4599.1.camel@...2494...> <201101092137.25209.gambas@...1...> <1294615001.6613.25.camel@...2494...> <1294617286.7535.11.camel@...2494...> <1294693555.4768.29.camel@...2494...> Message-ID: > if i use > s=Str@(pPointer) > > this means > address1=adress2 ? > Kind of... even this doesn't change the situation: sTmp = Str@(pPointer) s = sTmp I'm not sure this is good thing, may cause weird bugs and confusion! I think this is because strings are objects in Gambas... maybe Str@() should do internal copy of data, instead of association object1 = object2? What do you think Benoit? Jussi From gambas at ...1... Tue Jan 11 19:47:42 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 11 Jan 2011 19:47:42 +0100 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 In-Reply-To: References: <1294502974.10206.1.camel@...2493...> <1294693555.4768.29.camel@...2494...> Message-ID: <201101111947.42352.gambas@...1...> > > if i use > > s=Str@(pPointer) > > > > this means > > address1=adress2 ? > > Kind of... even this doesn't change the situation: > > sTmp = Str@(pPointer) > s = sTmp > > I'm not sure this is good thing, may cause weird bugs and confusion! > I think this is because strings are objects in Gambas... > maybe Str@() should do internal copy of data, instead of association > object1 = object2? > > What do you think Benoit? > > Jussi That both of you should read the wiki page about String@ (or Str@ or StrPtr). :-) It returns a constant string. A constant string is just a pointer (and a length), no data is copied or allocated. String@ assumes that the pointer points at constant data that will not change. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Tue Jan 11 19:58:53 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 11 Jan 2011 20:58:53 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 In-Reply-To: <201101111947.42352.gambas@...1...> References: <1294502974.10206.1.camel@...2493...> <1294693555.4768.29.camel@...2494...> <201101111947.42352.gambas@...1...> Message-ID: Hah! OK, I didn't guess there would be so detailed information! So, I think this is OK then! Jussi 2011/1/11 Beno?t Minisini > > > if i use > > > s=Str@(pPointer) > > > > > > this means > > > address1=adress2 ? > > > > Kind of... even this doesn't change the situation: > > > > sTmp = Str@(pPointer) > > s = sTmp > > > > I'm not sure this is good thing, may cause weird bugs and confusion! > > I think this is because strings are objects in Gambas... > > maybe Str@() should do internal copy of data, instead of association > > object1 = object2? > > > > What do you think Benoit? > > > > Jussi > > That both of you should read the wiki page about String@ (or Str@ or > StrPtr). > :-) > > It returns a constant string. A constant string is just a pointer (and a > length), no data is copied or allocated. String@ assumes that the pointer > points at constant data that will not change. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From shanep at ...2481... Wed Jan 12 00:12:16 2011 From: shanep at ...2481... (Shane) Date: Wed, 12 Jan 2011 10:12:16 +1100 Subject: [Gambas-user] tool bar Message-ID: <4D2CE3D0.5010600@...2481...> i'm have problems displaying tool button on a toolbar the bottom of the button is all ways cut off using gambas 3 build 3452 From joe1962 at ...626... Wed Jan 12 15:22:25 2011 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Wed, 12 Jan 2011 09:22:25 -0500 Subject: [Gambas-user] Gambas bug tracker In-Reply-To: <201101111041.52057.gambas@...1...> References: <201101021428.59806.gambas@...1...> <201101111041.52057.gambas@...1...> Message-ID: On 1/11/11, Beno?t Minisini wrote: > Really? What is your country? > Cuba. I had a few gambas and bash projects on googlecode myself, but haven't been able to manage them for a long time now. So I moved to www.berlios.de for my development stuff. Regards, Joe1962 From jussi.lahtinen at ...626... Wed Jan 12 16:12:11 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 12 Jan 2011 17:12:11 +0200 Subject: [Gambas-user] Gambas bug tracker In-Reply-To: References: <201101021428.59806.gambas@...1...> <201101111041.52057.gambas@...1...> Message-ID: Seems to be issue with many google products. http://www.readwriteweb.com/archives/google_earth_is_coming_back_to_iran_cuba_and_sudan.php Jussi On Wed, Jan 12, 2011 at 16:22, Jose J. Rodriguez wrote: > On 1/11/11, Beno?t Minisini wrote: > > Really? What is your country? > > > > Cuba. I had a few gambas and bash projects on googlecode myself, but > haven't been able to manage them for a long time now. So I moved to > www.berlios.de for my development stuff. > > Regards, > Joe1962 > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Jan 12 16:17:40 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 12 Jan 2011 16:17:40 +0100 Subject: [Gambas-user] Gambas bug tracker In-Reply-To: References: <201101021428.59806.gambas@...1...> Message-ID: <201101121617.40749.gambas@...1...> > Seems to be issue with many google products. > http://www.readwriteweb.com/archives/google_earth_is_coming_back_to_iran_cu > ba_and_sudan.php > > Jussi > I will say nothing, I don't want to pollute this mailing-list with dirty words... I promise I will leave google code. It's just a matter of finding time to write a bug tracker in Gambas. In the meantime, people of cuba, iran, sudan or others can just use that mailing-list to report bugs. Regards, -- Beno?t Minisini From tobiasboe1 at ...20... Wed Jan 12 17:31:58 2011 From: tobiasboe1 at ...20... (tobias) Date: Wed, 12 Jan 2011 17:31:58 +0100 Subject: [Gambas-user] Tests against pointers in Gambas3 In-Reply-To: <1294767155.9683.11.camel@...2493...> References: <1294767155.9683.11.camel@...2493...> Message-ID: <4D2DD77E.3000801@...20...> hi, > Hi, > > i study the cases of pointers and i found at this page > http://www.yolinux.com/TUTORIALS/C++MemoryCorruptionAndMemoryLeaks.html > > cases of program crashes from bad usage of pointers. > > i made a test for > Attempting to write to memory already freed. > > ... > > in this example i free the pointer and then try to write to it. > The result is that i can write and read normally after Free(pPointer) > > Is this ok? > i noticed the same thing some time ago with a c program. this hasn't to be a bug in gambas... i think this is just as jussi said: > Seems that Gambas still owns that address, but it is not "protected" anymore From eilert-sprachen at ...221... Wed Jan 12 18:03:15 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 12 Jan 2011 18:03:15 +0100 Subject: [Gambas-user] Little editor "feature" in Gambas2 In-Reply-To: <201101111842.12462.gambas@...1...> References: <4D2C08AD.7020303@...221...> <201101111842.12462.gambas@...1...> Message-ID: <4D2DDED3.1010706@...221...> Am 11.01.2011 18:42, schrieb Beno?t Minisini: >> Moin, >> >> Just found this one, don't know if it's been removed in Gambas3. When I >> define several arrays of strings on one line within a SUB, later the >> names are recognized. Example: >> >> DIM sMyStrings1, sMyStrings2 AS NEW String[] >> >> Then type >> >> sMyStrings1. >> >> and the list with "Add, Bounds, Clear..." will appear. >> >> However, if I define the arrays outside the SUBs for public use, they >> will be recognized only if defined solely one by one on a separate line >> each, i. e. >> >> PUBLIC sMyStrings1, sMyStrings2 AS NEW String[] >> >> then within a SUB type >> >> sMyStrings1. >> >> and nothing happens, but if I do >> >> PUBLIC sMyStrings1 AS NEW String[] >> PUBLIC sMyStrings2 AS NEW String[] >> >> they are recognized. >> >> Or am I doing something false here the interpreter will understand wrong? >> >> Regards >> >> Rolf >> > > I'm afraid it was never implemented, both in Gambas 2 and Gambas 3! > Ok :-) At least, it's not my mistake... From jussi.lahtinen at ...626... Wed Jan 12 22:05:03 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 12 Jan 2011 23:05:03 +0200 Subject: [Gambas-user] Crash! In-Reply-To: References: Message-ID: These valgrind logs are taken also without compiler optimizations. Jussi On Sat, Jan 8, 2011 at 22:33, Jussi Lahtinen wrote: > With compiler optimizations removed: > > > Starting program: /usr/local/bin/gbx3 -p > [Thread debugging using libthread_db enabled] > [New Thread 0x7fffef2ba700 (LWP 19548)] > > warning: unable to load Qt translation: en_GB.utf8 > > Program received signal SIGSEGV, Segmentation fault. > 0x000000000042420f in SUBR_leave (nparam=2) at gbx_subr.c:42 > 42 BORROW(RP); > (gdb) f 1 > #1 0x000000000042600b in SUBR_read (code=32000) at gbx_subr_file.c:441 > 441 SUBR_LEAVE(); > (gdb) bt > #0 0x000000000042420f in SUBR_leave (nparam=2) at gbx_subr.c:42 > #1 0x000000000042600b in SUBR_read (code=32000) at gbx_subr_file.c:441 > #2 0x00000000004513f7 in EXEC_loop () at gbx_exec_loop.c:480 > #3 0x000000000040f69e in EXEC_function_loop () at gbx_exec.c:861 > #4 0x000000000040f601 in EXEC_function_real () at gbx_exec.c:848 > #5 0x0000000000411f63 in EXEC_public_desc (class=0x731148, object=0x0, > desc=0x8faae8, nparam=0) at gbx_exec.c:1497 > #6 0x000000000043d428 in main (argc=1, argv=0x7fffffffe338) at gbx.c:362 > > Jussi > > > > > > > On Thu, Jan 6, 2011 at 17:43, Jussi Lahtinen wrote: > >> Hi! >> I cannot really isolate my problem, but in this case it happens when >> loading string data from file to object >> (something like "someobject.sStr = Read #hFile As String"). >> >> Gambas 3 rev 3447 @ Ubuntu 10.10 64bit >> >> $ gbc3 -agpmt >> OK >> $ gdb gbx3 >> GNU gdb (GDB) 7.2-ubuntu >> Copyright (C) 2010 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 "x86_64-linux-gnu". >> For bug reporting instructions, please see: >> ... >> Reading symbols from /usr/local/bin/gbx3...done. >> (gdb) set args -p >> (gdb) run >> Starting program: /usr/local/bin/gbx3 -p >> [Thread debugging using libthread_db enabled] >> [New Thread 0x7fffef2ba700 (LWP 3790)] >> warning: unable to load Qt translation: en_GB.utf8 >> >> Program received signal SIGSEGV, Segmentation fault. >> 0x0000000000414b91 in SUBR_leave (nparam=2) at gbx_subr.c:42 >> 42 BORROW(RP); >> (gdb) bt >> #0 0x0000000000414b91 in SUBR_leave (nparam=2) at gbx_subr.c:42 >> #1 0x0000000000430132 in EXEC_loop () at gbx_exec_loop.c:480 >> #2 0x0000000000409a75 in EXEC_function_loop () at gbx_exec.c:861 >> #3 0x000000000040a4c5 in EXEC_function_real () at gbx_exec.c:848 >> #4 0x00000000004227e5 in main (argc=1, argv=) >> at gbx.c:362 >> >> (gdb) f 1 >> #1 0x0000000000430132 in EXEC_loop () at gbx_exec_loop.c:480 >> 480 (*(EXEC_FUNC_CODE)SubrTable[(code >> 8) - 0x28])(code); >> >> >> Also see attached valgrind log. >> >> Jussi >> >> > -------------- next part -------------- A non-text attachment was scrubbed... Name: valgrind-memcheck.log Type: text/x-log Size: 4655 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: valgrind-callgrind.log Type: text/x-log Size: 1340 bytes Desc: not available URL: From jussi.lahtinen at ...626... Wed Jan 12 22:06:01 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 12 Jan 2011 23:06:01 +0200 Subject: [Gambas-user] Crash! In-Reply-To: References: Message-ID: Forgot... Gambas 3 rev 3452 @ Ubuntu 10.10 64bit Jussi On Wed, Jan 12, 2011 at 23:05, Jussi Lahtinen wrote: > These valgrind logs are taken also without compiler optimizations. > > Jussi > > > > > On Sat, Jan 8, 2011 at 22:33, Jussi Lahtinen wrote: > >> With compiler optimizations removed: >> >> >> Starting program: /usr/local/bin/gbx3 -p >> [Thread debugging using libthread_db enabled] >> [New Thread 0x7fffef2ba700 (LWP 19548)] >> >> warning: unable to load Qt translation: en_GB.utf8 >> >> Program received signal SIGSEGV, Segmentation fault. >> 0x000000000042420f in SUBR_leave (nparam=2) at gbx_subr.c:42 >> 42 BORROW(RP); >> (gdb) f 1 >> #1 0x000000000042600b in SUBR_read (code=32000) at gbx_subr_file.c:441 >> 441 SUBR_LEAVE(); >> (gdb) bt >> #0 0x000000000042420f in SUBR_leave (nparam=2) at gbx_subr.c:42 >> #1 0x000000000042600b in SUBR_read (code=32000) at gbx_subr_file.c:441 >> #2 0x00000000004513f7 in EXEC_loop () at gbx_exec_loop.c:480 >> #3 0x000000000040f69e in EXEC_function_loop () at gbx_exec.c:861 >> #4 0x000000000040f601 in EXEC_function_real () at gbx_exec.c:848 >> #5 0x0000000000411f63 in EXEC_public_desc (class=0x731148, object=0x0, >> desc=0x8faae8, nparam=0) at gbx_exec.c:1497 >> #6 0x000000000043d428 in main (argc=1, argv=0x7fffffffe338) at gbx.c:362 >> >> Jussi >> >> >> >> >> >> >> On Thu, Jan 6, 2011 at 17:43, Jussi Lahtinen wrote: >> >>> Hi! >>> I cannot really isolate my problem, but in this case it happens when >>> loading string data from file to object >>> (something like "someobject.sStr = Read #hFile As String"). >>> >>> Gambas 3 rev 3447 @ Ubuntu 10.10 64bit >>> >>> $ gbc3 -agpmt >>> OK >>> $ gdb gbx3 >>> GNU gdb (GDB) 7.2-ubuntu >>> Copyright (C) 2010 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 "x86_64-linux-gnu". >>> For bug reporting instructions, please see: >>> ... >>> Reading symbols from /usr/local/bin/gbx3...done. >>> (gdb) set args -p >>> (gdb) run >>> Starting program: /usr/local/bin/gbx3 -p >>> [Thread debugging using libthread_db enabled] >>> [New Thread 0x7fffef2ba700 (LWP 3790)] >>> warning: unable to load Qt translation: en_GB.utf8 >>> >>> Program received signal SIGSEGV, Segmentation fault. >>> 0x0000000000414b91 in SUBR_leave (nparam=2) at gbx_subr.c:42 >>> 42 BORROW(RP); >>> (gdb) bt >>> #0 0x0000000000414b91 in SUBR_leave (nparam=2) at gbx_subr.c:42 >>> #1 0x0000000000430132 in EXEC_loop () at gbx_exec_loop.c:480 >>> #2 0x0000000000409a75 in EXEC_function_loop () at gbx_exec.c:861 >>> #3 0x000000000040a4c5 in EXEC_function_real () at gbx_exec.c:848 >>> #4 0x00000000004227e5 in main (argc=1, argv=) >>> at gbx.c:362 >>> >>> (gdb) f 1 >>> #1 0x0000000000430132 in EXEC_loop () at gbx_exec_loop.c:480 >>> 480 (*(EXEC_FUNC_CODE)SubrTable[(code >> 8) - 0x28])(code); >>> >>> >>> Also see attached valgrind log. >>> >>> Jussi >>> >>> >> > From ian.roper at ...1974... Thu Jan 13 11:37:13 2011 From: ian.roper at ...1974... (Ian Roper) Date: Thu, 13 Jan 2011 18:37:13 +0800 Subject: [Gambas-user] Incorrect name at the top of the lang web page V2 instead of V3 In-Reply-To: <201012291858.43095.gambas@...1...> References: <30442622.post@...1379...> <30552084.post@...1379...> <201012291858.43095.gambas@...1...> Message-ID: <1294915033.2927.5.camel@...2506...> I noticed that at the top of the web page on the Gambas documentation site that the version 2.n link is identified as ' > [3.0]' and the version 3.n link is identified as ' > lang [2.0] minor thing I know, but confusing for new users. regards, Ian Roper Perth - Western Australia. Gambas 2.22 on Ubuntu 10.10 From oceanosoftlapalma at ...626... Thu Jan 13 12:30:14 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Thu, 13 Jan 2011 12:30:14 +0100 Subject: [Gambas-user] Incorrect name at the top of the lang web page V2 instead of V3 In-Reply-To: <1294915033.2927.5.camel@...2506...> References: <30442622.post@...1379...> <30552084.post@...1379...> <201012291858.43095.gambas@...1...> <1294915033.2927.5.camel@...2506...> Message-ID: Hi Ian, At the current time, the "[3.0]" label, its a link to gambas 3.0 docs. When you see [2.0] it's a link to 2.0 docs. Maybe could be changed but it's only a different way to see the info... Regards, Ricardo D?az 2011/1/13 Ian Roper > I noticed that at the top of the web page on the Gambas documentation > site > that the version 2.n link is identified as ' > [3.0]' > and the version 3.n link is identified as ' > lang [2.0] > > minor thing I know, but confusing for new users. > > regards, > Ian Roper > Perth - Western Australia. > Gambas 2.22 on Ubuntu 10.10 > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From demosthenesk at ...626... Thu Jan 13 13:34:24 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 13 Jan 2011 14:34:24 +0200 Subject: [Gambas-user] Incorrect name at the top of the lang web page V2 instead of V3 In-Reply-To: <1294915033.2927.5.camel@...2506...> References: <30442622.post@...1379...> <30552084.post@...1379...> <201012291858.43095.gambas@...1...> <1294915033.2927.5.camel@...2506...> Message-ID: <1294922064.9593.2.camel@...2493...> i had the same question some time ago. But actually later in an email i read that this is for change to other version of documents. so when you are in wiki Gambas3 you see [2.0], this means if you click on the link you go to Gambas2 docs. The oposite when you are in version 2.0 you click [3.0] to see 3.0 docs. Am i right list? On Thu, 2011-01-13 at 18:37 +0800, Ian Roper wrote: > I noticed that at the top of the web page on the Gambas documentation > site > that the version 2.n link is identified as ' > [3.0]' > and the version 3.n link is identified as ' > lang [2.0] > > minor thing I know, but confusing for new users. > > regards, > Ian Roper > Perth - Western Australia. > Gambas 2.22 on Ubuntu 10.10 > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. From ron at ...1740... Thu Jan 13 13:37:52 2011 From: ron at ...1740... (Ron) Date: Thu, 13 Jan 2011 13:37:52 +0100 Subject: [Gambas-user] Incorrect name at the top of the lang web page V2 instead of V3 In-Reply-To: <1294922064.9593.2.camel@...2493...> References: <30442622.post@...1379...> <30552084.post@...1379...> <201012291858.43095.gambas@...1...> <1294915033.2927.5.camel@...2506...> <1294922064.9593.2.camel@...2493...> Message-ID: <4D2EF220.20402@...1740...> Yes, would be more clear if you always had both version links displayed, one selected (the displayed one) and one clickable, the other. > i had the same question some time ago. > > But actually later in an email i read that this is for change to other > version of documents. > > so when you are in wiki Gambas3 you see [2.0], this means if you click > on the link you go to Gambas2 docs. > > The oposite when you are in version 2.0 you click [3.0] to see 3.0 docs. > > Am i right list? > > On Thu, 2011-01-13 at 18:37 +0800, Ian Roper wrote: >> I noticed that at the top of the web page on the Gambas documentation >> site >> that the version 2.n link is identified as '> [3.0]' >> and the version 3.n link is identified as '> lang [2.0] >> >> minor thing I know, but confusing for new users. >> >> regards, >> Ian Roper >> Perth - Western Australia. >> Gambas 2.22 on Ubuntu 10.10 >> >> ------------------------------------------------------------------------------ >> Protect Your Site and Customers from Malware Attacks >> Learn about various malware tactics and how to avoid them. Understand >> malware threats, the impact they can have on your business, and how you >> can protect your company and customers by using code signing. >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Thu Jan 13 16:23:13 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 13 Jan 2011 17:23:13 +0200 Subject: [Gambas-user] Crash! In-Reply-To: References: Message-ID: OK, I managed to isolate this problem! This will crash Gambas 3 rev 3452 @ Ubuntu 10.10 64bit. Public Sub Form_Open() Dim hFile As File Dim sho As Short Dim sStr As String = "" '"abc" Crash only occurs if string is null. hFile = Open "/tmp/test" For Create Write #hFile, 123 As Short Write #hFile, sStr As String Close #hFile hFile = Open "/tmp/test" For Read sho = Read #hFile As Short sStr = Read #hFile As String Close #hFile End Ready made project is attached. Jussi On Wed, Jan 12, 2011 at 23:06, Jussi Lahtinen wrote: > Forgot... Gambas 3 rev 3452 @ Ubuntu 10.10 64bit > > Jussi > > > > On Wed, Jan 12, 2011 at 23:05, Jussi Lahtinen wrote: > >> These valgrind logs are taken also without compiler optimizations. >> >> Jussi >> >> >> >> >> On Sat, Jan 8, 2011 at 22:33, Jussi Lahtinen wrote: >> >>> With compiler optimizations removed: >>> >>> >>> Starting program: /usr/local/bin/gbx3 -p >>> [Thread debugging using libthread_db enabled] >>> [New Thread 0x7fffef2ba700 (LWP 19548)] >>> >>> warning: unable to load Qt translation: en_GB.utf8 >>> >>> Program received signal SIGSEGV, Segmentation fault. >>> 0x000000000042420f in SUBR_leave (nparam=2) at gbx_subr.c:42 >>> 42 BORROW(RP); >>> (gdb) f 1 >>> #1 0x000000000042600b in SUBR_read (code=32000) at gbx_subr_file.c:441 >>> 441 SUBR_LEAVE(); >>> (gdb) bt >>> #0 0x000000000042420f in SUBR_leave (nparam=2) at gbx_subr.c:42 >>> #1 0x000000000042600b in SUBR_read (code=32000) at gbx_subr_file.c:441 >>> #2 0x00000000004513f7 in EXEC_loop () at gbx_exec_loop.c:480 >>> #3 0x000000000040f69e in EXEC_function_loop () at gbx_exec.c:861 >>> #4 0x000000000040f601 in EXEC_function_real () at gbx_exec.c:848 >>> #5 0x0000000000411f63 in EXEC_public_desc (class=0x731148, object=0x0, >>> desc=0x8faae8, nparam=0) at gbx_exec.c:1497 >>> #6 0x000000000043d428 in main (argc=1, argv=0x7fffffffe338) at gbx.c:362 >>> >>> Jussi >>> >>> >>> >>> >>> >>> >>> On Thu, Jan 6, 2011 at 17:43, Jussi Lahtinen wrote: >>> >>>> Hi! >>>> I cannot really isolate my problem, but in this case it happens when >>>> loading string data from file to object >>>> (something like "someobject.sStr = Read #hFile As String"). >>>> >>>> Gambas 3 rev 3447 @ Ubuntu 10.10 64bit >>>> >>>> $ gbc3 -agpmt >>>> OK >>>> $ gdb gbx3 >>>> GNU gdb (GDB) 7.2-ubuntu >>>> Copyright (C) 2010 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 "x86_64-linux-gnu". >>>> For bug reporting instructions, please see: >>>> ... >>>> Reading symbols from /usr/local/bin/gbx3...done. >>>> (gdb) set args -p >>>> (gdb) run >>>> Starting program: /usr/local/bin/gbx3 -p >>>> [Thread debugging using libthread_db enabled] >>>> [New Thread 0x7fffef2ba700 (LWP 3790)] >>>> warning: unable to load Qt translation: en_GB.utf8 >>>> >>>> Program received signal SIGSEGV, Segmentation fault. >>>> 0x0000000000414b91 in SUBR_leave (nparam=2) at gbx_subr.c:42 >>>> 42 BORROW(RP); >>>> (gdb) bt >>>> #0 0x0000000000414b91 in SUBR_leave (nparam=2) at gbx_subr.c:42 >>>> #1 0x0000000000430132 in EXEC_loop () at gbx_exec_loop.c:480 >>>> #2 0x0000000000409a75 in EXEC_function_loop () at gbx_exec.c:861 >>>> #3 0x000000000040a4c5 in EXEC_function_real () at gbx_exec.c:848 >>>> #4 0x00000000004227e5 in main (argc=1, argv=) >>>> at gbx.c:362 >>>> >>>> (gdb) f 1 >>>> #1 0x0000000000430132 in EXEC_loop () at gbx_exec_loop.c:480 >>>> 480 (*(EXEC_FUNC_CODE)SubrTable[(code >> 8) - 0x28])(code); >>>> >>>> >>>> Also see attached valgrind log. >>>> >>>> Jussi >>>> >>>> >>> >> > -------------- next part -------------- A non-text attachment was scrubbed... Name: CrashBug-0.0.1.tar.gz Type: application/x-gzip Size: 4845 bytes Desc: not available URL: From jussi.lahtinen at ...626... Thu Jan 13 19:37:45 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 13 Jan 2011 20:37:45 +0200 Subject: [Gambas-user] Crash with Free() Message-ID: Hi! I was adding some test for pointer arithmetic when noticing this. GambasTester will pass, but when you close main form, signal 11 will rise. Commenting out Free(pp) from mTest: line 1070, will prevent crash. Gambas 3 rev 3452 @ Ubuntu 10.10 64bit Jussi -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTester-0.9.18.tar.gz Type: application/x-gzip Size: 14932 bytes Desc: not available URL: From gambas at ...1... Thu Jan 13 19:55:27 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 13 Jan 2011 19:55:27 +0100 Subject: [Gambas-user] Crash with Free() In-Reply-To: References: Message-ID: <201101131955.27216.gambas@...1...> > Hi! > I was adding some test for pointer arithmetic when noticing this. > GambasTester will pass, but when you close main form, signal 11 will rise. > Commenting out Free(pp) from mTest: line 1070, will prevent crash. > > Gambas 3 rev 3452 @ Ubuntu 10.10 64bit > > Jussi You are calling Free(pp) whereas pp is not the pointer returned by Alloc() anymore. So you get a crash... -- Beno?t Minisini From jussi.lahtinen at ...626... Thu Jan 13 21:07:01 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 13 Jan 2011 22:07:01 +0200 Subject: [Gambas-user] Crash with Free() In-Reply-To: <201101131955.27216.gambas@...1...> References: <201101131955.27216.gambas@...1...> Message-ID: Aaaa... of course, pointer is not correct to free after "pp += 4". Though, result shouldn't be signal 11. Jussi 2011/1/13 Beno?t Minisini > > Hi! > > I was adding some test for pointer arithmetic when noticing this. > > GambasTester will pass, but when you close main form, signal 11 will > rise. > > Commenting out Free(pp) from mTest: line 1070, will prevent crash. > > > > Gambas 3 rev 3452 @ Ubuntu 10.10 64bit > > > > Jussi > > You are calling Free(pp) whereas pp is not the pointer returned by Alloc() > anymore. So you get a crash... > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From demosthenesk at ...626... Thu Jan 13 22:41:37 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 13 Jan 2011 23:41:37 +0200 Subject: [Gambas-user] Crash with Free() In-Reply-To: References: <201101131955.27216.gambas@...1...> Message-ID: <1294954897.11453.12.camel@...2494...> :) Pointers are tricky! And may be this subject is difficult for BASIC programmers like me. But in time we can learn their tricks and pay attention to such cases. In my book i simulate and describe such cases based on http://www.yolinux.com/TUTORIALS/C++MemoryCorruptionAndMemoryLeaks.html i do not make exact port of the C code to Gambas3 and i know that it cannot be done but i can make some remarks for the usage of pointers and common mistakes. Jussi you can also use this page to write code for your Tester. For example this crash you saw was "Freeing memory that was not allocated." On Thu, 2011-01-13 at 22:07 +0200, Jussi Lahtinen wrote: > Aaaa... of course, pointer is not correct to free after "pp += 4". > Though, result shouldn't be signal 11. > > Jussi > > > 2011/1/13 Beno?t Minisini > > > > Hi! > > > I was adding some test for pointer arithmetic when noticing this. > > > GambasTester will pass, but when you close main form, signal 11 will > > rise. > > > Commenting out Free(pp) from mTest: line 1070, will prevent crash. > > > > > > Gambas 3 rev 3452 @ Ubuntu 10.10 64bit > > > > > > Jussi > > > > You are calling Free(pp) whereas pp is not the pointer returned by Alloc() > > anymore. So you get a crash... > > > > -- > > Beno?t Minisini > > > > > > ------------------------------------------------------------------------------ > > Protect Your Site and Customers from Malware Attacks > > Learn about various malware tactics and how to avoid them. Understand > > malware threats, the impact they can have on your business, and how you > > can protect your company and customers by using code signing. > > http://p.sf.net/sfu/oracle-sfdevnl > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes From ihaywood at ...1979... Fri Jan 14 04:29:39 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Fri, 14 Jan 2011 14:29:39 +1100 Subject: [Gambas-user] Crash with Free() In-Reply-To: <1294954897.11453.12.camel@...2494...> References: <201101131955.27216.gambas@...1...> <1294954897.11453.12.camel@...2494...> Message-ID: On Fri, Jan 14, 2011 at 8:41 AM, Demosthenes Koptsis wrote: > :) Pointers are tricky! yes, the ability to avoid pointers is one of the main advantages of higher-level languages like Gambas. I'm curious to know why you guys are so fascinated by them, other than interfacing with C libraries I would have thought they should be left well alone. Ian From doriano.blengino at ...1909... Fri Jan 14 07:57:09 2011 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 14 Jan 2011 07:57:09 +0100 Subject: [Gambas-user] Crash with Free() In-Reply-To: References: <201101131955.27216.gambas@...1...> <1294954897.11453.12.camel@...2494...> Message-ID: <4D2FF3C5.9090400@...1909...> Ian Haywood ha scritto: > On Fri, Jan 14, 2011 at 8:41 AM, Demosthenes Koptsis > wrote: > >> :) Pointers are tricky! >> > Aaaa... of course, pointer is not correct to free after "pp += 4". > Though, result shouldn't be signal 11. > It could not be different. > yes, the ability to avoid pointers is one of the main advantages of > higher-level languages like Gambas. > I'm curious to know why you guys are so fascinated by them, other than > interfacing with C libraries I would have thought they should be left > well alone. > I agree. But, if one really wants pointers, one could create a wrapping class around the real pointer, which makes checks before doing operations -> pointers in OOP fashion... Regards, Doriano From demosthenesk at ...626... Fri Jan 14 08:33:48 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Fri, 14 Jan 2011 09:33:48 +0200 Subject: [Gambas-user] Crash with Free() In-Reply-To: References: <201101131955.27216.gambas@...1...> <1294954897.11453.12.camel@...2494...> Message-ID: <1294990428.2535.2.camel@...2493...> On Fri, 2011-01-14 at 14:29 +1100, Ian Haywood wrote: > I'm curious to know why you guys are so fascinated by them > Ian For me i just want to describe them for my book about Gambas3, that's all. In this, is including the tricky part of pointers and the correct use of them inside a program. -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Fri Jan 14 12:42:48 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Fri, 14 Jan 2011 13:42:48 +0200 Subject: [Gambas-user] Tests against pointers in Gambas3 In-Reply-To: <4D2DD77E.3000801@...20...> References: <1294767155.9683.11.camel@...2493...> <4D2DD77E.3000801@...20...> Message-ID: <1295005368.2754.4.camel@...2493...> hello again list, i am finishing the chapter of pointers soon. Something last about them. In C++ books it is suggested after the usage of a pointer to free it and then assign value 0. Do you think this advice could be done to Gambas3 like this for safe programming? Close #hMemory Free(pPointer) pPointer = 0 -----Example --------------------------------- ' Gambas module file Public Sub Main() Dim pPointer As Pointer Dim hMemory As Stream pPointer = Alloc(4) Print pPointer hMemory = Memory pPointer For Read Write Write #hMemory, CByte(0) As Byte Write #hMemory, CByte(1) As Byte Write #hMemory, CByte(0) As Byte Write #hMemory, CByte(1) As Byte Close #hMemory Free(pPointer) pPointer = 0 Print pPointer Print Byte@(pPointer) End -----Example --------------------------------- Notice with this implementation the last line Print Byte@(pPointer) raises an expected error. Otherwise we still could use the address of pPointer. On Wed, 2011-01-12 at 17:31 +0100, tobias wrote: > hi, > > > Hi, > > > > i study the cases of pointers and i found at this page > > http://www.yolinux.com/TUTORIALS/C++MemoryCorruptionAndMemoryLeaks.html > > > > cases of program crashes from bad usage of pointers. > > > > i made a test for > > Attempting to write to memory already freed. > > > > ... > > > > in this example i free the pointer and then try to write to it. > > The result is that i can write and read normally after Free(pPointer) > > > > Is this ok? > > > > i noticed the same thing some time ago with a c program. this hasn't to > be a bug in gambas... i think this is just as jussi said: > > Seems that Gambas still owns that address, but it is not "protected" > anymore > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. From jussi.lahtinen at ...626... Fri Jan 14 18:23:14 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 14 Jan 2011 19:23:14 +0200 Subject: [Gambas-user] Crash with Free() In-Reply-To: References: <201101131955.27216.gambas@...1...> <1294954897.11453.12.camel@...2494...> Message-ID: True, and that is my only usage for them, except GambasTester which is supposed to test every command for possible errors. Jussi On Fri, Jan 14, 2011 at 05:29, Ian Haywood wrote: > On Fri, Jan 14, 2011 at 8:41 AM, Demosthenes Koptsis > wrote: > > :) Pointers are tricky! > yes, the ability to avoid pointers is one of the main advantages of > higher-level languages like Gambas. > I'm curious to know why you guys are so fascinated by them, other than > interfacing with C libraries I would have thought they should be left > well alone. > > Ian > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Fri Jan 14 18:29:45 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 14 Jan 2011 19:29:45 +0200 Subject: [Gambas-user] Crash with Free() In-Reply-To: <4D2FF3C5.9090400@...1909...> References: <201101131955.27216.gambas@...1...> <1294954897.11453.12.camel@...2494...> <4D2FF3C5.9090400@...1909...> Message-ID: > > Aaaa... of course, pointer is not correct to free after "pp += 4". > > Though, result shouldn't be signal 11. > > > It could not be different. > I mean Gambas should handle this without crash, but of course this is anyhow end of execution. I still would like to see error message with according line number. Like when you call Integer@() with invalid pointer. Jussi From jussi.lahtinen at ...626... Fri Jan 14 18:35:59 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 14 Jan 2011 19:35:59 +0200 Subject: [Gambas-user] Tests against pointers in Gambas3 In-Reply-To: <1295005368.2754.4.camel@...2493...> References: <1294767155.9683.11.camel@...2493...> <4D2DD77E.3000801@...20...> <1295005368.2754.4.camel@...2493...> Message-ID: I'm not sure how much this has significance in Basic, but it is good habit. And maybe it should be done internally in Free()..? Jussi On Fri, Jan 14, 2011 at 13:42, Demosthenes Koptsis wrote: > hello again list, > > i am finishing the chapter of pointers soon. > > Something last about them. > > In C++ books it is suggested after the usage of a pointer to free it and > then assign value 0. > > Do you think this advice could be done to Gambas3 like this for safe > programming? > > Close #hMemory > Free(pPointer) > pPointer = 0 > > > -----Example --------------------------------- > > ' Gambas module file > > Public Sub Main() > > Dim pPointer As Pointer > Dim hMemory As Stream > > pPointer = Alloc(4) > > Print pPointer > > hMemory = Memory pPointer For Read Write > > Write #hMemory, CByte(0) As Byte > Write #hMemory, CByte(1) As Byte > Write #hMemory, CByte(0) As Byte > Write #hMemory, CByte(1) As Byte > > Close #hMemory > Free(pPointer) > pPointer = 0 > > Print pPointer > Print Byte@(pPointer) > > End > -----Example --------------------------------- > > Notice with this implementation the last line > Print Byte@(pPointer) > raises an expected error. > Otherwise we still could use the address of pPointer. > > > On Wed, 2011-01-12 at 17:31 +0100, tobias wrote: > > hi, > > > > > Hi, > > > > > > i study the cases of pointers and i found at this page > > > > http://www.yolinux.com/TUTORIALS/C++MemoryCorruptionAndMemoryLeaks.html > > > > > > cases of program crashes from bad usage of pointers. > > > > > > i made a test for > > > Attempting to write to memory already freed. > > > > > > ... > > > > > > in this example i free the pointer and then try to write to it. > > > The result is that i can write and read normally after Free(pPointer) > > > > > > Is this ok? > > > > > > > i noticed the same thing some time ago with a c program. this hasn't to > > be a bug in gambas... i think this is just as jussi said: > > > Seems that Gambas still owns that address, but it is not "protected" > > anymore > > > > > ------------------------------------------------------------------------------ > > Protect Your Site and Customers from Malware Attacks > > Learn about various malware tactics and how to avoid them. Understand > > malware threats, the impact they can have on your business, and how you > > can protect your company and customers by using code signing. > > http://p.sf.net/sfu/oracle-sfdevnl > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- > Regards, > Demosthenes Koptsis. > > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From demosthenesk at ...626... Fri Jan 14 19:29:35 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Fri, 14 Jan 2011 20:29:35 +0200 Subject: [Gambas-user] Crash with Free() In-Reply-To: References: <201101131955.27216.gambas@...1...> <1294954897.11453.12.camel@...2494...> Message-ID: <1295029775.3437.8.camel@...2493...> Jussi i can post here the cases of pointer's mis-usage from my book and you can add any of them in your project freely. 1) Assign new address to an existing pointer drives to memory leak. The first address cannot be freed directly. ' Gambas module file Public Sub Main() Dim pPointer1 As Pointer Dim pPointer2 As Pointer pPointer1 = Alloc(4) pPointer2 = Alloc(4) Print "Address of pPointer1"; pPointer1 Print "Address of pPointer2"; pPointer2 pPointer2 = pPointer1 Print "Address of pPointer1"; pPointer1 Print "Address of pPointer2"; pPointer2 Free(pPointer1) Free(pPointer2) End 2) Not freeing a pointer. ' Gambas module file Public Sub Main() UsePointer() End Public Sub UsePointer() Dim pPointer1 As Pointer pPointer1 = Alloc(4) Print "Address of pPointer1"; pPointer1 End 3) Write to a pointer greater length of data, buffer overflow ' Gambas module file Public Sub Main() Dim pPointer As Pointer Dim hMemory As Stream pPointer = Alloc(4) hMemory = Memory pPointer For Read Write Write #hMemory, CByte(0) As Byte Write #hMemory, CByte(1) As Byte Write #hMemory, CByte(0) As Byte Write #hMemory, CByte(1) As Byte Write #hMemory, CByte(0) As Byte Close #hMemory Free(pPointer) End 4) usage o pointer which has been freed ' Gambas module file Public Sub Main() Dim pPointer As Pointer Dim hMemory As Stream pPointer = Alloc(4) hMemory = Memory pPointer For Read Write Write #hMemory, CByte(0) As Byte Write #hMemory, CByte(1) As Byte Write #hMemory, CByte(0) As Byte Write #hMemory, CByte(1) As Byte Close #hMemory Print Byte@(pPointer) Free(pPointer) Print Byte@(pPointer) End 5) Free an already free pointer ' Gambas module file Public Sub Main() Dim pPointer As Pointer pPointer = Alloc(4) Free(pPointer) Free(pPointer) End 6) Free unallocated pointer. ' Gambas module file Public Sub Main() Dim pPointer As Pointer pPointer = Alloc(4) Print pPointer pPointer += 10 Print pPointer 'Free(pPointer) End 7) Write to a pointer which has been freed. ' Gambas module file Public Sub Main() Dim pPointer As Pointer Dim hMemory As Stream pPointer = Alloc(SizeOf(gb.Integer)) hMemory = Memory pPointer For Read Write Print pPointer Free(pPointer) Write #hMemory, 10 As Integer Print pPointer Print Int@(pPointer) Print pPointer End 8) Write to unallocated memory ' Gambas module file Public Sub Main() Dim pPointer As Pointer Dim hMemory As Stream pPointer = Alloc(SizeOf(gb.Integer)) hMemory = Memory pPointer For Read Write Print pPointer pPointer += 10 Print pPointer Write #hMemory, 10 As Integer Free(pPointer) End --------- Suggested usage of pointers ' Gambas module file Public Sub Main() Dim pPointer As Pointer Dim hMemory As Stream pPointer = Alloc(4) Print pPointer hMemory = Memory pPointer For Read Write Write #hMemory, CByte(0) As Byte Write #hMemory, CByte(1) As Byte Write #hMemory, CByte(0) As Byte Write #hMemory, CByte(1) As Byte Close #hMemory Free(pPointer) pPointer = 0 Print pPointer Print Byte@(pPointer) 'expected error End On Fri, 2011-01-14 at 19:23 +0200, Jussi Lahtinen wrote: > True, and that is my only usage for them, > except GambasTester which is supposed to test every command > for possible errors. > > Jussi > > > On Fri, Jan 14, 2011 at 05:29, Ian Haywood wrote: > > > On Fri, Jan 14, 2011 at 8:41 AM, Demosthenes Koptsis > > wrote: > > > :) Pointers are tricky! > > yes, the ability to avoid pointers is one of the main advantages of > > higher-level languages like Gambas. > > I'm curious to know why you guys are so fascinated by them, other than > > interfacing with C libraries I would have thought they should be left > > well alone. > > > > Ian > > > > > > ------------------------------------------------------------------------------ > > Protect Your Site and Customers from Malware Attacks > > Learn about various malware tactics and how to avoid them. Understand > > malware threats, the impact they can have on your business, and how you > > can protect your company and customers by using code signing. > > http://p.sf.net/sfu/oracle-sfdevnl > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Fri Jan 14 19:37:50 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Fri, 14 Jan 2011 20:37:50 +0200 Subject: [Gambas-user] Tests against pointers in Gambas3 In-Reply-To: References: <1294767155.9683.11.camel@...2493...> <4D2DD77E.3000801@...20...> <1295005368.2754.4.camel@...2493...> Message-ID: <1295030270.3437.14.camel@...2493...> as i saw in C++ Free returns the allocated memory back to free memory. That's all. Free() do not do anything with the variable pPointer. That's why pointers keep their addresses and leads to misusage at next lines of code. Although i find it good idea. On Fri, 2011-01-14 at 19:35 +0200, Jussi Lahtinen wrote: > I'm not sure how much this has significance in Basic, but it is good habit. > And maybe it should be done internally in Free()..? > > Jussi > > > > On Fri, Jan 14, 2011 at 13:42, Demosthenes Koptsis > wrote: > > > hello again list, > > > > i am finishing the chapter of pointers soon. > > > > Something last about them. > > > > In C++ books it is suggested after the usage of a pointer to free it and > > then assign value 0. > > > > Do you think this advice could be done to Gambas3 like this for safe > > programming? > > > > Close #hMemory > > Free(pPointer) > > pPointer = 0 > > > > > > -----Example --------------------------------- > > > > ' Gambas module file > > > > Public Sub Main() > > > > Dim pPointer As Pointer > > Dim hMemory As Stream > > > > pPointer = Alloc(4) > > > > Print pPointer > > > > hMemory = Memory pPointer For Read Write > > > > Write #hMemory, CByte(0) As Byte > > Write #hMemory, CByte(1) As Byte > > Write #hMemory, CByte(0) As Byte > > Write #hMemory, CByte(1) As Byte > > > > Close #hMemory > > Free(pPointer) > > pPointer = 0 > > > > Print pPointer > > Print Byte@(pPointer) > > > > End > > -----Example --------------------------------- > > > > Notice with this implementation the last line > > Print Byte@(pPointer) > > raises an expected error. > > Otherwise we still could use the address of pPointer. > > > > > > On Wed, 2011-01-12 at 17:31 +0100, tobias wrote: > > > hi, > > > > > > > Hi, > > > > > > > > i study the cases of pointers and i found at this page > > > > > > http://www.yolinux.com/TUTORIALS/C++MemoryCorruptionAndMemoryLeaks.html > > > > > > > > cases of program crashes from bad usage of pointers. > > > > > > > > i made a test for > > > > Attempting to write to memory already freed. > > > > > > > > ... > > > > > > > > in this example i free the pointer and then try to write to it. > > > > The result is that i can write and read normally after Free(pPointer) > > > > > > > > Is this ok? > > > > > > > > > > i noticed the same thing some time ago with a c program. this hasn't to > > > be a bug in gambas... i think this is just as jussi said: > > > > Seems that Gambas still owns that address, but it is not "protected" > > > anymore > > > > > > > > ------------------------------------------------------------------------------ > > > Protect Your Site and Customers from Malware Attacks > > > Learn about various malware tactics and how to avoid them. Understand > > > malware threats, the impact they can have on your business, and how you > > > can protect your company and customers by using code signing. > > > http://p.sf.net/sfu/oracle-sfdevnl > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > > Regards, > > Demosthenes Koptsis. > > > > > > > > ------------------------------------------------------------------------------ > > Protect Your Site and Customers from Malware Attacks > > Learn about various malware tactics and how to avoid them. Understand > > malware threats, the impact they can have on your business, and how you > > can protect your company and customers by using code signing. > > http://p.sf.net/sfu/oracle-sfdevnl > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. From gambas at ...1... Sat Jan 15 02:04:55 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 15 Jan 2011 02:04:55 +0100 Subject: [Gambas-user] Crash! In-Reply-To: References: Message-ID: <201101150204.55468.gambas@...1...> > OK, I managed to isolate this problem! > This will crash Gambas 3 rev 3452 @ Ubuntu 10.10 64bit. > > > Public Sub Form_Open() > Dim hFile As File > Dim sho As Short > Dim sStr As String = "" '"abc" Crash only occurs if string is null. > > hFile = Open "/tmp/test" For Create > Write #hFile, 123 As Short > Write #hFile, sStr As String > Close #hFile > > hFile = Open "/tmp/test" For Read > sho = Read #hFile As Short > sStr = Read #hFile As String > Close #hFile > > End > > Ready made project is attached. > > Jussi > Thanks. It was fixed in revision #3455. Regards, -- Beno?t Minisini From gambas at ...1... Sat Jan 15 02:05:32 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 15 Jan 2011 02:05:32 +0100 Subject: [Gambas-user] tool bar In-Reply-To: <4D2CE3D0.5010600@...2481...> References: <4D2CE3D0.5010600@...2481...> Message-ID: <201101150205.32190.gambas@...1...> > i'm have problems displaying tool button on a toolbar the bottom of the > button is all ways cut off > using gambas 3 build 3452 > Can you provide a project that shows the problem? Or at least details about your system and a screenshot? Regards, -- Beno?t Minisini From gambas at ...1... Sat Jan 15 02:10:14 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 15 Jan 2011 02:10:14 +0100 Subject: [Gambas-user] Menu.Picture Message-ID: <201101150210.14106.gambas@...1...> > Hi, It seems to be possible to add a picture to menu, but it works only > with sub-menu.The top-menu shows no picture. Gambas2 Rev. 3439Ubuntu > 10.04GTK+ > RegardsIvan > It seems but not. Parent menus can have a picture with gb.qt4, but not with gb.gtk. I will check if it is a GTK+ impossibility, or something that I can implement. Regards, -- Beno?t Minisini From gambas at ...1... Sat Jan 15 02:10:40 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 15 Jan 2011 02:10:40 +0100 Subject: [Gambas-user] Menu name in toolbox disappearing Message-ID: <201101150210.41016.gambas@...1...> > Hi Benoit, > > I've mentioned this before and got no response, though I know how busy you > are, its not critical as I can edit the form definition and fix it. I sometimes forget some reports, so do repeat it if you do not see any answer after three or four weeks! > > In some situations, (if one accidently deletes the property menu of a > menubutton in the toolbox, seems often one can't get it back, despite the > menu still being there. > > I've taken to manually editing the form file, as below: > > { HBox4 HBox > MoveScaled(21,-1,29,3) > Background = &HFFFFFF& > Padding = 1 > { MenuButton1 MenuButton > MoveScaled(4,0,21,3) > Expand = True > Text = ("Health Issue") > Menu = "mnuHealthIssues" > } > } > > Here, to re-link Menu to mnuHealthIssues. > > Regards > > Richard > Mmm. I need a way to reproduce the bug. What you say is not very clear for me. -- Beno?t Minisini From gambas at ...1... Sat Jan 15 02:11:48 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 15 Jan 2011 02:11:48 +0100 Subject: [Gambas-user] MkXXX$() functions Message-ID: <201101150211.48489.gambas@...1...> > Hello, > > i do not understand the MkXXX$() functions. > > How to use them and where? > > i tried to print the return of them but i did not understand the > representation of memory as string. > > Print MkBool$(True) > gives > ^A They are doing the same thing as the WRITE instruction from a memory stream, except that they create a string from the written contents. For example, MkInt$(X) will take the integer X and will return a 4 bytes string, as an integer uses 4 bytes in memory. MkBool$(True) returns Chr$(1), but maybe it should return Chr$(255), as, by definition, True <=> -1 in Gambas. These functions are not really useful, because they use the endianness of the system. Whereas READ and WRITE on a stream can use any endianness with the ByteOrder property of the stream. Regards, -- Beno?t Minisini From gambas at ...1... Sat Jan 15 02:12:04 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 15 Jan 2011 02:12:04 +0100 Subject: [Gambas-user] Tests against pointers in Gambas3 Message-ID: <201101150212.04266.gambas@...1...> > Hi, > > i study the cases of pointers and i found at this page > http://www.yolinux.com/TUTORIALS/C++MemoryCorruptionAndMemoryLeaks.html > > cases of program crashes from bad usage of pointers. > > i made a test for > Attempting to write to memory already freed. > > --------------------------- > ' Gambas module file > > Public Sub Main() > > Dim pPointer As Pointer > Dim hMemory As Stream > > pPointer = Alloc(SizeOf(gb.Integer)) > hMemory = Memory pPointer For Read Write > > Print pPointer > > Free(pPointer) > > Write #hMemory, 10 As Integer > > Print pPointer > Print Int@(pPointer) > Print pPointer > > End > --------------------------- > > in this example i free the pointer and then try to write to it. > The result is that i can write and read normally after Free(pPointer) > > Is this ok? Yes. Freed memory is not made forbidden automatically (it will be too slow). The C library decides when freed memory is given back to the system. I didn't think that Gambas will make somebody learn C and system programming ;-) Regards, -- Beno?t Minisini From demosthenesk at ...626... Sat Jan 15 08:59:43 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 15 Jan 2011 09:59:43 +0200 Subject: [Gambas-user] MkXXX$() functions In-Reply-To: <201101150211.48489.gambas@...1...> References: <201101150211.48489.gambas@...1...> Message-ID: <1295078383.2137.0.camel@...2494...> Thanks it is more clear now, because the example of UDP usage of these functions i did not understand it. On Sat, 2011-01-15 at 02:11 +0100, Beno?t Minisini wrote: > > Hello, > > > > i do not understand the MkXXX$() functions. > > > > How to use them and where? > > > > i tried to print the return of them but i did not understand the > > representation of memory as string. > > > > Print MkBool$(True) > > gives > > ^A > > They are doing the same thing as the WRITE instruction from a memory stream, > except that they create a string from the written contents. > > For example, MkInt$(X) will take the integer X and will return a 4 bytes > string, as an integer uses 4 bytes in memory. > > MkBool$(True) returns Chr$(1), but maybe it should return Chr$(255), as, by > definition, True <=> -1 in Gambas. > > These functions are not really useful, because they use the endianness of the > system. Whereas READ and WRITE on a stream can use any endianness with the > ByteOrder property of the stream. > > Regards, > -- Regards, Demosthenes From gambas at ...1... Sat Jan 15 15:14:51 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 15 Jan 2011 15:14:51 +0100 Subject: [Gambas-user] MkXXX$() functions In-Reply-To: <1295078383.2137.0.camel@...2494...> References: <201101150211.48489.gambas@...1...> <1295078383.2137.0.camel@...2494...> Message-ID: <201101151514.51734.gambas@...1...> > Thanks it is more clear now, because the example of UDP usage of these > functions i did not understand it. > Beware that these functions may be removed, and replaced by another way of forging UDP packets. Regards, -- Beno?t Minisini From demosthenesk at ...626... Sat Jan 15 16:21:10 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 15 Jan 2011 17:21:10 +0200 Subject: [Gambas-user] i made a Gambas3 logo for icon usage Message-ID: <1295104870.19360.8.camel@...2493...> Hi list i made a Gambas3 logo for usage as application icon see screenshot. http://www.mediafire.com/imageview.php?quickkey=4wau59g3nn0i72e&thumb=4 i hope you like it to use it as new logo for Gambas3 if you dont have any yet. What do you think Benoit? -- Regards, Demosthenes Koptsis. -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas3-logo.tar.gz Type: application/x-compressed-tar Size: 34994 bytes Desc: not available URL: From tobiasboe1 at ...20... Sat Jan 15 17:02:42 2011 From: tobiasboe1 at ...20... (tobias) Date: Sat, 15 Jan 2011 17:02:42 +0100 Subject: [Gambas-user] DataSource.Cancel() Message-ID: <4D31C522.5060703@...20...> hi developers, can you tell me please what the undocumented method DataSource.Cancel() does? regards, tobi From gambas at ...1... Sat Jan 15 17:09:53 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 15 Jan 2011 17:09:53 +0100 Subject: [Gambas-user] i made a Gambas3 logo for icon usage In-Reply-To: <1295104870.19360.8.camel@...2493...> References: <1295104870.19360.8.camel@...2493...> Message-ID: <201101151709.53391.gambas@...1...> > Hi list i made a Gambas3 logo for usage as application icon > > see screenshot. > > http://www.mediafire.com/imageview.php?quickkey=4wau59g3nn0i72e&thumb=4 > > i hope you like it to use it as new logo for Gambas3 if you dont have > any yet. > > What do you think Benoit? There is a Gambas 3 logo made by Fabien: on the web site, on the wiki, inside the IDE... Didn't you see it? -- Beno?t Minisini From kevinfishburne at ...1887... Sat Jan 15 18:12:10 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 15 Jan 2011 12:12:10 -0500 Subject: [Gambas-user] MkXXX$() functions In-Reply-To: <201101151514.51734.gambas@...1...> References: <201101150211.48489.gambas@...1...> <1295078383.2137.0.camel@...2494...> <201101151514.51734.gambas@...1...> Message-ID: <4D31D56A.1030008@...1887...> On 01/15/2011 09:14 AM, Beno?t Minisini wrote: Thanks it is more clear now, because the example of UDP usage of these functions i did not understand it. Beware that these functions may be removed, and replaced by another way of forging UDP packets. [[1]Noooooooo...] ;) Please let us/me know if you do, or what the replacements will be. The functions are the logical extension of ASC() and STR(), which I'm guessing you'll be keeping out of respect for or compatibility with old-school BASIC. Maybe ASC() and STR() could be removed, with the documentation pointing to the new functions? ASC() and STR() could also be used to forge UDP packets and still suffer from the endianness issue. -- Kevin Fishburne Eight Virtues www: [2]http://sales.eightvirtues.com e-mail: [3]sales at ...1887... phone: (770) 853-6271 References 1. http://darthno.ytmnd.com/ 2. http://sales.eightvirtues.com/ 3. mailto:sales at ...1887... From dr.diesel at ...626... Sat Jan 15 18:54:49 2011 From: dr.diesel at ...626... (Dr.Diesel) Date: Sat, 15 Jan 2011 09:54:49 -0800 (PST) Subject: [Gambas-user] Is this a libtool 2.4 Compile error? Message-ID: <30676125.post@...1379...> I've got two machines doing this, both compiled fine before I upgraded to Fedora 15 pre-alpha. I am sure it's not a gambas3 bug but maybe something that will need to be addressed when Fedora 15 goes final. /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -I/usr/lib64/libffi-3.0.9/include -O0 -MT gb_la-gbx_c_class.lo -MD -MP -MF .deps/gb_la-gbx_c_class.Tpo -c -o gb_la-gbx_c_class.lo `test -f 'gbx_c_class.c' || echo './'`gbx_c_class.c ../libtool: line 2095: gbx_c_class.c: command not found libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -I/usr/lib64/libffi-3.0.9/include -O0 -MT gb_la-gbx_c_class.lo -MD -MP -MF .deps/gb_la-gbx_c_class.Tpo -c "" -fPIC -DPIC -o .libs/gb_la-gbx_c_class.o gcc: : No such file or directory gcc: no input files make[4]: *** [gb_la-gbx_c_class.lo] Error 1 make[4]: Leaving directory `/home/andy/trunk/main/gbx' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/andy/trunk/main' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/andy/trunk/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/andy/trunk' make: *** [all] Error 2 [andy at ...2528... trunk]$ rpm -qa|grep libtool libtool-ltdl-2.4-2.fc15.x86_64 libtool-ltdl-devel-2.4-2.fc15.x86_64 libtool-ltdl-2.4-2.fc15.i686 libtool-debuginfo-2.4-2.fc15.x86_64 libtool-2.4-2.fc15.x86_64 [andy at ...2528... trunk]$ reconf-all and configure went fine, but I can upload the log if need be. Thanks Andy -- View this message in context: http://old.nabble.com/Is-this-a-libtool-2.4-Compile-error--tp30676125p30676125.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Jan 15 18:58:49 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 15 Jan 2011 18:58:49 +0100 Subject: [Gambas-user] MkXXX$() functions In-Reply-To: <4D31D56A.1030008@...1887...> References: <201101150211.48489.gambas@...1...> <201101151514.51734.gambas@...1...> <4D31D56A.1030008@...1887...> Message-ID: <201101151858.49189.gambas@...1...> > On 01/15/2011 09:14 AM, Beno?t Minisini wrote: > > Thanks it is more clear now, because the example of UDP usage of these > functions i did not understand it. > > Beware that these functions may be removed, and replaced by another way of > forging UDP packets. > > [[1]Noooooooo...] ;) Please let us/me know if you do, or what the > replacements will be. > The functions are the logical extension of ASC() and STR(), which I'm > guessing you'll be keeping out of respect for or compatibility with > old-school BASIC. Maybe ASC() and STR() could be removed, with the > documentation pointing to the new functions? ASC() and STR() could also > be used to forge UDP packets and still suffer from the endianness issue. > -- > Kevin Fishburne > Eight Virtues > www: [2]http://sales.eightvirtues.com > e-mail: [3]sales at ...1887... > phone: (770) 853-6271 > Here is what I thought when I have written that: - Gambas has now structures. - Structures contents can be written to a stream by the WRITE instruction. - Streams have support for endianness. Now, when you write something to an UDP socket, one writes equals one message, so you cannot send a message with successives writes. Hopefully, when writing a structure, a temporary string is used for storing the intermediate writes, and so only one write is finally done to the UDP socket. So, please, can you try that? Instead of using strings, create one structure for each message you send to your UDP socket, fill the structure with the message contents, and use the WRITE instruction to send the structure to it. And tell me if it works! :-) And if you finally find it cleaner or not. Thanks in advance. Regards, -- Beno?t Minisini From demosthenesk at ...626... Sat Jan 15 19:39:31 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 15 Jan 2011 20:39:31 +0200 Subject: [Gambas-user] i made a Gambas3 logo for icon usage In-Reply-To: <201101151709.53391.gambas@...1...> References: <1295104870.19360.8.camel@...2493...> <201101151709.53391.gambas@...1...> Message-ID: <1295116771.20062.32.camel@...2493...> You mean http://gambasdoc.org/image/:logo3 i saw it now but i thought it was for wiki or temporary for the app because it reminds me Gambas1. ok it's nice. I said that may be you want to continue the style of previous logo which is more cyber-style. Never mind it ok. On Sat, 2011-01-15 at 17:09 +0100, Beno?t Minisini wrote: > > Hi list i made a Gambas3 logo for usage as application icon > > > > see screenshot. > > > > http://www.mediafire.com/imageview.php?quickkey=4wau59g3nn0i72e&thumb=4 > > > > i hope you like it to use it as new logo for Gambas3 if you dont have > > any yet. > > > > What do you think Benoit? > > There is a Gambas 3 logo made by Fabien: on the web site, on the wiki, inside > the IDE... Didn't you see it? > -- Regards, Demosthenes Koptsis. From gambas.fr at ...626... Sat Jan 15 21:47:29 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 15 Jan 2011 21:47:29 +0100 Subject: [Gambas-user] i made a Gambas3 logo for icon usage In-Reply-To: <1295116771.20062.32.camel@...2493...> References: <1295104870.19360.8.camel@...2493...> <201101151709.53391.gambas@...1...> <1295116771.20062.32.camel@...2493...> Message-ID: 2011/1/15 Demosthenes Koptsis : > You mean http://gambasdoc.org/image/:logo3 > > i saw it now but i thought it was for wiki or temporary for the app > because it reminds me Gambas1. > > ok it's nice. > > I said that may be you want to continue the style of previous logo which > is more cyber-style. Gambas is a toy, a toy with which we enjoy every day to create something new. Just like a toy, it is simple and ergonomic. Just as with our favorite toys, sometimes we spend the day, toy night, forgetting the time. It reminds me of the best years of my childhood, I find therefore that the comic style matches what has Gambas in my eyes: the best toy I've ever had > > Never mind it ok. > > On Sat, 2011-01-15 at 17:09 +0100, Beno?t Minisini wrote: >> > Hi list i made a Gambas3 logo for usage as application icon >> > >> > see screenshot. >> > >> > http://www.mediafire.com/imageview.php?quickkey=4wau59g3nn0i72e&thumb=4 >> > >> > i hope you like it to use it as new logo for Gambas3 if you dont have >> > any yet. >> > >> > What do you think Benoit? >> >> There is a Gambas 3 logo made by Fabien: on the web site, on the wiki, inside >> the IDE... Didn't you see it? >> > > -- > Regards, > Demosthenes Koptsis. > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From support at ...2529... Sun Jan 16 03:31:07 2011 From: support at ...2529... (John Spikowski) Date: Sat, 15 Jan 2011 18:31:07 -0800 Subject: [Gambas-user] Gambas API options Message-ID: <1295145067.1923.18.camel@...2530...> Hi List, Does Gambas provide a API other languages can access? (shared object) I would like to create the framework for an application in Gambas and interface with it with ScriptBasic. The .so libraries I did peek at didn't seem to have anything useful exported. The following link will show a few examples of scripting libraries and embedding. http://www.scriptbasic.org/forum/index.php/topic,211.0.html John From kevinfishburne at ...1887... Sun Jan 16 05:30:35 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 15 Jan 2011 23:30:35 -0500 Subject: [Gambas-user] MkXXX$() functions In-Reply-To: <201101151858.49189.gambas@...1...> References: <201101150211.48489.gambas@...1...> <201101151514.51734.gambas@...1...> <4D31D56A.1030008@...1887...> <201101151858.49189.gambas@...1...> Message-ID: <4D32746B.6070603@...1887...> On 01/15/2011 12:58 PM, Beno?t Minisini wrote: >> On 01/15/2011 09:14 AM, Beno?t Minisini wrote: >> >> Thanks it is more clear now, because the example of UDP usage of these >> functions i did not understand it. >> >> Beware that these functions may be removed, and replaced by another way of >> forging UDP packets. >> >> [[1]Noooooooo...] ;) Please let us/me know if you do, or what the >> replacements will be. >> The functions are the logical extension of ASC() and STR(), which I'm >> guessing you'll be keeping out of respect for or compatibility with >> old-school BASIC. Maybe ASC() and STR() could be removed, with the >> documentation pointing to the new functions? ASC() and STR() could also >> be used to forge UDP packets and still suffer from the endianness issue. >> -- >> Kevin Fishburne >> Eight Virtues >> www: [2]http://sales.eightvirtues.com >> e-mail: [3]sales at ...1887... >> phone: (770) 853-6271 >> > Here is what I thought when I have written that: > > - Gambas has now structures. > - Structures contents can be written to a stream by the WRITE instruction. > - Streams have support for endianness. > > Now, when you write something to an UDP socket, one writes equals one message, > so you cannot send a message with successives writes. > > Hopefully, when writing a structure, a temporary string is used for storing > the intermediate writes, and so only one write is finally done to the UDP > socket. > > So, please, can you try that? Instead of using strings, create one structure > for each message you send to your UDP socket, fill the structure with the > message contents, and use the WRITE instruction to send the structure to it. > And tell me if it works! :-) And if you finally find it cleaner or not. > > Thanks in advance. > > Regards, > I read the documentation on structures and they look interesting if not tricky. Sounds like a good solution to sending groups of variables of differing datatypes as a single UDP packet, but who knows until I change my code to use structures. Will maintain current build for now to keep moving forward, but will use structures if they are more efficient or the other functions are removed. ASC() and STR() should be removed then, too. Kidding... -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From bbruen at ...2308... Sun Jan 16 13:23:23 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Sun, 16 Jan 2011 22:53:23 +1030 Subject: [Gambas-user] Crash with Free() In-Reply-To: References: Message-ID: <201101162253.24762.bbruen@...2308...> On Friday, January 14, 2011 05:07:45 am Jussi Lahtinen wrote: > Hi! > I was adding some test for pointer arithmetic when noticing this. > GambasTester will pass, but when you close main form, signal 11 will rise. > Commenting out Free(pp) from mTest: line 1070, will prevent crash. > > Gambas 3 rev 3452 @ Ubuntu 10.10 64bit > > Jussi Regardless of pointer algebra, surely if you are going to use reference counting then an explicit call to a destructor will free all local references to any and all local references. I must admit I am getting a little tired of ignored dereferencing. -- best regards Bruce Bruen From gambas at ...1... Sun Jan 16 15:29:47 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 16 Jan 2011 15:29:47 +0100 Subject: [Gambas-user] MkXXX$() functions In-Reply-To: <4D32746B.6070603@...1887...> References: <201101150211.48489.gambas@...1...> <201101151858.49189.gambas@...1...> <4D32746B.6070603@...1887...> Message-ID: <201101161529.47736.gambas@...1...> > > > > Here is what I thought when I have written that: > > > > - Gambas has now structures. > > - Structures contents can be written to a stream by the WRITE > > instruction. - Streams have support for endianness. > > > > Now, when you write something to an UDP socket, one writes equals one > > message, so you cannot send a message with successives writes. > > > > Hopefully, when writing a structure, a temporary string is used for > > storing the intermediate writes, and so only one write is finally done > > to the UDP socket. > > > > So, please, can you try that? Instead of using strings, create one > > structure for each message you send to your UDP socket, fill the > > structure with the message contents, and use the WRITE instruction to > > send the structure to it. And tell me if it works! :-) And if you > > finally find it cleaner or not. > > > > Thanks in advance. > > > > Regards, > > I read the documentation on structures and they look interesting if not > tricky. Sounds like a good solution to sending groups of variables of > differing datatypes as a single UDP packet, but who knows until I change > my code to use structures. Will maintain current build for now to keep > moving forward, but will use structures if they are more efficient or > the other functions are removed. ASC() and STR() should be removed then, > too. Kidding... Asc() and Str$() have nothing to do with the MkXXX$() family. Asc() returns the ASCII code of a character, and Str$() converts an expression into a string by using the current localization. So they won't disappear. But MkXXXX$() do not seem to be useful: - They can be replaced by structures. - Moreover, they can lead to bad design : data sent to the network must be big-endian, and MkXXXX$() cannot guarantee that. For example, ARM CPUs can be big-endian, and they become more and more important! - And, finally, your code will be cleaner and easier to read if you replace a bunch of MkXXXX$() by structures. And a little bit faster! :-) I hope I will convince you to rewrite your code. :-s P.S. Did you write an article for Slashdot recently? -- Beno?t Minisini From demosthenesk at ...626... Sun Jan 16 15:35:45 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 16 Jan 2011 16:35:45 +0200 Subject: [Gambas-user] i made a Gambas3 logo for icon usage In-Reply-To: References: <1295104870.19360.8.camel@...2493...> <201101151709.53391.gambas@...1...> <1295116771.20062.32.camel@...2493...> Message-ID: <1295188545.21758.8.camel@...2493...> aaaaaaaah.... you remind me nostalgia and sensitive emotions !!! ok it's just perfect then for the approach you describe. For me to speak, i came from PHP plane :) so my approach was more strict and business like and that's why i was preferring the cyber pc like approach. But from now on i will follow the Gambas way because BASIC was my first language in age of 14 and Gambas reminds me all these you describe. Keep the good effort! On Sat, 2011-01-15 at 21:47 +0100, Fabien Bodard wrote: > 2011/1/15 Demosthenes Koptsis : > > You mean http://gambasdoc.org/image/:logo3 > > > > i saw it now but i thought it was for wiki or temporary for the app > > because it reminds me Gambas1. > > > > ok it's nice. > > > > I said that may be you want to continue the style of previous logo which > > is more cyber-style. > > Gambas is a toy, a toy with which we enjoy every day to create something new. > Just like a toy, it is simple and ergonomic. Just as with our favorite > toys, sometimes we spend the day, toy night, forgetting the time. > > It reminds me of the best years of my childhood, I find therefore that > the comic style matches what has Gambas in my eyes: the best toy I've > ever had > > > > > Never mind it ok. > > > > On Sat, 2011-01-15 at 17:09 +0100, Beno?t Minisini wrote: > >> > Hi list i made a Gambas3 logo for usage as application icon > >> > > >> > see screenshot. > >> > > >> > http://www.mediafire.com/imageview.php?quickkey=4wau59g3nn0i72e&thumb=4 > >> > > >> > i hope you like it to use it as new logo for Gambas3 if you dont have > >> > any yet. > >> > > >> > What do you think Benoit? > >> > >> There is a Gambas 3 logo made by Fabien: on the web site, on the wiki, inside > >> the IDE... Didn't you see it? > >> > > > > -- > > Regards, > > Demosthenes Koptsis. > > > > > > ------------------------------------------------------------------------------ > > Protect Your Site and Customers from Malware Attacks > > Learn about various malware tactics and how to avoid them. Understand > > malware threats, the impact they can have on your business, and how you > > can protect your company and customers by using code signing. > > http://p.sf.net/sfu/oracle-sfdevnl > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > -- Regards, Demosthenes Koptsis. From gambas at ...1... Sun Jan 16 15:36:38 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 16 Jan 2011 15:36:38 +0100 Subject: [Gambas-user] DataSource.Cancel() In-Reply-To: <4D31C522.5060703@...20...> References: <4D31C522.5060703@...20...> Message-ID: <201101161536.38166.gambas@...1...> > hi developers, > > can you tell me please what the undocumented method DataSource.Cancel() > does? > > regards, > tobi > It cancels the current record edition by resetting all DataControls that depends on the DataSource to their initial value. Sorry for not having documented gb.db.form yet. Regards, -- Beno?t Minisini From support at ...2529... Sun Jan 16 15:53:49 2011 From: support at ...2529... (John Spikowski) Date: Sun, 16 Jan 2011 06:53:49 -0800 Subject: [Gambas-user] gb.qte Message-ID: <1295189629.19607.6.camel@...2530...> Can someone tell me what the trick is to get gb.gte to pass the configure script. I'm pretty sure I have all the dependencies required installed. (libqt3-mt-dev_3.3.8-b-6ubuntu2_i386.deb) Ubuntu 32 10.10 From gambas at ...1... Sun Jan 16 15:54:34 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 16 Jan 2011 15:54:34 +0100 Subject: [Gambas-user] Menu.Picture In-Reply-To: <201101150210.14106.gambas@...1...> References: <201101150210.14106.gambas@...1...> Message-ID: <201101161554.34546.gambas@...1...> > > Hi, It seems to be possible to add a picture to menu, but it works only > > with sub-menu.The top-menu shows no picture. Gambas2 Rev. 3439Ubuntu > > 10.04GTK+ > > > > RegardsIvan > > It seems but not. Parent menus can have a picture with gb.qt4, but not with > gb.gtk. I will check if it is a GTK+ impossibility, or something that I can > implement. > > Regards, Actually gb.gtk parent menu can have a picture exactly like gb.qt4 parent menu. But gb.qt4 can display both a check mark and a picture, whereas gb.gtk will not display the picture if there is a check mark. If you were actually talking about top-level menus (i.e. menus in the menu bar), they cannot have pictures at all. Both in gb.qt4 and gb.gtk. Regards, -- Beno?t Minisini From gambas at ...1... Sun Jan 16 17:39:21 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 16 Jan 2011 17:39:21 +0100 Subject: [Gambas-user] Little editor "feature" in Gambas2 In-Reply-To: <4D2DDED3.1010706@...221...> References: <4D2C08AD.7020303@...221...> <201101111842.12462.gambas@...1...> <4D2DDED3.1010706@...221...> Message-ID: <201101161739.21523.gambas@...1...> > Am 11.01.2011 18:42, schrieb Beno?t Minisini: > >> Moin, > >> > >> Just found this one, don't know if it's been removed in Gambas3. When I > >> define several arrays of strings on one line within a SUB, later the > >> names are recognized. Example: > >> > >> DIM sMyStrings1, sMyStrings2 AS NEW String[] > >> > >> Then type > >> > >> sMyStrings1. > >> > >> and the list with "Add, Bounds, Clear..." will appear. > >> > >> However, if I define the arrays outside the SUBs for public use, they > >> will be recognized only if defined solely one by one on a separate line > >> each, i. e. > >> > >> PUBLIC sMyStrings1, sMyStrings2 AS NEW String[] > >> > >> then within a SUB type > >> > >> sMyStrings1. > >> > >> and nothing happens, but if I do > >> > >> PUBLIC sMyStrings1 AS NEW String[] > >> PUBLIC sMyStrings2 AS NEW String[] > >> > >> they are recognized. > >> > >> Or am I doing something false here the interpreter will understand > >> wrong? > >> > >> Regards > >> > >> Rolf > > > > I'm afraid it was never implemented, both in Gambas 2 and Gambas 3! > > Ok :-) At least, it's not my mistake... > Sorry, I told rubbish. Declaring several variables on the same line is only allowed with the DIM statement. Each public or private global variable must be alone on its line. If you try to compile "PUBLIC sMyStrings1, sMyStrings2 AS NEW String[]", you will get an error. Regards, -- Beno?t Minisini From kevinfishburne at ...1887... Sun Jan 16 18:31:48 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 16 Jan 2011 12:31:48 -0500 Subject: [Gambas-user] MkXXX$() functions In-Reply-To: <201101161529.47736.gambas@...1...> References: <201101150211.48489.gambas@...1...> <201101151858.49189.gambas@...1...> <4D32746B.6070603@...1887...> <201101161529.47736.gambas@...1...> Message-ID: <4D332B84.40603@...1887...> On 01/16/2011 09:29 AM, Beno?t Minisini wrote: >> >> I read the documentation on structures and they look interesting if not >> tricky. Sounds like a good solution to sending groups of variables of >> differing datatypes as a single UDP packet, but who knows until I change >> my code to use structures. Will maintain current build for now to keep >> moving forward, but will use structures if they are more efficient or >> the other functions are removed. ASC() and STR() should be removed then, >> too. Kidding... > Asc() and Str$() have nothing to do with the MkXXX$() family. Asc() returns > the ASCII code of a character, and Str$() converts an expression into a string > by using the current localization. So they won't disappear. > > But MkXXXX$() do not seem to be useful: > > - They can be replaced by structures. > > - Moreover, they can lead to bad design : data sent to the network must be > big-endian, and MkXXXX$() cannot guarantee that. For example, ARM CPUs can be > big-endian, and they become more and more important! > > - And, finally, your code will be cleaner and easier to read if you replace a > bunch of MkXXXX$() by structures. And a little bit faster! :-) > > I hope I will convince you to rewrite your code. :-s > > P.S. Did you write an article for Slashdot recently? > Yes, it seems you have convinced me. I have one final question however. Currently a UDP packet is being received as a single string of mixed datatypes. The recipient looks at the value of the first byte to determine the type of packet. Here are some made-up examples of packet contents: Byte=0, String=?, String=? Byte=1, Short=?, Short=?, Float=?, Float=?, Byte=?, Byte=? Byte=2, Byte=?, Byte=?, Float=?, Float=? The three packets have different total sizes and different datatype patterns. The only reliable constant is that first identifying byte. There are hundreds of packet types to minimize bandwidth, each one tailored to a specific purpose. Is it possible for the recipient to load the UDP packet into a structure without knowing which structure it needs to go in to? Basically, if I know the first value in the structure is always a byte, can only that byte be read before dumping the entire thing back into a structure? And yes, I had my first Slashdot article posted yesterday. Ken at Ultima Aiera said he got a record for hits to his site because of it...nice. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Sun Jan 16 18:49:51 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 16 Jan 2011 18:49:51 +0100 Subject: [Gambas-user] MkXXX$() functions In-Reply-To: <4D332B84.40603@...1887...> References: <201101150211.48489.gambas@...1...> <201101161529.47736.gambas@...1...> <4D332B84.40603@...1887...> Message-ID: <201101161849.51722.gambas@...1...> > > Yes, it seems you have convinced me. I have one final question however. > Currently a UDP packet is being received as a single string of mixed > datatypes. The recipient looks at the value of the first byte to > determine the type of packet. Here are some made-up examples of packet > contents: > > Byte=0, String=?, String=? > Byte=1, Short=?, Short=?, Float=?, Float=?, Byte=?, Byte=? > Byte=2, Byte=?, Byte=?, Float=?, Float=? > > The three packets have different total sizes and different datatype > patterns. The only reliable constant is that first identifying byte. > There are hundreds of packet types to minimize bandwidth, each one > tailored to a specific purpose. > > Is it possible for the recipient to load the UDP packet into a structure > without knowing which structure it needs to go in to? Basically, if I > know the first value in the structure is always a byte, can only that > byte be read before dumping the entire thing back into a structure? Yes. Reading and writing are not done the same way with UdpSocket. When you write a bunch of bytes, one Udp message is made from all the bytes and sent. When something is received from an Udp socket, the data is buffered, and you can read it with several READ instructions until EOF is raised. So, you can do: Public Struct Message0 ... End Struct Public Sub MyUdpSocket_Read Dim iType As Integer iType = Read #MyUdpSocket As Byte Select Case iType Case 0 ReadMessage0 Case 1 ReadMessage1 ... End Select End Private Sub ReadMessage0() Dim tMessage As Message0 tMessage = Read #MyUdpSocket As Message0 ... End ... > > And yes, I had my first Slashdot article posted yesterday. Ken at Ultima > Aiera said he got a record for hits to his site because of it...nice. Cool. :-) -- Beno?t Minisini From gambas at ...1... Sun Jan 16 18:57:48 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 16 Jan 2011 18:57:48 +0100 Subject: [Gambas-user] Is this a libtool 2.4 Compile error? In-Reply-To: <30676125.post@...1379...> References: <30676125.post@...1379...> Message-ID: <201101161857.48379.gambas@...1...> > I've got two machines doing this, both compiled fine before I upgraded to > Fedora 15 pre-alpha. I am sure it's not a gambas3 bug but maybe something > that will need to be addressed when Fedora 15 goes final. > > /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. > -DGBX_INFO -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden > -g -Os -I../share -D_REENTRANT -I/usr/lib64/libffi-3.0.9/include -O0 > -MT gb_la-gbx_c_class.lo -MD -MP -MF .deps/gb_la-gbx_c_class.Tpo -c -o > gb_la-gbx_c_class.lo `test -f 'gbx_c_class.c' || echo './'`gbx_c_class.c > ../libtool: line 2095: gbx_c_class.c: command not found > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share > -D_REENTRANT -I/usr/lib64/libffi-3.0.9/include -O0 -MT gb_la-gbx_c_class.lo > -MD -MP -MF .deps/gb_la-gbx_c_class.Tpo -c "" -fPIC -DPIC -o > .libs/gb_la-gbx_c_class.o > gcc: : No such file or directory > gcc: no input files > make[4]: *** [gb_la-gbx_c_class.lo] Error 1 > make[4]: Leaving directory `/home/andy/trunk/main/gbx' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/andy/trunk/main' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/andy/trunk/main' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/andy/trunk' > make: *** [all] Error 2 > [andy at ...2528... trunk]$ rpm -qa|grep libtool > libtool-ltdl-2.4-2.fc15.x86_64 > libtool-ltdl-devel-2.4-2.fc15.x86_64 > libtool-ltdl-2.4-2.fc15.i686 > libtool-debuginfo-2.4-2.fc15.x86_64 > libtool-2.4-2.fc15.x86_64 > [andy at ...2528... trunk]$ > > reconf-all and configure went fine, but I can upload the log if need be. > > Thanks > Andy No idea... -- Beno?t Minisini From kevinfishburne at ...1887... Sun Jan 16 19:14:37 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 16 Jan 2011 13:14:37 -0500 Subject: [Gambas-user] MkXXX$() functions In-Reply-To: <201101161849.51722.gambas@...1...> References: <201101150211.48489.gambas@...1...> <201101161529.47736.gambas@...1...> <4D332B84.40603@...1887...> <201101161849.51722.gambas@...1...> Message-ID: <4D33358D.5060102@...1887...> On 01/16/2011 12:49 PM, Beno?t Minisini wrote: >> Yes, it seems you have convinced me. I have one final question however. >> Currently a UDP packet is being received as a single string of mixed >> datatypes. The recipient looks at the value of the first byte to >> determine the type of packet. Here are some made-up examples of packet >> contents: >> >> Byte=0, String=?, String=? >> Byte=1, Short=?, Short=?, Float=?, Float=?, Byte=?, Byte=? >> Byte=2, Byte=?, Byte=?, Float=?, Float=? >> >> The three packets have different total sizes and different datatype >> patterns. The only reliable constant is that first identifying byte. >> There are hundreds of packet types to minimize bandwidth, each one >> tailored to a specific purpose. >> >> Is it possible for the recipient to load the UDP packet into a structure >> without knowing which structure it needs to go in to? Basically, if I >> know the first value in the structure is always a byte, can only that >> byte be read before dumping the entire thing back into a structure? > Yes. > > Reading and writing are not done the same way with UdpSocket. > > When you write a bunch of bytes, one Udp message is made from all the bytes > and sent. > > When something is received from an Udp socket, the data is buffered, and you > can read it with several READ instructions until EOF is raised. > > So, you can do: > > Public Struct Message0 > ... > End Struct > > Public Sub MyUdpSocket_Read > > Dim iType As Integer > > iType = Read #MyUdpSocket As Byte > > Select Case iType > Case 0 > ReadMessage0 > Case 1 > ReadMessage1 > ... > End Select > > End > > Private Sub ReadMessage0() > > Dim tMessage As Message0 > > tMessage = Read #MyUdpSocket As Message0 > ... > > End > > ... > >> And yes, I had my first Slashdot article posted yesterday. Ken at Ultima >> Aiera said he got a record for hits to his site because of it...nice. > Cool. :-) > That is extremely awesome. Thanks for the explanation and example code. I'll go ahead and start converting my code, so you'll get no trouble from me by removing the functions. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From math.eber at ...221... Sun Jan 16 20:12:46 2011 From: math.eber at ...221... (Matti) Date: Sun, 16 Jan 2011 20:12:46 +0100 Subject: [Gambas-user] Package Error Message-ID: <4D33432E.3080907@...221...> I tried to make a package of a project for Ubuntu. But I get the error: Erstelle Paket f?r Ubuntu. (creating packet for ubuntu) Erstelle Build-Verzeichnis. (creating build directory) Erstelle Desktop-Datei... (creating desktop file) Quelldateien werden ins Debian-Format ?berf?hrt. (source files are translatedt to debian format) Erstelle Paket... (creating package) Die Paketerstellung ist fehlgeschlagen. (creating package failed) Package.MakeDebPackage.691: 'dpkg-buildpackage' ist fehlgeschlagen. (... failed) I can't find anything in the source code of Package what the reason could be, so: Is it my error or a bug? gb3 rev. 3457 @ OpenSuSe 11.2 Regards Matti From gambas at ...2524... Sun Jan 16 21:24:50 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 16 Jan 2011 20:24:50 +0000 Subject: [Gambas-user] Issue 11 in gambas: Bug with Single & Round() Message-ID: <0-6813199134517018827-15625551536519456297-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any New issue 11 by jussi.la... at ...626...: Bug with Single & Round() http://code.google.com/p/gambas/issues/detail?id=11 Way to reproduce bug: Dim sgn1 As Single sgn1 = 6 Print Round(sgn1 + 0.01) Result; 0, should be 6. Works perfectly with floats. Version: TRUNK rev 3457 Operating system: Linux Distribution: Ubuntu 10.10 From gambas at ...2524... Sun Jan 16 22:56:09 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 16 Jan 2011 21:56:09 +0000 Subject: [Gambas-user] Issue 11 in gambas: Bug with Single & Round() In-Reply-To: <0-6813199134517018827-15625551536519456297-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-15625551536519456297-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-15625551536519456297-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK GUI-Any Comment #1 on issue 11 by benoit.m... at ...626...: Bug with Single & Round() http://code.google.com/p/gambas/issues/detail?id=11 (No comment was entered for this change.) From gambas at ...2524... Sun Jan 16 23:05:19 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 16 Jan 2011 22:05:19 +0000 Subject: [Gambas-user] Issue 11 in gambas: Bug with Single & Round() In-Reply-To: <1-6813199134517018827-15625551536519456297-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-15625551536519456297-gambas=googlecode.com@...2524...> <0-6813199134517018827-15625551536519456297-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-15625551536519456297-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 11 by benoit.m... at ...626...: Bug with Single & Round() http://code.google.com/p/gambas/issues/detail?id=11 Fixed in revision #3460. From gambas at ...2524... Mon Jan 17 00:26:38 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 16 Jan 2011 23:26:38 +0000 Subject: [Gambas-user] Issue 8 in gambas: GTK+ label is visible when visible=false and autoresize=true In-Reply-To: <1-6813199134517018827-7816974949307265558-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-7816974949307265558-gambas=googlecode.com@...2524...> <0-6813199134517018827-7816974949307265558-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-7816974949307265558-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 8 by benoit.m... at ...626...: GTK+ label is visible when visible=false and autoresize=true http://code.google.com/p/gambas/issues/detail?id=8 Fixed in revision #3461. From gambas at ...2524... Mon Jan 17 00:30:40 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 16 Jan 2011 23:30:40 +0000 Subject: [Gambas-user] Issue 7 in gambas: font size of tabstrip control inherited by child controls In-Reply-To: <1-6813199134517018827-8359884942079903320-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-8359884942079903320-gambas=googlecode.com@...2524...> <0-6813199134517018827-8359884942079903320-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-8359884942079903320-gambas=googlecode.com@...2524...> Updates: Labels: -Version Version-TRUNK Comment #2 on issue 7 by benoit.m... at ...626...: font size of tabstrip control inherited by child controls http://code.google.com/p/gambas/issues/detail?id=7 (No comment was entered for this change.) From nando_f at ...951... Mon Jan 17 02:49:38 2011 From: nando_f at ...951... (nando) Date: Sun, 16 Jan 2011 21:49:38 -0400 Subject: [Gambas-user] some questions of: Struct Message-ID: <20110117014523.M20623@...951...> Benoit, 1) What version is struct implemented? 2) Reading and writing a struct to a stream (file, etc) is an exact copy of the struct? 3) Does struct pad with bytes to fit alignments or is it exact as defined? 4) This is similar to RECORD in VB. -Fernando From gambas at ...1... Mon Jan 17 03:18:07 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 17 Jan 2011 03:18:07 +0100 Subject: [Gambas-user] some questions of: Struct In-Reply-To: <20110117014523.M20623@...951...> References: <20110117014523.M20623@...951...> Message-ID: <201101170318.07779.gambas@...1...> > Benoit, > 1) What version is struct implemented? I think you want to know that structures are implemented in Gambas 3 only. > 2) Reading and writing a struct to a stream (file, etc) is an exact copy of > the struct? Of course not. Data is serialized. Writing (or reading) a structure is exactly like writing (or reading) each field with the WRITE (or READ) instruction. This is done recursively if there are structures inside structures. Consequently, as soon as you don't use strings, the data written to the stream will look like what is stored in memory, but without padding (see the next question). > 3) Does struct pad with bytes to fit alignments or is it exact > as defined? There is padding, so that an short is stored at a memory address multiple of 2, an integer or a single at a memory address multiple of 4, a long, a float or a date at a memory address multiple of 8. A more complex datatype (a pointer, an object reference, an embedded structure or array) is stored at an address multiple of 4 on a 32 bits system, and at an address multiple of 8 on a 64 bits system. Finally, an entire object is padded so that its size is a multiple of 4 on a 32 bits system, and a multiple of 8 on a 64 bits system. > 4) This is similar to RECORD in VB. I don't know. Regards, -- Beno?t Minisini From nando_f at ...951... Mon Jan 17 03:55:26 2011 From: nando_f at ...951... (nando) Date: Sun, 16 Jan 2011 22:55:26 -0400 Subject: [Gambas-user] some questions of: Struct In-Reply-To: <201101170318.07779.gambas@...1...> References: <20110117014523.M20623@...951...> <201101170318.07779.gambas@...1...> Message-ID: <20110117025443.M57106@...951...> Thank you for your reply. For #2: I meant, the serialization is in order of the struct as defined. ---------- Original Message ----------- From: Beno?t Minisini To: nando_f at ...951..., mailing list for gambas users Sent: Mon, 17 Jan 2011 03:18:07 +0100 Subject: Re: [Gambas-user] some questions of: Struct > > Benoit, > > 1) What version is struct implemented? > > I think you want to know that structures are implemented in Gambas 3 only. > > > 2) Reading and writing a struct to a stream (file, etc) is an exact copy of > > the struct? > > Of course not. Data is serialized. > > Writing (or reading) a structure is exactly like writing (or reading) each > field with the WRITE (or READ) instruction. This is done recursively if there > are structures inside structures. > > Consequently, as soon as you don't use strings, the data written to the stream > will look like what is stored in memory, but without padding (see the next > question). > > > 3) Does struct pad with bytes to fit alignments or is it exact > > as defined? > > There is padding, so that an short is stored at a memory address multiple of > 2, an integer or a single at a memory address multiple of 4, a long, a float > or a date at a memory address multiple of 8. A more complex datatype (a > pointer, an object reference, an embedded structure or array) is stored at an > address multiple of 4 on a 32 bits system, and at an address multiple of 8 on > a 64 bits system. Finally, an entire object is padded so that its size is a > multiple of 4 on a 32 bits system, and a multiple of 8 on a 64 bits system. > > > 4) This is similar to RECORD in VB. > > I don't know. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From eilert-sprachen at ...221... Mon Jan 17 08:18:19 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 17 Jan 2011 08:18:19 +0100 Subject: [Gambas-user] Little editor "feature" in Gambas2 In-Reply-To: <201101161739.21523.gambas@...1...> References: <4D2C08AD.7020303@...221...> <201101111842.12462.gambas@...1...> <4D2DDED3.1010706@...221...> <201101161739.21523.gambas@...1...> Message-ID: <4D33ED3B.9020409@...221...> Am 16.01.2011 17:39, schrieb Beno?t Minisini: >> Am 11.01.2011 18:42, schrieb Beno?t Minisini: >>>> Moin, >>>> >>>> Just found this one, don't know if it's been removed in Gambas3. When I >>>> define several arrays of strings on one line within a SUB, later the >>>> names are recognized. Example: >>>> >>>> DIM sMyStrings1, sMyStrings2 AS NEW String[] >>>> >>>> Then type >>>> >>>> sMyStrings1. >>>> >>>> and the list with "Add, Bounds, Clear..." will appear. >>>> >>>> However, if I define the arrays outside the SUBs for public use, they >>>> will be recognized only if defined solely one by one on a separate line >>>> each, i. e. >>>> >>>> PUBLIC sMyStrings1, sMyStrings2 AS NEW String[] >>>> >>>> then within a SUB type >>>> >>>> sMyStrings1. >>>> >>>> and nothing happens, but if I do >>>> >>>> PUBLIC sMyStrings1 AS NEW String[] >>>> PUBLIC sMyStrings2 AS NEW String[] >>>> >>>> they are recognized. >>>> >>>> Or am I doing something false here the interpreter will understand >>>> wrong? >>>> >>>> Regards >>>> >>>> Rolf >>> >>> I'm afraid it was never implemented, both in Gambas 2 and Gambas 3! >> >> Ok :-) At least, it's not my mistake... >> > > Sorry, I told rubbish. > > Declaring several variables on the same line is only allowed with the DIM > statement. Each public or private global variable must be alone on its line. > > If you try to compile "PUBLIC sMyStrings1, sMyStrings2 AS NEW String[]", you > will get an error. > > Regards, > > > Ah ok, that's the difference, I see. But DIM isn't allowed for module level, is it? Have a nice week :-) Regards Rolf From demosthenesk at ...626... Mon Jan 17 09:33:43 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 17 Jan 2011 10:33:43 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 In-Reply-To: References: <1294502974.10206.1.camel@...2493...> <1294693555.4768.29.camel@...2494...> <201101111947.42352.gambas@...1...> Message-ID: <1295253223.3298.12.camel@...2493...> Here is a last case about pointers i found. CASE 1 ------- When a C++ function does not malloc any memory it may return a pointer. In this case we can do DIM pPointer as Pointer pPointer = Alloc(4096)' alloc 4096 bytes pPointer = getwd(pBuf) 'use pPointer with Str@() or other xxx@() Free(pPointer) pPointer=0 OK! CASE 2 ------- When a c++ function itself allocate memory with malloc() what can we do? Example. -------- ' Gambas module file 'char *get_current_dir_name(void); Extern get_current_dir_name() As Pointer In "libc:6" Public Sub Main() Dim pFunc As Pointer Dim sWorkingDirectory As String 'get_current_dir_name pFunc = Alloc(4096) Print pFunc '0xc12938 pFunc = get_current_dir_name() Print pFunc '0xc147a0 'now we cannot Free(pFunc) it is not 0xc12938 anymore 'get_current_dir_name() malloc itself memory and return a new pointer sWorkingDirectory = Str@(pFunc) Print sWorkingDirectory ' Free(pFunc) 'if i unrem Free i get a crash, because i try to free the 0xc147a0 pFunc = 0 End What can we do in such cases when a function itself allocates memory? Should we free it? Can we? May be we can use pointers without Alloc()? Example, no Alloc(), no Free, just DIM pPointer --------- ' Gambas module file 'char *get_current_dir_name(void); Extern get_current_dir_name() As Pointer In "libc:6" Public Sub Main() Dim pFunc As Pointer Dim sWorkingDirectory As String 'get_current_dir_name pFunc = get_current_dir_name() Print pFunc '0xc147a0 sWorkingDirectory = Str@(pFunc) Print sWorkingDirectory pFunc = 0 End From gambas at ...1... Mon Jan 17 11:08:51 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 17 Jan 2011 11:08:51 +0100 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 In-Reply-To: <1295253223.3298.12.camel@...2493...> References: <1294502974.10206.1.camel@...2493...> <1295253223.3298.12.camel@...2493...> Message-ID: <201101171108.51867.gambas@...1...> > Here is a last case about pointers i found. > > CASE 1 > ------- > When a C++ function does not malloc any memory it may return a pointer. > In this case we can do > > DIM pPointer as Pointer > pPointer = Alloc(4096)' alloc 4096 bytes > > pPointer = getwd(pBuf) > > 'use pPointer with Str@() or other xxx@() > > Free(pPointer) > pPointer=0 > > OK! > > CASE 2 > ------- > When a c++ function itself allocate memory with malloc() what can we do? > > Example. > -------- > ' Gambas module file > 'char *get_current_dir_name(void); > Extern get_current_dir_name() As Pointer In "libc:6" > > Public Sub Main() > > Dim pFunc As Pointer > Dim sWorkingDirectory As String > > 'get_current_dir_name > pFunc = Alloc(4096) > Print pFunc '0xc12938 > > pFunc = get_current_dir_name() > Print pFunc '0xc147a0 > > 'now we cannot Free(pFunc) it is not 0xc12938 anymore > 'get_current_dir_name() malloc itself memory and return a new pointer > > sWorkingDirectory = Str@(pFunc) > Print sWorkingDirectory > > ' Free(pFunc) > 'if i unrem Free i get a crash, because i try to free the 0xc147a0 > pFunc = 0 > > End > > What can we do in such cases when a function itself allocates memory? > Should we free it? Can we? > > May be we can use pointers without Alloc()? > > Example, no Alloc(), no Free, just DIM pPointer > --------- > ' Gambas module file > 'char *get_current_dir_name(void); > Extern get_current_dir_name() As Pointer In "libc:6" > > Public Sub Main() > > Dim pFunc As Pointer > Dim sWorkingDirectory As String > > 'get_current_dir_name > > pFunc = get_current_dir_name() > Print pFunc '0xc147a0 > > sWorkingDirectory = Str@(pFunc) > Print sWorkingDirectory > > pFunc = 0 > > End > What must be done with with a pointer returned by a C / C++ function depends on the function semantic. You must read and *understand* the function documentation to know. Some functions return a pointer that you must free yourself with Free(). Some functions return a pointer that you must not free. Some functions return a pointer that you must free by calling a dedicated function, and not Free(). ... Everything is possible. Regards, -- Beno?t Minisini From demosthenesk at ...626... Mon Jan 17 11:27:12 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 17 Jan 2011 12:27:12 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 In-Reply-To: <201101171108.51867.gambas@...1...> References: <1294502974.10206.1.camel@...2493...> <1295253223.3298.12.camel@...2493...> <201101171108.51867.gambas@...1...> Message-ID: <1295260032.3813.2.camel@...2493...> On Mon, 2011-01-17 at 11:08 +0100, Beno?t Minisini wrote: > > Here is a last case about pointers i found. > > > > CASE 1 > > ------- > > When a C++ function does not malloc any memory it may return a pointer. > > In this case we can do > > > > DIM pPointer as Pointer > > pPointer = Alloc(4096)' alloc 4096 bytes > > > > pPointer = getwd(pBuf) > > > > 'use pPointer with Str@() or other xxx@() > > > > Free(pPointer) > > pPointer=0 > > > > OK! > > > > CASE 2 > > ------- > > When a c++ function itself allocate memory with malloc() what can we do? > > > > Example. > > -------- > > ' Gambas module file > > 'char *get_current_dir_name(void); > > Extern get_current_dir_name() As Pointer In "libc:6" > > > > Public Sub Main() > > > > Dim pFunc As Pointer > > Dim sWorkingDirectory As String > > > > 'get_current_dir_name > > pFunc = Alloc(4096) > > Print pFunc '0xc12938 > > > > pFunc = get_current_dir_name() > > Print pFunc '0xc147a0 > > > > 'now we cannot Free(pFunc) it is not 0xc12938 anymore > > 'get_current_dir_name() malloc itself memory and return a new pointer > > > > sWorkingDirectory = Str@(pFunc) > > Print sWorkingDirectory > > > > ' Free(pFunc) > > 'if i unrem Free i get a crash, because i try to free the 0xc147a0 > > pFunc = 0 > > > > End > > > > What can we do in such cases when a function itself allocates memory? > > Should we free it? Can we? > > > > May be we can use pointers without Alloc()? > > > > Example, no Alloc(), no Free, just DIM pPointer > > --------- > > ' Gambas module file > > 'char *get_current_dir_name(void); > > Extern get_current_dir_name() As Pointer In "libc:6" > > > > Public Sub Main() > > > > Dim pFunc As Pointer > > Dim sWorkingDirectory As String > > > > 'get_current_dir_name > > > > pFunc = get_current_dir_name() > > Print pFunc '0xc147a0 > > > > sWorkingDirectory = Str@(pFunc) > > Print sWorkingDirectory > > > > pFunc = 0 > > > > End > > > > What must be done with with a pointer returned by a C / C++ function depends > on the function semantic. > > You must read and *understand* the function documentation to know. ok... > > Some functions return a pointer that you must free yourself with Free(). > > Some functions return a pointer that you must not free. > > Some functions return a pointer that you must free by calling a dedicated > function, and not Free(). so in case of get_current_dir_name(), i should use the free function of c++ ? that is i understand form manual. "get_current_dir_name() will malloc(3) an array big enough to hold the absolute pathname of the current working directory. If the environment variable PWD is set, and its value is correct, then that value will be returned. The caller should free(3) the returned buffer.' > ... Everything is possible. > > Regards, > -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Mon Jan 17 11:50:17 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 17 Jan 2011 12:50:17 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 Message-ID: <1295261417.3813.8.camel@...2493...> Benoit sorry if you feel that i discuss C++ cases in a Gambas list but i try to describe some cases of pointers and the usage of them in Gambas. For me and as i think for any Gambas developer the subject of pointers and reading man 3 is a new thing. Same questions may be come also in the future from other users which they try to use external functions so please be patient and give help, as you can, to newbies. On the other hand if you think that this C++ cases are not subjects about Gambas please tell me to stop, i will understand and sorry. -- Regards, Demosthenes Koptsis. -------------- next part -------------- An embedded message was scrubbed... From: Demosthenes Koptsis Subject: Re: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 Date: Mon, 17 Jan 2011 12:27:12 +0200 Size: 3578 URL: From ihaywood at ...1979... Mon Jan 17 12:00:26 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Mon, 17 Jan 2011 22:00:26 +1100 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 In-Reply-To: <1295261417.3813.8.camel@...2493...> References: <1295261417.3813.8.camel@...2493...> Message-ID: On Mon, Jan 17, 2011 at 9:50 PM, Demosthenes Koptsis wrote: > > Benoit sorry if you feel that i discuss C++ cases in a Gambas list but i > try to describe some cases of pointers and the usage of them in Gambas. IMHO the issue is C pointers aren't an easy topic and good conceptual understanding is important. Anyone who contemplates interfacing with a C API using pointers would need to sit down and read a standard C textbook to get a proper understanding: it's not something where you can give a few "quick tips" in a Gambas manual and then people can actually go away and use them. Similarly I can see how it's hard for Benoit and others to answer your questions without launching into a ten-page tutorial on C pointers. More importantly they have no other use in the language, so there's no point learning about gambas pointers unless you are prepared to learn C anyway. My advice would be to make a choice: 1. sit down and learn basic C and how to use C pointers, then come back to this problem 2. leave Gambas pointers alone and concentrate on other sections Ian From demosthenesk at ...626... Mon Jan 17 12:20:49 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 17 Jan 2011 13:20:49 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 In-Reply-To: References: <1295261417.3813.8.camel@...2493...> Message-ID: <1295263249.4080.13.camel@...2493...> On Mon, 2011-01-17 at 22:00 +1100, Ian Haywood wrote: > On Mon, Jan 17, 2011 at 9:50 PM, Demosthenes Koptsis > wrote: > > > > Benoit sorry if you feel that i discuss C++ cases in a Gambas list but i > > try to describe some cases of pointers and the usage of them in Gambas. > IMHO the issue is C pointers aren't an easy topic and good conceptual > understanding > is important. Anyone who contemplates interfacing with a C API using > pointers would need to sit down and read a standard C textbook to get a proper > understanding: it's not something where you can give a few "quick tips" in a > Gambas manual and then people can actually go away and use them. > Similarly I can see how it's hard for Benoit and others to answer your questions > without launching into a ten-page tutorial on C pointers. Yes and this will be the answers for any newbie who will start with external functions. i dont think that C++ programmers will come to Gambas to use external functions, the opposite i think will be. Gambas users will learn the basics of C++ and start use Gambas. My case is that. On the other hand i am not completely unaware of C++. i just have not used to man(3) yet as it is expected. > More importantly they have no other use in the language, so there's no point > learning about gambas pointers unless you are prepared to learn C anyway. > > My advice would be to make a choice: > 1. sit down and learn basic C and how to use C pointers, then come > back to this problem i have already did this basic steps. now i study other things as how c++ functions implements in Gambas. The answer of Benoit was right about how to free a pointer, cases which use Free() instruction of Gambas or cases which call external functions to free a pointer which is declared in Gambas. This is a detail not easily shown and i must describe it for a Gambas user, it is good to know it. > 2. leave Gambas pointers alone and concentrate on other sections > Ian > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user so, in previous example i think it works like this, ' Gambas module file 'char *get_current_dir_name(void); Extern get_current_dir_name() As Pointer In "libc:6" 'void free(void *ptr); Extern free_ptr(ptr As Pointer) In "libc:6" Exec "free" Public Sub Main() Dim pFunc As Pointer Dim sWorkingDirectory As String 'get_current_dir_name pFunc = get_current_dir_name() Print pFunc sWorkingDirectory = Str@(pFunc) Print sWorkingDirectory free_ptr(pFunc) pFunc = 0 End and i hope these examples and these cases will be helpful for anyone. -- Regards, Demosthenes Koptsis. From gambas at ...1... Mon Jan 17 12:27:15 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 17 Jan 2011 12:27:15 +0100 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 In-Reply-To: <1295263249.4080.13.camel@...2493...> References: <1295261417.3813.8.camel@...2493...> <1295263249.4080.13.camel@...2493...> Message-ID: <201101171227.15234.gambas@...1...> > > i dont think that C++ programmers will come to Gambas to use external > functions, the opposite i think will be. > We are talking about C. Calling C++ functions from Gambas is almost impossible. -- Beno?t Minisini From demosthenesk at ...626... Mon Jan 17 12:37:32 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 17 Jan 2011 13:37:32 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 In-Reply-To: <201101171227.15234.gambas@...1...> References: <1295261417.3813.8.camel@...2493...> <1295263249.4080.13.camel@...2493...> <201101171227.15234.gambas@...1...> Message-ID: <1295264252.4080.14.camel@...2493...> sorry my wrong expression. On Mon, 2011-01-17 at 12:27 +0100, Beno?t Minisini wrote: > > > > i dont think that C++ programmers will come to Gambas to use external > > functions, the opposite i think will be. > > > > We are talking about C. Calling C++ functions from Gambas is almost > impossible. > -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Mon Jan 17 12:39:07 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 17 Jan 2011 13:39:07 +0200 Subject: [Gambas-user] Wrong link at Arrange Gambas3 Message-ID: <1295264347.4080.16.camel@...2493...> The page http://gambasdoc.org/help/comp/gb.qt4/window/arrangement?v3 has a wrong link about Arrange http://gambasdoc.org/help/comp/gb.qt/arrange?v3 i think it should be http://gambasdoc.org/help/comp/gb.qt4/arrange?v3 -- Regards, Demosthenes Koptsis. From gambas at ...1... Mon Jan 17 13:33:38 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 17 Jan 2011 13:33:38 +0100 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 In-Reply-To: <1295264252.4080.14.camel@...2493...> References: <1295261417.3813.8.camel@...2493...> <201101171227.15234.gambas@...1...> <1295264252.4080.14.camel@...2493...> Message-ID: <201101171333.38387.gambas@...1...> > sorry my wrong expression. > No problem. Another point: at the moment, Alloc() and Free() are not the equivalent of malloc() and free() in C. So you cannot use Free() to free a memory allocation returned as a pointer by a C function. You must use the free() function located in the C library directly. Regards, -- Beno?t Minisini From joe1962 at ...626... Mon Jan 17 14:46:20 2011 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Mon, 17 Jan 2011 08:46:20 -0500 Subject: [Gambas-user] some questions of: Struct In-Reply-To: <20110117014523.M20623@...951...> References: <20110117014523.M20623@...951...> Message-ID: On 1/16/11, nando wrote: > > 4) This is similar to RECORD in VB. > It is like "Type" in VB6. For example: Private Type MYSTRUCT ID As String Name As String End Type Then later you would do: Dim MyPerson As MYSTRUCT MyPerson.ID = "012" MyPerson.Name = "Joe1962" Regards, Joe1962 From gambas at ...2524... Mon Jan 17 14:49:43 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 17 Jan 2011 13:49:43 +0000 Subject: [Gambas-user] Issue 12 in gambas: Disabled timer keep running Message-ID: <0-6813199134517018827-1818788958963045096-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 12 by hyeti... at ...626...: Disabled timer keep running http://code.google.com/p/gambas/issues/detail?id=12 1) I have 5 forms that have their timers. All timers have 500ms delay, and all timers are enabled at Form_Show and Form_Open function and disabled at Form_Hide and Form_Close. It is supposed to run related timer function, when related form is active but when I show second form (after first form's timers disabled), first form's timer continuing to trigger first form's timer function. And it causes malfunction in program. 2) Version: TRUNK / 2.21 Operating system: Ubuntu 10.10 Distribution: Ubuntu Architecture: x86 GUI component: GTK+ Desktop used: Gnome From imageek247 at ...626... Mon Jan 17 19:44:22 2011 From: imageek247 at ...626... (Christian DaGeek247 Stephens) Date: Mon, 17 Jan 2011 12:44:22 -0600 Subject: [Gambas-user] desktop.sendkeys -- how does it work? Message-ID: *Im new to gambas (but not really BASIC in general) and i am wondering, how do i get desktop.sendkeys to work? the wiki failed to mention where to put the *STATIC SUB SendKeys(Keys AS String) *text. do i need to install gb.desktop to get it to work? I searched the mailing list, and nothing helpful came up.* * * *thanks* From imageek247 at ...626... Mon Jan 17 19:48:14 2011 From: imageek247 at ...626... (Christian DaGeek247 Stephens) Date: Mon, 17 Jan 2011 12:48:14 -0600 Subject: [Gambas-user] desktop.sendkeys -- how does it work? In-Reply-To: References: Message-ID: *Im new to gambas (but not really BASIC in general) and i am wondering, how do i get desktop.sendkeys to work? the wiki failed to mention where to put the *STATIC SUB SendKeys(Keys AS String) *text. do i need to install gb.desktop to get it to work? I searched the mailing list, and nothing helpful came up.* * * *thanks* From ribafs at ...626... Mon Jan 17 19:48:59 2011 From: ribafs at ...626... (Ribamar FS) Date: Mon, 17 Jan 2011 15:48:59 -0300 Subject: [Gambas-user] desktop.sendkeys -- how does it work? In-Reply-To: References: Message-ID: Try to add component gd.desktop: Project - Properties - Components mark gb.desktop and OK 2011/1/17 Christian DaGeek247 Stephens > *Im new to gambas (but not really BASIC in general) and i am wondering, how > do i get desktop.sendkeys to work? the wiki failed to mention where to put > the *STATIC SUB SendKeys(Keys AS String) *text. do i need to install > gb.desktop to get it to work? I searched the mailing list, and nothing > helpful came up.* > * > * > *thanks* > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Que tal cultivar colabora??o ao inv?s de competi??o? -------------------------------------------- Ribamar FS - ribafs at ...2531... http://ribafs.org From demosthenesk at ...626... Mon Jan 17 20:36:38 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 17 Jan 2011 21:36:38 +0200 Subject: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6 In-Reply-To: <201101171333.38387.gambas@...1...> References: <1295261417.3813.8.camel@...2493...> <201101171227.15234.gambas@...1...> <1295264252.4080.14.camel@...2493...> <201101171333.38387.gambas@...1...> Message-ID: <1295292998.7802.9.camel@...2494...> On Mon, 2011-01-17 at 13:33 +0100, Beno?t Minisini wrote: > > sorry my wrong expression. > > > > No problem. > > Another point: at the moment, Alloc() and Free() are not the equivalent of > malloc() and free() in C. So you cannot use Free() to free a memory allocation > returned as a pointer by a C function. You must use the free() function > located in the C library directly. > > Regards, > About that, The next example uses free() function of C to free a pointer. Example1 ------------ ' Gambas module file 'char *get_current_dir_name(void); Extern get_current_dir_name() As Pointer In "libc:6" 'void free(void *ptr); Extern free_ptr(ptr As Pointer) In "libc:6" Exec "free" Public Sub Main() Dim pFunc As Pointer Dim sWorkingDirectory As String 'get_current_dir_name pFunc = get_current_dir_name() Print pFunc sWorkingDirectory = Str@(pFunc) Print sWorkingDirectory free_ptr(pFunc) pFunc = 0 End ------------ free_ptr(pFunc) is the free() function of C and here frees a pointer which was allocated internal by get_current_dir_name(). But free() function of C, cannot free a pointer allocated by Alloc() of Gambas. May be this is obvious or expected but is good to say it. Example2 -------------- ' Gambas module file 'void free(void *ptr); Extern free_ptr(ptr As Pointer) In "libc:6" Exec "free" Public Sub Main() Dim pPointer As Pointer pPointer = Alloc(4) free_ptr(pPointer) End example2 gives signal #6. -- Regards, Demosthenes From support at ...2529... Mon Jan 17 22:59:05 2011 From: support at ...2529... (John Spikowski) Date: Mon, 17 Jan 2011 13:59:05 -0800 Subject: [Gambas-user] Gambas3 Pointers example - signal #6 In-Reply-To: <1295292998.7802.9.camel@...2494...> References: <1295261417.3813.8.camel@...2493...> <201101171227.15234.gambas@...1...> <1295264252.4080.14.camel@...2493...> <201101171333.38387.gambas@...1...> <1295292998.7802.9.camel@...2494...> Message-ID: <1295301545.1969.6.camel@...2530...> On Mon, 2011-01-17 at 21:36 +0200, Demosthenes Koptsis wrote: > On Mon, 2011-01-17 at 13:33 +0100, Beno?t Minisini wrote: > Public Sub Main() > > Dim pFunc As Pointer > Dim sWorkingDirectory As String > > 'get_current_dir_name > pFunc = get_current_dir_name() > Print pFunc > > sWorkingDirectory = Str@(pFunc) > Print sWorkingDirectory > > free_ptr(pFunc) > pFunc = 0 > > End Isn't pFunc a Gambas variable (memory location) which is maintained by the Basic? Why would you free it externally? I would think Gambas would complain about that. From gambas at ...2524... Tue Jan 18 00:24:45 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 17 Jan 2011 23:24:45 +0000 Subject: [Gambas-user] Issue 13 in gambas: GTK+ buttons inherit a form's background color Message-ID: <0-6813199134517018827-3610022519733850930-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 13 by zachsmit... at ...626...: GTK+ buttons inherit a form's background color http://code.google.com/p/gambas/issues/detail?id=13 1) GTK+ buttons inherit a forms background color 2) Version: TRUNK Operating system: Linux Distribution: ArchLinux Architecture: x86_64 GUI component: GTK+ Desktop used: Xfce Attachments: Test3-0.0.1.tar.gz 4.5 KB From demosthenesk at ...626... Tue Jan 18 09:08:32 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 18 Jan 2011 10:08:32 +0200 Subject: [Gambas-user] Gambas3 Pointers example - signal #6 In-Reply-To: <1295301545.1969.6.camel@...2530...> References: <1295261417.3813.8.camel@...2493...> <201101171227.15234.gambas@...1...> <1295264252.4080.14.camel@...2493...> <201101171333.38387.gambas@...1...> <1295292998.7802.9.camel@...2494...> <1295301545.1969.6.camel@...2530...> Message-ID: <1295338112.11526.14.camel@...2493...> On Mon, 2011-01-17 at 13:59 -0800, John Spikowski wrote: > On Mon, 2011-01-17 at 21:36 +0200, Demosthenes Koptsis wrote: > > On Mon, 2011-01-17 at 13:33 +0100, Beno?t Minisini wrote: > > > Public Sub Main() > > > > Dim pFunc As Pointer > > Dim sWorkingDirectory As String > > > > 'get_current_dir_name > > pFunc = get_current_dir_name() > > Print pFunc > > > > sWorkingDirectory = Str@(pFunc) > > Print sWorkingDirectory > > > > free_ptr(pFunc) > > pFunc = 0 > > > > End > > Isn't pFunc a Gambas variable (memory location) which is maintained by > the Basic? Why would you free it externally? I would think Gambas would > complain about that. Yes pFunc is a pointer. A pointer is a variable that holds a memory address. At line Dim pFunc As Pointer i declare the variable. But i do not use Alloc() to alocate a memory address with Gambas3. i do this because the external function get_current_dir_name() allocates a memory address internal. This is described in manual http://manpages.ubuntu.com/manpages/dapper/en/man3/get_current_dir_name.3.html "get_current_dir_name, which is only prototyped if _GNU_SOURCE is defined, will malloc(3) an array" to free a pointer in such a case i have to use free() function of C. Next is the same example but with an error. The error is that i allocate memory with Gambas3 and try to Free() the memory later. But when i call get_current_dir_name() this function set again a new pointer and the address from Gambas3 Alloc() is not accesible any more. So when i try to Free() the pointer in fact i try to free an unlocated memory! ' Gambas module file 'char *get_current_dir_name(void); Extern get_current_dir_name() As Pointer In "libc:6" Public Sub Main() Dim pFunc As Pointer Dim sWorkingDirectory As String 'get_current_dir_name pFunc = Alloc(4096) Print pFunc '(Pointer 0x185b918) pFunc = get_current_dir_name() Print pFunc '(Pointer 0x185d780) 'notice that address was changed ' from now on the address 0x185b918 'is unreachable 'and the new address 0x185d780 'is not allocated by Gambas3 ! 'so we cannot free both of them 'with Free() function of Gambas3! sWorkingDirectory = Str@(pFunc) Print sWorkingDirectory Free(pFunc) pFunc = 0 End > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Tue Jan 18 09:36:48 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 18 Jan 2011 10:36:48 +0200 Subject: [Gambas-user] Broken links at wiki Gambas3 Message-ID: <1295339808.14681.5.camel@...2493...> I notice another broken link at page http://gambasdoc.org/help/comp/gb.qt4/window/margin?v3 the link for Desktop.Scale http://gambasdoc.org/help/comp/gb.qt/desktop/scale?v3 i think should be http://gambasdoc.org/help/comp/gb.qt4/desktop/scale?v3 may be there are more, they are about gb.qt and gb.qt4. -- Regards, Demosthenes Koptsis. -------------- next part -------------- An embedded message was scrubbed... From: Demosthenes Koptsis Subject: Wrong link at Arrange Gambas3 Date: Mon, 17 Jan 2011 13:39:07 +0200 Size: 690 URL: From demosthenesk at ...626... Tue Jan 18 10:19:04 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 18 Jan 2011 11:19:04 +0200 Subject: [Gambas-user] About Spacing property at wiki for Gambas3 Message-ID: <1295342344.23238.3.camel@...2493...> About http://gambasdoc.org/help/comp/gb.qt4/window/spacing?v3 i think there is a not well description and i cant find the correct and what you mean. it says ------------------------------- PROPERTY Spacing AS Boolean Returns or sets the number of pixels that separates children controls. ------------------------------- i think it should be like this Returns or sets a Boolean when it is TRUE ... (something about the number of pixels that separates children controls.) -- Regards, Demosthenes Koptsis. From gambas.fr at ...626... Tue Jan 18 12:44:21 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 18 Jan 2011 12:44:21 +0100 Subject: [Gambas-user] About Spacing property at wiki for Gambas3 In-Reply-To: <1295342344.23238.3.camel@...2493...> References: <1295342344.23238.3.camel@...2493...> Message-ID: old gb v2 doc 2011/1/18 Demosthenes Koptsis : > About > http://gambasdoc.org/help/comp/gb.qt4/window/spacing?v3 > > i think there is a not well description and i cant find the correct and > what you mean. > > it says > ------------------------------- > PROPERTY Spacing AS Boolean > > Returns or sets the number of pixels that separates children controls. > ------------------------------- > > i think it should be like this > > Returns or sets a Boolean when it is TRUE ... (something about the > number of pixels that separates children controls.) > > > -- > Regards, > Demosthenes Koptsis. > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From demosthenesk at ...626... Tue Jan 18 13:19:02 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 18 Jan 2011 14:19:02 +0200 Subject: [Gambas-user] About Spacing property at wiki for Gambas3 In-Reply-To: References: <1295342344.23238.3.camel@...2493...> Message-ID: <1295353142.3508.1.camel@...2494...> PROPERTY Spacing AS Boolean is correct? On Tue, 2011-01-18 at 12:44 +0100, Fabien Bodard wrote: > old gb v2 doc > > 2011/1/18 Demosthenes Koptsis : > > About > > http://gambasdoc.org/help/comp/gb.qt4/window/spacing?v3 > > > > i think there is a not well description and i cant find the correct and > > what you mean. > > > > it says > > ------------------------------- > > PROPERTY Spacing AS Boolean > > > > Returns or sets the number of pixels that separates children controls. > > ------------------------------- > > > > i think it should be like this > > > > Returns or sets a Boolean when it is TRUE ... (something about the > > number of pixels that separates children controls.) > > > > > > -- > > Regards, > > Demosthenes Koptsis. > > > > > > ------------------------------------------------------------------------------ > > Protect Your Site and Customers from Malware Attacks > > Learn about various malware tactics and how to avoid them. Understand > > malware threats, the impact they can have on your business, and how you > > can protect your company and customers by using code signing. > > http://p.sf.net/sfu/oracle-sfdevnl > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > -- Regards, Demosthenes From gambas at ...1... Tue Jan 18 14:29:06 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 18 Jan 2011 14:29:06 +0100 Subject: [Gambas-user] Wrong link at Arrange Gambas3 In-Reply-To: <1295264347.4080.16.camel@...2493...> References: <1295264347.4080.16.camel@...2493...> Message-ID: <201101181429.06330.gambas@...1...> > The page > http://gambasdoc.org/help/comp/gb.qt4/window/arrangement?v3 > has a wrong link about Arrange > > http://gambasdoc.org/help/comp/gb.qt/arrange?v3 > > i think it should be > http://gambasdoc.org/help/comp/gb.qt4/arrange?v3 Fixed! -- Beno?t Minisini From gambas at ...1... Tue Jan 18 14:31:36 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 18 Jan 2011 14:31:36 +0100 Subject: [Gambas-user] Broken links at wiki Gambas3 In-Reply-To: <1295339808.14681.5.camel@...2493...> References: <1295339808.14681.5.camel@...2493...> Message-ID: <201101181431.36601.gambas@...1...> > I notice another broken link at page > http://gambasdoc.org/help/comp/gb.qt4/window/margin?v3 > > the link for Desktop.Scale > http://gambasdoc.org/help/comp/gb.qt/desktop/scale?v3 > > i think should be > http://gambasdoc.org/help/comp/gb.qt4/desktop/scale?v3 > Fixed! > may be there are more, they are about gb.qt and gb.qt4. For sure, the gb.qt4 pages were copied from the old gb.qt pages. -- Beno?t Minisini From support at ...2529... Wed Jan 19 07:08:28 2011 From: support at ...2529... (John Spikowski) Date: Tue, 18 Jan 2011 22:08:28 -0800 Subject: [Gambas-user] Gambas3 Pointers example - signal #6 In-Reply-To: <1295338112.11526.14.camel@...2493...> References: <1295261417.3813.8.camel@...2493...> <201101171227.15234.gambas@...1...> <1295264252.4080.14.camel@...2493...> <201101171333.38387.gambas@...1...> <1295292998.7802.9.camel@...2494...> <1295301545.1969.6.camel@...2530...> <1295338112.11526.14.camel@...2493...> Message-ID: <1295417308.1921.21.camel@...2530...> On Tue, 2011-01-18 at 10:08 +0200, Demosthenes Koptsis wrote: > > > > Isn't pFunc a Gambas variable (memory location) which is maintained by > > the Basic? Why would you free it externally? I would think Gambas would > > complain about that. > > Yes pFunc is a pointer. A pointer is a variable that holds a memory > address. > > At line > Dim pFunc As Pointer > i declare the variable. > > But i do not use Alloc() to alocate a memory address with Gambas3. > > i do this because the external function get_current_dir_name() allocates > a memory address internal. > > This is described in manual > http://manpages.ubuntu.com/manpages/dapper/en/man3/get_current_dir_name.3.html > > "get_current_dir_name, which is only prototyped if _GNU_SOURCE is > defined, will malloc(3) an array" > > to free a pointer in such a case i have to use free() function of C. > > Next is the same example but with an error. > The error is that i allocate memory with Gambas3 and try to Free() the > memory later. But when i call get_current_dir_name() this function set > again a new pointer and the address from Gambas3 Alloc() is not > accesible any more. So when i try to Free() the pointer in fact i try to > free an unlocated memory! > > ' Gambas module file > 'char *get_current_dir_name(void); > Extern get_current_dir_name() As Pointer In "libc:6" > > Public Sub Main() > > Dim pFunc As Pointer > Dim sWorkingDirectory As String > > 'get_current_dir_name > pFunc = Alloc(4096) > Print pFunc '(Pointer 0x185b918) > > pFunc = get_current_dir_name() > Print pFunc '(Pointer 0x185d780) > > 'notice that address was changed > ' from now on the address 0x185b918 > 'is unreachable > 'and the new address 0x185d780 > 'is not allocated by Gambas3 ! > 'so we cannot free both of them > 'with Free() function of Gambas3! > > sWorkingDirectory = Str@(pFunc) > Print sWorkingDirectory > > Free(pFunc) > pFunc = 0 > > End I was thinking that you were freeing pFunc (using it's VARPTR) rather than freeing the memory associated to the pointer being returned. I have to agree with Beno?t that working with external memory (variables) and structures are a 'at your own risk' task in Gambas. (rules vary by what your trying to access) From demosthenesk at ...626... Wed Jan 19 08:27:39 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 19 Jan 2011 09:27:39 +0200 Subject: [Gambas-user] Gambas3 Pointers example - signal #6 In-Reply-To: <1295417308.1921.21.camel@...2530...> References: <1295261417.3813.8.camel@...2493...> <201101171227.15234.gambas@...1...> <1295264252.4080.14.camel@...2493...> <201101171333.38387.gambas@...1...> <1295292998.7802.9.camel@...2494...> <1295301545.1969.6.camel@...2530...> <1295338112.11526.14.camel@...2493...> <1295417308.1921.21.camel@...2530...> Message-ID: <1295422059.2819.9.camel@...2493...> On Tue, 2011-01-18 at 22:08 -0800, John Spikowski wrote: > I was thinking that you were freeing pFunc (using it's VARPTR) rather > than freeing the memory associated to the pointer being returned. I have > to agree with Beno?t that working with external memory (variables) and > structures are a 'at your own risk' task in Gambas. (rules vary by what > your trying to access) > Hmm.. ok i see maybe the name of external function made a confusion. Extern free_ptr(ptr As Pointer) In "libc:6" Exec "free" the name of C function is free() but this name is also a Gambas3 word. so i declare the external function with different name. i choose as name free_ptr(ptr As Pointer), a better name would be free_pointer(pointer As Pointer) or free_a_c_pointer(pointer As Pointer) Here there is no relevance with VarPtr. Ptr is just an abbreviation for Pointer word which we can use in code. -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Wed Jan 19 10:39:23 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 19 Jan 2011 11:39:23 +0200 Subject: [Gambas-user] MouseDown event and Gambas3 Message-ID: <1295429963.11558.3.camel@...2493...> Good morning, the following example is not working in gambas3-svn3475 ------------------------------ ' Gambas class file Public Function Color() As Integer Dim Red As Integer Dim Green As Integer Dim Blue As Integer Dim sColor As String Dim iColor As Integer Red = Rnd(0, 256) Green = Rnd(0, 256) Blue = Rnd(0, 256) sColor = "&" & Hex(Red, 2) & Hex(Green, 2) & Hex(Blue, 2) & "&" Print sColor iColor = Val(sColor) Return iColor End Public Sub Form_MouseDown() Me.Background = Color() End ----------------------------------- The code try to change the bgcolor of Form with random colors on mouse clicks. This example is working in Gambas2. I think Form_MouseDown event is not working or i don't know... -- Regards, Demosthenes Koptsis. From austinium at ...43... Wed Jan 19 11:32:38 2011 From: austinium at ...43... (vikram) Date: Wed, 19 Jan 2011 02:32:38 -0800 (PST) Subject: [Gambas-user] using echo command within EXEC Message-ID: <129959.63503.qm@...2467...> Hi, I am using Gambas 2.21, on Debian Squeeze. I am trying to keep a log of the things my application does, for instance events like forms opening, errors can be logged. I am thinking of using the SHELL with echo command to write to a log file. For example, using SHELL i would use: SHELL "echo \"Form1 Entered\">>Logfile" Could this cause the application to be a resource hog? The only other way I can think of to do logging is to use File I/O but that would be a lot of work when compated to using SHELL, plus I don't know it will prove to be more of a resource hog than using SHELL. Help! Thanks in advance, Regards, Vikram Nair From austinium at ...43... Wed Jan 19 11:35:10 2011 From: austinium at ...43... (vikram) Date: Wed, 19 Jan 2011 02:35:10 -0800 (PST) Subject: [Gambas-user] Application logging using SHELL Message-ID: <672335.65326.qm@...2467...> Hi, I am using Gambas 2.21, on Debian Squeeze. I am trying to keep a log of the things my application does, for instance events like forms opening, errors can be logged. I am thinking of using the SHELL with echo command to write to a log file. For example, using SHELL i would use: SHELL "echo \"Form1 Entered\">>Logfile" Could this cause the application to be a resource hog? The only other way I can think of to do logging is to use File I/O but that would be a lot of work when compated to using SHELL, plus I don't know it will prove to be more of a resource hog than using SHELL. Help! Thanks in advance, Regards, Vikram Nair @Mods: kindly delete the earlier thread titled "using echo command within EXEC", i had sent it with a wrong subject by mistake. From demosthenesk at ...626... Wed Jan 19 11:58:59 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 19 Jan 2011 12:58:59 +0200 Subject: [Gambas-user] Application logging using SHELL In-Reply-To: <672335.65326.qm@...2467...> References: <672335.65326.qm@...2467...> Message-ID: <1295434739.12598.2.camel@...2493...> here is an example i did. if you like it you can use it. --------------- ' Gambas class file PUBLIC hLog AS Stream PUBLIC sFilename AS String = User.Home &/ ".MyLog.txt" PUBLIC sLogEntry AS String PUBLIC SUB Form_Open() hLog = OPEN sFilename FOR APPEND END PUBLIC SUB Button1_Click() sLogEntry = "Button1 was clicked" WriteToLog(Application.Name & " # " & Application.Version & " # " & Now & " # " & sLogEntry) END PUBLIC SUB WriteToLog(sString AS String) PRINT #hLog, sString END PUBLIC SUB Form_Close() hLog.Close END ---------------- On Wed, 2011-01-19 at 02:35 -0800, vikram wrote: > Hi, > > I am using Gambas 2.21, on Debian Squeeze. I am trying to keep a log of the things my application does, for instance events like forms opening, errors can be logged. > > I am thinking of using the SHELL with echo command to write to a log file. > > For example, using SHELL i would use: > SHELL "echo \"Form1 Entered\">>Logfile" > > Could this cause the application to be a resource hog? The only other way I can think of to do logging is to use File I/O but that would be a lot of work when compated to using SHELL, plus I don't know it will prove to be more of a resource hog than using SHELL. > > Help! > > Thanks in advance, > Regards, > Vikram Nair > > @Mods: kindly delete the earlier thread titled "using echo command within EXEC", i had sent it with a wrong subject by mistake. > > > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. -------------- next part -------------- A non-text attachment was scrubbed... Name: Log.tar.gz Type: application/x-compressed-tar Size: 8714 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: .MyLog.txt.tar.gz Type: application/x-compressed-tar Size: 194 bytes Desc: not available URL: From eilert-sprachen at ...221... Wed Jan 19 12:06:10 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 19 Jan 2011 12:06:10 +0100 Subject: [Gambas-user] Gambas2 Application.Dir Message-ID: <4D36C5A2.8060000@...221...> Just found that with a commandline application started within the IDE, Gambas2 will deliver the user's $home for Application.Dir and not the directory from the Gambas project. I would have expected the project directory. Example: My project is in /home/user/Gambas2/Project At least when run on the IDE, Application.Dir will result in /home/user and not /home/user/Gambas2/Project The question is: why? :-) Regards Rolf From bbruen at ...2308... Wed Jan 19 12:15:49 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Wed, 19 Jan 2011 21:45:49 +1030 Subject: [Gambas-user] Application logging using SHELL In-Reply-To: <672335.65326.qm@...2467...> References: <672335.65326.qm@...2467...> Message-ID: <201101192145.50004.bbruen@...2308...> On Wednesday, January 19, 2011 09:05:10 pm vikram wrote: > Could this cause the application to be a resource hog? Couldn't see why. I use SHELL extensively for different reasons and have so far found it to be efficient. But for what you are attempting I would just like to add one thing. As soon as you invoke any asynchronous process do not expect the outcome to be sequential. For example if you log this way and "Open" n* instances of your form, the logging will be random. Or, if you are logging "Open" and say, "Activate" then the logging will be even more random, etc etc. I only say this because of the problems that I have had, even within the gambas IDE, to get events, (not Events!) to log in the correct order. There have been occasions when I have had to insert WAIT's between logging events. Note, this is not a complaint against gambas! It's just the normal things that happen within an OS like linux. -- best regards Bruce Bruen From sotema at ...626... Wed Jan 19 12:34:32 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Wed, 19 Jan 2011 12:34:32 +0100 Subject: [Gambas-user] Project title not translated Message-ID: <1295436872.1943.6.camel@...2516...> Hi, not a bug, a minor issue. The project title does not appear in the translation window. This way if you set a form Caption = Application.Title it will be in "standard language", regardless the one you selected. Could be correct? Regards, Emanuele From vkan53 at ...2300... Wed Jan 19 14:35:12 2011 From: vkan53 at ...2300... (Vassilis K) Date: Wed, 19 Jan 2011 15:35:12 +0200 Subject: [Gambas-user] CGI programme with charts In-Reply-To: References: Message-ID: <1295444113.10634.32.camel@...2532...> Hello Benoit, Dimitri, Doriano and everybody else! I want to make a kind of astrology programme on a web page with charts, horoscopes etc, You place the date, time and place of birth and get the horoscope chart and some details of the character... 1.Do you thing that a gambas CGI programme would be suitable for this purpose? 2.Is there possibility of cooperation with someone of you because I feel it is beyond my forces? 3.Is it neccesary to be unter GPL licence?. Part of the payment will be a donation to Gambas. I'm waiting for your ideas. Vassilis K From math.eber at ...221... Wed Jan 19 19:49:00 2011 From: math.eber at ...221... (Matti) Date: Wed, 19 Jan 2011 19:49:00 +0100 Subject: [Gambas-user] MouseDown event and Gambas3 In-Reply-To: <1295429963.11558.3.camel@...2493...> References: <1295429963.11558.3.camel@...2493...> Message-ID: <4D37321C.4080002@...221...> Works perfect here, version 3457. The only thing I did was to rename Color() to RndColor(), because Color is a gambas class name. Maybe that's the reason why? Regards Matti Am 19.01.2011 10:39, schrieb Demosthenes Koptsis: > > Good morning, > > the following example is not working in gambas3-svn3475 > > ------------------------------ > ' Gambas class file > > Public Function Color() As Integer > > Dim Red As Integer > Dim Green As Integer > Dim Blue As Integer > Dim sColor As String > Dim iColor As Integer > > Red = Rnd(0, 256) > Green = Rnd(0, 256) > Blue = Rnd(0, 256) > > sColor = "&" & Hex(Red, 2) & Hex(Green, 2) & Hex(Blue, 2) & "&" > Print sColor > iColor = Val(sColor) > Return iColor > > End > > Public Sub Form_MouseDown() > > Me.Background = Color() > > End > ----------------------------------- > > The code try to change the bgcolor of Form with random colors on mouse > clicks. > > This example is working in Gambas2. > > I think Form_MouseDown event is not working or i don't know... > From demosthenesk at ...626... Wed Jan 19 20:03:48 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 19 Jan 2011 21:03:48 +0200 Subject: [Gambas-user] MouseDown event and Gambas3 In-Reply-To: <4D37321C.4080002@...221...> References: <1295429963.11558.3.camel@...2493...> <4D37321C.4080002@...221...> Message-ID: <1295463828.2250.3.camel@...2494...> ok i change it to RndColor, nothing i dont have Mouse Events generally...! Also other Events of mouse does not work. ---------- ' Gambas class file Public Function RndColor() As Integer Dim Red As Integer Dim Green As Integer Dim Blue As Integer Dim sColor As String Dim iColor As Integer Red = Rnd(0, 256) Green = Rnd(0, 256) Blue = Rnd(0, 256) sColor = "&" & Hex(Red, 2) & Hex(Green, 2) & Hex(Blue, 2) & "&" Print sColor iColor = Val(sColor) Return iColor End Public Sub Form_MouseDown() Me.Background = RndColor() End -------------------- On Wed, 2011-01-19 at 19:49 +0100, Matti wrote: > Works perfect here, version 3457. > > The only thing I did was to rename Color() to RndColor(), because Color is a > gambas class name. Maybe that's the reason why? > > Regards > Matti > > > Am 19.01.2011 10:39, schrieb Demosthenes Koptsis: > > > > Good morning, > > > > the following example is not working in gambas3-svn3475 > > > > ------------------------------ > > ' Gambas class file > > > > Public Function Color() As Integer > > > > Dim Red As Integer > > Dim Green As Integer > > Dim Blue As Integer > > Dim sColor As String > > Dim iColor As Integer > > > > Red = Rnd(0, 256) > > Green = Rnd(0, 256) > > Blue = Rnd(0, 256) > > > > sColor = "&" & Hex(Red, 2) & Hex(Green, 2) & Hex(Blue, 2) & "&" > > Print sColor > > iColor = Val(sColor) > > Return iColor > > > > End > > > > Public Sub Form_MouseDown() > > > > Me.Background = Color() > > > > End > > ----------------------------------- > > > > The code try to change the bgcolor of Form with random colors on mouse > > clicks. > > > > This example is working in Gambas2. > > > > I think Form_MouseDown event is not working or i don't know... > > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes From gambas.fr at ...626... Wed Jan 19 20:05:06 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 19 Jan 2011 20:05:06 +0100 Subject: [Gambas-user] MouseDown event and Gambas3 In-Reply-To: <4D37321C.4080002@...221...> References: <1295429963.11558.3.camel@...2493...> <4D37321C.4080002@...221...> Message-ID: 2011/1/19 Matti : > Works perfect here, version 3457. > > The only thing I did was to rename Color() to RndColor(), because Color is a > gambas class name. Maybe that's the reason why? IT's the reason why ! : :) > > Regards > Matti > > > Am 19.01.2011 10:39, schrieb Demosthenes Koptsis: >> >> Good morning, >> >> the following example is not working in gambas3-svn3475 >> >> ------------------------------ >> ' Gambas class file >> >> Public Function Color() As Integer >> >> ? Dim Red As Integer >> ? Dim Green As Integer >> ? Dim Blue As Integer >> ? Dim sColor As String >> ? Dim iColor As Integer >> >> ? Red = Rnd(0, 256) >> ? Green = Rnd(0, 256) >> ? Blue = Rnd(0, 256) >> >> ? sColor = "&" & Hex(Red, 2) & Hex(Green, 2) & Hex(Blue, 2) & "&" >> ? Print sColor >> ? iColor = Val(sColor) >> ? Return iColor >> >> End >> >> Public Sub Form_MouseDown() >> >> ? Me.Background = Color() >> >> End >> ----------------------------------- >> >> The code try to change the bgcolor of Form with random colors on mouse >> clicks. >> >> This example is working in Gambas2. >> >> I think Form_MouseDown event is not working or i don't know... >> > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas.fr at ...626... Wed Jan 19 20:06:58 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 19 Jan 2011 20:06:58 +0100 Subject: [Gambas-user] MouseDown event and Gambas3 In-Reply-To: <1295463828.2250.3.camel@...2494...> References: <1295429963.11558.3.camel@...2493...> <4D37321C.4080002@...221...> <1295463828.2250.3.camel@...2494...> Message-ID: 2011/1/19 Demosthenes Koptsis : > ok i change it to RndColor, > > nothing > i dont have Mouse Events generally...! > > Also other Events of mouse does not work. ??? witch version of gambas , distrib, tootlkit > > ---------- > ' Gambas class file > > Public Function RndColor() As Integer > > ?Dim Red As Integer > ?Dim Green As Integer > ?Dim Blue As Integer > ?Dim sColor As String > ?Dim iColor As Integer > > ?Red = Rnd(0, 256) > ?Green = Rnd(0, 256) > ?Blue = Rnd(0, 256) > > ?sColor = "&" & Hex(Red, 2) & Hex(Green, 2) & Hex(Blue, 2) & "&" > ?Print sColor > ?iColor = Val(sColor) > ?Return iColor > > End > > Public Sub Form_MouseDown() > > ?Me.Background = RndColor() > > End > -------------------- > > > > On Wed, 2011-01-19 at 19:49 +0100, Matti wrote: >> Works perfect here, version 3457. >> >> The only thing I did was to rename Color() to RndColor(), because Color is a >> gambas class name. Maybe that's the reason why? >> >> Regards >> Matti >> >> >> Am 19.01.2011 10:39, schrieb Demosthenes Koptsis: >> > >> > Good morning, >> > >> > the following example is not working in gambas3-svn3475 >> > >> > ------------------------------ >> > ' Gambas class file >> > >> > Public Function Color() As Integer >> > >> > ? Dim Red As Integer >> > ? Dim Green As Integer >> > ? Dim Blue As Integer >> > ? Dim sColor As String >> > ? Dim iColor As Integer >> > >> > ? Red = Rnd(0, 256) >> > ? Green = Rnd(0, 256) >> > ? Blue = Rnd(0, 256) >> > >> > ? sColor = "&" & Hex(Red, 2) & Hex(Green, 2) & Hex(Blue, 2) & "&" >> > ? Print sColor >> > ? iColor = Val(sColor) >> > ? Return iColor >> > >> > End >> > >> > Public Sub Form_MouseDown() >> > >> > ? Me.Background = Color() >> > >> > End >> > ----------------------------------- >> > >> > The code try to change the bgcolor of Form with random colors on mouse >> > clicks. >> > >> > This example is working in Gambas2. >> > >> > I think Form_MouseDown event is not working or i don't know... >> > >> >> ------------------------------------------------------------------------------ >> Protect Your Site and Customers from Malware Attacks >> Learn about various malware tactics and how to avoid them. Understand >> malware threats, the impact they can have on your business, and how you >> can protect your company and customers by using code signing. >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- > Regards, > Demosthenes > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...1... Thu Jan 20 02:27:18 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 20 Jan 2011 02:27:18 +0100 Subject: [Gambas-user] Project title not translated In-Reply-To: <1295436872.1943.6.camel@...2516...> References: <1295436872.1943.6.camel@...2516...> Message-ID: <201101200227.18449.gambas@...1...> > Hi, not a bug, a minor issue. > The project title does not appear in the translation window. This way if > you set a form Caption = Application.Title it will be in "standard > language", regardless the one you selected. > Could be correct? > Regards, > Emanuele > I think it should be fixed in revision #3479 of Gambas 3, but I'm not 100% sure. Can you confirm? -- Beno?t Minisini From gambas at ...1... Thu Jan 20 02:27:48 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 20 Jan 2011 02:27:48 +0100 Subject: [Gambas-user] MouseDown event and Gambas3 In-Reply-To: <1295429963.11558.3.camel@...2493...> References: <1295429963.11558.3.camel@...2493...> Message-ID: <201101200227.48220.gambas@...1...> > Good morning, > > the following example is not working in gambas3-svn3475 > > ------------------------------ > ' Gambas class file > > Public Function Color() As Integer > > Dim Red As Integer > Dim Green As Integer > Dim Blue As Integer > Dim sColor As String > Dim iColor As Integer > > Red = Rnd(0, 256) > Green = Rnd(0, 256) > Blue = Rnd(0, 256) > > sColor = "&" & Hex(Red, 2) & Hex(Green, 2) & Hex(Blue, 2) & "&" > Print sColor > iColor = Val(sColor) > Return iColor > > End > > Public Sub Form_MouseDown() > > Me.Background = Color() > > End > ----------------------------------- > > The code try to change the bgcolor of Form with random colors on mouse > clicks. > > This example is working in Gambas2. > > I think Form_MouseDown event is not working or i don't know... Plase provide a full project as much as possible. Regards, -- Beno?t Minisini From gambas at ...1... Thu Jan 20 02:29:24 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 20 Jan 2011 02:29:24 +0100 Subject: [Gambas-user] gb.qte In-Reply-To: <1295189629.19607.6.camel@...2530...> References: <1295189629.19607.6.camel@...2530...> Message-ID: <201101200229.24139.gambas@...1...> > Can someone tell me what the trick is to get gb.gte to pass the > configure script. I'm pretty sure I have all the dependencies required > installed. (libqt3-mt-dev_3.3.8-b-6ubuntu2_i386.deb) > > > Ubuntu 32 10.10 > You can safely ignore the compilation of gb.qte. Unless you find the libqte library somewhere! I've never found it. I did that on a user request, but always use fake libraries to make the Gambas package. That component has been removed in Gambas 3 anyway. Regards, -- Beno?t Minisini From gambas at ...1... Thu Jan 20 02:30:28 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 20 Jan 2011 02:30:28 +0100 Subject: [Gambas-user] Gambas API options In-Reply-To: <1295145067.1923.18.camel@...2530...> References: <1295145067.1923.18.camel@...2530...> Message-ID: <201101200230.28424.gambas@...1...> > Hi List, > > Does Gambas provide a API other languages can access? (shared object) I > would like to create the framework for an application in Gambas and > interface with it with ScriptBasic. The .so libraries I did peek at > didn't seem to have anything useful exported. > > > The following link will show a few examples of scripting libraries and > embedding. > > http://www.scriptbasic.org/forum/index.php/topic,211.0.html > > John > What do you want to do ? Call a ScriptBasic program from a Gambas program? Or call a Gambas program from a ScriptBasic program? -- Beno?t Minisini From gambas at ...1... Thu Jan 20 02:32:17 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 20 Jan 2011 02:32:17 +0100 Subject: [Gambas-user] Form Key press event raised twice? In-Reply-To: References: Message-ID: <201101200232.17574.gambas@...1...> > Hi, > > New project with new FMain: > > PUBLIC SUB Form_KeyPress() > PRINT Key.Code, Key.Text > END > > In run-time, when I press a key, eg. 'a', I get: > > 97 a > 97 a > > Gambas 2.22, Fedora 14 > I want to know if it's a bug?. If it's a bug, it will be fixed, so I wait. > But if it's a feature, I have to change some code.. > > > Best regards. I think it is a bug... -- Beno?t Minisini From gambas at ...1... Thu Jan 20 02:33:48 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 20 Jan 2011 02:33:48 +0100 Subject: [Gambas-user] Form Key press event raised twice? In-Reply-To: <201101200232.17574.gambas@...1...> References: <201101200232.17574.gambas@...1...> Message-ID: <201101200233.48554.gambas@...1...> > > Hi, > > > > New project with new FMain: > > > > PUBLIC SUB Form_KeyPress() > > > > PRINT Key.Code, Key.Text > > > > END > > > > In run-time, when I press a key, eg. 'a', I get: > > > > 97 a > > 97 a > > > > Gambas 2.22, Fedora 14 > > I want to know if it's a bug?. If it's a bug, it will be fixed, so I > > wait. But if it's a feature, I have to change some code.. > > > > > > Best regards. > > I think it is a bug... ...But I can't reproduce it. Can you provide me a little project that shows the bug? -- Beno?t Minisini From gambas at ...1... Thu Jan 20 02:38:14 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 20 Jan 2011 02:38:14 +0100 Subject: [Gambas-user] Gui question = menu shadow left on screen after click In-Reply-To: <201101101208.32355.rterry@...1946...> References: <201101091939.44372.rterry@...1946...> <201101092204.26240.gambas@...1...> <201101101208.32355.rterry@...1946...> Message-ID: <201101200238.14746.gambas@...1...> > On Monday 10 January 2011 08:04:26 Beno?t Minisini wrote: > > > Hi list > > > > > > Enclosed is picture - when I click on a menu item, and the code > > > attatched to a menu item > > > > "attached" how ? Where ? > > to explain further > > Menu may have several items: > -- display result > -- delete document > -- display audit trail > > etc. > > I've quickly made this code up to illustrate: > > public sub mnu_click() > > Select case last.tag > case "show result" > Webbrowser1.html = shtml > case "delete" > case "audit trail" > Audit_Trail_Show() > End select > end > > Public sub Audit_Trail_Show() > ... do lots of stuff in here > ... eg. > database queries > ... prepare html > .. show in webview etc > end > > Now, because say show result is really quick, the code executes, the spot > on the screen where the menu wndow was is removed by gambas or whatever > and no shadow appears > > The code under Audit_Trail_Show() is alot slower, and it seems to be > executed first completely, before gambas decides to refresh the screen > area where the menu was occupying, so that a gray area remains on the > screen as per the picture until the screen is refreshed, which seems to > take place after the Audit_Trail_Show occurs. > > Does that make more sense? > > rEgards > > Richard > I can't reproduce that behaviour with Gambas 3. The GUI under the menu is correctly refreshed before the heavy process starts. Did you try with different widget styles? -- Beno?t Minisini From gambas at ...1... Thu Jan 20 02:42:05 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 20 Jan 2011 02:42:05 +0100 Subject: [Gambas-user] Balloon no more displayed In-Reply-To: <1294576890.1904.7.camel@...2476...> References: <1293978619.6545.16.camel@...2476...> <201101030026.40670.gambas@...1...> <1294576890.1904.7.camel@...2476...> Message-ID: <201101200242.05160.gambas@...1...> > Hi Beno?t, > return to this after a while because it seems not a compiz related > problem, or at least, not only. > If your first opened Form isn't the FMAIN and is Modal then the balloon > is hidden by the form. If you open the FMAIN and then open a Modal Form > the balloon is corretly displayed. > The attached sample demonstrate the problem. Run it and you can see the > balloon moving the Form1 apart; then set the FMain as start up class and > now the balloon is visible. > Regards, > Emanuele > What I see is normal (with KDE4 & KWin). Note that your modal form is stacked below, so you can't see it anyway, unless every other window is minimized. Regards, -- Beno?t Minisini From support at ...2529... Thu Jan 20 05:43:13 2011 From: support at ...2529... (John Spikowski) Date: Wed, 19 Jan 2011 20:43:13 -0800 Subject: [Gambas-user] Gambas API options In-Reply-To: <201101200230.28424.gambas@...1...> References: <1295145067.1923.18.camel@...2530...> <201101200230.28424.gambas@...1...> Message-ID: <1295498593.1932.13.camel@...2530...> On Thu, 2011-01-20 at 02:30 +0100, Beno?t Minisini wrote: > > Hi List, > > > > Does Gambas provide a API other languages can access? (shared object) I > > would like to create the framework for an application in Gambas and > > interface with it with ScriptBasic. The .so libraries I did peek at > > didn't seem to have anything useful exported. > > > > > > The following link will show a few examples of scripting libraries and > > embedding. > > > > http://www.scriptbasic.org/forum/index.php/topic,211.0.html > > > > John > > > > What do you want to do ? > > Call a ScriptBasic program from a Gambas program? > > Or call a Gambas program from a ScriptBasic program? > Actually both. By default, ScriptBasic is an embeddable scripting engine API based on traditional Basic. Even though written to ANSI C standards, it has an object API interface. The link I posted show an example of ScriptBasic embedding into itself. The distribution comes with a command line interpreter and multi-threaded web server as examples of using the ScriptBasic API. My hope is that Gambas has an open interface to it's components that other (scripting) languages can access and share. I was encouraged when the term "extensions to the interpreter" was mentioned. I looked at a few of the shared objects (components) Gambas uses and it didn't seem that any useful functions were exported. BTW: The scripter is a nice feature and like using ScriptBasic's console mode interpreter. From demosthenesk at ...626... Thu Jan 20 07:03:59 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 20 Jan 2011 08:03:59 +0200 Subject: [Gambas-user] MouseDown event and Gambas3 In-Reply-To: <201101200227.48220.gambas@...1...> References: <1295429963.11558.3.camel@...2493...> <201101200227.48220.gambas@...1...> Message-ID: <1295503439.2213.5.camel@...2494...> i attach the project. gambas3-svn3442 @ x32 gambas3-svn3475 @ x64 ubuntu, gtk none of mouse events are working. On Thu, 2011-01-20 at 02:27 +0100, Beno?t Minisini wrote: > > Good morning, > > > > the following example is not working in gambas3-svn3475 > > > > ------------------------------ > > ' Gambas class file > > > > Public Function Color() As Integer > > > > Dim Red As Integer > > Dim Green As Integer > > Dim Blue As Integer > > Dim sColor As String > > Dim iColor As Integer > > > > Red = Rnd(0, 256) > > Green = Rnd(0, 256) > > Blue = Rnd(0, 256) > > > > sColor = "&" & Hex(Red, 2) & Hex(Green, 2) & Hex(Blue, 2) & "&" > > Print sColor > > iColor = Val(sColor) > > Return iColor > > > > End > > > > Public Sub Form_MouseDown() > > > > Me.Background = Color() > > > > End > > ----------------------------------- > > > > The code try to change the bgcolor of Form with random colors on mouse > > clicks. > > > > This example is working in Gambas2. > > > > I think Form_MouseDown event is not working or i don't know... > > Plase provide a full project as much as possible. > > Regards, > -- Regards, Demosthenes -------------- next part -------------- A non-text attachment was scrubbed... Name: RndColor.tar.bz2 Type: application/x-bzip-compressed-tar Size: 6138 bytes Desc: not available URL: From austinium at ...43... Thu Jan 20 09:32:02 2011 From: austinium at ...43... (vikram) Date: Thu, 20 Jan 2011 00:32:02 -0800 (PST) Subject: [Gambas-user] Application logging using SHELL Message-ID: <468863.80338.qm@...2508...> Thank you both for the replies. I am going to try using SHELL. Regards, Vikram Nair From sotema at ...626... Thu Jan 20 11:04:05 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Thu, 20 Jan 2011 11:04:05 +0100 Subject: [Gambas-user] Project title not translated In-Reply-To: <201101200227.18449.gambas@...1...> References: <1295436872.1943.6.camel@...2516...> <201101200227.18449.gambas@...1...> Message-ID: <1295517845.28324.20.camel@...2516...> Hi Beno?t tanks for your answer. with rev 3479 i noted a strange behaviour. If you open the project translation form the project title string does not appear, but if you open the project properties form and close it, without modify the project title, then that string appear in translation form and can be translated. Now if you cleanup the project backup file the project title string doesn't appear in the translation form and also the strings counter is decremented by one until you open again the properties window. Regards, Emanuele Il giorno gio, 20/01/2011 alle 02.27 +0100, Beno?t Minisini ha scritto: > > Hi, not a bug, a minor issue. > > The project title does not appear in the translation window. This way if > > you set a form Caption = Application.Title it will be in "standard > > language", regardless the one you selected. > > Could be correct? > > Regards, > > Emanuele > > > > I think it should be fixed in revision #3479 of Gambas 3, but I'm not 100% > sure. Can you confirm? > From math.eber at ...221... Thu Jan 20 11:25:40 2011 From: math.eber at ...221... (Matti) Date: Thu, 20 Jan 2011 11:25:40 +0100 Subject: [Gambas-user] MouseDown event and Gambas3 In-Reply-To: <1295503439.2213.5.camel@...2494...> References: <1295429963.11558.3.camel@...2493...> <201101200227.48220.gambas@...1...> <1295503439.2213.5.camel@...2494...> Message-ID: <4D380DA4.2040000@...221...> Strange - both of the mouse events work fine here. gb3 svn 3457 OpenSuse, KDE, qt4 Am 20.01.2011 07:03, schrieb Demosthenes Koptsis: > i attach the project. > > gambas3-svn3442 @ x32 > gambas3-svn3475 @ x64 > > ubuntu, gtk > > none of mouse events are working. > > On Thu, 2011-01-20 at 02:27 +0100, Beno?t Minisini wrote: >>> Good morning, >>> >>> the following example is not working in gambas3-svn3475 >>> >>> ------------------------------ >>> ' Gambas class file >>> >>> Public Function Color() As Integer >>> >>> Dim Red As Integer >>> Dim Green As Integer >>> Dim Blue As Integer >>> Dim sColor As String >>> Dim iColor As Integer >>> >>> Red = Rnd(0, 256) >>> Green = Rnd(0, 256) >>> Blue = Rnd(0, 256) >>> >>> sColor = "&" & Hex(Red, 2) & Hex(Green, 2) & Hex(Blue, 2) & "&" >>> Print sColor >>> iColor = Val(sColor) >>> Return iColor >>> >>> End >>> >>> Public Sub Form_MouseDown() >>> >>> Me.Background = Color() >>> >>> End >>> ----------------------------------- >>> >>> The code try to change the bgcolor of Form with random colors on mouse >>> clicks. >>> >>> This example is working in Gambas2. >>> >>> I think Form_MouseDown event is not working or i don't know... >> >> Plase provide a full project as much as possible. >> >> Regards, >> > > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From demosthenesk at ...626... Thu Jan 20 12:36:10 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 20 Jan 2011 13:36:10 +0200 Subject: [Gambas-user] MouseDown event and Gambas3 In-Reply-To: <4D380DA4.2040000@...221...> References: <1295429963.11558.3.camel@...2493...> <201101200227.48220.gambas@...1...> <1295503439.2213.5.camel@...2494...> <4D380DA4.2040000@...221...> Message-ID: <1295523370.10614.1.camel@...2494...> here is a video which shows the behavior. http://www.youtube.com/watch?v=oC-U4N8JH7Y http://www.mediafire.com/?neds4adkys9w34o On Thu, 2011-01-20 at 11:25 +0100, Matti wrote: > Strange - both of the mouse events work fine here. > gb3 svn 3457 > OpenSuse, KDE, qt4 > > > Am 20.01.2011 07:03, schrieb Demosthenes Koptsis: > > i attach the project. > > > > gambas3-svn3442 @ x32 > > gambas3-svn3475 @ x64 > > > > ubuntu, gtk > > > > none of mouse events are working. > > > > On Thu, 2011-01-20 at 02:27 +0100, Beno?t Minisini wrote: > >>> Good morning, > >>> > >>> the following example is not working in gambas3-svn3475 > >>> > >>> ------------------------------ > >>> ' Gambas class file > >>> > >>> Public Function Color() As Integer > >>> > >>> Dim Red As Integer > >>> Dim Green As Integer > >>> Dim Blue As Integer > >>> Dim sColor As String > >>> Dim iColor As Integer > >>> > >>> Red = Rnd(0, 256) > >>> Green = Rnd(0, 256) > >>> Blue = Rnd(0, 256) > >>> > >>> sColor = "&" & Hex(Red, 2) & Hex(Green, 2) & Hex(Blue, 2) & "&" > >>> Print sColor > >>> iColor = Val(sColor) > >>> Return iColor > >>> > >>> End > >>> > >>> Public Sub Form_MouseDown() > >>> > >>> Me.Background = Color() > >>> > >>> End > >>> ----------------------------------- > >>> > >>> The code try to change the bgcolor of Form with random colors on mouse > >>> clicks. > >>> > >>> This example is working in Gambas2. > >>> > >>> I think Form_MouseDown event is not working or i don't know... > >> > >> Plase provide a full project as much as possible. > >> > >> Regards, > >> > > > > > > > > ------------------------------------------------------------------------------ > > Protect Your Site and Customers from Malware Attacks > > Learn about various malware tactics and how to avoid them. Understand > > malware threats, the impact they can have on your business, and how you > > can protect your company and customers by using code signing. > > http://p.sf.net/sfu/oracle-sfdevnl > > > > > > > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes From gambas at ...1... Thu Jan 20 13:20:10 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 20 Jan 2011 13:20:10 +0100 Subject: [Gambas-user] MouseDown event and Gambas3 In-Reply-To: <1295503439.2213.5.camel@...2494...> References: <1295429963.11558.3.camel@...2493...> <201101200227.48220.gambas@...1...> <1295503439.2213.5.camel@...2494...> Message-ID: <201101201320.11023.gambas@...1...> > i attach the project. > > gambas3-svn3442 @ x32 > gambas3-svn3475 @ x64 > > ubuntu, gtk > > none of mouse events are working. > The bug should have been fixed in revision #3480. Regards, -- Beno?t Minisini From gambas at ...1... Thu Jan 20 13:21:07 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 20 Jan 2011 13:21:07 +0100 Subject: [Gambas-user] Further news on valuebox bugs in Gambas3 In-Reply-To: <201101021706.46912.gambas@...1...> References: <4D1E83F4.5060004@...169...> <201101021706.46912.gambas@...1...> Message-ID: <201101201321.07596.gambas@...1...> > > I reported bugs when a date valuebox is housed in a Vbox. I then moved > > all my controls to a Panel and got the same problems if the > > Panel.Arrangement was set to Vertical. > > I then moved all Valueboxes to a Frame and got no problems. Obviously > > the Frame does not have an Arrangement property. > > > > One further clue. When overcoming the problems, by using a Frame or by > > setting .Arrangement to NONE in Vbox or Panel, the datePicker disappears > > from the ValueBox. > > > > Hope this helps. > > I have a pending new ValueBox to integrate, rewritten by "Durandal", a > french gambas user. > > I will give news about that as soon as I deal with it. > > Regards, ValueBox has been redesigned. Do you have less problems now? -- Beno?t Minisini From gambas at ...1... Thu Jan 20 14:31:18 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 20 Jan 2011 14:31:18 +0100 Subject: [Gambas-user] KeyPress event with grid view In-Reply-To: References: <201101032054.20780.gambas@...1...> Message-ID: <201101201431.18249.gambas@...1...> > Thank for reply, > > Here is my form. I tried remove all code and run the "fresh" form but > nothing happens. > Hi, The bug should be fixed (for Gambas 2) in revision #3481. Regards, -- Beno?t Minisini From demosthenesk at ...626... Thu Jan 20 14:43:20 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 20 Jan 2011 15:43:20 +0200 Subject: [Gambas-user] MouseDown event and Gambas3 In-Reply-To: <201101201320.11023.gambas@...1...> References: <1295429963.11558.3.camel@...2493...> <201101200227.48220.gambas@...1...> <1295503439.2213.5.camel@...2494...> <201101201320.11023.gambas@...1...> Message-ID: <1295531000.2252.2.camel@...2493...> yes this bug has been fixed, thanks! but i think there is one more in event Form_Menu() right click of mouse does not show the menu. On Thu, 2011-01-20 at 13:20 +0100, Beno?t Minisini wrote: > > i attach the project. > > > > gambas3-svn3442 @ x32 > > gambas3-svn3475 @ x64 > > > > ubuntu, gtk > > > > none of mouse events are working. > > > > The bug should have been fixed in revision #3480. > > Regards, > -- Regards, Demosthenes Koptsis. -------------- next part -------------- A non-text attachment was scrubbed... Name: Project65.tar.gz Type: application/x-compressed-tar Size: 17931 bytes Desc: not available URL: From sotema at ...626... Thu Jan 20 14:20:30 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Thu, 20 Jan 2011 14:20:30 +0100 Subject: [Gambas-user] Valuebox .Text property Message-ID: <1295529630.1820.2.camel@...2516...> Hi, gb3 rev 3479. ValueBox.Text property has been definitively removed? From gambas at ...1... Thu Jan 20 15:32:18 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 20 Jan 2011 15:32:18 +0100 Subject: [Gambas-user] MouseDown event and Gambas3 In-Reply-To: <1295531000.2252.2.camel@...2493...> References: <1295429963.11558.3.camel@...2493...> <201101201320.11023.gambas@...1...> <1295531000.2252.2.camel@...2493...> Message-ID: <201101201532.18718.gambas@...1...> > yes this bug has been fixed, thanks! > > but i think there is one more in event > > Form_Menu() > > right click of mouse does not show the menu. > Fixed in revison #3485. Regards, -- Beno?t Minisini From gambas at ...1... Thu Jan 20 17:59:52 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 20 Jan 2011 17:59:52 +0100 Subject: [Gambas-user] Valuebox .Text property In-Reply-To: <1295529630.1820.2.camel@...2516...> References: <1295529630.1820.2.camel@...2516...> Message-ID: <201101201759.52475.gambas@...1...> > Hi, > > gb3 rev 3479. > ValueBox.Text property has been definitively removed? > Ahem... Yes. There should be a ValueBox.Text property... -- Beno?t Minisini From support at ...2529... Thu Jan 20 20:17:02 2011 From: support at ...2529... (John Spikowski) Date: Thu, 20 Jan 2011 11:17:02 -0800 Subject: [Gambas-user] 3.0 trunk - makewebsite Message-ID: <1295551022.2177.45.camel@...2530...> I'm trying to download the latest for 3.0 version to help the project out if I can. I was surprised that the trunk includes a copy of the Gambas website. Is there a way to get the 3.0 release without having to copy the Gambas website as well? From sotema at ...626... Thu Jan 20 20:32:31 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Thu, 20 Jan 2011 20:32:31 +0100 Subject: [Gambas-user] Balloon no more displayed In-Reply-To: <201101200242.05160.gambas@...1...> References: <1293978619.6545.16.camel@...2476...> <201101030026.40670.gambas@...1...> <1294576890.1904.7.camel@...2476...> <201101200242.05160.gambas@...1...> Message-ID: <1295551951.22435.22.camel@...2476...> You are right, what i missed is: GTK+ GNOME UBUNTU 10.10 64 AND UBUNTU 10.04 64 (HAPPENS ON FEDORA 13 ALSO) I tried with any of possible value for stacking property with the same result. If the first Form you open is .Modal() the balloon is hidden by the form. And yes if you disable Compiz all works fine, but in fact it is very rare today find a user not have compiz enabled (apart from you). Anyway i can workaround the problem, it is not so urgent to investigate. Regards, Emanuele Il giorno gio, 20/01/2011 alle 02.42 +0100, Beno?t Minisini ha scritto: > > Hi Beno?t, > > return to this after a while because it seems not a compiz related > > problem, or at least, not only. > > If your first opened Form isn't the FMAIN and is Modal then the balloon > > is hidden by the form. If you open the FMAIN and then open a Modal Form > > the balloon is corretly displayed. > > The attached sample demonstrate the problem. Run it and you can see the > > balloon moving the Form1 apart; then set the FMain as start up class and > > now the balloon is visible. > > Regards, > > Emanuele > > > > What I see is normal (with KDE4 & KWin). Note that your modal form is stacked > below, so you can't see it anyway, unless every other window is minimized. > > Regards, > From support at ...2529... Thu Jan 20 20:59:17 2011 From: support at ...2529... (John Spikowski) Date: Thu, 20 Jan 2011 11:59:17 -0800 Subject: [Gambas-user] Building 3.0 Message-ID: <1295553557.2177.103.camel@...2530...> Gambas Developer Team, I used svn and downloaded the trunk and ran ./reconf-all. I have installed 3.0 Gambas as a sub-directory in my /home/jrs/gambas-dev/trunk and ready to build Gambas 3.0. Before I get started I have a few questions and maybe the answers will help other newbies like me to Gambas help test the 3.0 release. 1. Do I still need to run ./configure after running ./reconf-all ? 2. I would like to continue to keep the 2.22 release I built as the default and run 3.0 out of my home directory for testing. Should I use the prefix option with configure to have the install create the binaries in /home/jrs/??? 3. If I want to refresh the truck and test recent fixes, is there a svn command to only download the files that have changed since my last truck request? 4. Is there a way to only recompile a component and install it rather than doing a complete build from scratch? 5. Is there a better way to report suspected bugs other than the list? 6. What area(s) of Gambas development are most important at this time to get the 3.0 release out? Thanks for your help to bring a Gambas newbie developer up to speed. John From ron at ...1740... Thu Jan 20 21:07:01 2011 From: ron at ...1740... (Ron) Date: Thu, 20 Jan 2011 21:07:01 +0100 Subject: [Gambas-user] Building 3.0 In-Reply-To: <1295553557.2177.103.camel@...2530...> References: <1295553557.2177.103.camel@...2530...> Message-ID: On Jan 20, 2011 8:59 PM, "John Spikowski" wrote: > > Gambas Developer Team, > > I used svn and downloaded the trunk and ran ./reconf-all. I have > installed 3.0 Gambas as a sub-directory in my /home/jrs/gambas-dev/trunk > and ready to build Gambas 3.0. Before I get started I have a few > questions and maybe the answers will help other newbies like me to > Gambas help test the 3.0 release. > > 1. Do I still need to run ./configure after running ./reconf-all ? Yes > 2. I would like to continue to keep the 2.22 release I built as the > default and run 3.0 out of my home directory for testing. Should I use > the prefix option with configure to have the install create the binaries > in /home/jrs/??? You can install and run gb2 and gb3 in same dir without problems. > 3. If I want to refresh the truck and test recent fixes, is there a svn > command to only download the files that have changed since my last truck > request? svn up > 4. Is there a way to only recompile a component and install it rather > than doing a complete build from scratch? Run make install in its dir or one just above it. > 5. Is there a better way to report suspected bugs other than the list? Google code bug tracker if it is propably a bug. > 6. What area(s) of Gambas development are most important at this time to > get the 3.0 release out? Get it in a usable state. > > Thanks for your help to bring a Gambas newbie developer up to speed. > > John > Ron_2nd. > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From support at ...2529... Thu Jan 20 21:19:09 2011 From: support at ...2529... (John Spikowski) Date: Thu, 20 Jan 2011 12:19:09 -0800 Subject: [Gambas-user] Building 3.0 In-Reply-To: References: <1295553557.2177.103.camel@...2530...> Message-ID: <1295554749.2177.113.camel@...2530...> On Thu, 2011-01-20 at 21:07 +0100, Ron wrote: > On Jan 20, 2011 8:59 PM, "John Spikowski" wrote: > > > > Thanks for your help to bring a Gambas newbie developer up to speed. > > > Ron_2nd. > Thanks Ron! Does the command 'build-dist' work and will it creates a .deb package on my Ubuntu 32 box? From math.eber at ...221... Thu Jan 20 21:45:00 2011 From: math.eber at ...221... (Matti) Date: Thu, 20 Jan 2011 21:45:00 +0100 Subject: [Gambas-user] To the translator's wish list Message-ID: <4D389ECC.8000309@...221...> In earlier versions (than gb3 rev.3457) you could select and copy the string of the source laguage into the translation field. This was useful with special chars (like \n,
...) and with long strings, to calculate if the translation fits into the control. Would be fine to give back this option. Regards Matti From gambas at ...1... Thu Jan 20 23:31:06 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 20 Jan 2011 23:31:06 +0100 Subject: [Gambas-user] To the translator's wish list In-Reply-To: <4D389ECC.8000309@...221...> References: <4D389ECC.8000309@...221...> Message-ID: <201101202331.06976.gambas@...1...> > In earlier versions (than gb3 rev.3457) you could select and copy the > string of the source laguage into the translation field. > > This was useful with special chars (like \n,
...) and with long > strings, to calculate if the translation fits into the control. > > Would be fine to give back this option. > > Regards > Matti > The fourth button from the left (with the "copy" icon) does that normally... -- Beno?t Minisini From gambas at ...1... Fri Jan 21 00:11:54 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 21 Jan 2011 00:11:54 +0100 Subject: [Gambas-user] Building 3.0 In-Reply-To: <1295553557.2177.103.camel@...2530...> References: <1295553557.2177.103.camel@...2530...> Message-ID: <201101210011.54721.gambas@...1...> > Gambas Developer Team, > > I used svn and downloaded the trunk and ran ./reconf-all. I have > installed 3.0 Gambas as a sub-directory in my /home/jrs/gambas-dev/trunk > and ready to build Gambas 3.0. Before I get started I have a few > questions and maybe the answers will help other newbies like me to > Gambas help test the 3.0 release. > > 1. Do I still need to run ./configure after running ./reconf-all ? > Yes. Better run "./configure -C", it will be faster. > 2. I would like to continue to keep the 2.22 release I built as the > default and run 3.0 out of my home directory for testing. Should I use > the prefix option with configure to have the install create the binaries > in /home/jrs/??? Gambas 2 and Gambas 3 should not interfere in any way. > > 3. If I want to refresh the truck and test recent fixes, is there a svn > command to only download the files that have changed since my last truck > request? "svn update" or "svn up". There is a quick & dirty svn howto on the wiki. > > 4. Is there a way to only recompile a component and install it rather > than doing a complete build from scratch? Only what has been changed will be recompiled. And Gambas and its components are like Linux kernel and its drivers. If you just recompile and install a component, it may not work, if that component needs something outside of its source directory that has changed too. > > 5. Is there a better way to report suspected bugs other than the list? > The place where you report a bug is not really important at the moment (the mailing-list or the bug tracker). The important thing is how you report it. I.e. by providing all the details and a project that reproduces the bug! > 6. What area(s) of Gambas development are most important at this time to > get the 3.0 release out? > I'd like the gb.report component to be usable - Be bold Fabien! :-) - and I'd like to replace the current IconView control by an IconView entirely made in Gambas. Maybe a few little things besides that, and a release candidate will be possible. Regards, -- Beno?t Minisini From mdavies5 at ...169... Fri Jan 21 04:39:41 2011 From: mdavies5 at ...169... (Michael) Date: Fri, 21 Jan 2011 14:39:41 +1100 Subject: [Gambas-user] Further news on valuebox bugs in Gambas3 In-Reply-To: <201101201321.07596.gambas@...1...> References: <4D1E83F4.5060004@...169...> <201101021706.46912.gambas@...1...> <201101201321.07596.gambas@...1...> Message-ID: <4D38FFFD.7040104@...169...> Thanks Benoit, This is a great improvement. There is only 1 point I don't understand. I enclose 2 screenshots. DateBox2.png shows 2 value boxes in an hbox and they have a calendar option. If I cut the datebox and paste it outside the hbox then the calendar disappears. DateBox1.png shows a value box(Payment date) set to type "Date" in a vbox and it does not display a calendar. If I move it to a panel it still does not show a calendar. It means the interface lacks consistency. Regards Michael On 20/01/11 23:21, Beno?t Minisini wrote: >>> I reported bugs when a date valuebox is housed in a Vbox. I then moved >>> all my controls to a Panel and got the same problems if the >>> Panel.Arrangement was set to Vertical. >>> I then moved all Valueboxes to a Frame and got no problems. Obviously >>> the Frame does not have an Arrangement property. >>> >>> One further clue. When overcoming the problems, by using a Frame or by >>> setting .Arrangement to NONE in Vbox or Panel, the datePicker disappears >>> from the ValueBox. >>> >>> Hope this helps. >> I have a pending new ValueBox to integrate, rewritten by "Durandal", a >> french gambas user. >> >> I will give news about that as soon as I deal with it. >> >> Regards, > ValueBox has been redesigned. Do you have less problems now? > -------------- next part -------------- A non-text attachment was scrubbed... Name: DateBox2.png Type: image/png Size: 30807 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: DateBox1.png Type: image/png Size: 47847 bytes Desc: not available URL: From austinium at ...43... Fri Jan 21 06:43:54 2011 From: austinium at ...43... (vikram) Date: Thu, 20 Jan 2011 21:43:54 -0800 (PST) Subject: [Gambas-user] Feature request Message-ID: <433366.50001.qm@...2517...> Hi, I am not sure if its a little late for this but having shrink/expand buttons for code in the IDE would be nice. You know the little + - signs that let you shrink or expand loops and functions. P.S.: I've not used Gambas3 yet, so please ignore this mail if it's already got this feature. Regards, Vikram From support at ...2529... Fri Jan 21 07:07:33 2011 From: support at ...2529... (John Spikowski) Date: Thu, 20 Jan 2011 22:07:33 -0800 Subject: [Gambas-user] Feature request In-Reply-To: <433366.50001.qm@...2517...> References: <433366.50001.qm@...2517...> Message-ID: <1295590053.1844.17.camel@...2530...> On Thu, 2011-01-20 at 21:43 -0800, vikram wrote: > Hi, > > I am not sure if its a little late for this but having shrink/expand buttons for code in the IDE would be nice. You know the little + - signs that let you shrink or expand loops and functions. > > P.S.: I've not used Gambas3 yet, so please ignore this mail if it's already got this feature. > > Regards, > Vikram > Gambas3 has collapsible structure control. They are arrows that either point to the line when collapsed or point down when the code is expanded. I would include an image attachment but I don't know if that's allowed on this list. From dosida at ...626... Fri Jan 21 07:42:22 2011 From: dosida at ...626... (Dimitris Anogiatis) Date: Thu, 20 Jan 2011 23:42:22 -0700 Subject: [Gambas-user] using echo command within EXEC In-Reply-To: <129959.63503.qm@...2467...> References: <129959.63503.qm@...2467...> Message-ID: Hey vikram, Try this subroutine. Make a new module and add this in it PUBLIC SUB append2log(text AS String) DIM tmpFile AS File tmpFile = OPEN User.Home &/ "Desktop/test1.txt" FOR APPEND WRITE #tmpFile, text & gb.NewLine, Len(text & gb.NewLine) CLOSE #tmpFile END if for example you call your module "helper" then you can use it in your program like this: helper.append2log("Log Entry: " & Now()) helper.append2log("Main Form opened") it should do the job and you don't need to use shell all the time to log events into a log file just make sure the file you're going to use is created in a folder with the right permissions. Otherwise Gambas is going to throw you an error message. and unless you are fully debugging you really don't need to log every event in your program unless they are critical points with the potential for failure. Hope this helps Regards Dimitris On Wed, Jan 19, 2011 at 3:32 AM, vikram wrote: > Hi, > > I am using Gambas 2.21, on Debian Squeeze. I am trying to keep a log of the > things my application does, for instance events like forms opening, errors > can be logged. > > I am thinking of using the SHELL with echo command to write to a log file. > > For example, using SHELL i would use: > SHELL "echo \"Form1 Entered\">>Logfile" > > Could this cause the application to be a resource hog? The only other way I > can think of to do logging is to use File I/O but that would be a lot of > work when compated to using SHELL, plus I don't know it will prove to be > more of a resource hog than using SHELL. > > Help! > > Thanks in advance, > Regards, > Vikram Nair > > > > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From math.eber at ...221... Fri Jan 21 07:55:36 2011 From: math.eber at ...221... (Matti) Date: Fri, 21 Jan 2011 07:55:36 +0100 Subject: [Gambas-user] To the translator's wish list In-Reply-To: <201101202331.06976.gambas@...1...> References: <4D389ECC.8000309@...221...> <201101202331.06976.gambas@...1...> Message-ID: <4D392DE8.4080400@...221...> Yes, of course. Didn't see it... Am 20.01.2011 23:31, schrieb Beno?t Minisini: >> In earlier versions (than gb3 rev.3457) you could select and copy the >> string of the source laguage into the translation field. >> >> This was useful with special chars (like \n,
...) and with long >> strings, to calculate if the translation fits into the control. >> >> Would be fine to give back this option. >> >> Regards >> Matti >> > > The fourth button from the left (with the "copy" icon) does that normally... > From gambas at ...1... Fri Jan 21 16:32:12 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 21 Jan 2011 16:32:12 +0100 Subject: [Gambas-user] Further news on valuebox bugs in Gambas3 In-Reply-To: <4D38FFFD.7040104@...169...> References: <4D1E83F4.5060004@...169...> <201101201321.07596.gambas@...1...> <4D38FFFD.7040104@...169...> Message-ID: <201101211632.12424.gambas@...1...> > Thanks Benoit, > This is a great improvement. There is only 1 point I don't understand. I > enclose 2 screenshots. DateBox2.png shows 2 value boxes in an hbox and > they have a calendar option. If I cut the datebox and paste it outside > the hbox then the calendar disappears. > DateBox1.png shows a value box(Payment date) set to type "Date" in a > vbox and it does not display a calendar. If I move it to a panel it > still does not show a calendar. > It means the interface lacks consistency. > > Regards > Michael > gb.gtk bugs for sure... Can you send me a project with these forms? -- Beno?t Minisini From gambas at ...2524... Fri Jan 21 21:35:26 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 21 Jan 2011 20:35:26 +0000 Subject: [Gambas-user] Issue 14 in gambas: Draw.Drawing does not work -- Signal #11 error Message-ID: <0-6813199134517018827-13140061639659794138-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 14 by jonericn... at ...626...: Draw.Drawing does not work -- Signal #11 error http://code.google.com/p/gambas/issues/detail?id=14 1) Describe the problem. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: Gambas 2.22.0 Operating system: Kernal Linux 2.6.35-22-generic Distribution: LinuxMint, Release 10 (julia) Architecture: AMD x86_64 GUI component: QT3 Desktop used: Gnome I have attached a tar.gz of my project. It is just a demo. When I try to Draw an .SVG Drawing, I get the error message "The program has stopped unexpectedly by raising signal #11." When I try to draw file "yellow_oval", the console shows these messages: QSvgDevice::play: unknown element type defs QSvgDevice::play: unknown element type metadata When I try to draw file "USB-Drive-In-SVG.svg", the console shows these messages: QSvgDevice::play: unknown element type defs QSvgDevice::play: unknown element type sodipodi:namedview QSvgDevice::play: unknown element type metadata The error appears on the attempt to Draw the Drawing (the .SVG file). In order to debug, I inserted PRINT "(various messages)" after each line, so I was able to confirm that the problem happens upon the attempt to Draw.Drawing. I am attaching the compressed project folder, so you can see the FMain.form and FMain.class documents, and also the .SVG files that I have tried to draw. According to Synaptic, I have every gambas2 package installed, including gambas2-gb-qt-ext, which should contain the Draw.Drawing function. Thanks for your work!! Jon Nicholson nicholso at ...2533... Attachments: gfxDemo3.tar.gz 14.1 KB From support at ...2529... Fri Jan 21 21:59:21 2011 From: support at ...2529... (John Spikowski) Date: Fri, 21 Jan 2011 12:59:21 -0800 Subject: [Gambas-user] Issue 14 in gambas: Draw.Drawing does not work -- Signal #11 error In-Reply-To: <0-6813199134517018827-13140061639659794138-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-13140061639659794138-gambas=googlecode.com@...2524...> Message-ID: <1295643561.1774.4.camel@...2530...> On Fri, 2011-01-21 at 20:35 +0000, gambas at ...2524... wrote: > Jon Nicholson > > nicholso at ...2533... > > Attachments: > gfxDemo3.tar.gz 14.1 KB > That answers my previous question about the list allowing attachments. :-( If there isn't a project (SourceForge) method of submitting test code from users, I can set something up on www.vbonx.com as a file repository. Let me know how I can help. John From gambas at ...1... Sat Jan 22 00:24:06 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 22 Jan 2011 00:24:06 +0100 Subject: [Gambas-user] Issue 14 in gambas: Draw.Drawing does not work -- Signal #11 error In-Reply-To: <1295643561.1774.4.camel@...2530...> References: <0-6813199134517018827-13140061639659794138-gambas=googlecode.com@...2524...> <1295643561.1774.4.camel@...2530...> Message-ID: <201101220024.06609.gambas@...1...> > On Fri, 2011-01-21 at 20:35 +0000, gambas at ...2524... wrote: > > Jon Nicholson > > > > nicholso at ...2533... > > > > Attachments: > > gfxDemo3.tar.gz 14.1 KB > > That answers my previous question about the list allowing > attachments. :-( > > If there isn't a project (SourceForge) method of submitting test code > from users, I can set something up on www.vbonx.com as a file > repository. > > Let me know how I can help. > > John > What are you talking about? You can submit attachment to the mailing-list and to the bug tracker. -- Beno?t Minisini From support at ...2529... Sat Jan 22 00:39:16 2011 From: support at ...2529... (John Spikowski) Date: Fri, 21 Jan 2011 15:39:16 -0800 Subject: [Gambas-user] Issue 14 in gambas: Draw.Drawing does not work -- Signal #11 error In-Reply-To: <201101220024.06609.gambas@...1...> References: <0-6813199134517018827-13140061639659794138-gambas=googlecode.com@...2524...> <1295643561.1774.4.camel@...2530...> <201101220024.06609.gambas@...1...> Message-ID: <1295653156.1774.27.camel@...2530...> On Sat, 2011-01-22 at 00:24 +0100, Beno?t Minisini wrote: > What are you talking about? You can submit attachment to the mailing-list and > to the bug tracker. > I never got the attachment or have I seen one since being a member of the list. Good to know about the bug tracker attachment option. From support at ...2529... Sat Jan 22 00:41:41 2011 From: support at ...2529... (John Spikowski) Date: Fri, 21 Jan 2011 15:41:41 -0800 Subject: [Gambas-user] Issue 14 in gambas: Draw.Drawing does not work -- Signal #11 error In-Reply-To: <201101220024.06609.gambas@...1...> References: <0-6813199134517018827-13140061639659794138-gambas=googlecode.com@...2524...> <1295643561.1774.4.camel@...2530...> <201101220024.06609.gambas@...1...> Message-ID: <1295653301.1774.29.camel@...2530...> On Sat, 2011-01-22 at 00:24 +0100, Beno?t Minisini wrote: > What are you talking about? You can submit attachment to the mailing-list and > to the bug tracker. > My mistake, I didn't get the last attachment (may not have been sent) and I have seen .png attachemnts in other list posts. Sorry! From gambas at ...1... Sat Jan 22 02:17:27 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 22 Jan 2011 02:17:27 +0100 Subject: [Gambas-user] Valuebox .Text property In-Reply-To: <201101201759.52475.gambas@...1...> References: <1295529630.1820.2.camel@...2516...> <201101201759.52475.gambas@...1...> Message-ID: <201101220217.27242.gambas@...1...> > > Hi, > > > > gb3 rev 3479. > > ValueBox.Text property has been definitively removed? > > Ahem... Yes. There should be a ValueBox.Text property... OK, implemented in the last revision! -- Beno?t Minisini From mdavies5 at ...169... Sat Jan 22 02:38:20 2011 From: mdavies5 at ...169... (Michael) Date: Sat, 22 Jan 2011 12:38:20 +1100 Subject: [Gambas-user] Further news on valuebox bugs in Gambas3 In-Reply-To: <201101211632.12424.gambas@...1...> References: <4D1E83F4.5060004@...169...> <201101201321.07596.gambas@...1...> <4D38FFFD.7040104@...169...> <201101211632.12424.gambas@...1...> Message-ID: <4D3A350C.7020502@...169...> Interesting. I could not reproduce in a separate project so I had to investigate further. I did file comparisons on the 2 projects and discovered that if you set the value of "Expand" to TRUE then the calendar appears. Set it to FALSE and it disappears. I'm not sure if this is an intended feature or a bonus but it is certainly handy and worth documenting. This option was just what I was looking for. Regards Michael On 22/01/11 02:32, Beno?t Minisini wrote: >> Thanks Benoit, >> This is a great improvement. There is only 1 point I don't understand. I >> enclose 2 screenshots. DateBox2.png shows 2 value boxes in an hbox and >> they have a calendar option. If I cut the datebox and paste it outside >> the hbox then the calendar disappears. >> DateBox1.png shows a value box(Payment date) set to type "Date" in a >> vbox and it does not display a calendar. If I move it to a panel it >> still does not show a calendar. >> It means the interface lacks consistency. >> >> Regards >> Michael >> > gb.gtk bugs for sure... Can you send me a project with these forms? > From sotema at ...626... Sat Jan 22 11:19:04 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Sat, 22 Jan 2011 11:19:04 +0100 Subject: [Gambas-user] Valuebox .Text property In-Reply-To: <201101220217.27242.gambas@...1...> References: <1295529630.1820.2.camel@...2516...> <201101201759.52475.gambas@...1...> <201101220217.27242.gambas@...1...> Message-ID: <1295691544.2976.1.camel@...2516...> Tanks, Emanuele Il giorno sab, 22/01/2011 alle 02.17 +0100, Beno?t Minisini ha scritto: > > > Hi, > > > > > > gb3 rev 3479. > > > ValueBox.Text property has been definitively removed? > > > > Ahem... Yes. There should be a ValueBox.Text property... > > OK, implemented in the last revision! > From support at ...2529... Sat Jan 22 22:53:56 2011 From: support at ...2529... (John Spikowski) Date: Sat, 22 Jan 2011 13:53:56 -0800 Subject: [Gambas-user] Database example - dropbox select issue Message-ID: <1295733236.1875.33.camel@...2530...> I have been trying to get up to speed with Gambas by playing with the examples provided in the distribution. I noticed that the connect screen for the database example seems to have a problem selecting the first item from the drop down list. If I click on a item below the first item it works. I can then select the first item after the drop down has been populated at less once. This works without issue in 2.99 Alpha. Are you still taking bug reports for 2.x Gambas? Would I be smart to use 3 for any new development? From gambas at ...2524... Sun Jan 23 02:38:08 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 23 Jan 2011 01:38:08 +0000 Subject: [Gambas-user] Issue 12 in gambas: Disabled timer keep running In-Reply-To: <0-6813199134517018827-1818788958963045096-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-1818788958963045096-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-1818788958963045096-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-Any Comment #1 on issue 12 by benoit.m... at ...626...: Disabled timer keep running http://code.google.com/p/gambas/issues/detail?id=12 Please provide a project that show the bug. From gambas at ...2524... Sun Jan 23 02:42:09 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 23 Jan 2011 01:42:09 +0000 Subject: [Gambas-user] Issue 13 in gambas: GTK+ buttons inherit a form's background color In-Reply-To: <0-6813199134517018827-3610022519733850930-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-3610022519733850930-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-3610022519733850930-gambas=googlecode.com@...2524...> Updates: Status: WontFix Labels: -Version Version-Any Comment #1 on issue 13 by benoit.m... at ...626...: GTK+ buttons inherit a form's background color http://code.google.com/p/gambas/issues/detail?id=13 I think this is normal with GTK+. From gambas at ...2524... Sun Jan 23 02:46:10 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 23 Jan 2011 01:46:10 +0000 Subject: [Gambas-user] Issue 14 in gambas: Draw.Drawing does not work -- Signal #11 error In-Reply-To: <0-6813199134517018827-13140061639659794138-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-13140061639659794138-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-13140061639659794138-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-2.22.0 Comment #1 on issue 14 by benoit.m... at ...626...: Draw.Drawing does not work -- Signal #11 error http://code.google.com/p/gambas/issues/detail?id=14 I will look at it. But note that the SVG support is not complete in Qt, even Qt 4. They support only "Tiny SVG 1.1" or something like that. Look in the Qt documentation for more details. From support at ...2529... Sun Jan 23 04:50:47 2011 From: support at ...2529... (John Spikowski) Date: Sat, 22 Jan 2011 19:50:47 -0800 Subject: [Gambas-user] V3 Warning and Message Boxes Message-ID: <1295754647.5310.31.camel@...2530...> I get the following messages when starting Gambas 3. jrs at ...2530...:~$ gambas3 Qt: Session management error: None of the authentication protocols specified are supported warning: unable to load Qt translation: en_US.utf8 warning: unable to load 16/cancel warning: unable to load 16/apply jrs at ...2530...:~$ When I select a demo to run it says it's already open (it's NOT) and I have to click force to open the IDE. (work normal on 2.22) Since I installed Gambas (2.21), I get a ICS failed to authenticate or start dialog before my desktop even comes up when logging in. From leo_senpao at ...1541... Sun Jan 23 06:35:07 2011 From: leo_senpao at ...1541... (Leo Sendra) Date: Sun, 23 Jan 2011 13:35:07 +0800 (SGT) Subject: [Gambas-user] (no subject) Message-ID: <510614.85976.qm@...2248...> http://www.allmyshirts.com/bestchoice.php From imperious.ldr at ...2360... Sun Jan 23 10:39:58 2011 From: imperious.ldr at ...2360... (Anthony Ivan) Date: Sun, 23 Jan 2011 22:39:58 +1300 Subject: [Gambas-user] Eeek... help. Gambas 3, latest SVN In-Reply-To: <510614.85976.qm@...2248...> References: <510614.85976.qm@...2248...> Message-ID: <4D3BF76E.80509@...2360...> Hi Everyone... Once again a silly basic question - the answer to which is eluding me: I am trying to send a string[] of data from one computer to another.... THUS on the server side: Public Sub MessageClients(myMessage As String[]) Dim varSocket As Socket For Each varSocket In Clients Try Write #varSocket, myMessage As String[] Next End On the Client side.... Public Sub varSocket_Read() DIM myData as String[] If varSocket.Status <> Net.Connected Then Return Try myData = Read #Last As String[] End The above creates a signal 11 failure. The data is being sent out from the server. If I change things around to send and receive a simple string there is no problem. The question is: How does one receive a String[] array at the client end? Any insight greatly appreciated. Anthony From jussi.lahtinen at ...626... Sun Jan 23 13:45:21 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 23 Jan 2011 14:45:21 +0200 Subject: [Gambas-user] Eeek... help. Gambas 3, latest SVN In-Reply-To: <4D3BF76E.80509@...2360...> References: <510614.85976.qm@...2248...> <4D3BF76E.80509@...2360...> Message-ID: http://gambasdoc.org/help/comp/gb.net/socket?v3 http://gambasdoc.org/help/lang/split?v3 I don't think client knows how to split string to array, so you have to do it your self. Jussi On Sun, Jan 23, 2011 at 11:39, Anthony Ivan wrote: > Hi Everyone... > > Once again a silly basic question - the answer to which is eluding me: > > I am trying to send a string[] of data from one computer to another.... > > THUS on the server side: > Public Sub MessageClients(myMessage As String[]) > Dim varSocket As Socket > For Each varSocket In Clients > Try Write #varSocket, myMessage As String[] > Next > End > > On the Client side.... > Public Sub varSocket_Read() > DIM myData as String[] > If varSocket.Status <> Net.Connected Then Return > Try myData = Read #Last As String[] > End > > > The above creates a signal 11 failure. The data is being sent out from > the server. If I change things around to send and receive a simple > string there is no problem. The question is: How does one receive a > String[] array at the client end? > > Any insight greatly appreciated. > > Anthony > > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better > price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ron at ...1740... Sun Jan 23 14:26:41 2011 From: ron at ...1740... (Ron) Date: Sun, 23 Jan 2011 14:26:41 +0100 Subject: [Gambas-user] Gambas 3 rev 3489 error message windows in ide gone? Message-ID: When compiling a project which has syntax errors I don't get a pop msg anymore telling what is wrong, it just jump to line with the error and displays the error in the status bar of main project. If you blink you eyes you miss them, because it's only displayed 2 seconds. Is this a bug, or changed behaviour? [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.32-26-generic DistributionVendor=Ubuntu DistributionRelease="Ubuntu 10.04.1 LTS" [System] CPUArchitecture=i686 TotalRam=1017108 kB Desktop=Gnome [Gambas] Gambas1=Not Installed Gambas2=2.21.0 Gambas2Path=/usr/local/bin/gbx2 Gambas3=2.99.0 Gambas3Path=/usr/local/bin/gbx3 Regards, Ron_2nd. From ron at ...1740... Sun Jan 23 14:34:31 2011 From: ron at ...1740... (Ron) Date: Sun, 23 Jan 2011 14:34:31 +0100 Subject: [Gambas-user] Gambas 3 rev 3489 bad form file version Message-ID: When you have a project where not all form are converted from 2.0 yet, there is no way to get it going anymore, since the menu option to convert forms isn't there anymore. And i cannot find any substitute to do that. So i'm stuck again porting my project... Any solution? Regards, Ron_2nd. From gambas at ...1... Sun Jan 23 16:37:04 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 23 Jan 2011 16:37:04 +0100 Subject: [Gambas-user] Eeek... help. Gambas 3, latest SVN In-Reply-To: <4D3BF76E.80509@...2360...> References: <510614.85976.qm@...2248...> <4D3BF76E.80509@...2360...> Message-ID: <201101231637.04652.gambas@...1...> > Hi Everyone... > > Once again a silly basic question - the answer to which is eluding me: > > I am trying to send a string[] of data from one computer to another.... > > THUS on the server side: > Public Sub MessageClients(myMessage As String[]) > Dim varSocket As Socket > For Each varSocket In Clients > Try Write #varSocket, myMessage As String[] > Next > End > > On the Client side.... > Public Sub varSocket_Read() > DIM myData as String[] > If varSocket.Status <> Net.Connected Then Return > Try myData = Read #Last As String[] > End > > > The above creates a signal 11 failure. The data is being sent out from > the server. If I change things around to send and receive a simple > string there is no problem. The question is: How does one receive a > String[] array at the client end? > > Any insight greatly appreciated. > > Anthony > It should work.. :-) Please tell me where it crashes exactly (in the sender, in the receiver ?) and at which line. Try to write "As Object" instead of "As String[]" in the Read and Write instructions as a workaround to see if you have the crash too. Regards, -- Beno?t Minisini From gambas at ...1... Sun Jan 23 17:18:46 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 23 Jan 2011 17:18:46 +0100 Subject: [Gambas-user] Project title not translated In-Reply-To: <1295517845.28324.20.camel@...2516...> References: <1295436872.1943.6.camel@...2516...> <201101200227.18449.gambas@...1...> <1295517845.28324.20.camel@...2516...> Message-ID: <201101231718.46198.gambas@...1...> > Hi Beno?t > tanks for your answer. > with rev 3479 i noted a strange behaviour. > If you open the project translation form the project title string does > not appear, but if you open the project properties form and close it, > without modify the project title, then that string appear in translation > form and can be translated. > Now if you cleanup the project backup file the project title string > doesn't appear in the translation form and also the strings counter is > decremented by one until you open again the properties window. > > Regards, > Emanuele > The bug should be fixed in revision #3490. Regards, -- Beno?t Minisini From gambas at ...1... Sun Jan 23 17:31:33 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 23 Jan 2011 17:31:33 +0100 Subject: [Gambas-user] Project title not translated In-Reply-To: <201101231718.46198.gambas@...1...> References: <1295436872.1943.6.camel@...2516...> <1295517845.28324.20.camel@...2516...> <201101231718.46198.gambas@...1...> Message-ID: <201101231731.33577.gambas@...1...> > > Hi Beno?t > > tanks for your answer. > > with rev 3479 i noted a strange behaviour. > > If you open the project translation form the project title string does > > not appear, but if you open the project properties form and close it, > > without modify the project title, then that string appear in translation > > form and can be translated. > > Now if you cleanup the project backup file the project title string > > doesn't appear in the translation form and also the strings counter is > > decremented by one until you open again the properties window. > > > > Regards, > > Emanuele > > The bug should be fixed in revision #3490. > > Regards, Oops. I meant revision #3491. -- Beno?t Minisini From gambas at ...1... Sun Jan 23 17:35:13 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 23 Jan 2011 17:35:13 +0100 Subject: [Gambas-user] Database example - dropbox select issue In-Reply-To: <1295733236.1875.33.camel@...2530...> References: <1295733236.1875.33.camel@...2530...> Message-ID: <201101231735.13776.gambas@...1...> > I have been trying to get up to speed with Gambas by playing with the > examples provided in the distribution. I noticed that the connect screen > for the database example seems to have a problem selecting the first > item from the drop down list. If I click on a item below the first item > it works. I can then select the first item after the drop down has been > populated at less once. > > This works without issue in 2.99 Alpha. Are you still taking bug reports > for 2.x Gambas? Would I be smart to use 3 for any new development? > Please provide more details: which example are you talking about? "Database" example? Which problem do you have *exactly* when selecting the first item in the drop down list? I can select the first item with no problem on my system, with Gambas 2. Regards, -- Beno?t Minisini From gambas at ...1... Sun Jan 23 17:36:00 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 23 Jan 2011 17:36:00 +0100 Subject: [Gambas-user] Gambas 3 rev 3489 error message windows in ide gone? In-Reply-To: References: Message-ID: <201101231736.00298.gambas@...1...> > When compiling a project which has syntax errors I don't get a pop msg > anymore telling what is wrong, it just jump to line with the error and > displays the error in the status bar of main project. > If you blink you eyes you miss them, because it's only displayed 2 seconds. > > Is this a bug, or changed behaviour? > > > [OperatingSystem] > OperatingSystem=Linux > KernelRelease=2.6.32-26-generic > DistributionVendor=Ubuntu > DistributionRelease="Ubuntu 10.04.1 LTS" > > [System] > CPUArchitecture=i686 > TotalRam=1017108 kB > Desktop=Gnome > > [Gambas] > Gambas1=Not Installed > Gambas2=2.21.0 > Gambas2Path=/usr/local/bin/gbx2 > Gambas3=2.99.0 > Gambas3Path=/usr/local/bin/gbx3 > > > Regards, > Ron_2nd. > Do you use Compiz ? If yes, can you disable it and see if you have the same problem with the balloon messages? -- Beno?t Minisini From gambas at ...1... Sun Jan 23 17:36:27 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 23 Jan 2011 17:36:27 +0100 Subject: [Gambas-user] Gambas 3 rev 3489 bad form file version In-Reply-To: References: Message-ID: <201101231736.27873.gambas@...1...> > When you have a project where not all form are converted from 2.0 yet, > there is no way to get it going anymore, since the menu option to > convert forms isn't there anymore. > And i cannot find any substitute to do that. > > So i'm stuck again porting my project... > > Any solution? > > > > Regards, > Ron_2nd. > Do you have a copy of the old unconverted Gambas 2 project? -- Beno?t Minisini From ron at ...1740... Sun Jan 23 18:25:36 2011 From: ron at ...1740... (Ron) Date: Sun, 23 Jan 2011 18:25:36 +0100 Subject: [Gambas-user] Gambas 3 rev 3489 bad form file version Message-ID: Yes i have, but i copy parts of my project, im keeping a 2 and gambas 3 version. Now i cant copy updated forms anymore and choose update. Can we just keep that menu optio too? --- Regards, Ron. On Jan 23, 2011 5:36 PM, "Beno?t Minisini" wrote: From gambas at ...1... Sun Jan 23 18:35:28 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 23 Jan 2011 18:35:28 +0100 Subject: [Gambas-user] Gambas 3 rev 3489 bad form file version In-Reply-To: References: Message-ID: <201101231835.28305.gambas@...1...> > Yes i have, but i copy parts of my project, im keeping a 2 and gambas 3 > version. > Now i cant copy updated forms anymore and choose update. > > Can we just keep that menu optio too? > --- > Regards, > Ron. Now the conversion of forms is automatic as soon as you open a Gambas 2 project in the Gambas 3 IDE. So, if you open your old Gambas 2 project, all your forms will be automatically converted. It's an interesting test for me, as you will be able to tell me how useful is the automatic converter (it converts both forms and source code). As the source code converter is based on the remarks you published on your web site, it *should* convert your entire project correctly. All the modifications introduced by the converter are annotated with a comment in the source code, with the old line before the conversion, so that you can check exactly what was done. Please do the test and tell me the result. Moreover, by doing that, you will be able to take the converted forms you need to put them in your already partially converted Gambas 3 project! -- Beno?t Minisini From ron at ...1740... Sun Jan 23 18:39:16 2011 From: ron at ...1740... (Ron) Date: Sun, 23 Jan 2011 18:39:16 +0100 Subject: [Gambas-user] Gambas 3 rev 3489 bad form file version In-Reply-To: <201101231835.28305.gambas@...1...> References: <201101231835.28305.gambas@...1...> Message-ID: Ok will do and let you know, if it works ok i dont have do merge updates myself, so it's better in the end! --- Regards, Ron. On Jan 23, 2011 6:35 PM, "Beno?t Minisini" wrote: >> Yes i have, but i copy parts of my project, im keeping a 2 and gambas 3 >> version. >> Now i cant copy updated forms anymore and choose update. >> >> Can we just keep that menu optio too? >> --- >> Regards, >> Ron. > > Now the conversion of forms is automatic as soon as you open a Gambas 2 > project in the Gambas 3 IDE. So, if you open your old Gambas 2 project, all > your forms will be automatically converted. > > It's an interesting test for me, as you will be able to tell me how useful is > the automatic converter (it converts both forms and source code). > > As the source code converter is based on the remarks you published on your web > site, it *should* convert your entire project correctly. > > All the modifications introduced by the converter are annotated with a comment > in the source code, with the old line before the conversion, so that you can > check exactly what was done. > > Please do the test and tell me the result. > > Moreover, by doing that, you will be able to take the converted forms you need > to put them in your already partially converted Gambas 3 project! > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sun Jan 23 18:39:13 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 23 Jan 2011 18:39:13 +0100 Subject: [Gambas-user] Gambas 3 rev 3489 bad form file version In-Reply-To: <201101231835.28305.gambas@...1...> References: <201101231835.28305.gambas@...1...> Message-ID: <201101231839.13507.gambas@...1...> > > Yes i have, but i copy parts of my project, im keeping a 2 and gambas 3 > > version. > > Now i cant copy updated forms anymore and choose update. > > > > Can we just keep that menu optio too? > > --- > > Regards, > > Ron. > > Now the conversion of forms is automatic as soon as you open a Gambas 2 > project in the Gambas 3 IDE. So, if you open your old Gambas 2 project, all > your forms will be automatically converted. > > It's an interesting test for me, as you will be able to tell me how useful > is the automatic converter (it converts both forms and source code). > > As the source code converter is based on the remarks you published on your > web site, it *should* convert your entire project correctly. > > All the modifications introduced by the converter are annotated with a > comment in the source code, with the old line before the conversion, so > that you can check exactly what was done. > > Please do the test and tell me the result. > > Moreover, by doing that, you will be able to take the converted forms you > need to put them in your already partially converted Gambas 3 project! Note that not all incompatibilities are handled by the converter. See the "Porting from Gambas 2 to Gambas 3" page in the wiki for more information. Regards, -- Beno?t Minisini From imperious.ldr at ...2360... Mon Jan 24 08:09:37 2011 From: imperious.ldr at ...2360... (Anthony Ivan) Date: Mon, 24 Jan 2011 20:09:37 +1300 Subject: [Gambas-user] Eeek... help. Gambas 3, latest SVN In-Reply-To: <201101231637.04652.gambas@...1...> References: <510614.85976.qm@...2248...> <4D3BF76E.80509@...2360...> <201101231637.04652.gambas@...1...> Message-ID: <4D3D25B1.6060400@...2360...> Change the types to simple strings and both client and serversocket run perfectly. If the server socket sends a String[] as below and the client attempts to Read as String[] the client dies in debugging with a signal 11 crash. If I change to object[]'s both client and server crash with signal 11 :( On 01/24/2011 04:37 AM, Beno?t Minisini wrote: >> Hi Everyone... >> >> Once again a silly basic question - the answer to which is eluding me: >> >> I am trying to send a string[] of data from one computer to another.... >> >> THUS on the server side: >> Public Sub MessageClients(myMessage As String[]) >> Dim varSocket As Socket >> For Each varSocket In Clients >> Try Write #varSocket, myMessage As String[] >> Next >> End >> >> On the Client side.... >> Public Sub varSocket_Read() >> DIM myData as String[] >> If varSocket.Status<> Net.Connected Then Return >> Try myData = Read #Last As String[] >> End >> >> >> The above creates a signal 11 failure. The data is being sent out from >> the server. If I change things around to send and receive a simple >> string there is no problem. The question is: How does one receive a >> String[] array at the client end? >> >> Any insight greatly appreciated. >> >> Anthony >> > It should work.. :-) > > Please tell me where it crashes exactly (in the sender, in the receiver ?) and > at which line. > > Try to write "As Object" instead of "As String[]" in the Read and Write > instructions as a workaround to see if you have the crash too. > > Regards, > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: serversocket.txt URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: client.txt URL: From gambas at ...1... Mon Jan 24 16:17:05 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 24 Jan 2011 16:17:05 +0100 Subject: [Gambas-user] V3 Warning and Message Boxes In-Reply-To: <1295754647.5310.31.camel@...2530...> References: <1295754647.5310.31.camel@...2530...> Message-ID: <201101241617.05219.gambas@...1...> > I get the following messages when starting Gambas 3. > > > jrs at ...2530...:~$ gambas3 > Qt: Session management error: None of the authentication protocols > specified are supported > warning: unable to load Qt translation: en_US.utf8 > warning: unable to load 16/cancel > warning: unable to load 16/apply > jrs at ...2530...:~$ > > When I select a demo to run it says it's already open (it's NOT) and I > have to click force to open the IDE. (work normal on 2.22) > > > Since I installed Gambas (2.21), I get a ICS failed to authenticate or > start dialog before my desktop even comes up when logging in. > You may have a special desktop if Qt cannot find a supported session management protocol... -- Beno?t Minisini From math.eber at ...221... Mon Jan 24 22:29:38 2011 From: math.eber at ...221... (Matti) Date: Mon, 24 Jan 2011 22:29:38 +0100 Subject: [Gambas-user] A request to the developers Message-ID: <4D3DEF42.3090205@...221...> If you make a translatable project, please think of the translators! English is a very "short" language, so the translations may take more space. If you make every control just to fit to English, the translators might not be able to put a translation into it. Just leave some space for every control. Regards Matti From albertoarpaia at ...2537... Tue Jan 25 09:14:49 2011 From: albertoarpaia at ...2537... (Alberto Arpaia) Date: Tue, 25 Jan 2011 09:14:49 +0100 Subject: [Gambas-user] Gambas with Low resolution Message-ID: <4D3E8679.7000608@...2537...> Hi, I'm a new user in Gambas2 My problem is: I'm using LMDE (linux mint debian edition) and when I run the Gambas2 interface, it displays large windows and I can't work propely. Instead with LinuxMint Julia with the same PC everthyng works good. The version of Gambas is 2.21 (from the repositoy of my distro) Sorry for my english but I'm italian Grazie e ciao a tutti Alberto From gambas at ...1... Tue Jan 25 11:42:15 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 25 Jan 2011 11:42:15 +0100 Subject: [Gambas-user] Gambas with Low resolution In-Reply-To: <4D3E8679.7000608@...2537...> References: <4D3E8679.7000608@...2537...> Message-ID: <201101251142.15768.gambas@...1...> > Hi, > I'm a new user in Gambas2 > My problem is: > I'm using LMDE (linux mint debian edition) and when I run the Gambas2 > interface, it displays large windows and I can't work propely. > Instead with LinuxMint Julia with the same PC everthyng works good. > > The version of Gambas is 2.21 (from the repositoy of my distro) > > Sorry for my english but I'm italian > > Grazie e ciao a tutti > Alberto > As often with Ubuntu, the Qt3 library may be misconfigured. Find a program named "qtconfig" (the Qt3 version, not the Qt4 version), and run it to configure the default Qt font size. Regards, -- Beno?t Minisini From albertoarpaia at ...2537... Tue Jan 25 13:17:00 2011 From: albertoarpaia at ...2537... (Alberto Arpaia) Date: Tue, 25 Jan 2011 13:17:00 +0100 Subject: [Gambas-user] Gambas with Low resolution In-Reply-To: <201101251142.15768.gambas@...1...> References: <4D3E8679.7000608@...2537...> <201101251142.15768.gambas@...1...> Message-ID: <4D3EBF3C.7070500@...2537...> Il 25/01/2011 11:42, Beno?t Minisini ha scritto: > As often with Ubuntu, the Qt3 library may be misconfigured. Find a program > named "qtconfig" (the Qt3 version, not the Qt4 version), and run it to > configure the default Qt font size. > > Regards, Thanks You resolve my problem. Now I can customize my aspect as I like. But how in LinuxMint Julia worked from the beging without touch anything? Alberto From tobiasboe1 at ...20... Tue Jan 25 17:37:47 2011 From: tobiasboe1 at ...20... (tobias) Date: Tue, 25 Jan 2011 17:37:47 +0100 Subject: [Gambas-user] Custom Class question Message-ID: <4D3EFC5B.6030002@...20...> hi, i have a question about some source code from fabien from 8th november 2009 about creating custom controls: "I think for the begginnig you must to do an encapsulating classe. It's a class that take a control as parameter. And give to it new function or feature. so: ============================================================= CLASS CColourCombo Private $hComboBox Private $hObs as new Observer Public sub _New(hCombo as ComboBox) $hComboBox = hCombo $hOBS=NEW Observer(hCombo) AS "MyCombo" End PUBLIC SUB MyCombo_Change() If $hCombox.Current.Text<0 then $hComboBox.BackColor=Color.Red else $hComboBox.BackColor=Color.White endif end ==================================== 'Form Now in your form just add Public sub _New dim hCColourCombo as CColourCombo hCColourCombo = new CColourCombo(MyComboBox) endif END ====================================== I think for the begginnig you must to do an encapsulating classe. And now you have a combo box that change backcolour when the selected value is negative ! It's more simple than a control if you have no so many feature to add. Fabien" i quite can't make this working for me. i corrected this a bit but in the forms _new() i get "Not enough arguments" in the creation of the CColourCombo: hCColourCombo = new CColourCombo(MyComboBox) From imperious.ldr at ...2360... Tue Jan 25 20:53:17 2011 From: imperious.ldr at ...2360... (Anthony Ivan) Date: Wed, 26 Jan 2011 08:53:17 +1300 Subject: [Gambas-user] Eeek... help. Gambas 3, latest SVN In-Reply-To: <4D3D25B1.6060400@...2360...> References: <510614.85976.qm@...2248...> <4D3BF76E.80509@...2360...> <201101231637.04652.gambas@...1...> <4D3D25B1.6060400@...2360...> Message-ID: <4D3F2A2D.9010507@...2360...> If it helps any - Granted this is now talking about serial ports vs networking: In another part of the project I communicate with a VHF radio via RS232 serial port. In this code I Write Byte[] information to the radio and that works perfectly. Because of the way the radio replies I Read single byte's back rather than read byte[] so I can't see if that also works..... but since write seems to be okay with byte[]/string[] etc it might infer the error with the network Socket problem is in how Read works (??) when trying to fill something[] array's??? Anthony On 01/24/2011 08:09 PM, Anthony Ivan wrote: > Change the types to simple strings and both client and serversocket > run perfectly. > > If the server socket sends a String[] as below and the client attempts > to Read as String[] the client dies in debugging with a signal 11 > crash. If I change to object[]'s both client and server crash with > signal 11 :( > > On 01/24/2011 04:37 AM, Beno?t Minisini wrote: >>> Hi Everyone... >>> >>> Once again a silly basic question - the answer to which is eluding me: >>> >>> I am trying to send a string[] of data from one computer to another.... >>> >>> THUS on the server side: >>> Public Sub MessageClients(myMessage As String[]) >>> Dim varSocket As Socket >>> For Each varSocket In Clients >>> Try Write #varSocket, myMessage As String[] >>> Next >>> End >>> >>> On the Client side.... >>> Public Sub varSocket_Read() >>> DIM myData as String[] >>> If varSocket.Status<> Net.Connected Then Return >>> Try myData = Read #Last As String[] >>> End >>> >>> >>> The above creates a signal 11 failure. The data is being sent out from >>> the server. If I change things around to send and receive a simple >>> string there is no problem. The question is: How does one receive a >>> String[] array at the client end? >>> >>> Any insight greatly appreciated. >>> >>> Anthony >>> >> It should work.. :-) >> >> Please tell me where it crashes exactly (in the sender, in the >> receiver ?) and >> at which line. >> >> Try to write "As Object" instead of "As String[]" in the Read and Write >> instructions as a workaround to see if you have the crash too. >> >> Regards, > From inigo_zuluaga at ...397... Tue Jan 25 21:05:10 2011 From: inigo_zuluaga at ...397... (=?ISO-8859-1?Q?I=F1igo?= Zuluaga) Date: Tue, 25 Jan 2011 21:05:10 +0100 Subject: [Gambas-user] Is posible to Draw an Arc (instead of pies) with Draw.circle ? Message-ID: <1295985910.2727.18.camel@...2539...> I'm making a program that needs to draw arcs. (An editor and Viewer of Gcode routes). I'm trying with: Draw.Circle (X, Y, R, AngStart, AngEnd) but I can not draw only the arc (not radius). Is that not possible with Gambas 2? http://picasaweb.google.com/lh/photo/Vy7N707LwBtn6TiOS5RBRwVrkBiCHQPOraRw-4L07rw?feat=directlink In 2009 there is a similar question, but now... any ideas? Thanks From kevinfishburne at ...1887... Wed Jan 26 01:33:06 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 25 Jan 2011 19:33:06 -0500 Subject: [Gambas-user] gb3: incorrect result from equation using singles Message-ID: <4D3F6BC2.50205@...1887...> The variables cx and Client.relx are of datatype single. The initial value of cx is 0 and Client.relx is 51. The code cx = (cx + Client.relx) / 2 assigns the value 0 to cx. It should be 25.5. When I enter ?(cx + Client.relx) / 2 in the debug/immediate window I get 2.7476892520342E-315. Have I lost my mind, or is something seriously wrong here? Also, Beno?t, have the MkXXX$() functions been taken out of gb3 yet? I want to compile the latest revision but haven't converted my networking code to use structures yet. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From jussi.lahtinen at ...626... Wed Jan 26 01:42:24 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 26 Jan 2011 02:42:24 +0200 Subject: [Gambas-user] Disappeared error messages Message-ID: Hi! What has happen to error messages? Now Gambas IDE just stops executing when running into error! But some error messages still seems to be visible... Gambas 3 rev 3493 @ Ubuntu 10.10 64bit Jussi From jussi.lahtinen at ...626... Wed Jan 26 16:08:29 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 26 Jan 2011 17:08:29 +0200 Subject: [Gambas-user] Problems with new feature of gambas IDE Message-ID: Hi! Gambas IDE seems to automatically expand sentences like this "If a=b then" to "If a = b then", even when you are in middle of writing this sentence. This makes writing hard because expanding doesn't move cursor accordingly, example if you try to write: "If a=true then" you got: "If a True Then =" This seems to happen only when you have used search feature, and you have search list tab visible. Jussi From gambas at ...1... Wed Jan 26 16:13:35 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 26 Jan 2011 16:13:35 +0100 Subject: [Gambas-user] Problems with new feature of gambas IDE In-Reply-To: References: Message-ID: <201101261613.35307.gambas@...1...> > Hi! > Gambas IDE seems to automatically expand sentences like this "If a=b then" > to "If a = b then", even when you are in middle of writing this sentence. > This makes writing hard because expanding doesn't move cursor accordingly, > example if you try to write: > "If a=true then" you got: > "If a True Then =" > > This seems to happen only when you have used search feature, and you have > search list tab visible. > > Jussi Exactly. I am aware of the problem and must find a fix... -- Beno?t Minisini From gambas at ...2524... Wed Jan 26 16:30:28 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 26 Jan 2011 15:30:28 +0000 Subject: [Gambas-user] Issue 15 in gambas: Bugs gtk component. Message-ID: <0-6813199134517018827-2348850762639234993-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 15 by francesc... at ...626...: Bugs gtk component. http://code.google.com/p/gambas/issues/detail?id=15 1) Iconview items, which are insert into an iconview object with a rectangle draw around, are not shown correctly into the iconview grid if i set GridWith at some value (ex.: 10). 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK / 2.22.0 Operating system: Linux / FreeBSD Distribution: Fedora Architecture: x86 GUI component: GTK+ Desktop used: XFCE4 From oceanosoftlapalma at ...626... Wed Jan 26 22:51:20 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Wed, 26 Jan 2011 22:51:20 +0100 Subject: [Gambas-user] Disappeared error messages In-Reply-To: References: Message-ID: I got the same problem with the same gambas version in the same OS. Compiz is disabled. In addition, when IDE is in debug mode, if you do double-click on a variable (or object), nothing happens, In previous gambas3 versions, a form with detailed info was open. Regards, Ricardo D?az 2011/1/26 Jussi Lahtinen > Hi! > What has happen to error messages? > Now Gambas IDE just stops executing when running into error! > But some error messages still seems to be visible... > > Gambas 3 rev 3493 @ Ubuntu 10.10 64bit > > Jussi > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better > price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Wed Jan 26 18:28:35 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 26 Jan 2011 17:28:35 +0000 Subject: [Gambas-user] Issue 16 in gambas: buttonbox have no picture on GTK Message-ID: <0-6813199134517018827-13123476125433424582-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 16 by sot... at ...626...: buttonbox have no picture on GTK http://code.google.com/p/gambas/issues/detail?id=16 1) Describe the problem. ButtonBox componenet does not show the picture (also the standard one ...) with GTK+ libraries 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: gb3 3496 Operating system: Linux Distribution: Ubuntu 10.10 Architecture: x86_64 GUI component:GTK+ Desktop used: Gnome 3) Provide a little project that reproduces the bug or the crash. attached tar.gz 4) If your project needs a database, try to provide it, or part of it. 5) Explain clearly how to reproduce the bug or the crash. simply run it 6) By doing that carefully, you have done 50% of the bug fix job! Attachments: ButtonBox.tar.gz 4.5 KB From jussi.lahtinen at ...626... Wed Jan 26 22:12:18 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 26 Jan 2011 23:12:18 +0200 Subject: [Gambas-user] Problems with new feature of gambas IDE In-Reply-To: <201101261613.35307.gambas@...1...> References: <201101261613.35307.gambas@...1...> Message-ID: Search with regular expression doesn't seem to work... "AnyFunctionName(*" doesn't find anything. Jussi 2011/1/26 Beno?t Minisini > > Hi! > > Gambas IDE seems to automatically expand sentences like this "If a=b > then" > > to "If a = b then", even when you are in middle of writing this sentence. > > This makes writing hard because expanding doesn't move cursor > accordingly, > > example if you try to write: > > "If a=true then" you got: > > "If a True Then =" > > > > This seems to happen only when you have used search feature, and you have > > search list tab visible. > > > > Jussi > > Exactly. I am aware of the problem and must find a fix... > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better > price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Jan 26 23:49:34 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 26 Jan 2011 23:49:34 +0100 Subject: [Gambas-user] Problems with new feature of gambas IDE In-Reply-To: References: <201101261613.35307.gambas@...1...> Message-ID: <201101262349.34202.gambas@...1...> > Search with regular expression doesn't seem to work... "AnyFunctionName(*" > doesn't find anything. > > Jussi > Search is done with "grep", so you must learn the grep regular expression syntax first! -- Beno?t Minisini From demosthenesk at ...626... Thu Jan 27 08:09:37 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 27 Jan 2011 09:09:37 +0200 Subject: [Gambas-user] Problems with new feature of gambas IDE In-Reply-To: <201101262349.34202.gambas@...1...> References: <201101261613.35307.gambas@...1...> <201101262349.34202.gambas@...1...> Message-ID: <1296112177.2254.5.camel@...2494...> There is a help program which you can create RegExp or learn by doing. It is named txt2regex the regexp you want probably is AnyFunctionName(.* The Gambas2 was using the sed syntax as i remember for regexp. On Wed, 2011-01-26 at 23:49 +0100, Beno?t Minisini wrote: > > Search with regular expression doesn't seem to work... "AnyFunctionName(*" > > doesn't find anything. > > > > Jussi > > > > Search is done with "grep", so you must learn the grep regular expression > syntax first! > -- Regards, Demosthenes -------------- next part -------------- A non-text attachment was scrubbed... Name: user at ...2494...: ~_001.png Type: image/png Size: 48008 bytes Desc: not available URL: From oceanosoftlapalma at ...626... Thu Jan 27 09:22:22 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Thu, 27 Jan 2011 09:22:22 +0100 Subject: [Gambas-user] Disappeared error messages In-Reply-To: References: Message-ID: In version 3498 works better. I can see again the message error but double-click on a variable or object doesn't work anymore. Regards, Ricardo D?az 2011/1/26 Ricardo D?az Mart?n > I got the same problem with the same gambas version in the same OS. Compiz > is disabled. > > In addition, when IDE is in debug mode, if you do double-click on a > variable (or object), nothing happens, In previous gambas3 versions, a form > with detailed info was open. > > Regards, > Ricardo D?az > > 2011/1/26 Jussi Lahtinen > > Hi! >> What has happen to error messages? >> Now Gambas IDE just stops executing when running into error! >> But some error messages still seems to be visible... >> >> Gambas 3 rev 3493 @ Ubuntu 10.10 64bit >> >> Jussi >> >> ------------------------------------------------------------------------------ >> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! >> Finally, a world-class log management solution at an even better >> price-free! >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires >> February 28th, so secure your free ArcSight Logger TODAY! >> http://p.sf.net/sfu/arcsight-sfd2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From gambas at ...2524... Thu Jan 27 09:23:35 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 27 Jan 2011 08:23:35 +0000 Subject: [Gambas-user] Issue 17 in gambas: ComboBox.Add("item", idx) fails with GTK Message-ID: <0-6813199134517018827-17396745212787662350-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 17 by sot... at ...626...: ComboBox.Add("item",idx) fails with GTK http://code.google.com/p/gambas/issues/detail?id=17 1) Describe the problem. Adding an item at given index to a CombobBox does not set the correct index. The inserted item appear at index+1 in the list. Try: ... ComboBox.List=["item1","item2","item3"] ComboBox.Add("Pick one...",0) ... With ComboBox.ReadOnly = true the text shown into the combo is. "Item1" opening the list you see: Item1 Pick one... Item 2 Item 3 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: gb3 3496 Operating system: Linux Distribution: Ubuntu 10.10 Architecture: x86_64 GUI component: GTK+ Desktop used: Gnome 3) Provide a little project that reproduces the bug or the crash. test.gz attached 4) If your project needs a database, try to provide it, or part of it. 5) Explain clearly how to reproduce the bug or the crash. 6) By doing that carefully, you have done 50% of the bug fix job! Attachments: test.tar.gz 5.1 KB From oceanosoftlapalma at ...626... Thu Jan 27 09:32:39 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Thu, 27 Jan 2011 09:32:39 +0100 Subject: [Gambas-user] Disappeared error messages In-Reply-To: References: Message-ID: Ok, forget my last mail. Works as expected on 3498. Regards, Ricardo 2011/1/27 Ricardo D?az Mart?n > In version 3498 works better. I can see again the message error but > double-click on a variable or object doesn't work anymore. > > Regards, > Ricardo D?az > > 2011/1/26 Ricardo D?az Mart?n > > I got the same problem with the same gambas version in the same OS. Compiz >> is disabled. >> >> In addition, when IDE is in debug mode, if you do double-click on a >> variable (or object), nothing happens, In previous gambas3 versions, a form >> with detailed info was open. >> >> Regards, >> Ricardo D?az >> >> 2011/1/26 Jussi Lahtinen >> >> Hi! >>> What has happen to error messages? >>> Now Gambas IDE just stops executing when running into error! >>> But some error messages still seems to be visible... >>> >>> Gambas 3 rev 3493 @ Ubuntu 10.10 64bit >>> >>> Jussi >>> >>> ------------------------------------------------------------------------------ >>> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! >>> Finally, a world-class log management solution at an even better >>> price-free! >>> Download using promo code Free_Logger_4_Dev2Dev. Offer expires >>> February 28th, so secure your free ArcSight Logger TODAY! >>> http://p.sf.net/sfu/arcsight-sfd2d >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> > From rterry at ...1946... Thu Jan 27 12:48:35 2011 From: rterry at ...1946... (richard terry) Date: Thu, 27 Jan 2011 22:48:35 +1100 Subject: [Gambas-user] Adding a control to a group Message-ID: <201101272248.35735.rterry@...1946...> I wondered if it is possible to add a control to an existing group of controls which have been created at design time, but where the new control is created in code. Though a control such as a toolbar as a group property at design time, this dosn't seem to be available at run time. " This property is virtual: it is only implemented in the IDE, and has no existence at runtime" ?any solution. Regards richard From rterry at ...1946... Thu Jan 27 12:52:37 2011 From: rterry at ...1946... (richard terry) Date: Thu, 27 Jan 2011 22:52:37 +1100 Subject: [Gambas-user] Adding a control to a group In-Reply-To: <201101272248.35735.rterry@...1946...> References: <201101272248.35735.rterry@...1946...> Message-ID: <201101272252.37250.rterry@...1946...> On Thursday 27 January 2011 22:48:35 richard terry wrote: Ok, to answer my own question I just gave the control's event the same name as the event of the group I want it to be in, so problem solved!!! tb = New ToolButton(Last) As "tbSections" Ah well, maybe it will help someone else!! Regards richard > I wondered if it is possible to add a control to an existing group of > controls which have been created at design time, but where the new control > is created in code. > > Though a control such as a toolbar as a group property at design time, this > dosn't seem to be available at run time. > > " This property is virtual: it is only implemented in the IDE, and has no > existence at runtime" > > ?any solution. > > Regards > > richard > > > --------------------------------------------------------------------------- > --- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better > price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ron at ...1740... Thu Jan 27 16:00:28 2011 From: ron at ...1740... (Ron) Date: Thu, 27 Jan 2011 16:00:28 +0100 Subject: [Gambas-user] Converting a project to Gambas3 (was: Re:Gambas 3 rev 3489 bad form file version) In-Reply-To: <201101231839.13507.gambas@...1...> References: <201101231835.28305.gambas@...1...> <201101231839.13507.gambas@...1...> Message-ID: <4D41888C.700@...1740...> On 23-1-2011 18:39, Beno?t Minisini wrote: >>> Yes i have, but i copy parts of my project, im keeping a 2 and gambas 3 >>> version. >>> Now i cant copy updated forms anymore and choose update. >>> >>> Can we just keep that menu optio too? >>> --- >>> Regards, >>> Ron. >> Now the conversion of forms is automatic as soon as you open a Gambas 2 >> project in the Gambas 3 IDE. So, if you open your old Gambas 2 project, all >> your forms will be automatically converted. >> >> It's an interesting test for me, as you will be able to tell me how useful >> is the automatic converter (it converts both forms and source code). >> >> As the source code converter is based on the remarks you published on your >> web site, it *should* convert your entire project correctly. >> >> All the modifications introduced by the converter are annotated with a >> comment in the source code, with the old line before the conversion, so >> that you can check exactly what was done. >> >> Please do the test and tell me the result. >> >> Moreover, by doing that, you will be able to take the converted forms you >> need to put them in your already partially converted Gambas 3 project! > Note that not all incompatibilities are handled by the converter. See the > "Porting from Gambas 2 to Gambas 3" page in the wiki for more information. > > Regards, > Benoit, I opened a copy of my Gambas2 project with revision 3498, it converted it automagically upon open. Some first notes: Displaying ide compile error messages in balloons works again! But not for runtime errors, if you programs runs, and it stops with runtime error on the line with error I cannot see which error occurred on that line. While converting, the shell output reported a missing icon I guess: warning: unable to load 16/view-hidden CSng isn't converted to CSingle (seems easy to do automatically) A manual 'replace all' converted all 106 of them. Same for CLng to CLong, a manual 'replace all' converted 6 of them. BCOL: Didn't find/converted this line: If Row Mod 2 Then gvPhoneCalls.Data.BackColor = Color.Background Will try/run my program some more and let you know. Regards, Ron_2nd. From gambas at ...2524... Thu Jan 27 16:43:52 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 27 Jan 2011 15:43:52 +0000 Subject: [Gambas-user] Issue 18 in gambas: MouseClick, MouseDown events raised even if object is disabled Message-ID: <0-6813199134517018827-46776496469490256-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 18 by sot... at ...626...: MouseClick, MouseDown events raised even if object is disabled http://code.google.com/p/gambas/issues/detail?id=18 1) Describe the problem. Newly code instantiated objects (checkbox or radiobutton) raise the MouseDown and MouseClick events, even if they are .Enabled=False. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK / 3498 Operating system: Linux Distribution: Ubuntu 10.10 Architecture: x86_64 GUI component: QT4 / GTK+ Desktop used: Gnome 3) Provide a little project that reproduces the bug or the crash. checkbox.tar.gz attached 4) If your project needs a database, try to provide it, or part of it. 5) Explain clearly how to reproduce the bug or the crash. 6) By doing that carefully, you have done 50% of the bug fix job! Attachments: checkbox.tar.gz 4.9 KB From jussi.lahtinen at ...626... Thu Jan 27 20:21:38 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 27 Jan 2011 21:21:38 +0200 Subject: [Gambas-user] Problems with new feature of gambas IDE In-Reply-To: <1296112177.2254.5.camel@...2494...> References: <201101261613.35307.gambas@...1...> <201101262349.34202.gambas@...1...> <1296112177.2254.5.camel@...2494...> Message-ID: OK, thanks to you both! For some reason I assumed that it uses LIKE command notation. Jussi On Thu, Jan 27, 2011 at 09:09, Demosthenes Koptsis wrote: > There is a help program which you can create RegExp or learn by doing. > It is named txt2regex > > the regexp you want probably is AnyFunctionName(.* > > The Gambas2 was using the sed syntax as i remember for regexp. > > > > On Wed, 2011-01-26 at 23:49 +0100, Beno?t Minisini wrote: > > > Search with regular expression doesn't seem to work... > "AnyFunctionName(*" > > > doesn't find anything. > > > > > > Jussi > > > > > > > Search is done with "grep", so you must learn the grep regular expression > > syntax first! > > > > -- > Regards, > Demosthenes > > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better > price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...1... Fri Jan 28 02:07:05 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 28 Jan 2011 02:07:05 +0100 Subject: [Gambas-user] gb3: incorrect result from equation using singles In-Reply-To: <4D3F6BC2.50205@...1887...> References: <4D3F6BC2.50205@...1887...> Message-ID: <201101280207.05622.gambas@...1...> > The variables cx and Client.relx are of datatype single. The initial > value of cx is 0 and Client.relx is 51. The code > > cx = (cx + Client.relx) / 2 > > assigns the value 0 to cx. It should be 25.5. > > When I enter > > ?(cx + Client.relx) / 2 > > in the debug/immediate window I get 2.7476892520342E-315. Have I lost my > mind, or is something seriously wrong here? I cannot reproduce that. As usual, please provide a project that shows the bug. And check that you use the latest revision. > > Also, Beno?t, have the MkXXX$() functions been taken out of gb3 yet? I > want to compile the latest revision but haven't converted my networking > code to use structures yet. They will be removed sooner or later. You don't have to compile the latest revision. You can compile any revision you want by passing the "-r XXXX" to the subversion command, where "XXXX" is the revision number. Regards, -- Beno?t Minisini From gambas at ...1... Fri Jan 28 02:12:45 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 28 Jan 2011 02:12:45 +0100 Subject: [Gambas-user] Is posible to Draw an Arc (instead of pies) with Draw.circle ? In-Reply-To: <1295985910.2727.18.camel@...2539...> References: <1295985910.2727.18.camel@...2539...> Message-ID: <201101280212.45059.gambas@...1...> > I'm making a program that needs to draw arcs. > (An editor and Viewer of Gcode routes). > I'm trying with: > Draw.Circle (X, Y, R, AngStart, AngEnd) > but I can not draw only the arc (not radius). > Is that not possible with Gambas 2? > > http://picasaweb.google.com/lh/photo/Vy7N707LwBtn6TiOS5RBRwVrkBiCHQPOraRw-4 > L07rw?feat=directlink > > In 2009 there is a similar question, but now... > > any ideas? > > Thanks > I forgot that bug. I will implement it in Gambas 3, but I'm afraid I cannot do that in Gambas 2. I will think and say you then... Regards, -- Beno?t Minisini From gambas at ...2524... Fri Jan 28 09:49:19 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 28 Jan 2011 08:49:19 +0000 Subject: [Gambas-user] Issue 19 in gambas: Popup Menu does not pop up with GTK+ Message-ID: <0-6813199134517018827-18424581060624364053-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 19 by sot... at ...626...: Popup Menu does not pop up with GTK+ http://code.google.com/p/gambas/issues/detail?id=19 1) Describe the problem. Having a container, like a TabStrip or WorkSpace the Form Popup Menu does not popups. To open the popups menu ya have to right click on a part of the form out of the container, this means, if the container is Expand=true the popup menu will never open. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: 3498 Operating system: Linux Distribution: Ubuntu 10.10 Architecture: x86_64 GUI component: GTK+ Desktop used: Gnome 3) Provide a little project that reproduces the bug or the crash. popup.tar.gz attached 4) If your project needs a database, try to provide it, or part of it. 5) Explain clearly how to reproduce the bug or the crash. 6) By doing that carefully, you have done 50% of the bug fix job! Attachments: popup.tar.gz 4.8 KB From support at ...2529... Fri Jan 28 10:10:13 2011 From: support at ...2529... (John Spikowski) Date: Fri, 28 Jan 2011 01:10:13 -0800 Subject: [Gambas-user] list attachments Message-ID: <1296205813.1931.4.camel@...2530...> I only seem to be getting image (png) attachments. I have yet to see a .tar, .zip. ... as an attachment. The only thing that tells me that an attachment was included is the follow. Attachments: popup.tar.gz 4.8 KB This shows at the end of the user post but before the list footers. From gambas at ...1... Fri Jan 28 14:02:50 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 28 Jan 2011 14:02:50 +0100 Subject: [Gambas-user] Is posible to Draw an Arc (instead of pies) with Draw.circle ? In-Reply-To: <201101280212.45059.gambas@...1...> References: <1295985910.2727.18.camel@...2539...> <201101280212.45059.gambas@...1...> Message-ID: <201101281402.50551.gambas@...1...> > > I'm making a program that needs to draw arcs. > > (An editor and Viewer of Gcode routes). > > I'm trying with: > > Draw.Circle (X, Y, R, AngStart, AngEnd) > > but I can not draw only the arc (not radius). > > Is that not possible with Gambas 2? > > > > http://picasaweb.google.com/lh/photo/Vy7N707LwBtn6TiOS5RBRwVrkBiCHQPOraRw > > -4 L07rw?feat=directlink > > > > In 2009 there is a similar question, but now... > > > > any ideas? > > > > Thanks > > I forgot that bug. I will implement it in Gambas 3, but I'm afraid I cannot > do that in Gambas 2. > > I will think and say you then... > > Regards, I have implemented Draw.Arc() in Gambas 3, revision #3500. Regards, -- Beno?t Minisini From gambas at ...2524... Fri Jan 28 16:56:20 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 28 Jan 2011 15:56:20 +0000 Subject: [Gambas-user] Issue 15 in gambas: Bugs gtk component. In-Reply-To: <0-6813199134517018827-2348850762639234993-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-2348850762639234993-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-2348850762639234993-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Comment #1 on issue 15 by benoit.m... at ...626...: Bugs gtk component. http://code.google.com/p/gambas/issues/detail?id=15 Can you provide a project that shows the bug? Next time you report a bug, can you fill an accurate summary (for example: "Iconview items are not shown correctly when the GridWidth property is set"). And note that the IconView will be replaced in Gambas 3 by a control made in Gambas. From gambas at ...2524... Fri Jan 28 17:00:26 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 28 Jan 2011 16:00:26 +0000 Subject: [Gambas-user] Issue 15 in gambas: Bugs gtk component. In-Reply-To: <1-6813199134517018827-2348850762639234993-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-2348850762639234993-gambas=googlecode.com@...2524...> <0-6813199134517018827-2348850762639234993-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-2348850762639234993-gambas=googlecode.com@...2524...> Updates: Labels: -Version -GUI-Any Version-Any GUI-GTK Comment #2 on issue 15 by benoit.m... at ...626...: Bugs gtk component. http://code.google.com/p/gambas/issues/detail?id=15 (No comment was entered for this change.) From gambas at ...2524... Fri Jan 28 17:04:32 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 28 Jan 2011 16:04:32 +0000 Subject: [Gambas-user] Issue 14 in gambas: Draw.Drawing does not work -- Signal #11 error In-Reply-To: <1-6813199134517018827-13140061639659794138-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-13140061639659794138-gambas=googlecode.com@...2524...> <0-6813199134517018827-13140061639659794138-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-13140061639659794138-gambas=googlecode.com@...2524...> Updates: Labels: -Priority-Medium Priority-Low Comment #2 on issue 14 by benoit.m... at ...626...: Draw.Drawing does not work -- Signal #11 error http://code.google.com/p/gambas/issues/detail?id=14 (No comment was entered for this change.) From gambas at ...2524... Fri Jan 28 17:13:54 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 28 Jan 2011 16:13:54 +0000 Subject: [Gambas-user] Issue 16 in gambas: buttonbox have no picture on GTK In-Reply-To: <0-6813199134517018827-13123476125433424582-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-13123476125433424582-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-13123476125433424582-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version -GUI-Any Version-TRUNK GUI-GTK Comment #1 on issue 16 by benoit.m... at ...626...: buttonbox have no picture on GTK http://code.google.com/p/gambas/issues/detail?id=16 (No comment was entered for this change.) From Gambas at ...1950... Fri Jan 28 16:55:16 2011 From: Gambas at ...1950... (Caveat) Date: Fri, 28 Jan 2011 16:55:16 +0100 Subject: [Gambas-user] list attachments In-Reply-To: <1296205813.1931.4.camel@...2530...> References: <1296205813.1931.4.camel@...2530...> Message-ID: <1296230116.8419.10.camel@...2479...> Yeah the mail titled "Issue 19 in gambas: Popup Menu does not popup with GTK+" appears to be a notification mail from the issue tracker. If you click on the link given in the mail http://code.google.com/p/gambas/issues/detail?id=19 (about the 6th line down), Issue 19 will popup (ha! at least something is popping up) in your browser. You can download the file from there, towards the bottom of the page. I dunno why the file isn't getting attached to the email, but I suspect it's to do with the fact it's coming through as a notification. (??) If someone posts direct to the mailing list, like I am now, I think attachments will come through OK. You'll soon find out, as popup.tar.gz *should* be attached to this mail. Regards, Caveat On Fri, 2011-01-28 at 01:10 -0800, John Spikowski wrote: > I only seem to be getting image (png) attachments. I have yet to see > a .tar, .zip. ... as an attachment. The only thing that tells me that an > attachment was included is the follow. > > Attachments: > popup.tar.gz 4.8 KB > > > This shows at the end of the user post but before the list footers. > > > > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > 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: popup.tar.gz Type: application/x-compressed-tar Size: 4966 bytes Desc: not available URL: From gambas at ...2524... Fri Jan 28 18:17:35 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 28 Jan 2011 17:17:35 +0000 Subject: [Gambas-user] Issue 16 in gambas: buttonbox have no picture on GTK In-Reply-To: <1-6813199134517018827-13123476125433424582-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-13123476125433424582-gambas=googlecode.com@...2524...> <0-6813199134517018827-13123476125433424582-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-13123476125433424582-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 16 by benoit.m... at ...626...: buttonbox have no picture on GTK http://code.google.com/p/gambas/issues/detail?id=16 Fixed in revision #3502. From gambas at ...2524... Fri Jan 28 19:13:28 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 28 Jan 2011 18:13:28 +0000 Subject: [Gambas-user] Issue 17 in gambas: ComboBox.Add("item", idx) fails with GTK In-Reply-To: <0-6813199134517018827-17396745212787662350-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-17396745212787662350-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-17396745212787662350-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version -GUI-Any Version-Any GUI-GTK Comment #1 on issue 17 by benoit.m... at ...626...: ComboBox.Add("item",idx) fails with GTK http://code.google.com/p/gambas/issues/detail?id=17 (No comment was entered for this change.) From gambas at ...2524... Fri Jan 28 19:17:45 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 28 Jan 2011 18:17:45 +0000 Subject: [Gambas-user] Issue 17 in gambas: ComboBox.Add("item", idx) and ListBox.Add("item", idx) fails with GTK In-Reply-To: <1-6813199134517018827-2619959352867244456-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-2619959352867244456-gambas=googlecode.com@...2524...> <0-6813199134517018827-2619959352867244456-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-2619959352867244456-gambas=googlecode.com@...2524...> Updates: Summary: ComboBox.Add("item",idx) and ListBox.Add("item",idx) fails with GTK Status: Fixed Comment #2 on issue 17 by benoit.m... at ...626...: ComboBox.Add("item",idx) and ListBox.Add("item",idx) fails with GTK http://code.google.com/p/gambas/issues/detail?id=17 Fixed in revision #3504 for both Gambas 2 and Gambas 3, and for both ComboBox and ListBox! From gambas at ...2524... Fri Jan 28 19:21:54 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 28 Jan 2011 18:21:54 +0000 Subject: [Gambas-user] Issue 2 in gambas: No native gambas for Windows platforms In-Reply-To: <1-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> <0-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> Updates: Labels: -Priority-Medium Priority-Low Comment #2 on issue 2 by benoit.m... at ...626...: No native gambas for Windows platforms http://code.google.com/p/gambas/issues/detail?id=2 (No comment was entered for this change.) From gambas at ...2524... Fri Jan 28 19:26:00 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 28 Jan 2011 18:26:00 +0000 Subject: [Gambas-user] Issue 2 in gambas: No native gambas for Windows platforms In-Reply-To: <2-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> <0-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Comment #3 on issue 2 by benoit.m... at ...626...: No native gambas for Windows platforms http://code.google.com/p/gambas/issues/detail?id=2 Will Microsoft collapse slowly enough so that someone has enough time to do the port? From gambas at ...2524... Fri Jan 28 19:30:04 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 28 Jan 2011 18:30:04 +0000 Subject: [Gambas-user] Issue 18 in gambas: MouseClick, MouseDown events raised even if object is disabled In-Reply-To: <0-6813199134517018827-46776496469490256-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-46776496469490256-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-46776496469490256-gambas=googlecode.com@...2524...> Updates: Status: WontFix Labels: -Version Version-Any Comment #1 on issue 18 by benoit.m... at ...626...: MouseClick, MouseDown events raised even if object is disabled http://code.google.com/p/gambas/issues/detail?id=18 This is by design. All "native" events, i.e. events associated with the Control base class, are raised even if the Enabled property is TRUE. From gambas at ...2524... Fri Jan 28 19:34:07 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 28 Jan 2011 18:34:07 +0000 Subject: [Gambas-user] Issue 19 in gambas: Popup Menu does not pop up with GTK+ In-Reply-To: <0-6813199134517018827-18424581060624364053-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-18424581060624364053-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-18424581060624364053-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 19 by benoit.m... at ...626...: Popup Menu does not pop up with GTK+ http://code.google.com/p/gambas/issues/detail?id=19 (No comment was entered for this change.) From gambas at ...2524... Fri Jan 28 19:38:15 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 28 Jan 2011 18:38:15 +0000 Subject: [Gambas-user] Issue 19 in gambas: Popup Menu does not pop up with GTK+ In-Reply-To: <1-6813199134517018827-18424581060624364053-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-18424581060624364053-gambas=googlecode.com@...2524...> <0-6813199134517018827-18424581060624364053-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-18424581060624364053-gambas=googlecode.com@...2524...> Updates: Labels: -GUI-Any GUI-GTK Comment #2 on issue 19 by benoit.m... at ...626...: Popup Menu does not pop up with GTK+ http://code.google.com/p/gambas/issues/detail?id=19 (No comment was entered for this change.) From Gambas at ...1950... Fri Jan 28 19:40:32 2011 From: Gambas at ...1950... (Caveat) Date: Fri, 28 Jan 2011 19:40:32 +0100 Subject: [Gambas-user] Issue 2 in gambas: No native gambas for Windows platforms [OT] In-Reply-To: <2-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> <0-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> <2-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> Message-ID: <1296240032.8419.12.camel@...2479...> The port has already been done, it's called VisualBasic :-P On Fri, 2011-01-28 at 18:21 +0000, gambas at ...2524... wrote: > Updates: > Labels: -Priority-Medium Priority-Low > > Comment #2 on issue 2 by benoit.m... at ...626...: No native gambas for > Windows platforms > http://code.google.com/p/gambas/issues/detail?id=2 > > (No comment was entered for this change.) > > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From support at ...2529... Fri Jan 28 20:45:09 2011 From: support at ...2529... (John Spikowski) Date: Fri, 28 Jan 2011 11:45:09 -0800 Subject: [Gambas-user] list attachments In-Reply-To: <1296230116.8419.10.camel@...2479...> References: <1296205813.1931.4.camel@...2530...> <1296230116.8419.10.camel@...2479...> Message-ID: <1296243909.1869.1.camel@...2530...> On Fri, 2011-01-28 at 16:55 +0100, Caveat wrote: > I dunno why the file isn't getting attached to the email, but I suspect > it's to do with the fact it's coming through as a notification. (??) > > If someone posts direct to the mailing list, like I am now, I think > attachments will come through OK. You'll soon find out, as popup.tar.gz > *should* be attached to this mail. > I got it this time. First non-image attachment. John From support at ...2529... Fri Jan 28 20:50:13 2011 From: support at ...2529... (John Spikowski) Date: Fri, 28 Jan 2011 11:50:13 -0800 Subject: [Gambas-user] Issue 2 in gambas: No native gambas for Windows platforms [OT] In-Reply-To: <1296240032.8419.12.camel@...2479...> References: <1-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> <0-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> <2-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> <1296240032.8419.12.camel@...2479...> Message-ID: <1296244213.1869.4.camel@...2530...> On Fri, 2011-01-28 at 19:40 +0100, Caveat wrote: > The port has already been done, it's called VisualBasic :-P > > I had the same concern when using VBonX as my forum handle and registering the www.vbonx.com domain for a VB to Gambas conversion service portal. If anyone is interested in partnering with me on that effort and has both a VB and Gambas background, send me an e-mail. John From gambas at ...2524... Fri Jan 28 21:31:57 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 28 Jan 2011 20:31:57 +0000 Subject: [Gambas-user] Issue 20 in gambas: Network socket read string[] fails - seg11 crash Message-ID: <0-6813199134517018827-16995953517062707402-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 20 by imperiou... at ...2360...: Network socket read string[] fails - seg11 crash http://code.google.com/p/gambas/issues/detail?id=20 When attempting to read an incoming stream via read into a string[] a seg11 crash is created. Read into a standard string works fine... just not to string[] 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: Gambas 3 rev 3504 Operating system: Linux / FreeBSD Distribution: Fedora 14 Architecture: x86_64 GUI component: QT4 Desktop used: KDE 3) Code provided for the main class. Its only a little test program to demonstrate the issue. 4) Replication: try and receive a string[] using a network socket. Attachments: impyclientcode.txt 4.8 KB debug output.txt 4.8 KB From gambas at ...2524... Fri Jan 28 21:53:30 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 28 Jan 2011 20:53:30 +0000 Subject: [Gambas-user] Issue 20 in gambas: Network socket read string[] fails - seg11 crash In-Reply-To: <0-6813199134517018827-16995953517062707402-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-16995953517062707402-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-16995953517062707402-gambas=googlecode.com@...2524...> Comment #1 on issue 20 by imperiou... at ...2360...: Network socket read string[] fails - seg11 crash http://code.google.com/p/gambas/issues/detail?id=20 TRUNK From jussi.lahtinen at ...626... Sat Jan 29 00:06:21 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 29 Jan 2011 01:06:21 +0200 Subject: [Gambas-user] Localization feature Message-ID: Hi! Is it possible to make IDE show strings accordingly to used language? Meaning if I have wrote code in Finnish (variable names, comments, strings, etc), and I'm planning to release my code as open source. It would help to make code more international if I could use ready made string translations. Maybe it would generally help developers to adapt new code made by non English speaker. Is it possible already? Or to wish list? Jussi From gambas at ...1... Sat Jan 29 00:11:56 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 29 Jan 2011 00:11:56 +0100 Subject: [Gambas-user] Localization feature In-Reply-To: References: Message-ID: <201101290011.56870.gambas@...1...> > Hi! > Is it possible to make IDE show strings accordingly to used language? > Meaning if I have wrote code in Finnish (variable names, comments, strings, > etc), > and I'm planning to release my code as open source. > It would help to make code more international if I could use ready made > string translations. > > Maybe it would generally help developers to adapt new code made by non > English speaker. > > Is it possible already? Or to wish list? > > Jussi Can you be more precise? -- Beno?t Minisini From jussi.lahtinen at ...626... Sat Jan 29 00:20:51 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 29 Jan 2011 01:20:51 +0200 Subject: [Gambas-user] Localization feature In-Reply-To: <201101290011.56870.gambas@...1...> References: <201101290011.56870.gambas@...1...> Message-ID: Example, if this code would been opened with Finnish language it would look like this: If a = b Then sSomeString = ("T?m? on Suomeksi.") And if it would been opened with English language then it would look like this: If a = b Then sSomeString = ("This is in Finnish.") So, ready made translation would be used in IDE. Jussi 2011/1/29 Beno?t Minisini > > Hi! > > Is it possible to make IDE show strings accordingly to used language? > > Meaning if I have wrote code in Finnish (variable names, comments, > strings, > > etc), > > and I'm planning to release my code as open source. > > It would help to make code more international if I could use ready made > > string translations. > > > > Maybe it would generally help developers to adapt new code made by non > > English speaker. > > > > Is it possible already? Or to wish list? > > > > Jussi > > Can you be more precise? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better > price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sat Jan 29 00:43:27 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 29 Jan 2011 00:43:27 +0100 Subject: [Gambas-user] Localization feature In-Reply-To: References: <201101290011.56870.gambas@...1...> Message-ID: ... how do you plan to translate strings... ? I every case you need to do a translation by yourself. So the code source need to be in english. 2011/1/29 Jussi Lahtinen : > Example, if this code would been opened with Finnish language it would look > like this: > If a = b Then sSomeString = ("T?m? on Suomeksi.") > > And if it would been opened with English language then it would look like > this: > If a = b Then sSomeString = ("This is in Finnish.") > > > So, ready made translation would be used in IDE. > > > Jussi > > > > > 2011/1/29 Beno?t Minisini > >> > Hi! >> > Is it possible to make IDE show strings accordingly to used language? >> > Meaning if I have wrote code in Finnish (variable names, comments, >> strings, >> > etc), >> > and I'm planning to release my code as open source. >> > It would help to make code more international if I could use ready made >> > string translations. >> > >> > Maybe it would generally help developers to adapt new code made by non >> > English speaker. >> > >> > Is it possible already? Or to wish list? >> > >> > Jussi >> >> Can you be more precise? >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! >> Finally, a world-class log management solution at an even better >> price-free! >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires >> February 28th, so secure your free ArcSight Logger TODAY! >> http://p.sf.net/sfu/arcsight-sfd2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From jussi.lahtinen at ...626... Sat Jan 29 00:56:04 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 29 Jan 2011 01:56:04 +0200 Subject: [Gambas-user] Localization feature In-Reply-To: References: <201101290011.56870.gambas@...1...> Message-ID: People who do translating can be other than future developers. Right now if there would be such feature you could see Gambas IDE strings in French, etc. Of course rest of source would be in what ever language (in case of Gambas, in English), but no additional translating needed. Also if you want to use IDE to search for where are some error messages coming, you must first know how it has been written originally. Though I would be perfectly happy if every body would agree to write everything in English! Jussi On Sat, Jan 29, 2011 at 01:43, Fabien Bodard wrote: > ... how do you plan to translate strings... ? I every case you need > to do a translation by yourself. So the code source need to be in > english. > > 2011/1/29 Jussi Lahtinen : > > Example, if this code would been opened with Finnish language it would > look > > like this: > > If a = b Then sSomeString = ("T?m? on Suomeksi.") > > > > And if it would been opened with English language then it would look like > > this: > > If a = b Then sSomeString = ("This is in Finnish.") > > > > > > So, ready made translation would be used in IDE. > > > > > > Jussi > > > > > > > > > > 2011/1/29 Beno?t Minisini > > > >> > Hi! > >> > Is it possible to make IDE show strings accordingly to used language? > >> > Meaning if I have wrote code in Finnish (variable names, comments, > >> strings, > >> > etc), > >> > and I'm planning to release my code as open source. > >> > It would help to make code more international if I could use ready > made > >> > string translations. > >> > > >> > Maybe it would generally help developers to adapt new code made by non > >> > English speaker. > >> > > >> > Is it possible already? Or to wish list? > >> > > >> > Jussi > >> > >> Can you be more precise? > >> > >> -- > >> Beno?t Minisini > >> > >> > >> > ------------------------------------------------------------------------------ > >> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > >> Finally, a world-class log management solution at an even better > >> price-free! > >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires > >> February 28th, so secure your free ArcSight Logger TODAY! > >> http://p.sf.net/sfu/arcsight-sfd2d > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > > Finally, a world-class log management solution at an even better > price-free! > > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > > February 28th, so secure your free ArcSight Logger TODAY! > > http://p.sf.net/sfu/arcsight-sfd2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better > price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sat Jan 29 01:02:34 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 29 Jan 2011 02:02:34 +0200 Subject: [Gambas-user] Localization feature In-Reply-To: References: <201101290011.56870.gambas@...1...> Message-ID: I guess that this feature would be at it's best when you are fixing code that is not made in English. Many times it is possible and this would help little bit. But if this is not easily done, then I don't think it is worthwhile. Jussi On Sat, Jan 29, 2011 at 01:56, Jussi Lahtinen wrote: > People who do translating can be other than future developers. > > Right now if there would be such feature you could see Gambas IDE strings > in French, etc. > Of course rest of source would be in what ever language (in case of Gambas, > in English), but no additional translating needed. > Also if you want to use IDE to search for where are some error messages > coming, you must first know how it has > been written originally. > > Though I would be perfectly happy if every body would agree to write > everything in English! > > Jussi > > > > On Sat, Jan 29, 2011 at 01:43, Fabien Bodard wrote: > >> ... how do you plan to translate strings... ? I every case you need >> to do a translation by yourself. So the code source need to be in >> english. >> >> 2011/1/29 Jussi Lahtinen : >> > Example, if this code would been opened with Finnish language it would >> look >> > like this: >> > If a = b Then sSomeString = ("T?m? on Suomeksi.") >> > >> > And if it would been opened with English language then it would look >> like >> > this: >> > If a = b Then sSomeString = ("This is in Finnish.") >> > >> > >> > So, ready made translation would be used in IDE. >> > >> > >> > Jussi >> > >> > >> > >> > >> > 2011/1/29 Beno?t Minisini >> > >> >> > Hi! >> >> > Is it possible to make IDE show strings accordingly to used language? >> >> > Meaning if I have wrote code in Finnish (variable names, comments, >> >> strings, >> >> > etc), >> >> > and I'm planning to release my code as open source. >> >> > It would help to make code more international if I could use ready >> made >> >> > string translations. >> >> > >> >> > Maybe it would generally help developers to adapt new code made by >> non >> >> > English speaker. >> >> > >> >> > Is it possible already? Or to wish list? >> >> > >> >> > Jussi >> >> >> >> Can you be more precise? >> >> >> >> -- >> >> Beno?t Minisini >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! >> >> Finally, a world-class log management solution at an even better >> >> price-free! >> >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires >> >> February 28th, so secure your free ArcSight Logger TODAY! >> >> http://p.sf.net/sfu/arcsight-sfd2d >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > >> ------------------------------------------------------------------------------ >> > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! >> > Finally, a world-class log management solution at an even better >> price-free! >> > Download using promo code Free_Logger_4_Dev2Dev. Offer expires >> > February 28th, so secure your free ArcSight Logger TODAY! >> > http://p.sf.net/sfu/arcsight-sfd2d >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> >> >> -- >> Fabien Bodard >> >> >> ------------------------------------------------------------------------------ >> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! >> Finally, a world-class log management solution at an even better >> price-free! >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires >> February 28th, so secure your free ArcSight Logger TODAY! >> http://p.sf.net/sfu/arcsight-sfd2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From gambas.fr at ...626... Sat Jan 29 01:10:28 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 29 Jan 2011 01:10:28 +0100 Subject: [Gambas-user] Localization feature In-Reply-To: References: <201101290011.56870.gambas@...1...> Message-ID: like benoit i'm not really understand what you want... use the trnslatig file to automagiquely translate internal code ? it is not possible as text in code are indexes for the translation file 2011/1/29 Jussi Lahtinen : > I guess that this feature would be at it's best when you are fixing code > that is not made in English. > Many times it is possible and this would help little bit. > > But if this is not easily done, then I don't think it is worthwhile. > > Jussi > > > On Sat, Jan 29, 2011 at 01:56, Jussi Lahtinen wrote: > >> People who do translating can be other than future developers. >> >> Right now if there would be such feature you could see Gambas IDE strings >> in French, etc. >> Of course rest of source would be in what ever language (in case of Gambas, >> in English), but no additional translating needed. >> Also if you want to use IDE to search for where are some error messages >> coming, you must first know how it has >> been written originally. >> >> Though I would be perfectly happy if every body would agree to write >> everything in English! >> >> Jussi >> >> >> >> On Sat, Jan 29, 2011 at 01:43, Fabien Bodard wrote: >> >>> ... how do you plan to translate strings... ? ?I every case you need >>> to do a translation by yourself. So the code source need to be in >>> english. >>> >>> 2011/1/29 Jussi Lahtinen : >>> > Example, if this code would been opened with Finnish language it would >>> look >>> > like this: >>> > If a = b Then sSomeString = ("T?m? on Suomeksi.") >>> > >>> > And if it would been opened with English language then it would look >>> like >>> > this: >>> > If a = b Then sSomeString = ("This is in Finnish.") >>> > >>> > >>> > So, ready made translation would be used in IDE. >>> > >>> > >>> > Jussi >>> > >>> > >>> > >>> > >>> > 2011/1/29 Beno?t Minisini >>> > >>> >> > Hi! >>> >> > Is it possible to make IDE show strings accordingly to used language? >>> >> > Meaning if I have wrote code in Finnish (variable names, comments, >>> >> strings, >>> >> > etc), >>> >> > and I'm planning to release my code as open source. >>> >> > It would help to make code more international if I could use ready >>> made >>> >> > string translations. >>> >> > >>> >> > Maybe it would generally help developers to adapt new code made by >>> non >>> >> > English speaker. >>> >> > >>> >> > Is it possible already? Or to wish list? >>> >> > >>> >> > Jussi >>> >> >>> >> Can you be more precise? >>> >> >>> >> -- >>> >> Beno?t Minisini >>> >> >>> >> >>> >> >>> ------------------------------------------------------------------------------ >>> >> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! >>> >> Finally, a world-class log management solution at an even better >>> >> price-free! >>> >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires >>> >> February 28th, so secure your free ArcSight Logger TODAY! >>> >> http://p.sf.net/sfu/arcsight-sfd2d >>> >> _______________________________________________ >>> >> Gambas-user mailing list >>> >> Gambas-user at lists.sourceforge.net >>> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >>> > >>> ------------------------------------------------------------------------------ >>> > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! >>> > Finally, a world-class log management solution at an even better >>> price-free! >>> > Download using promo code Free_Logger_4_Dev2Dev. Offer expires >>> > February 28th, so secure your free ArcSight Logger TODAY! >>> > http://p.sf.net/sfu/arcsight-sfd2d >>> > _______________________________________________ >>> > Gambas-user mailing list >>> > Gambas-user at lists.sourceforge.net >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > >>> >>> >>> >>> -- >>> Fabien Bodard >>> >>> >>> ------------------------------------------------------------------------------ >>> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! >>> Finally, a world-class log management solution at an even better >>> price-free! >>> Download using promo code Free_Logger_4_Dev2Dev. Offer expires >>> February 28th, so secure your free ArcSight Logger TODAY! >>> http://p.sf.net/sfu/arcsight-sfd2d >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From support at ...2529... Sat Jan 29 01:15:42 2011 From: support at ...2529... (John Spikowski) Date: Fri, 28 Jan 2011 16:15:42 -0800 Subject: [Gambas-user] Localization feature In-Reply-To: References: <201101290011.56870.gambas@...1...> Message-ID: <1296260142.1838.10.camel@...2530...> On Sat, 2011-01-29 at 01:56 +0200, Jussi Lahtinen wrote: > Though I would be perfectly happy if every body would agree to write > everything in English! Even though Gambas has European origins and developed by author(s) that English isn't their/his primary language, the computer revolution has made English the common spoken language around the world. (thanks to Microsoft dragging their feet with internalization of their products) I don't see that trend reversing anytime soon. I view the Basic language in much the same way. From jussi.lahtinen at ...626... Sat Jan 29 01:17:07 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 29 Jan 2011 02:17:07 +0200 Subject: [Gambas-user] Localization feature In-Reply-To: References: <201101290011.56870.gambas@...1...> Message-ID: Hmmm... so IDE should internally change every string to some tags like {{string-numer-123}}, and then use that tag for index. Jussi On Sat, Jan 29, 2011 at 02:10, Fabien Bodard wrote: > like benoit i'm not really understand what you want... use the > trnslatig file to automagiquely translate internal code ? > > it is not possible as text in code are indexes for the translation file > > > 2011/1/29 Jussi Lahtinen : > > I guess that this feature would be at it's best when you are fixing code > > that is not made in English. > > Many times it is possible and this would help little bit. > > > > But if this is not easily done, then I don't think it is worthwhile. > > > > Jussi > > > > > > On Sat, Jan 29, 2011 at 01:56, Jussi Lahtinen >wrote: > > > >> People who do translating can be other than future developers. > >> > >> Right now if there would be such feature you could see Gambas IDE > strings > >> in French, etc. > >> Of course rest of source would be in what ever language (in case of > Gambas, > >> in English), but no additional translating needed. > >> Also if you want to use IDE to search for where are some error messages > >> coming, you must first know how it has > >> been written originally. > >> > >> Though I would be perfectly happy if every body would agree to write > >> everything in English! > >> > >> Jussi > >> > >> > >> > >> On Sat, Jan 29, 2011 at 01:43, Fabien Bodard > wrote: > >> > >>> ... how do you plan to translate strings... ? I every case you need > >>> to do a translation by yourself. So the code source need to be in > >>> english. > >>> > >>> 2011/1/29 Jussi Lahtinen : > >>> > Example, if this code would been opened with Finnish language it > would > >>> look > >>> > like this: > >>> > If a = b Then sSomeString = ("T?m? on Suomeksi.") > >>> > > >>> > And if it would been opened with English language then it would look > >>> like > >>> > this: > >>> > If a = b Then sSomeString = ("This is in Finnish.") > >>> > > >>> > > >>> > So, ready made translation would be used in IDE. > >>> > > >>> > > >>> > Jussi > >>> > > >>> > > >>> > > >>> > > >>> > 2011/1/29 Beno?t Minisini > >>> > > >>> >> > Hi! > >>> >> > Is it possible to make IDE show strings accordingly to used > language? > >>> >> > Meaning if I have wrote code in Finnish (variable names, comments, > >>> >> strings, > >>> >> > etc), > >>> >> > and I'm planning to release my code as open source. > >>> >> > It would help to make code more international if I could use ready > >>> made > >>> >> > string translations. > >>> >> > > >>> >> > Maybe it would generally help developers to adapt new code made by > >>> non > >>> >> > English speaker. > >>> >> > > >>> >> > Is it possible already? Or to wish list? > >>> >> > > >>> >> > Jussi > >>> >> > >>> >> Can you be more precise? > >>> >> > >>> >> -- > >>> >> Beno?t Minisini > >>> >> > >>> >> > >>> >> > >>> > ------------------------------------------------------------------------------ > >>> >> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > >>> >> Finally, a world-class log management solution at an even better > >>> >> price-free! > >>> >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires > >>> >> February 28th, so secure your free ArcSight Logger TODAY! > >>> >> http://p.sf.net/sfu/arcsight-sfd2d > >>> >> _______________________________________________ > >>> >> Gambas-user mailing list > >>> >> Gambas-user at lists.sourceforge.net > >>> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> >> > >>> > > >>> > ------------------------------------------------------------------------------ > >>> > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > >>> > Finally, a world-class log management solution at an even better > >>> price-free! > >>> > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > >>> > February 28th, so secure your free ArcSight Logger TODAY! > >>> > http://p.sf.net/sfu/arcsight-sfd2d > >>> > _______________________________________________ > >>> > Gambas-user mailing list > >>> > Gambas-user at lists.sourceforge.net > >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > > >>> > >>> > >>> > >>> -- > >>> Fabien Bodard > >>> > >>> > >>> > ------------------------------------------------------------------------------ > >>> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > >>> Finally, a world-class log management solution at an even better > >>> price-free! > >>> Download using promo code Free_Logger_4_Dev2Dev. Offer expires > >>> February 28th, so secure your free ArcSight Logger TODAY! > >>> http://p.sf.net/sfu/arcsight-sfd2d > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > >> > >> > > > ------------------------------------------------------------------------------ > > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > > Finally, a world-class log management solution at an even better > price-free! > > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > > February 28th, so secure your free ArcSight Logger TODAY! > > http://p.sf.net/sfu/arcsight-sfd2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better > price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Jan 29 01:25:11 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 29 Jan 2011 01:25:11 +0100 Subject: [Gambas-user] Localization feature In-Reply-To: References: Message-ID: <201101290125.11834.gambas@...1...> > People who do translating can be other than future developers. > > Right now if there would be such feature you could see Gambas IDE strings > in French, etc. > Of course rest of source would be in what ever language (in case of Gambas, > in English), but no additional translating needed. > Also if you want to use IDE to search for where are some error messages > coming, you must first know how it has > been written originally. > > Though I would be perfectly happy if every body would agree to write > everything in English! > > Jussi > Technically, the IDE could replace all translated strings in the source code by strings coming from a translation file. But then you would have modified the original source code. I admit it may be useful on some projects. But don't expect that projects not designed and written for internationalization will be made fully understable if the translated strings are replaced by strings of your native language. Variables, symbol names, and comments are more important! -- Beno?t Minisini From jussi.lahtinen at ...626... Sat Jan 29 01:29:32 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 29 Jan 2011 02:29:32 +0200 Subject: [Gambas-user] Localization feature In-Reply-To: <201101290125.11834.gambas@...1...> References: <201101290125.11834.gambas@...1...> Message-ID: Very true, and that's why not on top of the list... if at all. Jussi 2011/1/29 Beno?t Minisini > > People who do translating can be other than future developers. > > > > Right now if there would be such feature you could see Gambas IDE strings > > in French, etc. > > Of course rest of source would be in what ever language (in case of > Gambas, > > in English), but no additional translating needed. > > Also if you want to use IDE to search for where are some error messages > > coming, you must first know how it has > > been written originally. > > > > Though I would be perfectly happy if every body would agree to write > > everything in English! > > > > Jussi > > > > Technically, the IDE could replace all translated strings in the source > code > by strings coming from a translation file. But then you would have modified > the original source code. > > I admit it may be useful on some projects. But don't expect that projects > not > designed and written for internationalization will be made fully > understable > if the translated strings are replaced by strings of your native language. > Variables, symbol names, and comments are more important! > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better > price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Jan 29 01:53:13 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 29 Jan 2011 01:53:13 +0100 Subject: [Gambas-user] Sourceforge servers attacked Message-ID: <201101290153.13075.gambas@...1...> Hi, Sourceforge servers were attacked yesterday. To prevent a possible account password sniffing, all passwords were reset. Gambas Sourceforge users must go there to reinitialize their password: https://sourceforge.net/account/registration/recover.php Shame on the people who did the attack! -- Beno?t Minisini From inigo_zuluaga at ...397... Sat Jan 29 10:31:50 2011 From: inigo_zuluaga at ...397... (=?ISO-8859-1?Q?I=F1igo?= Zuluaga) Date: Sat, 29 Jan 2011 10:31:50 +0100 Subject: [Gambas-user] Is posible to Draw an Arc (instead of pies) with Draw.circle ? In-Reply-To: <201101281402.50551.gambas@...1...> References: <1295985910.2727.18.camel@...2539...> <201101280212.45059.gambas@...1...> <201101281402.50551.gambas@...1...> Message-ID: <1296293510.2606.5.camel@...2539...> Thanks El vie, 28-01-2011 a las 14:02 +0100, Beno?t Minisini escribi?: > > > I'm making a program that needs to draw arcs. > > > (An editor and Viewer of Gcode routes). > > > I'm trying with: > > > Draw.Circle (X, Y, R, AngStart, AngEnd) > > > but I can not draw only the arc (not radius). > > > Is that not possible with Gambas 2? > > > > > > http://picasaweb.google.com/lh/photo/Vy7N707LwBtn6TiOS5RBRwVrkBiCHQPOraRw > > > -4 L07rw?feat=directlink > > > > > > In 2009 there is a similar question, but now... > > > > > > any ideas? > > > > > > Thanks > > > > I forgot that bug. I will implement it in Gambas 3, but I'm afraid I cannot > > do that in Gambas 2. > > > > I will think and say you then... > > > > Regards, > > I have implemented Draw.Arc() in Gambas 3, revision #3500. > > Regards, > From gambas at ...2524... Sat Jan 29 14:33:25 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 29 Jan 2011 13:33:25 +0000 Subject: [Gambas-user] Issue 21 in gambas: Button.Default and Button.Cancel does not work with GTK+ Message-ID: <0-6813199134517018827-10787024457388339461-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 21 by sot... at ...626...: Button.Default and Button.Cancel does not work with GTK+ http://code.google.com/p/gambas/issues/detail?id=21 1) Describe the problem. When you hit the Return or ESC key the button having the Default/Cancel property TRUE flashes but the associated action is not executed. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Operating system: Linux Distribution: Ubuntu Architecture: x86_64 GUI component: GTK+ Desktop used: Gnome 3) Provide a little project that reproduces the bug or the crash. default.tar.gz attached Attachments: Default.tar.gz 6.1 KB From nkoch22 at ...626... Sat Jan 29 20:17:13 2011 From: nkoch22 at ...626... (Nicolas Koch) Date: Sat, 29 Jan 2011 14:17:13 -0500 Subject: [Gambas-user] ListView with spaces help Message-ID: I have a populated ListView and I want to run commands from the list, but the list items with spaces won't work in SHELL or EXEC. Message.Info(ListView.Current.Text) will return the list item with spaces as it should ie. "this is test" however when I go to EXEC [ListView.Current.Text] or SHELL ListView.Current.Text only "this" will show up in SHELL or EXEC and not "this is test" How do I get ListView.Current.Text to keep the spaces when I EXEC or SHELL? code: PUBLIC SUB Run_Click() Message.Info(ListView.Current.Text) *' EXEC [ListView.Current.Text]* SHELL (ListView.Current.Text) END -- -Nick From jussi.lahtinen at ...626... Sat Jan 29 20:31:44 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 29 Jan 2011 21:31:44 +0200 Subject: [Gambas-user] ListView with spaces help In-Reply-To: References: Message-ID: I'm not sure what you are trying to do. If you send text "this is test", then "this" is considered as command and rest as parameters. Also you cannot give command for Exec with spaces. http://gambasdoc.org/help/lang/exec Can you send your project to illustrate your problem? Jussi On Sat, Jan 29, 2011 at 21:17, Nicolas Koch wrote: > I have a populated ListView and I want to run commands from the list, but > the list items with spaces won't work in SHELL or EXEC. > > Message.Info(ListView.Current.Text) will return the list item with spaces > as > it should ie. "this is test" > > however when I go to > > EXEC [ListView.Current.Text] > or > SHELL ListView.Current.Text > > only "this" will show up in SHELL or EXEC and not "this is test" > > > How do I get ListView.Current.Text to keep the spaces when I EXEC or SHELL? > > > > code: > > PUBLIC SUB Run_Click() > > Message.Info(ListView.Current.Text) > > *' EXEC [ListView.Current.Text]* > > SHELL (ListView.Current.Text) > > END > > -- > > -Nick > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better > price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From contact at ...2541... Sat Jan 29 22:53:59 2011 From: contact at ...2541... (DLM) Date: Sat, 29 Jan 2011 22:53:59 +0100 Subject: [Gambas-user] Gambas3 Message-ID: <4D448C77.8000204@...2541...> Hello! But when you release Gambas 3 final? We're stamping! From bbruen at ...2308... Sun Jan 30 00:19:05 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Sun, 30 Jan 2011 09:49:05 +1030 Subject: [Gambas-user] Problems with new feature of gambas IDE In-Reply-To: <201101261613.35307.gambas@...1...> References: <201101261613.35307.gambas@...1...> Message-ID: <201101300949.06524.bbruen@...2308...> On Thursday, January 27, 2011 01:43:35 am Beno?t Minisini wrote: > > Hi! > > Gambas IDE seems to automatically expand sentences like this "If a=b > > then" to "If a = b then", even when you are in middle of writing this > > sentence. This makes writing hard because expanding doesn't move cursor > > accordingly, example if you try to write: > > "If a=true then" you got: > > "If a True Then =" > > > > This seems to happen only when you have used search feature, and you have > > search list tab visible. > > > > Jussi > > Exactly. I am aware of the problem and must find a fix... I don't know if this will help find the bug, but the same (or at least a similar) thing happens in Gambas 2 if you have the IDE editor screen split vertically. -- best regards Bruce Bruen From gambas at ...1... Sun Jan 30 01:54:23 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 30 Jan 2011 01:54:23 +0100 Subject: [Gambas-user] New IconView Message-ID: <201101300154.23216.gambas@...1...> Hi, The old native IconView has been finally replaced by a new one entirely written in Gambas. The only missing feature at the moment is icon renaming. It will be implemented soon. Moreover, that new IconView seems to indirectly make the interpreter crash at program exit. A new bug to track and fix... But now: - gb.gtk has a working IconView. - You have an example of how to write a complex control entirely in Gambas. - We are closer to the release candidate. Enjoy it! -- Beno?t Minisini From gambas at ...1... Sun Jan 30 01:57:56 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 30 Jan 2011 01:57:56 +0100 Subject: [Gambas-user] Problems with new feature of gambas IDE In-Reply-To: References: Message-ID: <201101300157.56052.gambas@...1...> > Hi! > Gambas IDE seems to automatically expand sentences like this "If a=b then" > to "If a = b then", even when you are in middle of writing this sentence. > This makes writing hard because expanding doesn't move cursor accordingly, > example if you try to write: > "If a=true then" you got: > "If a True Then =" > > This seems to happen only when you have used search feature, and you have > search list tab visible. > > Jussi That bug has been fixed in revison #3513. Regards, -- Beno?t Minisini From mdavies5 at ...169... Sun Jan 30 02:19:32 2011 From: mdavies5 at ...169... (Michael) Date: Sun, 30 Jan 2011 12:19:32 +1100 Subject: [Gambas-user] ListView with spaces help In-Reply-To: References: Message-ID: <4D44BCA4.4050301@...169...> SInce a SHELL command must exclude spaces then put it into your listview without spaces. If you want to include spaces for readability then remove them when you pass to SHELL: ListView.Current.text.Replace(" ", "") Regards Michael On 30/01/11 06:17, Nicolas Koch wrote: > I have a populated ListView and I want to run commands from the list, but > the list items with spaces won't work in SHELL or EXEC. > > Message.Info(ListView.Current.Text) will return the list item with spaces as > it should ie. "this is test" > > however when I go to > > EXEC [ListView.Current.Text] > or > SHELL ListView.Current.Text > > only "this" will show up in SHELL or EXEC and not "this is test" > > > How do I get ListView.Current.Text to keep the spaces when I EXEC or SHELL? > > > > code: > > PUBLIC SUB Run_Click() > > Message.Info(ListView.Current.Text) > > *' EXEC [ListView.Current.Text]* > > SHELL (ListView.Current.Text) > > END > From wdahn at ...1000... Sun Jan 30 09:12:03 2011 From: wdahn at ...1000... (Werner) Date: Sun, 30 Jan 2011 16:12:03 +0800 Subject: [Gambas-user] ListView with spaces help In-Reply-To: References: Message-ID: <4D451D53.3060406@...1000...> On 30/01/11 03:17, Nicolas Koch wrote: > I have a populated ListView and I want to run commands from the list, but > the list items with spaces won't work in SHELL or EXEC. > > Message.Info(ListView.Current.Text) will return the list item with spaces as > it should ie. "this is test" > > however when I go to > > EXEC [ListView.Current.Text] > or > SHELL ListView.Current.Text > > only "this" will show up in SHELL or EXEC and not "this is test" > > > How do I get ListView.Current.Text to keep the spaces when I EXEC or SHELL? > > > > code: > > PUBLIC SUB Run_Click() > > Message.Info(ListView.Current.Text) > > *' EXEC [ListView.Current.Text]* > > SHELL (ListView.Current.Text) > > END > > If you want to use shell there is Shell$ that does the conversion: http://gambasdoc.org/help/lang/shell2?v3 If you want to use EXEC you can split a command into its atoms with Split: http://gambasdoc.org/help/lang/split?v3 using space as separator. It can then be reassembled with brackets and commas before being used. Regards, Werner From gambas at ...2524... Sun Jan 30 19:04:32 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 30 Jan 2011 18:04:32 +0000 Subject: [Gambas-user] Issue 7 in gambas: font size of tabstrip control inherited by child controls In-Reply-To: <2-6813199134517018827-8359884942079903320-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-8359884942079903320-gambas=googlecode.com@...2524...> <0-6813199134517018827-8359884942079903320-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-8359884942079903320-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #3 on issue 7 by benoit.m... at ...626...: font size of tabstrip control inherited by child controls http://code.google.com/p/gambas/issues/detail?id=7 The behaviour of gb.qt4 is the good one. The bug has been fixed in revision #3517. From kevinfishburne at ...1887... Sun Jan 30 19:07:49 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 30 Jan 2011 13:07:49 -0500 Subject: [Gambas-user] gb3: incorrect result from equation using singles In-Reply-To: <201101280207.05622.gambas@...1...> References: <4D3F6BC2.50205@...1887...> <201101280207.05622.gambas@...1...> Message-ID: <4D45A8F5.2070306@...1887...> On 01/27/2011 08:07 PM, Beno?t Minisini wrote: >> The variables cx and Client.relx are of datatype single. The initial >> value of cx is 0 and Client.relx is 51. The code >> >> cx = (cx + Client.relx) / 2 >> >> assigns the value 0 to cx. It should be 25.5. >> >> When I enter >> >> ?(cx + Client.relx) / 2 >> >> in the debug/immediate window I get 2.7476892520342E-315. Have I lost my >> mind, or is something seriously wrong here? > I cannot reproduce that. As usual, please provide a project that shows the > bug. And check that you use the latest revision. The latest revision fixed that, sorry for the false alarm. >> Also, Beno?t, have the MkXXX$() functions been taken out of gb3 yet? I >> want to compile the latest revision but haven't converted my networking >> code to use structures yet. > They will be removed sooner or later. You don't have to compile the latest > revision. You can compile any revision you want by passing the "-r XXXX" to > the subversion command, where "XXXX" is the revision number. Cool, thanks for the tip. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From support at ...2529... Sun Jan 30 20:00:53 2011 From: support at ...2529... (John Spikowski) Date: Sun, 30 Jan 2011 11:00:53 -0800 Subject: [Gambas-user] Unable to make lastest build Message-ID: <1296414053.1819.3.camel@...2530...> I received the following error when doing a make (after a configure -C) This is the first time I have been unable to compile 3. (done 1/2 dozen time in the past) /usr/bin/moc-qt4 -o CIconView_moc.cpp CIconView.h moc: CIconView.h: No such file make[5]: *** [CIconView_moc.cpp] Error 1 make[5]: Leaving directory `/home/jrs/gambas-dev/trunk/gb.qt4/src' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/jrs/gambas-dev/trunk/gb.qt4/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/jrs/gambas-dev/trunk/gb.qt4' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/jrs/gambas-dev/trunk/gb.qt4' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/jrs/gambas-dev/trunk' make: *** [all] Error 2 jrs at ...2530...:~/gambas-dev/trunk$ From gambas at ...1... Sun Jan 30 20:03:10 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 30 Jan 2011 20:03:10 +0100 Subject: [Gambas-user] Unable to make lastest build In-Reply-To: <1296414053.1819.3.camel@...2530...> References: <1296414053.1819.3.camel@...2530...> Message-ID: <201101302003.10865.gambas@...1...> > I received the following error when doing a make (after a configure -C) > This is the first time I have been unable to compile 3. (done 1/2 dozen > time in the past) > > /usr/bin/moc-qt4 -o CIconView_moc.cpp CIconView.h > moc: CIconView.h: No such file > make[5]: *** [CIconView_moc.cpp] Error 1 > make[5]: Leaving directory `/home/jrs/gambas-dev/trunk/gb.qt4/src' > make[4]: *** [all-recursive] Error 1 > make[4]: Leaving directory `/home/jrs/gambas-dev/trunk/gb.qt4/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/jrs/gambas-dev/trunk/gb.qt4' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/jrs/gambas-dev/trunk/gb.qt4' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/jrs/gambas-dev/trunk' > make: *** [all] Error 2 > jrs at ...2530...:~/gambas-dev/trunk$ > When source files are removed, you have to do a ./reconf && ./configure -C before recompiling. -- Beno?t Minisini From gambas at ...2524... Sun Jan 30 20:23:18 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 30 Jan 2011 19:23:18 +0000 Subject: [Gambas-user] Issue 20 in gambas: Network socket read string[] fails - seg11 crash In-Reply-To: <1-6813199134517018827-16995953517062707402-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-16995953517062707402-gambas=googlecode.com@...2524...> <0-6813199134517018827-16995953517062707402-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-16995953517062707402-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Comment #2 on issue 20 by benoit.m... at ...626...: Network socket read string[] fails - seg11 crash http://code.google.com/p/gambas/issues/detail?id=20 I cannot reproduce the crash. Please provide two little projects that reproduces the bug (one for the client, and one for the server), not just the source files. Thanks in advance! From gambas at ...2524... Sun Jan 30 20:32:21 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 30 Jan 2011 19:32:21 +0000 Subject: [Gambas-user] Issue 21 in gambas: Button.Default and Button.Cancel does not work with GTK+ In-Reply-To: <0-6813199134517018827-10787024457388339461-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-10787024457388339461-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-10787024457388339461-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -Version -GUI-Any Version-TRUNK GUI-GTK Comment #1 on issue 21 by benoit.m... at ...626...: Button.Default and Button.Cancel does not work with GTK+ http://code.google.com/p/gambas/issues/detail?id=21 Fixed in revision #3519. From gambas at ...2524... Sun Jan 30 20:40:23 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 30 Jan 2011 19:40:23 +0000 Subject: [Gambas-user] Issue 20 in gambas: Network socket read string[] fails - seg11 crash In-Reply-To: <2-6813199134517018827-16995953517062707402-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-16995953517062707402-gambas=googlecode.com@...2524...> <0-6813199134517018827-16995953517062707402-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-16995953517062707402-gambas=googlecode.com@...2524...> Updates: Labels: -Version -Type-Bug Version-TRUNK Type-Crash Comment #3 on issue 20 by benoit.m... at ...626...: Network socket read string[] fails - seg11 crash http://code.google.com/p/gambas/issues/detail?id=20 (No comment was entered for this change.) From gambas at ...2524... Sun Jan 30 20:46:26 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 30 Jan 2011 19:46:26 +0000 Subject: [Gambas-user] Issue 6 in gambas: signal #11 with Gtk+ In-Reply-To: <10-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> References: <10-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> <0-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Message-ID: <11-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Updates: Labels: GUI-GTK Comment #11 on issue 6 by benoit.m... at ...626...: signal #11 with Gtk+ http://code.google.com/p/gambas/issues/detail?id=6 (No comment was entered for this change.) From gambas at ...2524... Sun Jan 30 20:50:28 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 30 Jan 2011 19:50:28 +0000 Subject: [Gambas-user] Issue 2 in gambas: No native gambas for Windows platforms In-Reply-To: <3-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> <0-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> Updates: Labels: -Version-Any -OpSys-Any -Dist-Any Version-TRUNK OpSys-Windows Dist-Other Comment #4 on issue 2 by benoit.m... at ...626...: No native gambas for Windows platforms http://code.google.com/p/gambas/issues/detail?id=2 (No comment was entered for this change.) From gambas at ...2524... Sun Jan 30 20:54:33 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 30 Jan 2011 19:54:33 +0000 Subject: [Gambas-user] Issue 1 in gambas: Gambas 3 has not been release yet In-Reply-To: <2-6813199134517018827-10510653250435311728-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-10510653250435311728-gambas=googlecode.com@...2524...> <0-6813199134517018827-10510653250435311728-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-10510653250435311728-gambas=googlecode.com@...2524...> Updates: Labels: GUI-Any Desktop-Any Comment #3 on issue 1 by benoit.m... at ...626...: Gambas 3 has not been release yet http://code.google.com/p/gambas/issues/detail?id=1 (No comment was entered for this change.) From gambas at ...2524... Sun Jan 30 20:58:36 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 30 Jan 2011 19:58:36 +0000 Subject: [Gambas-user] Issue 2 in gambas: No native gambas for Windows platforms In-Reply-To: <4-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> <0-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> Updates: Labels: GUI-Any Desktop-Other Comment #5 on issue 2 by benoit.m... at ...626...: No native gambas for Windows platforms http://code.google.com/p/gambas/issues/detail?id=2 (No comment was entered for this change.) From support at ...2529... Sun Jan 30 21:00:52 2011 From: support at ...2529... (John Spikowski) Date: Sun, 30 Jan 2011 12:00:52 -0800 Subject: [Gambas-user] Unable to make lastest build In-Reply-To: <201101302003.10865.gambas@...1...> References: <1296414053.1819.3.camel@...2530...> <201101302003.10865.gambas@...1...> Message-ID: <1296417652.1819.15.camel@...2530...> On Sun, 2011-01-30 at 20:03 +0100, Beno?t Minisini wrote: > > I received the following error when doing a make (after a configure -C) > > This is the first time I have been unable to compile 3. (done 1/2 dozen > > time in the past) > > > When source files are removed, you have to do a ./reconf && ./configure -C > before recompiling. All is well and 3 built fine. BTW: Doing a "./reconf && ./configure -C" bombed on the configure as sudo permission wasn't transfered to configure after recong was done. Thanks Beno?t for the help! From gambas at ...2524... Sun Jan 30 21:02:39 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 30 Jan 2011 20:02:39 +0000 Subject: [Gambas-user] Issue 19 in gambas: Popup Menu does not pop up with GTK+ In-Reply-To: <2-6813199134517018827-18424581060624364053-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-18424581060624364053-gambas=googlecode.com@...2524...> <0-6813199134517018827-18424581060624364053-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-18424581060624364053-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #3 on issue 19 by benoit.m... at ...626...: Popup Menu does not pop up with GTK+ http://code.google.com/p/gambas/issues/detail?id=19 Fixed in revision #3520. From gambas at ...1... Sun Jan 30 21:03:31 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 30 Jan 2011 21:03:31 +0100 Subject: [Gambas-user] Unable to make lastest build In-Reply-To: <1296417652.1819.15.camel@...2530...> References: <1296414053.1819.3.camel@...2530...> <201101302003.10865.gambas@...1...> <1296417652.1819.15.camel@...2530...> Message-ID: <201101302103.31637.gambas@...1...> > On Sun, 2011-01-30 at 20:03 +0100, Beno?t Minisini wrote: > > > I received the following error when doing a make (after a configure -C) > > > This is the first time I have been unable to compile 3. (done 1/2 dozen > > > time in the past) > > > > When source files are removed, you have to do a ./reconf && ./configure > > -C before recompiling. > > All is well and 3 built fine. > > BTW: Doing a "./reconf && ./configure -C" bombed on the configure as > sudo permission wasn't transfered to configure after recong was done. > > Thanks Beno?t for the help! > You must do ./reconf && ./configure -C as a normal user. Only "make install" must be done as root. Regards, -- Beno?t Minisini From gambas at ...2524... Sun Jan 30 21:06:43 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 30 Jan 2011 20:06:43 +0000 Subject: [Gambas-user] Issue 6 in gambas: signal #11 with Gtk+ In-Reply-To: <11-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> References: <11-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> <0-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Message-ID: <12-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Comment #12 on issue 6 by benoit.m... at ...626...: signal #11 with Gtk+ http://code.google.com/p/gambas/issues/detail?id=6 (No comment was entered for this change.) From support at ...2529... Sun Jan 30 21:22:37 2011 From: support at ...2529... (John Spikowski) Date: Sun, 30 Jan 2011 12:22:37 -0800 Subject: [Gambas-user] Unable to make lastest build In-Reply-To: <201101302103.31637.gambas@...1...> References: <1296414053.1819.3.camel@...2530...> <201101302003.10865.gambas@...1...> <1296417652.1819.15.camel@...2530...> <201101302103.31637.gambas@...1...> Message-ID: <1296418957.1819.19.camel@...2530...> On Sun, 2011-01-30 at 21:03 +0100, Beno?t Minisini wrote: > You must do ./reconf && ./configure -C as a normal user. Only "make install" > must be done as root. I think I painted myself into a corner. I'm unable to ./configure -C as 'jrs'. (permission error) Is there a quick way to reset my permissions so I can get back on track? From gambas at ...1... Sun Jan 30 21:38:17 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 30 Jan 2011 21:38:17 +0100 Subject: [Gambas-user] Unable to make lastest build In-Reply-To: <1296418957.1819.19.camel@...2530...> References: <1296414053.1819.3.camel@...2530...> <201101302103.31637.gambas@...1...> <1296418957.1819.19.camel@...2530...> Message-ID: <201101302138.17494.gambas@...1...> > On Sun, 2011-01-30 at 21:03 +0100, Beno?t Minisini wrote: > > You must do ./reconf && ./configure -C as a normal user. Only "make > > install" must be done as root. > > I think I painted myself into a corner. I'm unable to ./configure -C as > 'jrs'. (permission error) > > Is there a quick way to reset my permissions so I can get back on track? > man chmod / man chown -- Beno?t Minisini From support at ...2529... Sun Jan 30 21:57:25 2011 From: support at ...2529... (John Spikowski) Date: Sun, 30 Jan 2011 12:57:25 -0800 Subject: [Gambas-user] Unable to make lastest build In-Reply-To: <201101302138.17494.gambas@...1...> References: <1296414053.1819.3.camel@...2530...> <201101302103.31637.gambas@...1...> <1296418957.1819.19.camel@...2530...> <201101302138.17494.gambas@...1...> Message-ID: <1296421045.1819.29.camel@...2530...> On Sun, 2011-01-30 at 21:38 +0100, Beno?t Minisini wrote: > man chmod / man chown ;-) I was wondering if only a file or two was affected by my misuse of sudo? I didn't want to have to do a recursive chmod/chgrp if it wasn't needed. Thanks, I'll figure it out. From gambas at ...2524... Sun Jan 30 22:11:28 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 30 Jan 2011 21:11:28 +0000 Subject: [Gambas-user] Issue 22 in gambas: Filling gridview explicitly doesn't work in gtk+ Message-ID: <0-6813199134517018827-3058756357861503514-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 22 by zachsmit... at ...626...: Filling gridview explicitly doesn't work in gtk+ http://code.google.com/p/gambas/issues/detail?id=22 1) Filling gridview explicitly doesn't populate all rows if rows.count <> columns.count 2) Version: TRUNK v3517 Operating system: Linux Distribution: Arch Architecture: x86_64 GUI component: GTK+ Desktop used: Xfce Attachments: gridview_test-0.0.2.tar.gz 5.2 KB From gambas at ...2524... Sun Jan 30 23:23:19 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 30 Jan 2011 22:23:19 +0000 Subject: [Gambas-user] Issue 22 in gambas: Filling gridview explicitly doesn't work in gtk+ In-Reply-To: <0-6813199134517018827-3058756357861503514-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-3058756357861503514-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-3058756357861503514-gambas=googlecode.com@...2524...> Comment #1 on issue 22 by zachsmit... at ...626...: Filling gridview explicitly doesn't work in gtk+ http://code.google.com/p/gambas/issues/detail?id=22 Also, as seen in the example, the row and column numbers assigned to each cell are reversed. From gambas at ...2524... Mon Jan 31 00:40:11 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 30 Jan 2011 23:40:11 +0000 Subject: [Gambas-user] Issue 22 in gambas: Filling gridview explicitly doesn't work in gtk+ In-Reply-To: <1-6813199134517018827-3058756357861503514-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-3058756357861503514-gambas=googlecode.com@...2524...> <0-6813199134517018827-3058756357861503514-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-3058756357861503514-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version -GUI-Any Version-TRUNK GUI-GTK Comment #2 on issue 22 by benoit.m... at ...626...: Filling gridview explicitly doesn't work in gtk+ http://code.google.com/p/gambas/issues/detail?id=22 (No comment was entered for this change.) From gambas at ...2524... Mon Jan 31 00:44:13 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 30 Jan 2011 23:44:13 +0000 Subject: [Gambas-user] Issue 22 in gambas: Filling gridview explicitly doesn't work in gtk+ In-Reply-To: <2-6813199134517018827-3058756357861503514-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-3058756357861503514-gambas=googlecode.com@...2524...> <0-6813199134517018827-3058756357861503514-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-3058756357861503514-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #3 on issue 22 by benoit.m... at ...626...: Filling gridview explicitly doesn't work in gtk+ http://code.google.com/p/gambas/issues/detail?id=22 Fixed in revision #3523. From support at ...2529... Mon Jan 31 03:57:08 2011 From: support at ...2529... (John Spikowski) Date: Sun, 30 Jan 2011 18:57:08 -0800 Subject: [Gambas-user] svn automation scripts Message-ID: <1296442628.2387.16.camel@...2530...> List, I'm a little late to the party but excited by how much progress Gambas has made since my first introduction around 1.7. I'm also rather new to using svn as a tool to keep in sync with the dev team of such a large project. What is a reasonable method of updating your local trunk and doing another recompile? Is there a way to minimize the build time involved other than the -C for configure? In a perfect world, I would like to have a script that checks to see if there have been any updates and if so continue with an auto build of Gambas 3. I would also like to have a log of any warnings so I don't have to read through pages of redirected compiler output searching for them. If you have something like this already built and willing to share, it would save me from recreating another wheel. John From rterry at ...1946... Mon Jan 31 04:23:07 2011 From: rterry at ...1946... (richard terry) Date: Mon, 31 Jan 2011 14:23:07 +1100 Subject: [Gambas-user] svn automation scripts In-Reply-To: <1296442628.2387.16.camel@...2530...> References: <1296442628.2387.16.camel@...2530...> Message-ID: <201101311423.08025.rterry@...1946...> On Monday 31 January 2011 13:57:08 John Spikowski wrote: Just rebuilding dosn't seem to take long John (I'm using kubuntu 9.0) I just do as per web side svn update, ./reconf-all ./configure make make install. However I do watch the svnversion of the currently working one so I can roll back if needed, as sometimes the lastest and greatest svn build fails, however not that commonly. In the event if won't compile, Benoit is pretty quck to take a look. regards richard > List, > > I'm a little late to the party but excited by how much progress Gambas > has made since my first introduction around 1.7. > > I'm also rather new to using svn as a tool to keep in sync with the dev > team of such a large project. What is a reasonable method of updating > your local trunk and doing another recompile? > > Is there a way to minimize the build time involved other than the -C for > configure? > > In a perfect world, I would like to have a script that checks to see if > there have been any updates and if so continue with an auto build of > Gambas 3. I would also like to have a log of any warnings so I don't > have to read through pages of redirected compiler output searching for > them. > > If you have something like this already built and willing to share, it > would save me from recreating another wheel. > > John > > > --------------------------------------------------------------------------- > --- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better > price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From support at ...2529... Mon Jan 31 07:26:33 2011 From: support at ...2529... (John Spikowski) Date: Sun, 30 Jan 2011 22:26:33 -0800 Subject: [Gambas-user] A few questions Message-ID: <1296455193.2387.41.camel@...2530...> BTW: I fixed my running as root when I shouldn't have problem. The following commands will recursively change your owner and group permissions for files and directories. *** FILES *** find . -type f -exec chown -R me {} \; find . -type f -exec chgrp -R me {} \; *** DIRECTORIES *** find . -type d -exec chown -R me {} \; find . -type d -exec chgrp -R me {} \; *Note: Change 'me' to 'you'. It takes me about 30 minutes on my old 2.88 mhz HP Laptop to build 3. Laundry List: When I start gambas3 from the console command line, I get the following messages before Gambas starts. jrs at ...2530...:~$ gambas3 Qt: Session management error: None of the authentication protocols specified are supported warning: unable to load Qt translation: en_US.utf8 warning: unable to load 16/cancel Before I can load an example, I get a dialog with the following message. Why does Gambas think the project is already open when it's not? "This project seems to be already opened. Opening the same project twice can lead to data loss." [ Do not open ] [ Open after all ] When I start my system up and after logging in, I get a ICS not configured or accessible before my desktop even comes up. This started happening after my first build of Gambas 2.22. svn info is a quick way to get your current local trunk version but how do you find out via svn what the remote (master) version (release #) is? John From support at ...2529... Mon Jan 31 07:31:08 2011 From: support at ...2529... (John Spikowski) Date: Sun, 30 Jan 2011 22:31:08 -0800 Subject: [Gambas-user] Puzzle 1 to 8 Game Message-ID: <1296455468.2387.44.camel@...2530...> I noticed the following error messages in the IDE console window. (Puzzle1To8:23445): GLib-CRITICAL **: g_ascii_strup: assertion `str != NULL' failed (Puzzle1To8:23445): Gdk-CRITICAL **: IA__gdk_keyval_from_name: assertion `keyval_name != NULL' failed I was clicking on the squares and typing in a number when these messages appeared. From mdavies5 at ...169... Mon Jan 31 07:44:24 2011 From: mdavies5 at ...169... (Michael) Date: Mon, 31 Jan 2011 17:44:24 +1100 Subject: [Gambas-user] svn automation scripts In-Reply-To: <1296442628.2387.16.camel@...2530...> References: <1296442628.2387.16.camel@...2530...> Message-ID: <4D465A48.1040003@...169...> John, here is a list of commands which somebody gave me as a newbie. It just gets the updates not the whole source code. sudo -i cd trunk svn update ./reconf ./configure -C make Regards Michael On 31/01/11 13:57, John Spikowski wrote: > List, > > I'm a little late to the party but excited by how much progress Gambas > has made since my first introduction around 1.7. > > I'm also rather new to using svn as a tool to keep in sync with the dev > team of such a large project. What is a reasonable method of updating > your local trunk and doing another recompile? > > Is there a way to minimize the build time involved other than the -C for > configure? > > In a perfect world, I would like to have a script that checks to see if > there have been any updates and if so continue with an auto build of > Gambas 3. I would also like to have a log of any warnings so I don't > have to read through pages of redirected compiler output searching for > them. > > If you have something like this already built and willing to share, it > would save me from recreating another wheel. > > John > > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From oceanosoftlapalma at ...626... Mon Jan 31 08:19:33 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Mon, 31 Jan 2011 08:19:33 +0100 Subject: [Gambas-user] Unable to make lastest build In-Reply-To: <1296421045.1819.29.camel@...2530...> References: <1296414053.1819.3.camel@...2530...> <201101302103.31637.gambas@...1...> <1296418957.1819.19.camel@...2530...> <201101302138.17494.gambas@...1...> <1296421045.1819.29.camel@...2530...> Message-ID: Jhon, I recommend to you that complete delete the trunk folder, create again and after: svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ ./reconf-all && ./configure -C && make sudo make install I have got some problems like this in the past and after a "clean installation" works fine. Regards, Ricardo D?az 2011/1/30 John Spikowski > On Sun, 2011-01-30 at 21:38 +0100, Beno?t Minisini wrote: > > > man chmod / man chown > > ;-) > > I was wondering if only a file or two was affected by my misuse of sudo? > I didn't want to have to do a recursive chmod/chgrp if it wasn't needed. > > Thanks, I'll figure it out. > > > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better > price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From oceanosoftlapalma at ...626... Mon Jan 31 12:11:12 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Mon, 31 Jan 2011 12:11:12 +0100 Subject: [Gambas-user] Add Control.Focusable = False to the gambas3 wish list... Message-ID: Hi to all, I'd like you can choose which controls will be focusable and which ones no. Too much difficult to develop? Regards, Ricardo D?az From doriano.blengino at ...1909... Mon Jan 31 12:56:47 2011 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 31 Jan 2011 12:56:47 +0100 Subject: [Gambas-user] A few questions In-Reply-To: <1296455193.2387.41.camel@...2530...> References: <1296455193.2387.41.camel@...2530...> Message-ID: <4D46A37F.4070002@...1909...> John Spikowski ha scritto: > BTW: I fixed my running as root when I shouldn't have problem. The > following commands will recursively change your owner and group > permissions for files and directories. > > *** FILES *** > find . -type f -exec chown -R me {} \; > find . -type f -exec chgrp -R me {} \; > > *** DIRECTORIES *** > find . -type d -exec chown -R me {} \; > find . -type d -exec chgrp -R me {} \; > > *Note: Change 'me' to 'you'. > > Why don't you use a simpler chown -R me * Regards, Doriano From gambas at ...1... Mon Jan 31 15:14:28 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 31 Jan 2011 15:14:28 +0100 Subject: [Gambas-user] Add Control.Focusable = False to the gambas3 wish list... In-Reply-To: References: Message-ID: <201101311514.28991.gambas@...1...> > Hi to all, > > I'd like you can choose which controls will be focusable and which ones no. > Too much difficult to develop? > > Regards, > Ricardo D?az You can only decide that for DrawingArea and ScrollArea. Other controls decide that on their own. Unless you use the Enabled property of course. Why do you need that? -- Beno?t Minisini From gambas at ...1... Mon Jan 31 15:20:44 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 31 Jan 2011 15:20:44 +0100 Subject: [Gambas-user] A few questions In-Reply-To: <1296455193.2387.41.camel@...2530...> References: <1296455193.2387.41.camel@...2530...> Message-ID: <201101311520.45010.gambas@...1...> > > When I start gambas3 from the console command line, I get the following > messages before Gambas starts. > > jrs at ...2530...:~$ gambas3 > Qt: Session management error: None of the authentication protocols > specified are supported > warning: unable to load Qt translation: en_US.utf8 > warning: unable to load 16/cancel > Maybe your system is screwed up? Give details about it! > Before I can load an example, I get a dialog with the following message. > Why does Gambas think the project is already open when it's not? > > "This project seems to be already opened. > > Opening the same project twice can lead to data loss." > > [ Do not open ] [ Open after all ] > Because, in Gambas 2, it relies on a file. So if you don't quit the IDE properly, that file remains, and the next time you open the project, the IDE thinks it has already been opened. > > When I start my system up and after logging in, I get a ICS not > configured or accessible before my desktop even comes up. This started > happening after my first build of Gambas 2.22. > > svn info is a quick way to get your current local trunk version Beware that there is no really a global current local trunk version. Each file and directory can come from any version if you want (in other words, you can update only a part of the source tree if you want, even if it is not really useful). > but how > do you find out via svn what the remote (master) version (release #) is? > svn info https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk Regards, -- Beno?t Minisini From hyetik89 at ...626... Mon Jan 31 15:43:01 2011 From: hyetik89 at ...626... (Hasan Yetik) Date: Mon, 31 Jan 2011 16:43:01 +0200 Subject: [Gambas-user] Fwd: FileView_MouseDrag doesn't work In-Reply-To: References: Message-ID: Hello all, I am trying use MouseDrag event of FileView. I implemented MouseDrag feature of ListBox and I can Drag & Drop items from GridView,Listview to a ListView. But when I want to drag an item of FileView, Gambas does nothing, just nothing. My code is below; PUBLIC SUB copying_list_Drop() copying_list.Add(Drag.Data) END PUBLIC SUB src_files_MouseDrag() src_files.Drag(src_files.Current) END where; copying_list is a ListBox, and src_files is a FileView. Any reply will be appreciated. From jussi.lahtinen at ...626... Mon Jan 31 18:22:14 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 31 Jan 2011 19:22:14 +0200 Subject: [Gambas-user] A few questions In-Reply-To: <201101311520.45010.gambas@...1...> References: <1296455193.2387.41.camel@...2530...> <201101311520.45010.gambas@...1...> Message-ID: > > > Before I can load an example, I get a dialog with the following message. > > Why does Gambas think the project is already open when it's not? > > > > "This project seems to be already opened. > > > > Opening the same project twice can lead to data loss." > > > > [ Do not open ] [ Open after all ] > > > > Because, in Gambas 2, it relies on a file. So if you don't quit the IDE > properly, that file remains, and the next time you open the project, the > IDE > thinks it has already been opened. > I get these messages from opening examples in Gambas3, even when I open them first time... And also I get "Read only" notification. I think the problem is this, Gambas IDE is trying to open examples from: ~/usr/local/share/gambas3/examples/ Instead from: ~/trunk/examples/examples/ Nothing else wrong about that except install must have done with "sudo make install", so no proper privileges! Jussi From fabianfloresvadell at ...626... Mon Jan 31 18:38:04 2011 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Mon, 31 Jan 2011 14:38:04 -0300 Subject: [Gambas-user] Text orientation in TabStrip Message-ID: Hi. I saw that labels in TabStrip can be placed at left or right side, but they are put vertically. I think that this is usefull in some cases, specially when tabs will contain only icons or brief text, but when this isn't the case, there's a problem because a large label (3 or 4 words) rotated is difficult to read and reduces seriously the vertical space. Would be possible have a property or method in the .Tab class to manage the text orientation? -- Fabi?n Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com From gambas at ...1... Mon Jan 31 18:42:57 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 31 Jan 2011 18:42:57 +0100 Subject: [Gambas-user] Text orientation in TabStrip In-Reply-To: References: Message-ID: <201101311842.57724.gambas@...1...> > Hi. I saw that labels in TabStrip can be placed at left or right side, > but they are put vertically. I think that this is usefull in some > cases, specially when tabs will contain only icons or brief text, but > when this isn't the case, there's a problem because a large label (3 > or 4 words) rotated is difficult to read and reduces seriously the > vertical space. > > Would be possible have a property or method in the .Tab class to > manage the text orientation? I'm afraid not, it depends on the toolkit. -- Beno?t Minisini From gambas.fr at ...626... Mon Jan 31 19:17:29 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 31 Jan 2011 19:17:29 +0100 Subject: [Gambas-user] A few questions In-Reply-To: References: <1296455193.2387.41.camel@...2530...> <201101311520.45010.gambas@...1...> Message-ID: 2011/1/31 Jussi Lahtinen : >> >> > Before I can load an example, I get a dialog with the following message. >> > Why does Gambas think the project is already open when it's not? >> > >> > "This project seems to be already opened. >> > >> > Opening the same project twice can lead to data loss." >> > >> > [ Do not open ] [ Open after all ] >> > >> >> Because, in Gambas 2, it relies on a file. So if you don't quit the IDE >> properly, that file remains, and the next time you open the project, the >> IDE >> thinks it has already been opened. a flag problem >> > > I get these messages from opening examples in Gambas3, even when I open them > first time... > And also I get "Read only" notification. > > I think the problem is this, Gambas IDE is trying to open examples from: > ~/usr/local/share/gambas3/examples/ > Instead from: > ~/trunk/examples/examples/ no .. it's normal as exemples in binary package are installed in the /usr/share/exemple So the user need to make a copy to modify it > > Nothing else wrong about that except install must have done with "sudo make > install", so no proper privileges! > > Jussi > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From jussi.lahtinen at ...626... Mon Jan 31 19:58:34 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 31 Jan 2011 20:58:34 +0200 Subject: [Gambas-user] svn automation scripts In-Reply-To: <1296442628.2387.16.camel@...2530...> References: <1296442628.2387.16.camel@...2530...> Message-ID: I have use these scripts lately. This updates sources and writes change log on Desktop (if there is anything new): #!/bin/sh cd ~/trunk NUM=0 echo "Please wait..." `svn update > /tmp/gambasupdt` && NUM=`wc -l /tmp/gambasupdt | tr -d /[:alpha:]` if [ "$NUM" -gt "1" ]; then echo "Writing change log to Desktop..." ( svn log ) > ~/Desktop/changed.log 2>&1 echo "Done!" else echo "Sources are already up to date!" fi You can edit this script to automatically compile new revision. However I do not recommend to do so! Because compilation takes quite a while and not all updates are beneficial to you to compile. So, I recommend to compile only if new revision has bug fix, new feature, etc. that concerns you. My script to compile sources (first three commands may be unnecessary, because of "sudo make clean"): * ** *#!/bin/sh sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 /usr/local/bin/gbi3 sudo rm -rf /usr/local/lib/gambas3 sudo rm -rf /usr/local/share/gambas3 cd ~/trunk sudo make clean echo "Old installation cleaned!" ./reconf-all && ./configure -C && make && sudo make install sudo -k echo "Done! (also sudo -k)."* * Jussi On Mon, Jan 31, 2011 at 04:57, John Spikowski wrote: > List, > > I'm a little late to the party but excited by how much progress Gambas > has made since my first introduction around 1.7. > > I'm also rather new to using svn as a tool to keep in sync with the dev > team of such a large project. What is a reasonable method of updating > your local trunk and doing another recompile? > > Is there a way to minimize the build time involved other than the -C for > configure? > > In a perfect world, I would like to have a script that checks to see if > there have been any updates and if so continue with an auto build of > Gambas 3. I would also like to have a log of any warnings so I don't > have to read through pages of redirected compiler output searching for > them. > > If you have something like this already built and willing to share, it > would save me from recreating another wheel. > > John > > > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better > price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Mon Jan 31 20:07:16 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 31 Jan 2011 21:07:16 +0200 Subject: [Gambas-user] svn automation scripts In-Reply-To: References: <1296442628.2387.16.camel@...2530...> Message-ID: BTW. You may want to comment out "sudo make clean" if you have slow computer. BUT, if you example, compile interpreter (gbx3) for debugging (with debug symbols and no optimizations). And next revision doesn't change anything with gbx3, then it wont be recompiled! Jussi On Mon, Jan 31, 2011 at 20:58, Jussi Lahtinen wrote: > I have use these scripts lately. > > This updates sources and writes change log on Desktop (if there is anything > new): > > > #!/bin/sh > cd ~/trunk > NUM=0 > echo "Please wait..." > `svn update > /tmp/gambasupdt` && NUM=`wc -l /tmp/gambasupdt | tr -d > /[:alpha:]` > if [ "$NUM" -gt "1" ]; then > echo "Writing change log to Desktop..." > ( svn log ) > ~/Desktop/changed.log 2>&1 > echo "Done!" > else > echo "Sources are already up to date!" > fi > > > You can edit this script to automatically compile new revision. > However I do not recommend to do so! > Because compilation takes quite a while and not all updates are beneficial > to you to compile. > So, I recommend to compile only if new revision has bug fix, new feature, > etc. that concerns you. > > My script to compile sources (first three commands may be unnecessary, > because of "sudo make clean"): > * > ** > *#!/bin/sh > sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 > /usr/local/bin/gbi3 > sudo rm -rf /usr/local/lib/gambas3 > sudo rm -rf /usr/local/share/gambas3 > cd ~/trunk > sudo make clean > echo "Old installation cleaned!" > ./reconf-all && ./configure -C && make && sudo make install > sudo -k > echo "Done! (also sudo -k)."* > * > > Jussi > > > > On Mon, Jan 31, 2011 at 04:57, John Spikowski wrote: > >> List, >> >> I'm a little late to the party but excited by how much progress Gambas >> has made since my first introduction around 1.7. >> >> I'm also rather new to using svn as a tool to keep in sync with the dev >> team of such a large project. What is a reasonable method of updating >> your local trunk and doing another recompile? >> >> Is there a way to minimize the build time involved other than the -C for >> configure? >> >> In a perfect world, I would like to have a script that checks to see if >> there have been any updates and if so continue with an auto build of >> Gambas 3. I would also like to have a log of any warnings so I don't >> have to read through pages of redirected compiler output searching for >> them. >> >> If you have something like this already built and willing to share, it >> would save me from recreating another wheel. >> >> John >> >> >> >> ------------------------------------------------------------------------------ >> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! >> Finally, a world-class log management solution at an even better >> price-free! >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires >> February 28th, so secure your free ArcSight Logger TODAY! >> http://p.sf.net/sfu/arcsight-sfd2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >