From gambas at ...2524... Fri Mar 1 03:45:44 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 01 Mar 2013 02:45:44 +0000 Subject: [Gambas-user] Issue 359 in gambas: ScrollBar fails in the new version In-Reply-To: <11-6813199134517018827-12607012504447743156-gambas=googlecode.com@...2524...> References: <11-6813199134517018827-12607012504447743156-gambas=googlecode.com@...2524...> <0-6813199134517018827-12607012504447743156-gambas=googlecode.com@...2524...> Message-ID: <12-6813199134517018827-12607012504447743156-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #12 on issue 359 by benoit.m... at ...626...: ScrollBar fails in the new version http://code.google.com/p/gambas/issues/detail?id=359 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From ihaywood at ...1979... Fri Mar 1 04:07:09 2013 From: ihaywood at ...1979... (Ian Haywood) Date: Fri, 01 Mar 2013 14:07:09 +1100 Subject: [Gambas-user] patch for setting directory on EXEC In-Reply-To: References: Message-ID: <51301B5D.2080806@...1979...> On 23/02/13 23:09, Ian Haywood wrote: > This patch basically makes EXEC respect the PWD environment variable: > if PWD is set using the WITH keyword option to EXEC then > this is the current directory for the process spawned by EXEC. will this patch be accepted? if not is there any other way to implement this functionality that would be acceptable? Ian From oceanosoftlapalma at ...626... Fri Mar 1 13:45:38 2013 From: oceanosoftlapalma at ...626... (=?UTF-8?B?UmljYXJkbyBEw61heiBNYXJ0w61u?=) Date: Fri, 1 Mar 2013 13:45:38 +0100 Subject: [Gambas-user] Autoresize in gridview Message-ID: Hi Benoit, I think It could be good idea to add new property to gridview control related with AutoResize. The name could be something like ColumnToAutoResize (integer from 0 to gridview.columns.count). I try to explain: Sometimes you're filling a gridview in a resizable form and the row you want to autoresize when form width change is not the last one. Try to imagine this example: Id Card Name Amount 424250 Anibal Smith 50.000 124580 Mike Anders 10.000 If you resize the form it will be nice that autoresize column will be "Name" instead Amount, isn't it? Regards, Ricardo From taboege at ...626... Fri Mar 1 22:02:59 2013 From: taboege at ...626... (Tobias Boege) Date: Fri, 1 Mar 2013 22:02:59 +0100 Subject: [Gambas-user] gb.form.dialog Dialog.Filter errors Message-ID: <20130301210259.GA526@...2774...> Hi, I get an error: gb.form: FileView.CheckFilter.127: Bad regular expression: Missing '}' when I set a particular class of Dialog.Filter strings which are actually valid ones for LIKE. According to the docs, FileView uses LIKE to match its filters. Note that this error is only shown when gb.form.dialog is loaded (I think because the enhanced Dialog uses a FileView, right?). Anyway, the file my program creates for this test is not shown with either Dialog. (Is this a distinct issue?) Hmm, there are actually three points in this mail: a) the file is not shown b) Dialog of gb.form and the one of gb.form.dialog work differently with their Filter property (AFAICS) because gb.form's one doesn't seem to use LIKE but the FileView used in the latter does. c) the error message Project attached. Regards, Tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: dialog_filter-0.0.1.tar.gz Type: application/octet-stream Size: 5013 bytes Desc: not available URL: From taboege at ...626... Fri Mar 1 15:18:33 2013 From: taboege at ...626... (Tobias Boege) Date: Fri, 1 Mar 2013 15:18:33 +0100 Subject: [Gambas-user] Having multiple revisions of Gambas installed simultaneously Message-ID: <20130301141833.GD612@...2774...> Hi, we would like to have at least the stable version and trunk of Gambas installed on the same machine. It's no problem to ./configure --prefix=$DIR but I worry about the components... I looked around a bit in the sources and it seemed to me that all components are eventually loaded from under /usr (because of GAMBAS_LINK_PATH) which means that the components are from another version. Did I miss something? How could it be accomplished to have two revisions of Gambas right runnable one the same machine? Regards, Tobi From taboege at ...626... Fri Mar 1 15:18:33 2013 From: taboege at ...626... (Tobias Boege) Date: Fri, 1 Mar 2013 15:18:33 +0100 Subject: [Gambas-user] Having multiple revisions of Gambas installed simultaneously Message-ID: <20130301141833.GD612@...2774...> Hi, we would like to have at least the stable version and trunk of Gambas installed on the same machine. It's no problem to ./configure --prefix=$DIR but I worry about the components... I looked around a bit in the sources and it seemed to me that all components are eventually loaded from under /usr (because of GAMBAS_LINK_PATH) which means that the components are from another version. Did I miss something? How could it be accomplished to have two revisions of Gambas right runnable one the same machine? Regards, Tobi From naytheyus at ...626... Fri Mar 1 22:51:43 2013 From: naytheyus at ...626... (Naytheyus) Date: Fri, 1 Mar 2013 13:51:43 -0800 (PST) Subject: [Gambas-user] FillStyle Message-ID: <1362174703096-41273.post@...3046...> all the fillstyles, fill all my objects solid this started with the most resent of updates '3.4' or is there a 'new way' of using the fillstyle, that i had over looked. my usage: /Const CrossDiagonal As Integer = 14 Draw.Fillstyle = CrossDiagonal Draw.Circle(10, 10, 50)/ i tried this as well with no sucksess: /Draw.Fillstyle = Fill.CrossDiagonal/ thnx for any help -- View this message in context: http://gambas.8142.n7.nabble.com/FillStyle-tp41273.html Sent from the gambas-user mailing list archive at Nabble.com. From bill-lancaster at ...2231... Fri Mar 1 16:07:36 2013 From: bill-lancaster at ...2231... (bill-lancaster) Date: Fri, 1 Mar 2013 07:07:36 -0800 (PST) Subject: [Gambas-user] Gambas 3.4 and scrollbar issues Message-ID: <1362150456456-41269.post@...3046...> I'm using some work-arounds for missing scroll bars in gridview (Gambas 3.3.4) but they don't seem to work with tableview. I see reports that the issue has been resolved in G3.4.0. Before I go the to trouble of upgrading to G3.4.0 can anyone tell me if tableview/scolling problems are resolved as well? My specific problem is that I can't get the vertical scrollbar in Tableview. Kubuntu 12.10 64bit -- View this message in context: http://gambas.8142.n7.nabble.com/Gambas-3-4-and-scrollbar-issues-tp41269.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...2524... Fri Mar 1 14:33:14 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 01 Mar 2013 13:33:14 +0000 Subject: [Gambas-user] Issue 2 in gambas: No native gambas for Windows platforms In-Reply-To: <14-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> References: <14-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> <0-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> Message-ID: <15-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> Comment #15 on issue 2 by mckayger... at ...626...: No native gambas for Windows platforms http://code.google.com/p/gambas/issues/detail?id=2 Oh god exits.. a excelent softwre that NEVER RTUN ON WINDOWS!!! hell yeah! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Sat Mar 2 03:18:46 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 02 Mar 2013 03:18:46 +0100 Subject: [Gambas-user] patch for setting directory on EXEC In-Reply-To: <51301B5D.2080806@...1979...> References: <51301B5D.2080806@...1979...> Message-ID: <51316186.2070601@...1...> Le 01/03/2013 04:07, Ian Haywood a ?crit : > On 23/02/13 23:09, Ian Haywood wrote: > >> This patch basically makes EXEC respect the PWD environment variable: >> if PWD is set using the WITH keyword option to EXEC then >> this is the current directory for the process spawned by EXEC. > will this patch be accepted? > if not is there any other way to implement this functionality that would > be acceptable? > > Ian > I don't know yet. :-) Your patch is clever, but I would prefer a new explicit syntax or a new command. Either CHDIR, or a new syntax for the EXEC command, something like: EXEC [...] IN that does not introduce a new keyword. I must think about it a bit. If I am too long to decide, just tell me and I will merge your patch anyway. Regards, -- Beno?t Minisini From gambas at ...1... Sat Mar 2 03:11:39 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 02 Mar 2013 03:11:39 +0100 Subject: [Gambas-user] Bug or misuse of observer? In-Reply-To: <512CFA67.5010009@...1...> References: <512CFA67.5010009@...1...> Message-ID: <51315FDB.10907@...1...> Le 26/02/2013 19:09, Beno?t Minisini a ?crit : > Le 26/02/2013 18:56, Jussi Lahtinen a ?crit : >> Can someone confirm? >> > > I confirm that it does not work as expected. > >> BTW. Benoit is this email list still OK to send bug reports? >> Or do you prefer the actual bug tracker? >> >> Jussi >> > > Both are equal for me. But using the bug tracker allows people to search > for bugs more easily. > > Regards, > OK, the bug should be fixed in revision #5567. Regards, -- Beno?t Minisini From bill-lancaster at ...2231... Sat Mar 2 17:02:51 2013 From: bill-lancaster at ...2231... (bill-lancaster) Date: Sat, 2 Mar 2013 08:02:51 -0800 (PST) Subject: [Gambas-user] Gambas3.4.0 installation - help needed Message-ID: <1362240171074-41277.post@...3046...> Following the guide @ http://gambasdoc.org/help/doc/release/3.4.0?view#t2 I thought I had removed the previous version of Gambas. Then following http://gambasdoc.org/help/install/ubuntu?v3&view I ran the following code(having cd'd to gambas3-3.4.0 folder) :- sudo apt-get install build-essential autoconf libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libxtst-dev libffi-dev libqt4-dev libglew1.5-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgsl0-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libcairo2-dev libgsl0-dev libncurses5-dev libgmime-2.6-dev followed by './reconf-all' then './configure -C' and then 'make' When I try to run gambas3 I get 'The program 'gambas3' is currently not installed. You can install it by typing: sudo apt-get install gambas3-ide' Any help would be appreciated -- View this message in context: http://gambas.8142.n7.nabble.com/Gambas3-4-0-installation-help-needed-tp41277.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Sat Mar 2 17:43:21 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 2 Mar 2013 17:43:21 +0100 Subject: [Gambas-user] Gambas3.4.0 installation - help needed In-Reply-To: <1362240171074-41277.post@...3046...> References: <1362240171074-41277.post@...3046...> Message-ID: <20130302164321.GA527@...2774...> On Sat, 02 Mar 2013, bill-lancaster wrote: > Following the guide @ http://gambasdoc.org/help/doc/release/3.4.0?view#t2 I > thought I had removed the previous version of Gambas. > > Then following http://gambasdoc.org/help/install/ubuntu?v3&view I ran the > following code(having cd'd to gambas3-3.4.0 folder) :- > > sudo apt-get install build-essential autoconf libbz2-dev libmysqlclient-dev > unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev > libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev > libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev > libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libxtst-dev > libffi-dev libqt4-dev libglew1.5-dev libimlib2-dev libv4l-dev > libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev > libgsl0-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev > libcairo2-dev libgsl0-dev libncurses5-dev libgmime-2.6-dev > > followed by './reconf-all' then './configure -C' and then 'make' > > When I try to run gambas3 I get 'The program 'gambas3' is currently not > installed. You can install it by typing: sudo apt-get install gambas3-ide' > > Any help would be appreciated > Mmm... Really? You need not only to compile but also to _install_ Gambas by 'make install' as root after you 'make'. Regards, Tobi From Karl.Reinl at ...2345... Sat Mar 2 17:43:44 2013 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 02 Mar 2013 17:43:44 +0100 Subject: [Gambas-user] Gambas3.4.0 installation - help needed In-Reply-To: <1362240171074-41277.post@...3046...> References: <1362240171074-41277.post@...3046...> Message-ID: <1362242624.2344.1.camel@...40...> Am Samstag, den 02.03.2013, 08:02 -0800 schrieb bill-lancaster: > Following the guide @ http://gambasdoc.org/help/doc/release/3.4.0?view#t2 I > thought I had removed the previous version of Gambas. > > Then following http://gambasdoc.org/help/install/ubuntu?v3&view I ran the > following code(having cd'd to gambas3-3.4.0 folder) :- > > sudo apt-get install build-essential autoconf libbz2-dev libmysqlclient-dev > unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev > libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev > libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev > libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libxtst-dev > libffi-dev libqt4-dev libglew1.5-dev libimlib2-dev libv4l-dev > libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev > libgsl0-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev > libcairo2-dev libgsl0-dev libncurses5-dev libgmime-2.6-dev > > followed by './reconf-all' then './configure -C' and then 'make' > > When I try to run gambas3 I get 'The program 'gambas3' is currently not > installed. You can install it by typing: sudo apt-get install gambas3-ide' > > Any help would be appreciated Salut, it'S right, you have to install it. sudo make install will do the job -- Amicalement Charlie From gambas at ...1... Sat Mar 2 23:42:53 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 02 Mar 2013 23:42:53 +0100 Subject: [Gambas-user] patch for setting directory on EXEC In-Reply-To: <51301B5D.2080806@...1979...> References: <51301B5D.2080806@...1979...> Message-ID: <5132806D.2080204@...1...> Le 01/03/2013 04:07, Ian Haywood a ?crit : > On 23/02/13 23:09, Ian Haywood wrote: > >> This patch basically makes EXEC respect the PWD environment variable: >> if PWD is set using the WITH keyword option to EXEC then >> this is the current directory for the process spawned by EXEC. > will this patch be accepted? > if not is there any other way to implement this functionality that would > be acceptable? > > Ian > Patch rewrote and merged in revision #5569. Regards, -- Beno?t Minisini From gambas at ...1... Sat Mar 2 23:58:50 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 02 Mar 2013 23:58:50 +0100 Subject: [Gambas-user] Having multiple revisions of Gambas installed simultaneously In-Reply-To: <20130301141833.GD612@...2774...> References: <20130301141833.GD612@...2774...> Message-ID: <5132842A.6090709@...1...> Le 01/03/2013 15:18, Tobias Boege a ?crit : > Hi, > > we would like to have at least the stable version and trunk of Gambas > installed on the same machine. It's no problem to ./configure --prefix=$DIR > but I worry about the components... I looked around a bit in the sources and > it seemed to me that all components are eventually loaded from under /usr > (because of GAMBAS_LINK_PATH) which means that the components are from > another version. > > Did I miss something? How could it be accomplished to have two revisions of > Gambas right runnable one the same machine? > > Regards, > Tobi > You can't easily have different major version of Gambas running on the same system. To find the Gambas installation directory, Gambas does something weird: it looks at the path defined at compilation time, but if '/usr/bin/gbx3' exists, it takes precedence. And if that '/usr/bin/gbx3' is a symbolic link, that symbolic is followed. Then "/usr/bin/env" is used for finding the interpreter inside Gambas executable shebang. So if you install two different Gambas in two different prefixs that are *not* /usr, then you can switch between both by changing the '/usr/bin/gbx3' symbolic link. But you can't have both running at the same time! -- Beno?t Minisini From gambas at ...1... Sun Mar 3 00:01:44 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 03 Mar 2013 00:01:44 +0100 Subject: [Gambas-user] Gambas 3.4 and scrollbar issues In-Reply-To: <1362150456456-41269.post@...3046...> References: <1362150456456-41269.post@...3046...> Message-ID: <513284D8.8060609@...1...> Le 01/03/2013 16:07, bill-lancaster a ?crit : > I'm using some work-arounds for missing scroll bars in gridview (Gambas > 3.3.4) but they don't seem to work with tableview. > > I see reports that the issue has been resolved in G3.4.0. > > Before I go the to trouble of upgrading to G3.4.0 can anyone tell me if > tableview/scolling problems are resolved as well? > > My specific problem is that I can't get the vertical scrollbar in Tableview. > > Kubuntu 12.10 64bit > The control has been entirely rewritten in Gambas 3.4, so I think your problems are fixed. But only you can tell! -- Beno?t Minisini From taboege at ...626... Sun Mar 3 00:04:39 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 3 Mar 2013 00:04:39 +0100 Subject: [Gambas-user] Having multiple revisions of Gambas installed simultaneously In-Reply-To: <5132842A.6090709@...1...> References: <20130301141833.GD612@...2774...> <5132842A.6090709@...1...> Message-ID: <20130302230439.GB527@...2774...> On Sat, 02 Mar 2013, Beno?t Minisini wrote: > Le 01/03/2013 15:18, Tobias Boege a ?crit : > > Hi, > > > > we would like to have at least the stable version and trunk of Gambas > > installed on the same machine. It's no problem to ./configure --prefix=$DIR > > but I worry about the components... I looked around a bit in the sources and > > it seemed to me that all components are eventually loaded from under /usr > > (because of GAMBAS_LINK_PATH) which means that the components are from > > another version. > > > > Did I miss something? How could it be accomplished to have two revisions of > > Gambas right runnable one the same machine? > > > > Regards, > > Tobi > > > > You can't easily have different major version of Gambas running on the > same system. > > To find the Gambas installation directory, Gambas does something weird: > it looks at the path defined at compilation time, but if '/usr/bin/gbx3' > exists, it takes precedence. And if that '/usr/bin/gbx3' is a symbolic > link, that symbolic is followed. > > Then "/usr/bin/env" is used for finding the interpreter inside Gambas > executable shebang. > > So if you install two different Gambas in two different prefixs that are > *not* /usr, then you can switch between both by changing the > '/usr/bin/gbx3' symbolic link. But you can't have both running at the > same time! > No, running both at the same time is not necessary. For the adventurous people, changing a /usr/bin/gbx3 symlink to switch between versions is an acceptable approach, I guess. Thanks, Tobi From jussi.lahtinen at ...626... Sun Mar 3 00:29:48 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 3 Mar 2013 01:29:48 +0200 Subject: [Gambas-user] Bug or misuse of observer? In-Reply-To: <51315FDB.10907@...1...> References: <512CFA67.5010009@...1...> <51315FDB.10907@...1...> Message-ID: > OK, the bug should be fixed in revision #5567. > Yes, it works as expected! Thanks! Jussi From jussi.lahtinen at ...626... Sun Mar 3 00:37:23 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 3 Mar 2013 01:37:23 +0200 Subject: [Gambas-user] Maybe another bug. In-Reply-To: References: Message-ID: This one still lacks of confirmation or any comments... just wondering if there is something I missed, or is this just forgotten. Jussi On Sun, Feb 24, 2013 at 11:30 PM, Jussi Lahtinen wrote: > Hi! > See attached projects. > > 1. Compile LibTest so you can use it as library. > 2. Set LibTest.gambas to be used as library for LibTestPart2. > 3. Run LibTestPart2. > 4. Click on the button. > 5. I expect Var1 and Var2 have same count (10). Instead Var1 is empty. Why? > > Gambas 3 revision 5554 @ Xubuntu 12.04 64 bit > > Jussi > > > From gambas at ...1... Sun Mar 3 01:03:13 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 03 Mar 2013 01:03:13 +0100 Subject: [Gambas-user] Maybe another bug. In-Reply-To: References: Message-ID: <51329341.50606@...1...> Le 03/03/2013 00:37, Jussi Lahtinen a ?crit : > This one still lacks of confirmation or any comments... just wondering if > there is something I missed, > or is this just forgotten. > > Jussi > > > > On Sun, Feb 24, 2013 at 11:30 PM, Jussi Lahtinen > wrote: > >> Hi! >> See attached projects. >> >> 1. Compile LibTest so you can use it as library. >> 2. Set LibTest.gambas to be used as library for LibTestPart2. >> 3. Run LibTestPart2. >> 4. Click on the button. >> 5. I expect Var1 and Var2 have same count (10). Instead Var1 is empty. Why? >> >> Gambas 3 revision 5554 @ Xubuntu 12.04 64 bit >> >> Jussi >> Your Object[] array is converted to a Class1[] array because of the Module1.Test() method signature. So the original Object[] array is not modified. Regards, -- Beno?t Minisini From bill-lancaster at ...2231... Sun Mar 3 09:52:36 2013 From: bill-lancaster at ...2231... (bill-lancaster) Date: Sun, 3 Mar 2013 00:52:36 -0800 (PST) Subject: [Gambas-user] Gambas3.4.0 installation - help needed In-Reply-To: <1362242624.2344.1.camel@...40...> References: <1362240171074-41277.post@...3046...> <1362242624.2344.1.camel@...40...> Message-ID: <1362300756797-41287.post@...3046...> Yes, I forgot that step. However, it still does not work. I went through this process on a machine that has never had Gambas installed and everything was fine. So I'm thinking that somehow I haven't fully removed my previous gambas version but I don't know what to do now! -- View this message in context: http://gambas.8142.n7.nabble.com/Gambas3-4-0-installation-help-needed-tp41277p41287.html Sent from the gambas-user mailing list archive at Nabble.com. From Gambas at ...1950... Sun Mar 3 10:50:44 2013 From: Gambas at ...1950... (Caveat) Date: Sun, 03 Mar 2013 10:50:44 +0100 Subject: [Gambas-user] Gambas3.4.0 installation - help needed In-Reply-To: <1362300756797-41287.post@...3046...> References: <1362240171074-41277.post@...3046...> <1362242624.2344.1.camel@...40...> <1362300756797-41287.post@...3046...> Message-ID: <51331CF4.3030000@...1950...> > However, it still does not work. Please give more details! Does it still tell you gambas is not installed? Does it now crash? What error do you see, exactly? Can you copy paste? On 03/03/13 09:52, bill-lancaster wrote: > Yes, I forgot that step. > However, it still does not work. > I went through this process on a machine that has never had Gambas installed > and everything was fine. > So I'm thinking that somehow I haven't fully removed my previous gambas > version but I don't know what to do now! > > > > -- > View this message in context: http://gambas.8142.n7.nabble.com/Gambas3-4-0-installation-help-needed-tp41277p41287.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bill-lancaster at ...2231... Sun Mar 3 12:42:20 2013 From: bill-lancaster at ...2231... (bill-lancaster) Date: Sun, 3 Mar 2013 03:42:20 -0800 (PST) Subject: [Gambas-user] Gambas3.4.0 installation - help needed In-Reply-To: <51331CF4.3030000@...1950...> References: <1362240171074-41277.post@...3046...> <1362242624.2344.1.camel@...40...> <1362300756797-41287.post@...3046...> <51331CF4.3030000@...1950...> Message-ID: <1362310940256-41289.post@...3046...> The message is the same :- 'The program 'gambas3' is currently not installed. You can install it by typing: sudo apt-get install gambas3-ide' -- View this message in context: http://gambas.8142.n7.nabble.com/Gambas3-4-0-installation-help-needed-tp41277p41289.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Sun Mar 3 13:08:30 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 3 Mar 2013 13:08:30 +0100 Subject: [Gambas-user] Gambas3.4.0 installation - help needed In-Reply-To: <1362310940256-41289.post@...3046...> References: <1362240171074-41277.post@...3046...> <1362242624.2344.1.camel@...40...> <1362300756797-41287.post@...3046...> <51331CF4.3030000@...1950...> <1362310940256-41289.post@...3046...> Message-ID: <20130303120830.GA580@...2774...> On Sun, 03 Mar 2013, bill-lancaster wrote: > The message is the same :- 'The program 'gambas3' is currently not installed. > You can install it by typing: sudo apt-get install gambas3-ide' > Does $ which gbx3 return a positive (the full path) or negative (not found) message? Did you attend the compilation process? No errors? Regards, Tobi From jussi.lahtinen at ...626... Sun Mar 3 16:07:17 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 3 Mar 2013 17:07:17 +0200 Subject: [Gambas-user] Maybe another bug. In-Reply-To: <51329341.50606@...1...> References: <51329341.50606@...1...> Message-ID: Ah, of course... and so it was totally unrelated to using executable as library. Thanks for clearing this up! I'll just use Byref and all works as intended. Maybe there should be some kind of warning about that in documentation, since it's not necessarily obvious that automatic conversion changes also reference? Not sure. Compiler (or runtime) warning would be great, but I don't see any way to tell whether array is passed only as argument, and when something is expected to come back with the array. So I don't think it's possible... Jussi From jussi.lahtinen at ...626... Sun Mar 3 16:12:29 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 3 Mar 2013 17:12:29 +0200 Subject: [Gambas-user] Gambas3.4.0 installation - help needed In-Reply-To: <1362310940256-41289.post@...3046...> References: <1362240171074-41277.post@...3046...> <1362242624.2344.1.camel@...40...> <1362300756797-41287.post@...3046...> <51331CF4.3030000@...1950...> <1362310940256-41289.post@...3046...> Message-ID: Did you run "sudo make install" in root of source folder? This will remove Gambas from your system: 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 sudo rm -f /usr/local/bin/gambas3 sudo rm -f /usr/local/bin/gambas3.gambas sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3 sudo rm -rf /usr/lib/gambas3 sudo rm -rf /usr/share/gambas3 sudo rm -f /usr/bin/gambas3 sudo rm -f /usr/bin/gambas3.gambas Then try to compile again. ./reconf-all && ./configure -C && make && sudo make install Jussi On Sun, Mar 3, 2013 at 1:42 PM, bill-lancaster wrote: > The message is the same :- 'The program 'gambas3' is currently not > installed. > You can install it by typing: sudo apt-get install gambas3-ide' > > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/Gambas3-4-0-installation-help-needed-tp41277p41289.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Mar 3 16:31:27 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 03 Mar 2013 16:31:27 +0100 Subject: [Gambas-user] Maybe another bug. In-Reply-To: References: <51329341.50606@...1...> Message-ID: <51336CCF.7070008@...1...> Le 03/03/2013 16:07, Jussi Lahtinen a ?crit : > Ah, of course... and so it was totally unrelated to using executable as > library. > Thanks for clearing this up! > I'll just use Byref and all works as intended. > > Maybe there should be some kind of warning about that in documentation, > since it's not necessarily obvious that automatic conversion changes also > reference? Not sure. > Compiler (or runtime) warning would be great, but I don't see any way to > tell whether array is passed only as argument, > and when something is expected to come back with the array. So I don't > think it's possible... > > Jussi If you pass an object of class A to a function argument that expects an object of class B, expect an error of an automatic conversion to a new object. There won't be any warnings for automatic conversions, this is a convention of the Gambas language. You must know what you are doing with datatypes! Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Sun Mar 3 19:04:17 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 3 Mar 2013 20:04:17 +0200 Subject: [Gambas-user] Maybe another bug. In-Reply-To: <51336CCF.7070008@...1...> References: <51329341.50606@...1...> <51336CCF.7070008@...1...> Message-ID: > If you pass an object of class A to a function argument that expects an > object of class B, expect an error of an automatic conversion to a new > object. > > There won't be any warnings for automatic conversions, this is a > convention of the Gambas language. You must know what you are doing with > datatypes! > Yes, I understand. I think the confusion came from how I thought datatype Object would work. Jussi From karl.reinl at ...9... Sun Mar 3 23:01:58 2013 From: karl.reinl at ...9... (Karl Reinl) Date: Sun, 03 Mar 2013 23:01:58 +0100 Subject: [Gambas-user] I found a bug... or only on my box Message-ID: <1362348118.4382.21.camel@...40...> Salut Beno?t, seen on qt4 : if you change the printer target to .pdf or .ps file, the .paper switches to 0 = Custom, was 2 = A4 before. Same if you change it by code .OutputFile="/tmp/myOutputFile.pdf" The Landscape is printed on Portrait Orientation. -- Amicalement Charlie [System] OperatingSystem=Linux Kernel=3.0.0-31-generic Architecture=x86 Distribution=Ubuntu 10.04.4 LTS Desktop=GNOME Theme=QPlastique Language=de_DE.UTF-8 Memory=3026M [Libraries] GStreamer=libgstreamer-0.10.so.0.24.1 GTK+=libgtk-x11-2.0.so.0.2000.1 Poppler=libpoppler.so.5.0.0 Qt4=libQtCore.so.4.6.2 SDL=libSDL-1.2.so.0.11.3 From bill-lancaster at ...2231... Mon Mar 4 08:13:12 2013 From: bill-lancaster at ...2231... (bill-lancaster) Date: Sun, 3 Mar 2013 23:13:12 -0800 (PST) Subject: [Gambas-user] Gambas3.4.0 installation - help needed In-Reply-To: <20130303120830.GA580@...2774...> References: <1362240171074-41277.post@...3046...> <1362242624.2344.1.camel@...40...> <1362300756797-41287.post@...3046...> <51331CF4.3030000@...1950...> <1362310940256-41289.post@...3046...> <20130303120830.GA580@...2774...> Message-ID: <1362381192457-41296.post@...3046...> Tobi, $ which gbx3 gives usr/bin/gbx3 There were no signs of errors during compilation Bill -- View this message in context: http://gambas.8142.n7.nabble.com/Gambas3-4-0-installation-help-needed-tp41277p41296.html Sent from the gambas-user mailing list archive at Nabble.com. From bill-lancaster at ...2231... Mon Mar 4 08:40:08 2013 From: bill-lancaster at ...2231... (bill-lancaster) Date: Sun, 3 Mar 2013 23:40:08 -0800 (PST) Subject: [Gambas-user] Gambas3.4.0 installation - help needed In-Reply-To: References: <1362240171074-41277.post@...3046...> <1362242624.2344.1.camel@...40...> <1362300756797-41287.post@...3046...> <51331CF4.3030000@...1950...> <1362310940256-41289.post@...3046...> Message-ID: <1362382808008-41297.post@...3046...> Jussi, Great, following your advice it seems that removing all trace of gambas did the trick. Recompiling gives me a working g3.4.0 Thanks again, Bill -- View this message in context: http://gambas.8142.n7.nabble.com/Gambas3-4-0-installation-help-needed-tp41277p41297.html Sent from the gambas-user mailing list archive at Nabble.com. From bill-lancaster at ...2231... Mon Mar 4 10:43:54 2013 From: bill-lancaster at ...2231... (bill-lancaster) Date: Mon, 4 Mar 2013 01:43:54 -0800 (PST) Subject: [Gambas-user] Gambas 3.4 and scrollbar issues In-Reply-To: <513284D8.8060609@...1...> References: <1362150456456-41269.post@...3046...> <513284D8.8060609@...1...> Message-ID: <1362390234578-41298.post@...3046...> Yes, it worked! -- View this message in context: http://gambas.8142.n7.nabble.com/Gambas-3-4-and-scrollbar-issues-tp41269p41298.html Sent from the gambas-user mailing list archive at Nabble.com. From ea7dfh at ...2382... Mon Mar 4 23:14:56 2013 From: ea7dfh at ...2382... (Jesus) Date: Mon, 04 Mar 2013 23:14:56 +0100 Subject: [Gambas-user] Duplicated set of executables? Message-ID: <51351CE0.2020902@...2382...> Hi all This is something I was not aware of: jesus at ...3106... /usr/bin/X11 $ ls gb* gba3 gbc3 gbi3 gbr2 gbr3 gbs3 gbs3.gambas gbw3 gbx2 gbx3 jesus at ...3106... /usr/bin/X11 $ cd .. jesus at ...3106... /usr/bin $ ls gb* gba3 gbc3 gbi3 gbr2 gbr3 gbs3 gbs3.gambas gbw3 gbx2 gbx3 It seems there are duplicated set of executable files in /usr/bin/X11 dir. I'm using latest SVN trunk in Linux Mint 13 64 bits, but other people report the same in other debian based distros and packages from Kendek's PPA as well. This is weird, at least for me. Any explanation about that, Benoit? Regards -- Jesus Guardon From gambas at ...1... Mon Mar 4 23:34:20 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 04 Mar 2013 23:34:20 +0100 Subject: [Gambas-user] Duplicated set of executables? In-Reply-To: <51351CE0.2020902@...2382...> References: <51351CE0.2020902@...2382...> Message-ID: <5135216C.7060102@...1...> Le 04/03/2013 23:14, Jesus a ?crit : > Hi all > > This is something I was not aware of: > > jesus at ...3106... /usr/bin/X11 $ ls gb* > gba3 gbc3 gbi3 gbr2 gbr3 gbs3 gbs3.gambas gbw3 gbx2 gbx3 > jesus at ...3106... /usr/bin/X11 $ cd .. > jesus at ...3106... /usr/bin $ ls gb* > gba3 gbc3 gbi3 gbr2 gbr3 gbs3 gbs3.gambas gbw3 gbx2 gbx3 > > > It seems there are duplicated set of executable files in /usr/bin/X11 > dir. I'm using latest SVN trunk in Linux Mint 13 64 bits, but other > people report the same in other debian based distros and packages from > Kendek's PPA as well. > > This is weird, at least for me. Any explanation about that, Benoit? > > Regards > Maybe /usr/bin/X11 is a symbolic link to /usr/bin? -- Beno?t Minisini From ea7dfh at ...2382... Tue Mar 5 12:32:51 2013 From: ea7dfh at ...2382... (Jesus) Date: Tue, 05 Mar 2013 12:32:51 +0100 Subject: [Gambas-user] Duplicated set of executables? In-Reply-To: <5135216C.7060102@...1...> References: <51351CE0.2020902@...2382...> <5135216C.7060102@...1...> Message-ID: <5135D7E3.7060303@...2382...> El 04/03/13 23:34, Beno?t Minisini escribi?: > Le 04/03/2013 23:14, Jesus a ?crit : >> Hi all >> >> This is something I was not aware of: >> >> jesus at ...3106... /usr/bin/X11 $ ls gb* >> gba3 gbc3 gbi3 gbr2 gbr3 gbs3 gbs3.gambas gbw3 gbx2 gbx3 >> jesus at ...3106... /usr/bin/X11 $ cd .. >> jesus at ...3106... /usr/bin $ ls gb* >> gba3 gbc3 gbi3 gbr2 gbr3 gbs3 gbs3.gambas gbw3 gbx2 gbx3 >> >> >> It seems there are duplicated set of executable files in /usr/bin/X11 >> dir. I'm using latest SVN trunk in Linux Mint 13 64 bits, but other >> people report the same in other debian based distros and packages from >> Kendek's PPA as well. >> >> This is weird, at least for me. Any explanation about that, Benoit? >> >> Regards >> > > Maybe /usr/bin/X11 is a symbolic link to /usr/bin? > Yes, you are right: cd /usr/bin/ ls -l -d X1* lrwxrwxrwx 1 root root 1 sep 29 02:09 X11 -> . I have no idea which program created such symbolic link, as this is common for other ubuntu and mint distros... IIRC, never noticed it was there until now. Sorry for the noise, regards! -- Jesus Guardon From jf.monteiro at ...43... Thu Mar 7 13:40:58 2013 From: jf.monteiro at ...43... (Jose Monteiro) Date: Thu, 7 Mar 2013 04:40:58 -0800 (PST) Subject: [Gambas-user] Shell command not working Message-ID: <1362660058.84538.YahooMailNeo@...3108...> text = "cd ~/.relat_bact && rm -rf Modelo*.odt && zip -r " & "MA" & Mid$(ListBox1.Text, 1, 9) & ".odt? ." ? Shell text Wait 1 - navigating to ~/.relat_bact directory and deleting the odt file is working fine. 2 - generating the "zipped" odt file (MAxxxx.odt) using the files and directories inside ~/.relat_bact is not working. The error message is: "zip I/O error: No such file or directory zip error: Could not create output file (MA000004/12.odt)" 3 - If I type these commands directly on a terminal it works fine. My system information: [System] OperatingSystem=Linux Kernel=3.5.0-25-generic Architecture=i686 Memory=1025808 kB DistributionVendor=Ubuntu DistributionRelease="Ubuntu 12.10" Desktop=Gnome [Gambas 3] Version=3.3.3 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.8.3 GTK+=libgtk-x11-2.0.so.0.2400.13 Thanks in advance From ea7dfh at ...2382... Thu Mar 7 21:06:34 2013 From: ea7dfh at ...2382... (Jesus) Date: Thu, 07 Mar 2013 21:06:34 +0100 Subject: [Gambas-user] Shell command not working In-Reply-To: <1362660058.84538.YahooMailNeo@...3108...> References: <1362660058.84538.YahooMailNeo@...3108...> Message-ID: <5138F34A.2000205@...2382...> El 07/03/13 13:40, Jose Monteiro escribi?: > text = "cd ~/.relat_bact && rm -rf Modelo*.odt && zip -r " & "MA" & Mid$(ListBox1.Text, 1, 9) & ".odt ." > Shell text Wait > > 1 - navigating to ~/.relat_bact directory and deleting the odt file is working fine. > > 2 - generating the "zipped" odt file (MAxxxx.odt) using the files and directories inside ~/.relat_bact is not working. The error message is: "zip I/O error: No such file or directory > zip error: Could not create output file (MA000004/12.odt)" > > 3 - If I type these commands directly on a terminal it works fine. > > Thanks in advance There is an extra slash "/" in your final string. Check that in the Mid function. BUT... Why do you use shell command? Gambas have its own commands to do what you want. See "working with files" in the manual wiki and the gb.compress component. Regards -- Jesus Guardon From gambas at ...2524... Fri Mar 8 14:39:02 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 08 Mar 2013 13:39:02 +0000 Subject: [Gambas-user] Issue 409 in gambas: Object.Type(object) raise Invalide Object error with ValueBox.Type=Date Message-ID: <0-6813199134517018827-4139010346687567920-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-TRUNK Type-Bug Priority-Medium OpSys-Linux Dist-Ubuntu Arch-X86-64 Desktop-Any GUI-Any New issue 409 by sot... at ...626...: Object.Type(object) raise Invalide Object error with ValueBox.Type=Date http://code.google.com/p/gambas/issues/detail?id=409 1) Describe the problem. With a ValueBox with Type property set to Date the function Object.Type(obj) raise an error Invalid Object. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: trunk 5575 [System] OperatingSystem=Linux Kernel=3.2.0-38-generic Architecture=x86_64 Distribution=Ubuntu 12.04.2 LTS Desktop=GNOME Theme=QGtk Language=it_IT.UTF-8 Memory=3954M [Libraries] Poppler=libpoppler.so.5.0.0 GStreamer=libgstreamer-0.10.so.0.30.0 GTK+=libgtk-x11-2.0.so.0.2400.10 Qt4=libQtCore.so.4.8.1 SDL=libSDL-1.2.so.0.11.3 3) Provide a little project that reproduces the bug or the crash. valuebox.tar.gz attached 4) If your project needs a database, try to provide it, or part of it. N.A. 5) Explain clearly how to reproduce the bug or the crash. Simply run the project Attachments: valuebox.tar.gz 5.2 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Mar 8 15:38:21 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 08 Mar 2013 14:38:21 +0000 Subject: [Gambas-user] Issue 409 in gambas: Object.Type(object) raise Invalide Object error with ValueBox.Type=Date In-Reply-To: <0-6813199134517018827-4139010346687567920-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-4139010346687567920-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-4139010346687567920-gambas=googlecode.com@...2524...> Comment #1 on issue 409 by sot... at ...626...: Object.Type(object) raise Invalide Object error with ValueBox.Type=Date http://code.google.com/p/gambas/issues/detail?id=409 Same error raised for any .Type property not 'Number'. And the function Object.Class(object).Name will raise the same error. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Mar 8 22:24:37 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 08 Mar 2013 21:24:37 +0000 Subject: [Gambas-user] Issue 410 in gambas: Signal 11 in gb.net.curl Message-ID: <0-6813199134517018827-1968304656972596596-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 410 by r... at ...1740...: Signal 11 in gb.net.curl http://code.google.com/p/gambas/issues/detail?id=410 1) Describe the problem. When running my project it crashes in gb.net.curl component. Don't have the exact gambas code, but can extract it if gdb output is not enough. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r5575 [System] OperatingSystem=Linux Kernel=3.8.0-11-generic Architecture=x86_64 Distribution=Ubuntu Raring Ringtail (development branch) Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=3890M [Libraries] GStreamer=libgstreamer-0.10.so.0.30.0 GTK+=libgtk-x11-2.0.so.0.2400.16 Poppler=libpoppler.so.28.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 3) Provide a little project that reproduces the bug or the crash. Not available. 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. Running my project caused a signal 11 and this gdb output. [New Thread 0x7fffe1b41700 (LWP 3741)] [Thread 0x7fffe1b41700 (LWP 3741) exited] Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7232b79 in ?? () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) bt #0 0x00007ffff7232b79 in ?? () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x00007fffefdaac79 in http_read_curl (ptr=0xd0fc79, size=229, nmemb=16384, _object=0xd0ae08) at CHttpClient.c:115 #2 0x00007fffefb72c17 in ?? () from /usr/lib/x86_64-linux-gnu/libcurl.so.4 #3 0x00007fffefb73756 in ?? () from /usr/lib/x86_64-linux-gnu/libcurl.so.4 #4 0x00007fffefb7c6da in ?? () from /usr/lib/x86_64-linux-gnu/libcurl.so.4 #5 0x00007fffefb7d375 in curl_multi_perform () from /usr/lib/x86_64-linux-gnu/libcurl.so.4 #6 0x00007fffefda9f8d in CCURL_post_curl (data=33) at CCurl.c:281 #7 0x00007ffff5dbca56 in CWatch::read (this=0xd14230, fd=33) at CWatch.cpp:143 #8 0x00007ffff4b100df in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #9 0x00007ffff4b5bd1e in QSocketNotifier::activated(int) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #10 0x00007ffff4b18afb in QSocketNotifier::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #11 0x00007ffff50258ec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #12 0x00007ffff502825b in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #13 0x00007ffff4afb62e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #14 0x00007ffff4b2a5b8 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #15 0x00007ffff3b4de85 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #16 0x00007ffff3b4e1c8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #17 0x00007ffff3b4e284 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #18 0x00007ffff4b2a006 in QEventDispatcherGlib::processEvents(QFlags) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #19 0x00007ffff50cb1ae in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #20 0x00007ffff4aff4e7 in QCoreApplication::processEvents(QFlags, int) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #21 0x00007ffff5d9ae26 in hook_wait (duration=) at main.cpp:791 #22 0x000000000041ec1d in GB_Wait (delay=1) at gbx_api.c:2364 #23 0x000000000041b902 in SUBR_wait (code=) at gbx_subr_misc.c:73 #24 0x0000000000435b95 in EXEC_loop () at gbx_exec_loop.c:501 #25 0x000000000040a51d in EXEC_function_loop () at gbx_exec.c:906 #26 0x000000000040abe3 in EXEC_function_real () at gbx_exec.c:870 #27 0x000000000041fbca in raise_event (observer=observer at ...2861...=0xc52008, object=object at ...2861...=0xc58368, func_id=237, func_id at ...2861...=238, nparam=nparam at ...2861...=0) at gbx_api.c:812 #28 0x0000000000420ab0 in GB_Raise (object=0xc58368, event_id=19, nparam=0) at gbx_api.c:948 #29 0x00007ffff5dac7bf in raise_click_event (_object=_object at ...2861...=0xc58368) at CTextBox.cpp:334 #30 0x00007ffff5dad280 in combo_set_current_item (_object=_object at ...2861...=0xc58368, item=item at ...2861...=0) at CTextBox.cpp:357 #31 0x00007ffff5dad2ea in combo_set_text (_object=0xc58368, text=...) at CTextBox.cpp:377 ---Type to continue, or q to quit--- #32 0x00007ffff5dad359 in CCOMBOBOX_text (_object=0xc58368, _object at ...2861...=, _param=) at CTextBox.cpp:509 #33 0x000000000040ac05 in EXEC_call_native (exec=, object=, type=type at ...2861...=0, param=) at gbx_exec.c:1164 #34 0x000000000040dd59 in EXEC_pop_unknown () at gbx_exec_pop.c:243 #35 0x0000000000435e4b in EXEC_loop () at gbx_exec_loop.c:669 #36 0x000000000040a51d in EXEC_function_loop () at gbx_exec.c:906 #37 0x000000000040abe3 in EXEC_function_real () at gbx_exec.c:870 #38 0x000000000041fbca in raise_event (observer=observer at ...2861...=0xc52008, object=object at ...2861...=0xc52008, func_id=166, func_id at ...2861...=167, nparam=nparam at ...2861...=0) at gbx_api.c:812 #39 0x0000000000420ab0 in GB_Raise (object=0xc52008, event_id=21, nparam=0) at gbx_api.c:948 #40 0x00007ffff5da4136 in emit_open_event (_object=0xc52008) at CWindow.cpp:229 #41 emit_open_event (_object=0xc52008) at CWindow.cpp:209 #42 0x00007ffff5da65b1 in CWINDOW_show (_object=0xc52008, _param=) at CWindow.cpp:664 #43 0x000000000040ac92 in EXEC_native_quick () at gbx_exec.c:1177 #44 0x0000000000436a93 in EXEC_loop () at gbx_exec_loop.c:1276 #45 0x000000000040a51d in EXEC_function_loop () at gbx_exec.c:906 #46 0x000000000040abe3 in EXEC_function_real () at gbx_exec.c:870 #47 0x000000000041fbca in raise_event (observer=observer at ...2861...=0x924d98, object=object at ...2861...=0xbe0548, func_id=365, func_id at ...2861...=366, nparam=nparam at ...2861...=0) at gbx_api.c:812 #48 0x0000000000420ab0 in GB_Raise (object=0xbe0548, event_id=17, nparam=0) at gbx_api.c:948 #49 0x00007ffff5da88b4 in CButton::clickedTool (this=0x7ffff5ff40d0 ) at CButton.cpp:731 #50 0x00007ffff4b100df in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #51 0x00007ffff5690d32 in QAbstractButton::clicked(bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #52 0x00007ffff53e42ee in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #53 0x00007ffff53e4ae0 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #54 0x00007ffff53e4d4c in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #55 0x00007ffff54a182a in QToolButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #56 0x00007ffff5072a89 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #57 0x00007ffff50258ec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #58 0x00007ffff5028a33 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #59 0x00007ffff4afb62e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #60 0x00007ffff502b933 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer&, bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #61 0x00007ffff50a0ec4 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 ---Type to continue, or q to quit--- #62 0x00007ffff509fef1 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #63 0x00007ffff50cb0b2 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #64 0x00007ffff3b4de85 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #65 0x00007ffff3b4e1c8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #66 0x00007ffff3b4e284 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #67 0x00007ffff4b2a006 in QEventDispatcherGlib::processEvents(QFlags) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #68 0x00007ffff50cb1ae in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #69 0x00007ffff4afa37f in QEventLoop::processEvents(QFlags) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #70 0x00007ffff4afa608 in QEventLoop::exec(QFlags) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #71 0x00007ffff4affce6 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #72 0x00007ffff5d9b890 in hook_loop () at main.cpp:777 #73 0x000000000040485a in main (argc=1, argv=0x7fffffffe0d8) at gbx.c:402 (gdb) p DEBUG_get_position(EXEC_current.cp, EXEC_current.fp, EXEC_current.pc) $1 = 0x65ad10 "HPost.PostData.63" 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From sholzy2010 at ...43... Fri Mar 8 23:36:51 2013 From: sholzy2010 at ...43... (No Way) Date: Fri, 8 Mar 2013 14:36:51 -0800 (PST) Subject: [Gambas-user] From No Way Message-ID: <1362782211.5509.YahooMailNeo@...3110...> http://phuchungfashion.com/jnoicm/duatwd=uftzyNo Way From gambas at ...2524... Sat Mar 9 10:22:13 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 09 Mar 2013 09:22:13 +0000 Subject: [Gambas-user] Issue 410 in gambas: Signal 11 in gb.net.curl In-Reply-To: <0-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Comment #1 on issue 410 by r... at ...1740...: Signal 11 in gb.net.curl http://code.google.com/p/gambas/issues/detail?id=410 There is also a signal 11 bug in curls exit code. warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffdf637700 (LWP 7686)] [New Thread 0x7fffdee36700 (LWP 7687)] [New Thread 0x7fffddfe7700 (LWP 7688)] [New Thread 0x7fffceac2700 (LWP 7699)] [Thread 0x7fffceac2700 (LWP 7699) exited] Program received signal SIGSEGV, Segmentation fault. 0x00007fffefb7bb40 in curl_multi_cleanup () from /usr/lib/x86_64-linux-gnu/libcurl.so.4 (gdb) bt #0 0x00007fffefb7bb40 in curl_multi_cleanup () from /usr/lib/x86_64-linux-gnu/libcurl.so.4 #1 0x00007fffefdaa7fd in Curl_exit (_object=0x0, _param=0x7ffff6204000) at CCurl.c:556 #2 0x000000000040b3ba in EXEC_native () at gbx_exec.c:1332 #3 0x000000000040b97c in EXEC_public_desc (class=0x0, class at ...2861...=0x6e0168, object=0x61, object at ...2861...=0x0, desc=0x61, nparam=7266216, nparam at ...2861...=0) at gbx_exec.c:1572 #4 0x000000000040ba01 in EXEC_public (class=class at ...2861...=0x6e0168, object=object at ...2861...=0x0, name=name at ...2861...=0x43d997 "_exit", nparam=nparam at ...2861...=0) at gbx_exec.c:1595 #5 0x000000000040f5e8 in exit_class (class=0x6e0168, native=) at gbx_class.c:109 #6 exit_class (native=1 '\001', class=0x6e0168) at gbx_class.c:287 #7 CLASS_clean_up (silent=silent at ...2861...=0 '\000') at gbx_class.c:386 #8 0x0000000000425afa in main_exit (silent=silent at ...2861...=-51 '\315') at gbx.c:128 #9 0x0000000000404927 in main (argc=1, argv=0x7fffffffe0d8) at gbx.c:429 (gdb) p DEBUG_get_position(EXEC_current.cp, EXEC_current.fp, EXEC_current.pc) $1 = 0x43a264 "?" -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Mar 9 15:18:30 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 09 Mar 2013 14:18:30 +0000 Subject: [Gambas-user] Issue 409 in gambas: Object.Type(object) raise Invalide Object error with ValueBox.Type=Date In-Reply-To: <1-6813199134517018827-4139010346687567920-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-4139010346687567920-gambas=googlecode.com@...2524...> <0-6813199134517018827-4139010346687567920-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-4139010346687567920-gambas=googlecode.com@...2524...> Updates: Status: Accepted Comment #2 on issue 409 by benoit.m... at ...626...: Object.Type(object) raise Invalide Object error with ValueBox.Type=Date http://code.google.com/p/gambas/issues/detail?id=409 The bug is not in the ValueBox control, but in the Form Controls property. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Mar 9 15:20:31 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 09 Mar 2013 14:20:31 +0000 Subject: [Gambas-user] Issue 410 in gambas: Signal 11 in gb.net.curl In-Reply-To: <1-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> <0-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #2 on issue 410 by benoit.m... at ...626...: Signal 11 in gb.net.curl http://code.google.com/p/gambas/issues/detail?id=410 The signal 11 in curls exit code is known to be a bug in the curl library. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Sat Mar 9 15:42:07 2013 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Sat, 09 Mar 2013 15:42:07 +0100 Subject: [Gambas-user] I found a bug... or only on my box In-Reply-To: <1362348118.4382.21.camel@...40...> References: <1362348118.4382.21.camel@...40...> Message-ID: <513B4A3F.8030005@...1...> Le 03/03/2013 23:01, Karl Reinl a ?crit : > Salut Beno?t, > > seen on qt4 : > if you change the printer target to .pdf or .ps file, the > .paper switches to 0 = Custom, was 2 = A4 before. > > Same if you change it by code > .OutputFile="/tmp/myOutputFile.pdf" > It seems to be a weird qt4 behaviour. I will try to fix that. > The Landscape is printed on Portrait Orientation. Sorry, I don't understand the sentence. -- Beno?t Minisini From gambas at ...1... Sat Mar 9 15:48:22 2013 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Sat, 09 Mar 2013 15:48:22 +0100 Subject: [Gambas-user] I found a bug... or only on my box In-Reply-To: <513B4A3F.8030005@...1...> References: <1362348118.4382.21.camel@...40...> <513B4A3F.8030005@...1...> Message-ID: <513B4BB6.1070100@...1...> Le 09/03/2013 15:42, Beno?t Minisini a ?crit : > Le 03/03/2013 23:01, Karl Reinl a ?crit : >> Salut Beno?t, >> >> seen on qt4 : >> if you change the printer target to .pdf or .ps file, the >> .paper switches to 0 = Custom, was 2 = A4 before. >> >> Same if you change it by code >> .OutputFile="/tmp/myOutputFile.pdf" >> > > It seems to be a weird qt4 behaviour. I will try to fix that. > After a little thought, I think I won't do anything. I mean, I actually cannot guarantee that changing the printer target will not change any other properties. So I prefer to tell you that the rule is: if you change the printer target, you may have to redefine the other printer properties. I think that changing the printer resets the printer properties to the default values associated with the new printer. Regards, -- Beno?t Minisini From gambas at ...1... Sat Mar 9 16:10:33 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 09 Mar 2013 16:10:33 +0100 Subject: [Gambas-user] gb.form.dialog Dialog.Filter errors In-Reply-To: <20130301210259.GA526@...2774...> References: <20130301210259.GA526@...2774...> Message-ID: <513B50E9.2010100@...1...> Le 01/03/2013 22:02, Tobias Boege a ?crit : > Hi, > > I get an error: > > gb.form: FileView.CheckFilter.127: Bad regular expression: Missing '}' > > when I set a particular class of Dialog.Filter strings which are actually > valid ones for LIKE. According to the docs, FileView uses LIKE to match its > filters. > > Note that this error is only shown when gb.form.dialog is loaded (I think > because the enhanced Dialog uses a FileView, right?). Anyway, the file my > program creates for this test is not shown with either Dialog. (Is this a > distinct issue?) > > Hmm, there are actually three points in this mail: > a) the file is not shown > b) Dialog of gb.form and the one of gb.form.dialog work differently with > their Filter property (AFAICS) because gb.form's one doesn't seem to use > LIKE but the FileView used in the latter does. > c) the error message > > Project attached. > > Regards, > Tobi > It should be fixed in revision #5576. Regards, -- Beno?t Minisini From taboege at ...626... Sat Mar 9 16:31:40 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 9 Mar 2013 16:31:40 +0100 Subject: [Gambas-user] gb.form.dialog Dialog.Filter errors In-Reply-To: <513B50E9.2010100@...1...> References: <20130301210259.GA526@...2774...> <513B50E9.2010100@...1...> Message-ID: <20130309153140.GD529@...2774...> On Sat, 09 Mar 2013, Beno?t Minisini wrote: > Le 01/03/2013 22:02, Tobias Boege a ?crit : > > Hi, > > > > I get an error: > > > > gb.form: FileView.CheckFilter.127: Bad regular expression: Missing '}' > > > > when I set a particular class of Dialog.Filter strings which are actually > > valid ones for LIKE. According to the docs, FileView uses LIKE to match its > > filters. > > > > Note that this error is only shown when gb.form.dialog is loaded (I think > > because the enhanced Dialog uses a FileView, right?). Anyway, the file my > > program creates for this test is not shown with either Dialog. (Is this a > > distinct issue?) > > > > Hmm, there are actually three points in this mail: > > a) the file is not shown > > b) Dialog of gb.form and the one of gb.form.dialog work differently with > > their Filter property (AFAICS) because gb.form's one doesn't seem to use > > LIKE but the FileView used in the latter does. > > c) the error message > > > > Project attached. > > > > Regards, > > Tobi > > > > It should be fixed in revision #5576. > Yes, works. Thanks, Tobi From Karl.Reinl at ...2345... Sat Mar 9 18:03:58 2013 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 09 Mar 2013 18:03:58 +0100 Subject: [Gambas-user] I found a bug... or only on my box In-Reply-To: <513B4A3F.8030005@...1...> References: <1362348118.4382.21.camel@...40...> <513B4A3F.8030005@...1...> Message-ID: <1362848638.2280.46.camel@...40...> Am Samstag, den 09.03.2013, 15:42 +0100 schrieb Beno?t Minisini: > Le 03/03/2013 23:01, Karl Reinl a ?crit : > > Salut Beno?t, > > > > seen on qt4 : > > if you change the printer target to .pdf or .ps file, the > > .paper switches to 0 = Custom, was 2 = A4 before. > > > > Same if you change it by code > > .OutputFile="/tmp/myOutputFile.pdf" > > > > It seems to be a weird qt4 behaviour. I will try to fix that. > > > The Landscape is printed on Portrait Orientation. > > Sorry, I don't understand the sentence. > before changing the printers target to .PDF, the orientation was set to Landscape (Bildschirmfoto1.png), after changing orientation is shown as 1 = Landscape (Bildschirmfoto3.png), but the printer output is to Portrait BTW : if you open properties, without doing anything, the printer output will be really Landscape -- Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: Bildschirmfoto1.png Type: image/png Size: 26312 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Bildschirmfoto2.png Type: image/png Size: 17209 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Bildschirmfoto3.png Type: image/png Size: 26664 bytes Desc: not available URL: From taboege at ...626... Sat Mar 9 18:10:52 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 9 Mar 2013 18:10:52 +0100 Subject: [Gambas-user] Editor.Lines[0].Refresh() does not trigger custom Highlight event Message-ID: <20130309171052.GG529@...2774...> Hi, the attached project shows how just for line 0, the Editor.Lines[0].Refresh() method does not force the Highlight event to kick in (if I have Editor.Highlight = Highlight.Custom set). Is there a reason or is it just a bug? Regards, Tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: editor_lines_0-0.0.1.tar.gz Type: application/octet-stream Size: 4877 bytes Desc: not available URL: From gambas at ...2524... Sat Mar 9 18:16:31 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 09 Mar 2013 17:16:31 +0000 Subject: [Gambas-user] Issue 410 in gambas: Signal 11 in gb.net.curl In-Reply-To: <2-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> <0-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Comment #3 on issue 410 by r... at ...1740...: Signal 11 in gb.net.curl http://code.google.com/p/gambas/issues/detail?id=410 About the knowne exit bug in curl, it's the curl available in 13.04, it bleeding new, would be bad if that's the one in release version. Any references to bug report? About the first signal 11 in this report can you see the source of the problem? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Sat Mar 9 19:34:57 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 09 Mar 2013 19:34:57 +0100 Subject: [Gambas-user] Editor.Lines[0].Refresh() does not trigger custom Highlight event In-Reply-To: <20130309171052.GG529@...2774...> References: <20130309171052.GG529@...2774...> Message-ID: <513B80D1.40709@...1...> Le 09/03/2013 18:10, Tobias Boege a ?crit : > Hi, > > the attached project shows how just for line 0, the > Editor.Lines[0].Refresh() method does not force the Highlight event to kick > in (if I have Editor.Highlight = Highlight.Custom set). > > Is there a reason or is it just a bug? > > Regards, > Tobi > Refresh() just triggers a GUI redraw. It has nothing to do with the Highlight event, that is raised when the editor decides. -- Beno?t Minisini From taboege at ...626... Sat Mar 9 20:11:12 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 9 Mar 2013 20:11:12 +0100 Subject: [Gambas-user] Editor.Lines[0].Refresh() does not trigger custom Highlight event In-Reply-To: <513B80D1.40709@...1...> References: <20130309171052.GG529@...2774...> <513B80D1.40709@...1...> Message-ID: <20130309191112.GI529@...2774...> On Sat, 09 Mar 2013, Beno?t Minisini wrote: > Le 09/03/2013 18:10, Tobias Boege a ?crit : > > Hi, > > > > the attached project shows how just for line 0, the > > Editor.Lines[0].Refresh() method does not force the Highlight event to kick > > in (if I have Editor.Highlight = Highlight.Custom set). > > > > Is there a reason or is it just a bug? > > > > Regards, > > Tobi > > > > Refresh() just triggers a GUI redraw. It has nothing to do with the > Highlight event, that is raised when the editor decides. > Alright. It looked like it did force a Highlight event with all the other line numbers but ok... I now get what I want by resetting Editor.Highlight and then Editor.Goto() one line back and forth. Not really beautiful but seems to work consistently. In case anyone wonders: I'm implementing kind of Editor.ShowString() and Replace$() for use with regular expressions. This requires highlighting the entire text again with a new search query. The Editor doesn't really fit my needs (as my hack above shows) but out of all controls it comes the most close to it I think... Regards, Tobi From gambas at ...1... Sat Mar 9 23:17:22 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 09 Mar 2013 23:17:22 +0100 Subject: [Gambas-user] Autoresize in gridview In-Reply-To: References: Message-ID: <513BB4F2.5060209@...1...> Le 01/03/2013 13:45, Ricardo D?az Mart?n a ?crit : > Hi Benoit, > > I think It could be good idea to add new property to gridview control > related with AutoResize. The name could be something like > ColumnToAutoResize (integer from 0 to gridview.columns.count). > > I try to explain: > Sometimes you're filling a gridview in a resizable form and the row you > want to autoresize when form width change is not the last one. Try to > imagine this example: > > Id Card Name Amount > 424250 Anibal Smith 50.000 > 124580 Mike Anders 10.000 > > If you resize the form it will be nice that autoresize column will be > "Name" instead Amount, isn't it? > > Regards, > Ricardo If you don't want the last column to automatically expand, you have to explicitely define the Expand property of each column you want to expand. Regards, -- Beno?t Minisini From oceanosoftlapalma at ...626... Sun Mar 10 13:36:12 2013 From: oceanosoftlapalma at ...626... (=?UTF-8?B?UmljYXJkbyBEw61heiBNYXJ0w61u?=) Date: Sun, 10 Mar 2013 13:36:12 +0100 Subject: [Gambas-user] Autoresize in gridview In-Reply-To: <513BB4F2.5060209@...1...> References: <513BB4F2.5060209@...1...> Message-ID: Thanks!! 2013/3/9 Beno?t Minisini > Le 01/03/2013 13:45, Ricardo D?az Mart?n a ?crit : > > Hi Benoit, > > > > I think It could be good idea to add new property to gridview control > > related with AutoResize. The name could be something like > > ColumnToAutoResize (integer from 0 to gridview.columns.count). > > > > I try to explain: > > Sometimes you're filling a gridview in a resizable form and the row you > > want to autoresize when form width change is not the last one. Try to > > imagine this example: > > > > Id Card Name Amount > > 424250 Anibal Smith 50.000 > > 124580 Mike Anders 10.000 > > > > If you resize the form it will be nice that autoresize column will be > > "Name" instead Amount, isn't it? > > > > Regards, > > Ricardo > > If you don't want the last column to automatically expand, you have to > explicitely define the Expand property of each column you want to expand. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester > Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the > endpoint security space. For insight on selecting the right partner to > tackle endpoint security challenges, access the full report. > http://p.sf.net/sfu/symantec-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Mar 10 13:44:45 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 10 Mar 2013 13:44:45 +0100 Subject: [Gambas-user] Editor.Lines[0].Refresh() does not trigger custom Highlight event In-Reply-To: <20130309191112.GI529@...2774...> References: <20130309171052.GG529@...2774...> <513B80D1.40709@...1...> <20130309191112.GI529@...2774...> Message-ID: <513C803D.6080406@...1...> Le 09/03/2013 20:11, Tobias Boege a ?crit : > On Sat, 09 Mar 2013, Beno?t Minisini wrote: >> Le 09/03/2013 18:10, Tobias Boege a ?crit : >>> Hi, >>> >>> the attached project shows how just for line 0, the >>> Editor.Lines[0].Refresh() method does not force the Highlight event to kick >>> in (if I have Editor.Highlight = Highlight.Custom set). >>> >>> Is there a reason or is it just a bug? >>> >>> Regards, >>> Tobi >>> >> >> Refresh() just triggers a GUI redraw. It has nothing to do with the >> Highlight event, that is raised when the editor decides. >> > > Alright. It looked like it did force a Highlight event with all the other > line numbers but ok... I now get what I want by resetting Editor.Highlight > and then Editor.Goto() one line back and forth. Not really beautiful but > seems to work consistently. > > In case anyone wonders: I'm implementing kind of Editor.ShowString() and > Replace$() for use with regular expressions. This requires highlighting the > entire text again with a new search query. The Editor doesn't really fit my > needs (as my hack above shows) but out of all controls it comes the most > close to it I think... > > Regards, > Tobi > I don't understand what you want to do exactly with Editor. Could you explain with more details? -- Beno?t Minisini From taboege at ...626... Sun Mar 10 14:13:55 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 10 Mar 2013 14:13:55 +0100 Subject: [Gambas-user] Editor.Lines[0].Refresh() does not trigger custom Highlight event In-Reply-To: <513C803D.6080406@...1...> References: <20130309171052.GG529@...2774...> <513B80D1.40709@...1...> <20130309191112.GI529@...2774...> <513C803D.6080406@...1...> Message-ID: <20130310131355.GC526@...2774...> On Sun, 10 Mar 2013, Beno?t Minisini wrote: > Le 09/03/2013 20:11, Tobias Boege a ?crit : > > On Sat, 09 Mar 2013, Beno?t Minisini wrote: > >> Le 09/03/2013 18:10, Tobias Boege a ?crit : > >>> Hi, > >>> > >>> the attached project shows how just for line 0, the > >>> Editor.Lines[0].Refresh() method does not force the Highlight event to kick > >>> in (if I have Editor.Highlight = Highlight.Custom set). > >>> > >>> Is there a reason or is it just a bug? > >>> > >>> Regards, > >>> Tobi > >>> > >> > >> Refresh() just triggers a GUI redraw. It has nothing to do with the > >> Highlight event, that is raised when the editor decides. > >> > > > > Alright. It looked like it did force a Highlight event with all the other > > line numbers but ok... I now get what I want by resetting Editor.Highlight > > and then Editor.Goto() one line back and forth. Not really beautiful but > > seems to work consistently. > > > > In case anyone wonders: I'm implementing kind of Editor.ShowString() and > > Replace$() for use with regular expressions. This requires highlighting the > > entire text again with a new search query. The Editor doesn't really fit my > > needs (as my hack above shows) but out of all controls it comes the most > > close to it I think... > > > > Regards, > > Tobi > > > > I don't understand what you want to do exactly with Editor. Could you > explain with more details? > Of course. I wasn't clear at all. The goal is to enter a regular expression and then highlight all matching strings in a text (like Editor.ShowString() does for fixed strings). One may also replace all matches by another string (currently not containing submatches of the original expression because it was just a POC for an article about gb.pcre). I'd just leave this task to an invocation of 'sed'. BTW, I finished the thing yesterday and the attached code may show better what I was trying to explain. Regards, Tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: regex_search_replace-1.0.1.tar.gz Type: application/octet-stream Size: 6781 bytes Desc: not available URL: From gambas at ...2524... Sun Mar 10 17:05:59 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 10 Mar 2013 16:05:59 +0000 Subject: [Gambas-user] Issue 409 in gambas: Object.Type(object) raise Invalide Object error with ValueBox.Type=Date In-Reply-To: <2-6813199134517018827-4139010346687567920-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-4139010346687567920-gambas=googlecode.com@...2524...> <0-6813199134517018827-4139010346687567920-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-4139010346687567920-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #3 on issue 409 by benoit.m... at ...626...: Object.Type(object) raise Invalide Object error with ValueBox.Type=Date http://code.google.com/p/gambas/issues/detail?id=409 Fixed in revision #5578 -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sun Mar 10 17:22:11 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 10 Mar 2013 16:22:11 +0000 Subject: [Gambas-user] Issue 410 in gambas: Signal 11 in gb.net.curl In-Reply-To: <3-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> <0-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Comment #4 on issue 410 by benoit.m... at ...626...: Signal 11 in gb.net.curl http://code.google.com/p/gambas/issues/detail?id=410 The curl exit crash has been fixed upstream (see issue 405). The other crash occurs while trying to copy 3MB of data from the internal HttpClient buffer to the libcurl library so that it sends it. It means that I need to reproduce it with a project on my machine to see where the fault comes from? Gambas or libcurl? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From ea7dfh at ...2382... Sun Mar 10 18:34:31 2013 From: ea7dfh at ...2382... (Jesus) Date: Sun, 10 Mar 2013 18:34:31 +0100 Subject: [Gambas-user] Valuebox change event? Message-ID: <513CC427.70900@...2382...> Hi all Since gambas2 I've not used Valuebox until now in Gambas3, but now I'm surprised it haven't a '_Change()' event. Anyone could tell about it, if you have got the need of this event or not? And how I supposedly could detect whether its content has changed? Of course, I always can inherit and implement a change event, but I was curious on why this widget lacks the change event natively. Thanks for your time Best regards -- Jesus Guardon From gambas at ...1... Sun Mar 10 18:43:48 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 10 Mar 2013 18:43:48 +0100 Subject: [Gambas-user] Valuebox change event? In-Reply-To: <513CC427.70900@...2382...> References: <513CC427.70900@...2382...> Message-ID: <513CC654.9000308@...1...> Le 10/03/2013 18:34, Jesus a ?crit : > Hi all > > Since gambas2 I've not used Valuebox until now in Gambas3, but now I'm > surprised it haven't a '_Change()' event. Anyone could tell about it, if > you have got the need of this event or not? And how I supposedly could > detect whether its content has changed? > > Of course, I always can inherit and implement a change event, but I was > curious on why this widget lacks the change event natively. > > Thanks for your time > > Best regards > Mmm... You're right, a Change event would be useful... I will see if I can add it... As a workaround, you can create an observer on the first inner child of the control to catch it. hObs = New Observer(TheValueBox.Children[0]) As "TheValueBox" ... Public Sub TheValueBox_Change() ... End But beware that you must do it just after having set the Type property (because it recreates the inner widget each time you change the ValueBox type). Regards, -- Beno?t Minisini From ea7dfh at ...2382... Sun Mar 10 19:25:28 2013 From: ea7dfh at ...2382... (Jesus) Date: Sun, 10 Mar 2013 19:25:28 +0100 Subject: [Gambas-user] Valuebox change event? In-Reply-To: <513CC654.9000308@...1...> References: <513CC427.70900@...2382...> <513CC654.9000308@...1...> Message-ID: <513CD018.4000802@...2382...> El 10/03/13 18:43, Beno?t Minisini escribi?: > Le 10/03/2013 18:34, Jesus a ?crit : >> Hi all >> >> Since gambas2 I've not used Valuebox until now in Gambas3, but now I'm >> surprised it haven't a '_Change()' event. Anyone could tell about it, if >> you have got the need of this event or not? And how I supposedly could >> detect whether its content has changed? >> >> Of course, I always can inherit and implement a change event, but I was >> curious on why this widget lacks the change event natively. >> >> Thanks for your time >> >> Best regards >> > > Mmm... You're right, a Change event would be useful... I will see if I > can add it... > > As a workaround, you can create an observer on the first inner child of > the control to catch it. > > hObs = New Observer(TheValueBox.Children[0]) As "TheValueBox" > ... > Public Sub TheValueBox_Change() > ... > End > > But beware that you must do it just after having set the Type property > (because it recreates the inner widget each time you change the ValueBox > type). > > Regards, > Hi Great! Thanks for the workaround, it helps a lot. Looking forward to the native change event ;-) Regards -- Jesus Guardon From gambas at ...2524... Mon Mar 11 10:59:34 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 11 Mar 2013 09:59:34 +0000 Subject: [Gambas-user] Issue 410 in gambas: Signal 11 in gb.net.curl In-Reply-To: <4-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> <0-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Comment #5 on issue 410 by r... at ...1740...: Signal 11 in gb.net.curl http://code.google.com/p/gambas/issues/detail?id=410 You see that in the gdb output, that it copies 3MB? Thats quite odd, while the code I use simply calls the google api to create a dial image of a few hundreds kb. This is the code called http://domotiga.nl/projects/domotiga/repository/entry/trunk/DomotiGa3/.src/FHome.class But when I try to isolate it more, I can't get it to crash then. When part of my project it crashes every time though, will try some more.. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From taboege at ...626... Mon Mar 11 17:43:43 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 11 Mar 2013 17:43:43 +0100 Subject: [Gambas-user] Gambas 3.4.0 making installation package Message-ID: <20130311164343.GF497@...2774...> Hi, Hans said that he had problems creating an installation package using Gambas 3.4.0 on Ubuntu 12.04 (I suppose). He said, with step 10 the program spins and he could only 'reboot' (I just translate what he reported). Although, with revision 5578 in a virtual machine, everything works fine for him. Has anyone had similar issues recently? Regards, Tobi From ron at ...1740... Mon Mar 11 21:23:09 2013 From: ron at ...1740... (Ron) Date: Mon, 11 Mar 2013 21:23:09 +0100 Subject: [Gambas-user] Using valgrind with Gambas3 project. Message-ID: I cannot run valgrind anymore together with a Gambas3 project to check memory alloc issues. I use this syntax inside the project directory: $ gbc3 -agpmt $ valgrind --log-file=/tmp/valgrind.log --tool=memcheck --num-callers=50 gbx3 -p But then I end up in this: Welcome to the Gambas debugger. * ? > Did I miss something? Regards, Ron. From taboege at ...626... Mon Mar 11 22:02:58 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 11 Mar 2013 22:02:58 +0100 Subject: [Gambas-user] Using valgrind with Gambas3 project. In-Reply-To: References: Message-ID: <20130311210258.GK497@...2774...> On Mon, 11 Mar 2013, Ron wrote: > I cannot run valgrind anymore together with a Gambas3 project to check > memory alloc issues. > > I use this syntax inside the project directory: > > $ gbc3 -agpmt > $ valgrind --log-file=/tmp/valgrind.log --tool=memcheck --num-callers=50 gbx3 -p > > But then I end up in this: > > Welcome to the Gambas debugger. > * ? > > > > Did I miss something? > According to "gbx3 --help", this is the intended behaviour for the -p switch you gave: "activate profiling and debugging mode" and you got dropped into debug mode apparently. Regards, Tobi From gambas at ...2524... Mon Mar 11 22:08:54 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 11 Mar 2013 21:08:54 +0000 Subject: [Gambas-user] Issue 410 in gambas: Signal 11 in gb.net.curl In-Reply-To: <5-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> <0-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Comment #6 on issue 410 by r... at ...1740...: Signal 11 in gb.net.curl http://code.google.com/p/gambas/issues/detail?id=410 Attached the valgrind memcheck-full output of starting the project, let it run for a second or 10 and then run the signal 11 code. Attachments: valgrind.tar.gz 245 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From ron at ...1740... Mon Mar 11 22:10:30 2013 From: ron at ...1740... (Ron) Date: Mon, 11 Mar 2013 22:10:30 +0100 Subject: [Gambas-user] Using valgrind with Gambas3 project. In-Reply-To: <20130311210258.GK497@...2774...> References: <20130311210258.GK497@...2774...> Message-ID: I left it out and its OK. Thanks. Op 11 mrt. 2013 22:05 schreef "Tobias Boege" het volgende: > On Mon, 11 Mar 2013, Ron wrote: > > I cannot run valgrind anymore together with a Gambas3 project to check > > memory alloc issues. > > > > I use this syntax inside the project directory: > > > > $ gbc3 -agpmt > > $ valgrind --log-file=/tmp/valgrind.log --tool=memcheck --num-callers=50 > gbx3 -p > > > > But then I end up in this: > > > > Welcome to the Gambas debugger. > > * ? > > > > > > > Did I miss something? > > > > According to "gbx3 --help", this is the intended behaviour for the -p > switch > you gave: "activate profiling and debugging mode" and you got dropped into > debug mode apparently. > > Regards, > Tobi > > > ------------------------------------------------------------------------------ > Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester > Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the > endpoint security space. For insight on selecting the right partner to > tackle endpoint security challenges, access the full report. > http://p.sf.net/sfu/symantec-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Tue Mar 12 03:47:39 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 12 Mar 2013 02:47:39 +0000 Subject: [Gambas-user] Issue 411 in gambas: something is wrong Message-ID: <0-6813199134517018827-13399171626037526554-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 411 by naythe... at ...626...: something is wrong http://code.google.com/p/gambas/issues/detail?id=411 1) Describe the problem. Fillstyle issues 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: 3.4 Operating system: Linux Distribution: Mint14 Architecture: x86 GUI component: QT3 / QT4 Desktop used: KDE 3) Provide a little project that reproduces the bug or the crash. Draw.Begin(da) 'da - DrawArea Draw.Fillstyle = 13 Draw.Ellipse(55, 78, 190, 300) Draw.End 5) Explain clearly how to reproduce the bug or the crash. any value put in for the 'Fillstyle' results in a solid fill previous version did the fill correctly 6) By doing that carefully, you have done 50% of the bug fix job! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From eilert-sprachen at ...221... Tue Mar 12 13:24:27 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 12 Mar 2013 13:24:27 +0100 Subject: [Gambas-user] Gambas2: Replace doesn't replace Message-ID: <513F1E7B.8080109@...221...> Hi folks, This is a just another case for me to experience trouble with Replace. Look at this: PUBLIC SUB ReplaceStringDruckformulare(kartei AS String, alterString AS String, neuerString AS String) DIM pfad, datei, txt AS String pfad = ini.pfadKarteien() &/ kartei &/ "texte" FOR EACH datei IN Dir(pfad, "*.frm") txt = file.Load(pfad &/ datei) Replace(txt, alterString, neuerString) file.Save(pfad &/ datei, txt) NEXT END It does load and save the files, but they remain untouched, i. e. Replace doesn't replace anything. When I give e. g. alterString = "Name1" neuerString = "NameNew" nothing happens. What am I doing wrong? Thanks for your ideas! Rolf From oceanosoftlapalma at ...626... Tue Mar 12 13:54:45 2013 From: oceanosoftlapalma at ...626... (=?UTF-8?B?UmljYXJkbyBEw61heiBNYXJ0w61u?=) Date: Tue, 12 Mar 2013 13:54:45 +0100 Subject: [Gambas-user] Gambas2: Replace doesn't replace In-Reply-To: <513F1E7B.8080109@...221...> References: <513F1E7B.8080109@...221...> Message-ID: Hi Rolf, You have to use in your code txt = Replace(txt, alterString, neuerString) instead of Replace(txt, alterString, neuerString) In http://gambasdoc.org/help/lang/replace?v2 you can see as Replace works: *Result* *= Replace (* *String* *,* *Pattern* *,* *ReplaceString* [ *,* *Comparison* ] *)* Regards, Ricardo From eilert-sprachen at ...221... Tue Mar 12 15:38:12 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 12 Mar 2013 15:38:12 +0100 Subject: [Gambas-user] Gambas2: Replace doesn't replace In-Reply-To: References: <513F1E7B.8080109@...221...> Message-ID: <513F3DD4.9000009@...221...> Am 12.03.2013 13:54, schrieb Ricardo D?az Mart?n: > Hi Rolf, > > You have to use in your code > > txt = Replace(txt, alterString, neuerString) > > instead of > > Replace(txt, alterString, neuerString) > > Aaaah grrrrrr - I made just the same mistake last week but found it after some time :-) "Sometimes you don't see the forest of all the trees" as we put in German... Thanks so much! Rolf From gambas.fr at ...626... Tue Mar 12 15:51:30 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 12 Mar 2013 15:51:30 +0100 Subject: [Gambas-user] =?iso-8859-1?q?Beno=EEt_is_over_for_at_least_one_we?= =?iso-8859-1?q?ek?= Message-ID: Its computer is broken, and he will don't have the new one before one week . So he join me to inform every one that he can't work on gambas during this time. Regards -- Fabien Bodard From ron at ...1740... Tue Mar 12 15:54:28 2013 From: ron at ...1740... (Ron) Date: Tue, 12 Mar 2013 15:54:28 +0100 Subject: [Gambas-user] =?iso-8859-1?q?Beno=EEt_is_over_for_at_least_one_we?= =?iso-8859-1?q?ek?= In-Reply-To: References: Message-ID: Tell him to buy a Chromebook Pixel, it's great for Gambas development. ;P Regards, Ron_2nd. 2013/3/12 Fabien Bodard : > Its computer is broken, and he will don't have the new one before one week > . So he join me to inform every one that he can't work on gambas during > this time. > > Regards > -- > Fabien Bodard > ------------------------------------------------------------------------------ > Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester > Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the > endpoint security space. For insight on selecting the right partner to > tackle endpoint security challenges, access the full report. > http://p.sf.net/sfu/symantec-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From antonio.j.teixeira at ...626... Wed Mar 13 11:50:02 2013 From: antonio.j.teixeira at ...626... (Antonio Teixeira) Date: Wed, 13 Mar 2013 10:50:02 +0000 Subject: [Gambas-user] Gambas and Touchscreen with multitouch Message-ID: Hello there, I usualy code in gambas and for the first time I made an application to a tablet with multitouch. The problem is that, I use mousedown and mousup events but when I touch the screen the system generates lots and lots of events of that kind. One touch usualy generates at least 14 events of mousedown and mouseup. Anyone had this problem or knows any way to fix this? Thanks in advance Ant?nio Teixeira From eilert-sprachen at ...221... Wed Mar 13 12:06:58 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 13 Mar 2013 12:06:58 +0100 Subject: [Gambas-user] Gambas3 IDE editor and lines Message-ID: <51405DD2.70005@...221...> Hi folks, Just wanted to ask if you experience the same on your Gambas3 IDE: When I let the project run and end, the editor doesn't return to the original line in the program code when some of the functions are collapsed. It seems it doesn't count the lines correctly then. Or is this only on my system? Rolf From gambas at ...2524... Wed Mar 13 12:33:26 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 13 Mar 2013 11:33:26 +0000 Subject: [Gambas-user] Issue 412 in gambas: Wish: Add a "picture" property to the panel container Message-ID: <0-6813199134517018827-11404429258308187080-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 412 by Kokok... at ...626...: Wish: Add a "picture" property to the panel container http://code.google.com/p/gambas/issues/detail?id=412 The subject pretty tells everything; i ask this to be able to set a background image in some parts of the form. Other useful things could be the ability to set the image paint mode; i mean repeat-x, repeat-y,stretch,single... Alternatively, an 'arrange' property for the picturebox component would be fine :) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Wed Mar 13 16:25:54 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 13 Mar 2013 15:25:54 +0000 Subject: [Gambas-user] Issue 413 in gambas: Datebox does not display month Message-ID: <0-6813199134517018827-5432978320895909011-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 413 by clioffe.... at ...626...: Datebox does not display month http://code.google.com/p/gambas/issues/detail?id=413 the Datebox displays the month as 'S' not the usual number. I Added the Screenshot [System] OperatingSystem=Linux Kernel=3.9.0-999-generic Architecture=x86_64 Distribution=Ubuntu Raring Ringtail (development branch) Desktop=GNOME Theme=QGtk Language=en_PH.UTF-8 Memory=2881M [Libraries] GStreamer=libgstreamer-0.10.so.0.30.0 GTK+=libgtk-x11-2.0.so.0.2400.16 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 Poppler=libpoppler.so.28.0.0 Attachments: screenshot.png 54.7 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From kevinfishburne at ...1887... Thu Mar 14 07:18:16 2013 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 14 Mar 2013 02:18:16 -0400 Subject: [Gambas-user] (hopefully) small feature suggestion Message-ID: <51416BA8.50608@...1887...> Currently when you perform a search the columns displayed are File, Line, Col., and Text. It would be extremely convenient if there was also a Procedure column just after the File column. I frequently find myself clicking on each row just to see what procedure the result was found in, so this change would give a more "bird's eye view" of the results. Something to put on the back burner, maybe? Also, sorry about your PC Beno?t. I'm a hardware guy so I know all about that. :/ The good news is that now you have an excuse to get a machine so ridiculously powerful it will temp you to be a lazy programmer. Fastest RAM, best CPU, RAID 5 with SSD's: the works! -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...2524... Fri Mar 15 10:24:50 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 15 Mar 2013 09:24:50 +0000 Subject: [Gambas-user] Issue 410 in gambas: Signal 11 in gb.net.curl In-Reply-To: <6-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> References: <6-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> <0-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Message-ID: <7-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Comment #7 on issue 410 by r... at ...1740...: Signal 11 in gb.net.curl http://code.google.com/p/gambas/issues/detail?id=410 The first signal 11 crash in this ticket is caused by the changes done in gb.net.curl revision 5542, revision 5541 works without crashing. These changes were done after request of https://code.google.com/p/gambas/issues/detail?id=404 -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Mar 15 19:11:38 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 15 Mar 2013 18:11:38 +0000 Subject: [Gambas-user] Issue 410 in gambas: Signal 11 in gb.net.curl In-Reply-To: <7-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> References: <7-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> <0-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Message-ID: <8-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Comment #8 on issue 410 by r... at ...1740...: Signal 11 in gb.net.curl http://code.google.com/p/gambas/issues/detail?id=410 And the Gambas code triggering the crash in http client r5542 is this: When sValue = "" it crashes... Any other value is ok. It crashes on cRpc.Call() (which does http client stuff in gb.xmlrpc component) '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' set global var '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Public Function SetGlobalVar(sVar As String, sValue As String) Dim fRpc As RpcFunction Dim cRpc As RpcClient Dim vVar As New Variant[] Dim bOk As Boolean fRpc = New RpcFunction("globalvar.set", [XmlRpc.xString, XmlRpc.xString], XmlRpc.xBoolean) cRpc = New RpcClient(fRpc) cRpc.URL = "http://" & Main.sXMLRPCHost & ":" & Main.iXMLRPCPort vVar.Add(sVar) vVar.Add(sValue) Try bOk = cRpc.Call(vVar) If Error Then Main.WriteLog(("Error: ") & ERROR.Text & (" when posting to URL 'http://") & Main.sXMLRPCHost & ":" & Main.iXMLRPCPort & "'") If bOk Then Main.WriteLog(("Successfully set '") & sVar & ("' to '") & sValue & "'.") Else Main.WriteLog(("Error: There was a problem setting '") & sVar & ("' to '") & sValue & "'.") Endif End -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Mar 15 19:12:49 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 15 Mar 2013 18:12:49 +0000 Subject: [Gambas-user] Issue 410 in gambas: Signal 11 in gb.net.curl In-Reply-To: <8-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> References: <8-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> <0-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Message-ID: <9-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Comment #9 on issue 410 by r... at ...1740...: Signal 11 in gb.net.curl http://code.google.com/p/gambas/issues/detail?id=410 It does the call against gambas xmlrpc server code. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Mar 15 23:55:52 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 15 Mar 2013 22:55:52 +0000 Subject: [Gambas-user] Issue 414 in gambas: Error on closing stream Message-ID: <0-6813199134517018827-12248524037249887996-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 414 by jussi.la... at ...626...: Error on closing stream http://code.google.com/p/gambas/issues/detail?id=414 1) Describe the problem. I get error message "[53] Stream is closed. ?" without apparent reason. I think Process_Read() event is executed, even when stream is closed (or Process.Close() doesn't close the stream properly). 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK or BRANCHES/2.0 or 2.22.0 Revision: r5581 Operating system: Linux Distribution: Xubuntu Architecture: x86_64 Desktop used: XFCE 3) Provide a little project that reproduces the bug or the crash. Attached. 5) Explain clearly how to reproduce the bug or the crash. Click on Start button, and then before 10 seconds pass, click on Exit. Attachments: StreamBug-0.0.1.tar.gz 4.8 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Mar 16 11:28:19 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 16 Mar 2013 10:28:19 +0000 Subject: [Gambas-user] Issue 410 in gambas: Signal 11 in gb.net.curl In-Reply-To: <9-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> References: <9-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> <0-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Message-ID: <10-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Comment #10 on issue 410 by adrien.p... at ...626...: Signal 11 in gb.net.curl http://code.google.com/p/gambas/issues/detail?id=410 Hello, I had a similar issue with gb.net.curl recently (valgrind logs are close), and I fixed it in revision #5581. Can you tell me if this revision solved your problem ? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From ian.roper at ...1974... Sun Mar 17 04:53:13 2013 From: ian.roper at ...1974... (Ian) Date: Sun, 17 Mar 2013 11:53:13 +0800 Subject: [Gambas-user] Wizard control in Gambas 3.4 - Not responding to events ? In-Reply-To: <513F1E7B.8080109@...221...> References: <513F1E7B.8080109@...221...> Message-ID: <1413745.l5Mb5ACV2s@...2506...> Greetings all, I find that some Wizard controls are not responding to events. Given that this control is a little unusual, I may not be using it in the right way. ? When you right click on the Wizard in the editor, not all of the possible events are displayed. To access these events, you have to manually type... Private Sub Wizard1_ The full(?) event list is then displayed. I have included a small project as required to display this. Am I doing it the wrong way or is it really a bug ? Regards, Ian - Perth Western Australia. [System] OperatingSystem=Linux Kernel=3.5.0-25-generic Architecture=x86 Distribution=Ubuntu 12.10 Desktop=GNOME Theme=QGtk Language=en_AU.UTF-8 Memory=4036M [Libraries] GStreamer=libgstreamer-0.10.so.0.30.0 GTK+=libgtk-x11-2.0.so.0.2400.13 Poppler=libpoppler.so.28.0.0 Qt4=libQtCore.so.4.8.3 SDL=libSDL-1.2.so.0.11.4 -------------- next part -------------- A non-text attachment was scrubbed... Name: WizardExample.tar.gz Type: application/x-compressed-tar Size: 10240 bytes Desc: not available URL: From taboege at ...626... Sun Mar 17 12:30:01 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 17 Mar 2013 12:30:01 +0100 Subject: [Gambas-user] Wizard control in Gambas 3.4 - Not responding to events ? Message-ID: <20130317113001.GB536@...2774...> On Sun, 17 Mar 2013, Ian wrote: > Greetings all, > I find that some Wizard controls are not responding to events. > Given that this control is a little unusual, I may not be using it in the > right way. ? > > When you right click on the Wizard in the editor, not all of the possible > events are displayed. > > To access these events, you have to manually type... > Private Sub Wizard1_ > The full(?) event list is then displayed. > > I have included a small project as required to display this. > Am I doing it the wrong way or is it really a bug ? > You should not open a new thread by replying to an already existing one. It screws up at least my mail program's management of mail threads. If you don't mind, I pull this message out of "Gambas2: Replace doesn't replace". Next, you seem to mix two unrelated problems: 1) Not all Wizard events are displayed in the IDE form editor I don't see this problem with rev#5576 (post-3.4). 2) Some events don't get raised at runtime Well, Wizard is what I would call a "compound control". It is a complex control written in Gambas made up of simpler ones. To make the internal, simple controls work together, it must react to (and consume) some of their events. Why would you intercept, e.g. Wizard_MouseDown() or Wizard_Leave()? The Wizard already manages its contents so that you don't have to. Generally, these "compound controls" provide a more abstract set of events to work with - and these are guaranteed to not be consumed by itself. Finally, regarding those Wizard events which didn't work in your project: Event handlers must always be "Public Sub" so that the event-raising object can find them. The ones which didn't work in your project were "Private Sub" and yeah, that's why they didn't work. Regards, Tobi From gambas at ...1... Sun Mar 17 20:24:23 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 17 Mar 2013 20:24:23 +0100 Subject: [Gambas-user] I'm back! Message-ID: <51461867.6070308@...1...> Hi, I finally got a new PC with a four-core CPUs, more ram, and a bigger screen. :-) Now I have ton of mails for Gambas (and for my job) to catch up, so be patient (again)! -- Beno?t Minisini From rmorgan62 at ...626... Sun Mar 17 20:40:43 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Sun, 17 Mar 2013 12:40:43 -0700 Subject: [Gambas-user] I'm back! In-Reply-To: <51461867.6070308@...1...> References: <51461867.6070308@...1...> Message-ID: Welcome back! On Sun, Mar 17, 2013 at 12:24 PM, Beno?t Minisini wrote: > Hi, > > I finally got a new PC with a four-core CPUs, more ram, and a bigger > screen. :-) > > Now I have ton of mails for Gambas (and for my job) to catch up, so be > patient (again)! > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From gambas at ...2524... Sun Mar 17 21:46:14 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 17 Mar 2013 20:46:14 +0000 Subject: [Gambas-user] Issue 411 in gambas: something is wrong In-Reply-To: <0-6813199134517018827-13399171626037526554-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-13399171626037526554-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-13399171626037526554-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-3.4.0 Comment #1 on issue 411 by benoit.m... at ...626...: something is wrong http://code.google.com/p/gambas/issues/detail?id=411 Draw.FillStyle has not been implemented yet (in the new Draw class based on the Paint class). I will try to do it... -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Mon Mar 18 01:00:39 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 18 Mar 2013 00:00:39 +0000 Subject: [Gambas-user] Issue 411 in gambas: something is wrong In-Reply-To: <1-6813199134517018827-13399171626037526554-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-13399171626037526554-gambas=googlecode.com@...2524...> <0-6813199134517018827-13399171626037526554-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-13399171626037526554-gambas=googlecode.com@...2524...> Comment #2 on issue 411 by naythe... at ...626...: something is wrong http://code.google.com/p/gambas/issues/detail?id=411 kk, thought i was doing something wrong i gave myself a bald spot. pulling my hair from frustration and i just want to thank you for bringing Gambas to life. and making it what it is.. an awesome dev environment all your hard work is ever so.. appreciated -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Mon Mar 18 01:50:31 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 18 Mar 2013 00:50:31 +0000 Subject: [Gambas-user] Issue 411 in gambas: Draw.FillStyle does not work In-Reply-To: <2-6813199134517018827-2111304141315188805-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-2111304141315188805-gambas=googlecode.com@...2524...> <0-6813199134517018827-2111304141315188805-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-2111304141315188805-gambas=googlecode.com@...2524...> Updates: Summary: Draw.FillStyle does not work Status: Fixed Comment #3 on issue 411 by benoit.m... at ...626...: Draw.FillStyle does not work http://code.google.com/p/gambas/issues/detail?id=411 Thanks. By the way, the bug has been fixed in revision #5582. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Mon Mar 18 02:04:06 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 18 Mar 2013 01:04:06 +0000 Subject: [Gambas-user] Issue 413 in gambas: Datebox does not display month In-Reply-To: <0-6813199134517018827-5432978320895909011-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-5432978320895909011-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-5432978320895909011-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-3.4.0 Comment #1 on issue 413 by benoit.m... at ...626...: Datebox does not display month http://code.google.com/p/gambas/issues/detail?id=413 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Mon Mar 18 03:02:50 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 18 Mar 2013 03:02:50 +0100 Subject: [Gambas-user] Gambas and Touchscreen with multitouch In-Reply-To: References: Message-ID: <514675CA.4020204@...1...> Le 13/03/2013 11:50, Antonio Teixeira a ?crit : > Hello there, > > I usualy code in gambas and for the first time I made an application to a > tablet with multitouch. The problem is that, I use mousedown and mousup > events but when I touch the screen the system generates lots and lots of > events of that kind. One touch usualy generates at least 14 events of > mousedown and mouseup. Anyone had this problem or knows any way to fix > this? > Thanks in advance > > Ant?nio Teixeira As I don't have any multitouch device, I need your collaboration! First, tell if you use GTK+ or QT4. Then, can you make a little project that allows you to send me the contents (i.e. Mouse.X, Mouse.Y and Mouse.Button) of all mousedown and mouseup events generated by one touch? Thanks in advance. -- Beno?t Minisini From willy at ...2734... Mon Mar 18 19:30:27 2013 From: willy at ...2734... (Willy Raets) Date: Mon, 18 Mar 2013 19:30:27 +0100 Subject: [Gambas-user] IconView bug on LXDE 0.5.11 Message-ID: <1363631427.3882.13.camel@...3024...> When running a Gambas application using gb.qt4 on Lubuntu 12.10 with LXDE 0.5.11 IconView shows black. Using gb.gui or gb.gtk poses no problems, IconView shows normal. Problem is ONLY with LXDE 0.5.11, previous version of Lubuntu 12.04 with LXDE 0.5.8 shows the IconView normal. So does LXDE 0.5.10 on a Fedora box. Tested Xubuntu 12.10 with Xfce 0.4.10 as well, no problem there. On LXDE 0.5.11 I tested with both Gambas 3.4 and Gambas 3.4 rev. #5582 Attached a source code archive with an example. System specification of the Lubuntu 12.10 LXDE 0.5.10 (in VM) are: [System] OperatingSystem=Linux Kernel=3.5.0-25-generic Architecture=x86 Distribution=Ubuntu 12.10 Desktop=LXDE Theme=QGtk Language=en_US.UTF-8 Memory=1003M [Libraries] GStreamer=libgstreamer-0.10.so.0.30.0 GTK+=libgtk-x11-2.0.so.0.2400.13 Poppler=libpoppler.so.28.0.0 Qt4=libQtCore.so.4.8.3 SDL=libSDL-1.2.so.0.11.4 Note: A user on Lubuntu 12.10 discovered this problem in one of my applications and he wasn't running in VM, so it is not VM releated. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org -------------- next part -------------- A non-text attachment was scrubbed... Name: IconViewBug-0.0.1.tar.gz Type: application/x-compressed-tar Size: 22839 bytes Desc: not available URL: From gambas at ...1... Mon Mar 18 19:46:47 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 18 Mar 2013 19:46:47 +0100 Subject: [Gambas-user] IconView bug on LXDE 0.5.11 In-Reply-To: <1363631427.3882.13.camel@...3024...> References: <1363631427.3882.13.camel@...3024...> Message-ID: <51476117.7080400@...1...> Le 18/03/2013 19:30, Willy Raets a ?crit : > When running a Gambas application using gb.qt4 on Lubuntu 12.10 with > LXDE 0.5.11 IconView shows black. > Using gb.gui or gb.gtk poses no problems, IconView shows normal. > > Problem is ONLY with LXDE 0.5.11, previous version of Lubuntu 12.04 with > LXDE 0.5.8 shows the IconView normal. So does LXDE 0.5.10 on a Fedora > box. Tested Xubuntu 12.10 with Xfce 0.4.10 as well, no problem there. > > On LXDE 0.5.11 I tested with both Gambas 3.4 and Gambas 3.4 rev. #5582 > > Attached a source code archive with an example. > > System specification of the Lubuntu 12.10 LXDE 0.5.10 (in VM) are: > [System] > OperatingSystem=Linux > Kernel=3.5.0-25-generic > Architecture=x86 > Distribution=Ubuntu 12.10 > Desktop=LXDE > Theme=QGtk > Language=en_US.UTF-8 > Memory=1003M > > [Libraries] > GStreamer=libgstreamer-0.10.so.0.30.0 > GTK+=libgtk-x11-2.0.so.0.2400.13 > Poppler=libpoppler.so.28.0.0 > Qt4=libQtCore.so.4.8.3 > SDL=libSDL-1.2.so.0.11.4 > > Note: A user on Lubuntu 12.10 discovered this problem in one of my > applications and he wasn't running in VM, so it is not VM releated. > What happens if you change the widget theme (QGtk)? -- Beno?t Minisini From vuott at ...325... Mon Mar 18 19:55:32 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 18 Mar 2013 18:55:32 +0000 (GMT) Subject: [Gambas-user] Sending E-Mail... Message-ID: <1363632932.52625.YahooMailClassic@...3054...> Hello, I would like to point out what a forum member of "Gambas-it.org" wrote about the problem of sending email: ******** These days I tried the component gb.net.smtp with poor results, then I started to study and I made a small class to send mail with a Telnet terminal. But I would like to know if the Socket of gambas could somehow replace Telnet to communicate with the SMTP server. 220 posta.hextra.it Service ready and then it seems to disconnect !!! Have you had similar experiences ? ********* Well, as we can help our friend? Thanks vuott From vuott at ...325... Mon Mar 18 20:02:47 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 18 Mar 2013 19:02:47 +0000 (GMT) Subject: [Gambas-user] R: Sending E-Mail... In-Reply-To: <1363632932.52625.YahooMailClassic@...3054...> Message-ID: <1363633367.74341.YahooMailClassic@...3064...> Opsss I forget a line ! So I re-write the message of our friend: ******** These days I tried the component gb.net.smtp with poor results, then I started to study and I made a small class to send mail with a Telnet terminal. But I would like to know if the Socket of gambas could somehow replace Telnet to communicate with the SMTP server. I did a couple of tests, but I will only return the output to connect to the server 220 posta.hextra.it Service ready and then it seems to disconnect !!! Have you had similar experiences ? ********* From vuott at ...325... Mon Mar 18 20:37:30 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 18 Mar 2013 19:37:30 +0000 (GMT) Subject: [Gambas-user] Sending E-Mail... - BIS Message-ID: <1363635450.7390.YahooMailClassic@...3064...> Our friend with a subsequent message, he stated that the server wants to authenticate, but after the authentication the server does not reach the "timeout". From willy at ...2734... Mon Mar 18 21:50:17 2013 From: willy at ...2734... (Willy Raets) Date: Mon, 18 Mar 2013 21:50:17 +0100 Subject: [Gambas-user] Sending E-Mail... In-Reply-To: <1363632932.52625.YahooMailClassic@...3054...> References: <1363632932.52625.YahooMailClassic@...3054...> Message-ID: <1363639817.2732.8.camel@...3024...> On Mon, 2013-03-18 at 18:55 +0000, Ru Vuott wrote: > Hello, > > I would like to point out what a forum member of "Gambas-it.org" wrote about the problem of sending email: > > ******** > These days I tried the component gb.net.smtp with poor results, then I started to study and I made a small class to send mail with a Telnet terminal. > > But I would like to know if the Socket of gambas could somehow replace Telnet to communicate with the SMTP server. > > 220 posta.hextra.it Service ready > > and then it seems to disconnect !!! > > Have you had similar experiences ? > > ********* > > Well, as we can help our friend? > > Thanks > > vuott > What seems to be the problem as I have no trouble sending mail using gb,net.smtp This is an example directly from one of my projects. Note that info is retrieved from setting on a mail preferences form where user can set the values and they are saved as settings. Nore: All settings are string values from settings file using gb.settings. Settings["mail/from"] = yourmail at ...3115... Settings["mail/smtp"] = smtp.yourprovider.org Settings["mail/port"] = 25 DefaultMail is a Public String variable I use to provide my own mail address. I use this routine for error trapping and having error info send back to me automatically if Mail Preferences are set. It works like a charm.. Private Sub SendMail(TextToSend As String, Subject As String) Dim hMail As New SmtpClient hMail.To.Add(DefaultMail) hMail.From = Settings["mail/from"] hMail.Host = Settings["mail/smtp"] hMail.Port = Settings["mail/port"] 'If Settings["mail/tsl"] = -1 Then ' hMail.Encrypt = 2 'Else hMail.Encrypt = 0 'Endif hMail.Subject = Subject hMail.Add(TextToSend) hMail.Send MailSend = True End I commented out the encryption as I don't get it to work. But that is not a Gambas problem as my regular (non Gambas mail client) can't send SSL or TSL either. Hope this can help your friend -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From gambas at ...1... Mon Mar 18 22:15:56 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 18 Mar 2013 22:15:56 +0100 Subject: [Gambas-user] Sending E-Mail... - BIS In-Reply-To: <1363635450.7390.YahooMailClassic@...3064...> References: <1363635450.7390.YahooMailClassic@...3064...> Message-ID: <5147840C.8060105@...1...> Le 18/03/2013 20:37, Ru Vuott a ?crit : > Our friend with a subsequent message, he stated that the server wants > to authenticate, but after the authentication the server does not > reach the "timeout". > Which version of Gambas does he use? What does he want to do exactly with gb.net.smtp? Which problems did he encounter? Where is the code? -- Beno?t Minisini From gambas at ...2524... Mon Mar 18 23:25:11 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 18 Mar 2013 22:25:11 +0000 Subject: [Gambas-user] Issue 413 in gambas: Datebox does not display month In-Reply-To: <1-6813199134517018827-5432978320895909011-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-5432978320895909011-gambas=googlecode.com@...2524...> <0-6813199134517018827-5432978320895909011-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-5432978320895909011-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 413 by benoit.m... at ...626...: Datebox does not display month http://code.google.com/p/gambas/issues/detail?id=413 It should be fixed in revision #5583. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From vuott at ...325... Mon Mar 18 23:55:41 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 18 Mar 2013 22:55:41 +0000 (GMT) Subject: [Gambas-user] Sending E-Mail... In-Reply-To: <1363639817.2732.8.camel@...3024...> Message-ID: <1363647341.40951.YahooMailClassic@...3070...> Hello Willy, thanks a lot ! I communicated via Forum to our friend your gentle answer. I'll let you know a possible additional message. Bye vuooott --- Lun 18/3/13, Willy Raets ha scritto: > Da: Willy Raets > Oggetto: Re: [Gambas-user] Sending E-Mail... > A: gambas-user at lists.sourceforge.net > Data: Luned? 18 marzo 2013, 21:50 > On Mon, 2013-03-18 at 18:55 +0000, Ru > Vuott wrote: > > Hello, > > > > I would like to point out what a forum member of > "Gambas-it.org" wrote about the problem of sending email: > > > > ******** > > These days I tried the component gb.net.smtp with poor > results, then I started to study and I made a small class to > send mail with a Telnet terminal. > > > > But I would like to know if the Socket of gambas could > somehow replace Telnet to communicate with the SMTP server. > > > >? ? 220 posta.hextra.it Service ready > > > > and then it seems to disconnect !!! > > > > Have you had similar experiences ? > > > > ********* > > > > Well, as we can help our friend? > > > > Thanks > > > > vuott > > > What seems to be the problem as I have no trouble sending > mail usingI commented out the encryption as I don't get it to work. But that is not a Gambas problem as my regular (non Gambas mail client) can't send SSL or TSL either > gb,net.smtp > > This is an example directly from one of my projects. > Note that info is retrieved from setting on a mail > preferences form > where user can set the values and they are saved as > settings. > > Nore: All settings are string values from settings file > using > gb.settings. > Settings["mail/from"] = yourmail at ...3115... > Settings["mail/smtp"] = smtp.yourprovider.org > Settings["mail/port"] = 25 > > DefaultMail is a Public String variable I use to provide my > own mail > address. > I use this routine for error trapping and having error info > send back to > me automatically if Mail Preferences are set. > > It works like a charm.. > > Private Sub SendMail(TextToSend As String, Subject As > String) > ? > ? Dim hMail As New SmtpClient > ? hMail.To.Add(DefaultMail) > ? hMail.From = Settings["mail/from"] > ? hMail.Host = Settings["mail/smtp"] > ? hMail.Port = Settings["mail/port"] > ? 'If Settings["mail/tsl"] = -1 Then > ? '? hMail.Encrypt = 2 > ? 'Else > ? ? hMail.Encrypt = 0 > ? 'Endif > ? hMail.Subject = Subject > ? hMail.Add(TextToSend) > ? hMail.Send > ? MailSend = True > > End > > I commented out the encryption as I don't get it to work. > But that is > not a Gambas problem as my regular (non Gambas mail client) > can't send > SSL or TSL either. > > Hope this can help your friend > > -- > Kind regards, > > Willy (aka gbWilly) > > http://gambasshowcase.org/ > http://howtogambas.org > http://gambos.org > > > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Mon Mar 18 23:57:44 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 18 Mar 2013 22:57:44 +0000 (GMT) Subject: [Gambas-user] Sending E-Mail... - BIS In-Reply-To: <5147840C.8060105@...1...> Message-ID: <1363647464.33506.YahooMailClassic@...3063...> Hello Beno?t, I wrote your answer in the Forum. We look forward to our friend the details that you require. Thank you. Regards vuott --- Lun 18/3/13, Beno?t Minisini ha scritto: > Da: Beno?t Minisini > Oggetto: Re: [Gambas-user] Sending E-Mail... - BIS > A: "mailing list for gambas users" > Data: Luned? 18 marzo 2013, 22:15 > Le 18/03/2013 20:37, Ru Vuott a > ?crit : > > Our friend with a subsequent message, he stated that > the server wants > > to authenticate, but after the authentication the > server does not > > reach the "timeout". > > > > Which version of Gambas does he use? What does he want to do > exactly > with gb.net.smtp? Which problems did he encounter? Where is > the code? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Tue Mar 19 08:35:44 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 19 Mar 2013 08:35:44 +0100 Subject: [Gambas-user] Sending E-Mail... In-Reply-To: <1363647341.40951.YahooMailClassic@...3070...> References: <1363639817.2732.8.camel@...3024...> <1363647341.40951.YahooMailClassic@...3070...> Message-ID: #!/usr/bin/env gbs3 USE "gb.db", "gb.net.smtp" Private hcon As New Connection Private hTim as Timer Public Sub Main() Application.Daemon = True hTim = new timer as "Timer1" hTim.Delay = 60000 hTim.Trigger() hTim.Start End Public sub Timer1_Timer() Dim hsmtp As Smtpclient Dim hResMails As Result Dim s As String 'D?finir la connection hcon.type = "mysql" hCon.host = "localhost" hcon.login = "#######" hCon.password = "*******" hcon.name = "GF" hResMails = db.exec("SELECT * FROM emails") For Each hResMails hsmtp = New SmtpClient hsmtp.Host = "mail.toile-libre.org" hsmtp.User = "gf_info at ...2827..." hsmtp.Password = "*******" hsmtp.Port = 587 hsmtp.From = hsmtp.User For Each s In Split(hResMails!to) hsmtp.To.Add(s) Next For Each s In Split(hResMails!cc) hsmtp.Cc.Add(s) Next For Each s In Split(hResMails!bcc) hsmtp.bcc.Add(s) Next hsmtp.Subject = iif(hResMails!sujet, hResMails!sujet, "nosubject") hsmtp.Add(hResMails!message, "text/plain") if hResMails!message_html Then hsmtp.Add(hResMails!message_html, "text/html") hsmtp.Send() Next If hResMails.count = 0 Then Return hResMails.MoveLast() db.Exec("DELETE FROM emails WHERE id<=&1", hResMails!id) Catch File.Save(User.Home &/ "mailerror.log", Format(Now(), GB.GeneralDate) & ": \n" & Error.Backtrace.Join("\n") & " " & Error.Text & " " & Error.Where & "\n") End This is the mail deamon of gambasforge, it work since more than one year without fail nor reboot. It control the db every 1 min. The page refresh is more quick :-) A good Script example too :-) 2013/3/18 Ru Vuott > Hello Willy, > > thanks a lot ! I communicated via Forum to our friend your gentle answer. > > I'll let you know a possible additional message. > > Bye > vuooott > > > --- Lun 18/3/13, Willy Raets ha scritto: > > > Da: Willy Raets > > Oggetto: Re: [Gambas-user] Sending E-Mail... > > A: gambas-user at lists.sourceforge.net > > Data: Luned? 18 marzo 2013, 21:50 > > On Mon, 2013-03-18 at 18:55 +0000, Ru > > Vuott wrote: > > > Hello, > > > > > > I would like to point out what a forum member of > > "Gambas-it.org" wrote about the problem of sending email: > > > > > > ******** > > > These days I tried the component gb.net.smtp with poor > > results, then I started to study and I made a small class to > > send mail with a Telnet terminal. > > > > > > But I would like to know if the Socket of gambas could > > somehow replace Telnet to communicate with the SMTP server. > > > > > > 220 posta.hextra.it Service ready > > > > > > and then it seems to disconnect !!! > > > > > > Have you had similar experiences ? > > > > > > ********* > > > > > > Well, as we can help our friend? > > > > > > Thanks > > > > > > vuott > > > > > What seems to be the problem as I have no trouble sending > > mail usingI commented out the encryption as I don't get it to work. But > that is > not a Gambas problem as my regular (non Gambas mail client) can't send > SSL or TSL either > > gb,net.smtp > > > > This is an example directly from one of my projects. > > Note that info is retrieved from setting on a mail > > preferences form > > where user can set the values and they are saved as > > settings. > > > > Nore: All settings are string values from settings file > > using > > gb.settings. > > Settings["mail/from"] = yourmail at ...3115... > > Settings["mail/smtp"] = smtp.yourprovider.org > > Settings["mail/port"] = 25 > > > > DefaultMail is a Public String variable I use to provide my > > own mail > > address. > > I use this routine for error trapping and having error info > > send back to > > me automatically if Mail Preferences are set. > > > > It works like a charm.. > > > > Private Sub SendMail(TextToSend As String, Subject As > > String) > > > > Dim hMail As New SmtpClient > > hMail.To.Add(DefaultMail) > > hMail.From = Settings["mail/from"] > > hMail.Host = Settings["mail/smtp"] > > hMail.Port = Settings["mail/port"] > > 'If Settings["mail/tsl"] = -1 Then > > ' hMail.Encrypt = 2 > > 'Else > > hMail.Encrypt = 0 > > 'Endif > > hMail.Subject = Subject > > hMail.Add(TextToSend) > > hMail.Send > > MailSend = True > > > > End > > > > I commented out the encryption as I don't get it to work. > > But that is > > not a Gambas problem as my regular (non Gambas mail client) > > can't send > > SSL or TSL either. > > > > Hope this can help your friend > > > > -- > > Kind regards, > > > > Willy (aka gbWilly) > > > > http://gambasshowcase.org/ > > http://howtogambas.org > > http://gambos.org > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > Everyone hates slow websites. So do we. > > Make your web apps faster with AppDynamics > > Download AppDynamics Lite for free today: > > http://p.sf.net/sfu/appdyn_d2d_mar > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...2524... Tue Mar 19 09:20:10 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 19 Mar 2013 08:20:10 +0000 Subject: [Gambas-user] Issue 410 in gambas: Signal 11 in gb.net.curl In-Reply-To: <10-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> References: <10-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> <0-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Message-ID: <11-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Comment #11 on issue 410 by r... at ...1740...: Signal 11 in gb.net.curl http://code.google.com/p/gambas/issues/detail?id=410 No it's still unstable. My project which had 24/7 stability for months in a row now only runs a few minutes. If this isn't fixed soon it's another big appointment using Gambas. After using it for several years, first development of Gambas2 stopped even when Gambas3 wasn't ready for production and now this. I don't have time to maintain my own Gambas tree with working gb.net.curl -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Mar 19 09:51:25 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 19 Mar 2013 08:51:25 +0000 Subject: [Gambas-user] Issue 410 in gambas: Signal 11 in gb.net.curl In-Reply-To: <11-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> References: <11-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> <0-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Message-ID: <12-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Comment #12 on issue 410 by r... at ...1740...: Signal 11 in gb.net.curl http://code.google.com/p/gambas/issues/detail?id=410 Attached latest valgrind output. Leaks everywhere, can someone help me? Attachments: valgrind.log.tar.gz 132 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Mar 19 10:02:53 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 19 Mar 2013 09:02:53 +0000 Subject: [Gambas-user] Issue 410 in gambas: Signal 11 in gb.net.curl In-Reply-To: <12-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> References: <12-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> <0-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Message-ID: <13-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Comment #13 on issue 410 by r... at ...1740...: Signal 11 in gb.net.curl http://code.google.com/p/gambas/issues/detail?id=410 Can we please rollback the changes done in revision 5542? Just for one request of being able to do oauth request, the whole component and thuse gambas became useless.. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From vuott at ...325... Tue Mar 19 10:44:03 2013 From: vuott at ...325... (Ru Vuott) Date: Tue, 19 Mar 2013 09:44:03 +0000 (GMT) Subject: [Gambas-user] Sending E-Mail... In-Reply-To: Message-ID: <1363686243.27679.YahooMailClassic@...3070...> Hello Fabien, well, I communicated to our friend in the italian Forum also your suggestion. Thank you very much. vuott --- Mar 19/3/13, Fabien Bodard ha scritto: > Da: Fabien Bodard > Oggetto: Re: [Gambas-user] Sending E-Mail... > A: "mailing list for gambas users" > Data: Marted? 19 marzo 2013, 08:35 > #!/usr/bin/env gbs3 > > > USE "gb.db", "gb.net.smtp" > > Private hcon As New Connection > Private hTim as Timer > Public Sub Main() > ? Application.Daemon = True > ? hTim = new timer as "Timer1" > ? hTim.Delay = 60000 > hTim.Trigger() > ? hTim.Start > End > > Public sub Timer1_Timer() > ? Dim hsmtp As Smtpclient > ? Dim hResMails As Result > ? Dim s As String > > ? 'D?finir la connection > ? hcon.type = "mysql" > ? hCon.host = "localhost" > ? hcon.login = "#######" > ? hCon.password = "*******" > ? hcon.name = "GF" > > ? hResMails = db.exec("SELECT * FROM emails") > > ? For Each hResMails > ? ? hsmtp = New SmtpClient > ? ? hsmtp.Host = "mail.toile-libre.org" > ? ? hsmtp.User = "gf_info at ...2827..." > ? ? hsmtp.Password = "*******" > ? ? hsmtp.Port = 587 > ? ? hsmtp.From = hsmtp.User > > ? ? For Each s In Split(hResMails!to) > ? ? ? ? hsmtp.To.Add(s) > ? ? Next > ? ? For Each s In Split(hResMails!cc) > ? ? ? hsmtp.Cc.Add(s) > ? ? Next > ? ? For Each s In Split(hResMails!bcc) > ? ? ? hsmtp.bcc.Add(s) > ? ? Next > ? ? hsmtp.Subject = iif(hResMails!sujet, > hResMails!sujet, "nosubject") > ? ? hsmtp.Add(hResMails!message, "text/plain") > ? ? if hResMails!message_html Then > hsmtp.Add(hResMails!message_html, > "text/html") > ? ? hsmtp.Send() > ? Next > ? If hResMails.count = 0 Then Return > ? hResMails.MoveLast() > ? db.Exec("DELETE FROM emails WHERE id<=&1", > hResMails!id) > > Catch > ? ? File.Save(User.Home &/ "mailerror.log", > Format(Now(), GB.GeneralDate) & > ": \n" & Error.Backtrace.Join("\n") & " " & > Error.Text & " " & Error.Where > & "\n") > > > End > > This is the mail deamon of gambasforge, it work since more > than one year > without fail nor reboot. It control the db every 1 min. The > page refresh is > more quick :-) > > A good Script example too :-) > > > 2013/3/18 Ru Vuott > > > Hello Willy, > > > > thanks a lot ! I communicated via Forum to our friend > your gentle answer. > > > > I'll let you know a possible additional message. > > > > Bye > > vuooott > > > > > > --- Lun 18/3/13, Willy Raets > ha scritto: > > > > > Da: Willy Raets > > > Oggetto: Re: [Gambas-user] Sending E-Mail... > > > A: gambas-user at lists.sourceforge.net > > > Data: Luned? 18 marzo 2013, 21:50 > > > On Mon, 2013-03-18 at 18:55 +0000, Ru > > > Vuott wrote: > > > > Hello, > > > > > > > > I would like to point out what a forum member > of > > > "Gambas-it.org" wrote about the problem of sending > email: > > > > > > > > ******** > > > > These days I tried the component gb.net.smtp > with poor > > > results, then I started to study and I made a > small class to > > > send mail with a Telnet terminal. > > > > > > > > But I would like to know if the Socket of > gambas could > > > somehow replace Telnet to communicate with the > SMTP server. > > > > > > > >? ? 220 posta.hextra.it Service > ready > > > > > > > > and then it seems to disconnect !!! > > > > > > > > Have you had similar experiences ? > > > > > > > > ********* > > > > > > > > Well, as we can help our friend? > > > > > > > > Thanks > > > > > > > > vuott > > > > > > > What seems to be the problem as I have no trouble > sending > > > mail usingI commented out the encryption as I > don't get it to work. But > > that is > > not a Gambas problem as my regular (non Gambas mail > client) can't send > > SSL or TSL either > > > gb,net.smtp > > > > > > This is an example directly from one of my > projects. > > > Note that info is retrieved from setting on a > mail > > > preferences form > > > where user can set the values and they are saved > as > > > settings. > > > > > > Nore: All settings are string values from settings > file > > > using > > > gb.settings. > > > Settings["mail/from"] = yourmail at ...3115... > > > Settings["mail/smtp"] = smtp.yourprovider.org > > > Settings["mail/port"] = 25 > > > > > > DefaultMail is a Public String variable I use to > provide my > > > own mail > > > address. > > > I use this routine for error trapping and having > error info > > > send back to > > > me automatically if Mail Preferences are set. > > > > > > It works like a charm.. > > > > > > Private Sub SendMail(TextToSend As String, Subject > As > > > String) > > > > > >???Dim hMail As New SmtpClient > > >???hMail.To.Add(DefaultMail) > > >???hMail.From = > Settings["mail/from"] > > >???hMail.Host = > Settings["mail/smtp"] > > >???hMail.Port = > Settings["mail/port"] > > >???'If Settings["mail/tsl"] = -1 > Then > > >???'? hMail.Encrypt = 2 > > >???'Else > > >? ???hMail.Encrypt = 0 > > >???'Endif > > >???hMail.Subject = Subject > > >???hMail.Add(TextToSend) > > >???hMail.Send > > >???MailSend = True > > > > > > End > > > > > > I commented out the encryption as I don't get it > to work. > > > But that is > > > not a Gambas problem as my regular (non Gambas > mail client) > > > can't send > > > SSL or TSL either. > > > > > > Hope this can help your friend > > > > > > -- > > > Kind regards, > > > > > > Willy (aka gbWilly) > > > > > > http://gambasshowcase.org/ > > > http://howtogambas.org > > > http://gambos.org > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Everyone hates slow websites. So do we. > > > Make your web apps faster with AppDynamics > > > Download AppDynamics Lite for free today: > > > http://p.sf.net/sfu/appdyn_d2d_mar > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > ------------------------------------------------------------------------------ > > Everyone hates slow websites. So do we. > > Make your web apps faster with AppDynamics > > Download AppDynamics Lite for free today: > > http://p.sf.net/sfu/appdyn_d2d_mar > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Fabien Bodard > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Tue Mar 19 15:18:08 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 19 Mar 2013 14:18:08 +0000 Subject: [Gambas-user] Issue 410 in gambas: Signal 11 in gb.net.curl In-Reply-To: <13-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> References: <13-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> <0-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Message-ID: <14-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Comment #14 on issue 410 by r... at ...1740...: Signal 11 in gb.net.curl http://code.google.com/p/gambas/issues/detail?id=410 While trying to extract a demo project to show the problem I figured out the reason for the hangs. Try attached project, if you don't code a _Read event for a async httpclient it hangs, blocking the whole project, until you get grey hairs and get bold... If you comment out the _Read code it works ok. This was never the case in Gambas2 and earlier Gambas3 versions, you could also run it async and fetch the whole result string in the _Finish event. So I changed my code and it runs now, but the question is, is this by design or a bug? If by design, should it bail out after the Timeout has gone by? Anyway by having _Read code defined it works ok now, no crashes, also not on exit of program, seems the libcurl close bug was not the cause? Didn't try to get a new valgrind run, will test more first on other distros. Attachments: CurlClose-0.0.1.tar.gz 5.1 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Mar 19 15:19:08 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 19 Mar 2013 14:19:08 +0000 Subject: [Gambas-user] Issue 410 in gambas: Signal 11 in gb.net.curl In-Reply-To: <14-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> References: <14-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> <0-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Message-ID: <15-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Comment #15 on issue 410 by r... at ...1740...: Signal 11 in gb.net.curl http://code.google.com/p/gambas/issues/detail?id=410 I mean uncomment the _Read code... -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Mar 19 19:56:42 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 19 Mar 2013 18:56:42 +0000 Subject: [Gambas-user] Issue 410 in gambas: Signal 11 in gb.net.curl In-Reply-To: <15-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> References: <15-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> <0-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Message-ID: <16-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Comment #16 on issue 410 by benoit.m... at ...626...: Signal 11 in gb.net.curl http://code.google.com/p/gambas/issues/detail?id=410 Sorry for not answering, my PC was dead. I have a new one now, and I will look at the problem. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Mar 19 20:04:31 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 19 Mar 2013 19:04:31 +0000 Subject: [Gambas-user] Issue 410 in gambas: Signal 11 in gb.net.curl In-Reply-To: <16-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> References: <16-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> <0-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Message-ID: <17-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Comment #17 on issue 410 by benoit.m... at ...626...: Signal 11 in gb.net.curl http://code.google.com/p/gambas/issues/detail?id=410 HttpClient now calls the Read event while there is something to read. But it's stupid do that if there is no Read event handler! In revision #5584, this behavior is disabled if there is no event handler. Can you tell me if it's better for you now? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From vuott at ...325... Tue Mar 19 20:13:34 2013 From: vuott at ...325... (Ru Vuott) Date: Tue, 19 Mar 2013 19:13:34 +0000 (GMT) Subject: [Gambas-user] Sending E-Mail... Message-ID: <1363720414.98072.YahooMailClassic@...3065...> Hello, well, our friend has taken note of your answers, and at the end he wrote in gambas-it.org forum: << Perhaps I understand where is the problem: the type of authentication. The smtp server from which I try to send e-mail does not support authentication type PLAIN, it gives me error 504: AUTH PLAIN 504 Command parameter not implemented >> Bye vuott From gambas at ...2524... Tue Mar 19 20:31:27 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 19 Mar 2013 19:31:27 +0000 Subject: [Gambas-user] Issue 410 in gambas: Signal 11 in gb.net.curl In-Reply-To: <17-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> References: <17-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> <0-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Message-ID: <18-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Comment #18 on issue 410 by r... at ...1740...: Signal 11 in gb.net.curl http://code.google.com/p/gambas/issues/detail?id=410 No problem for the delay, r5584 works ok, with and without _Read event present. Thanks. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Mar 19 21:09:10 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 19 Mar 2013 20:09:10 +0000 Subject: [Gambas-user] Issue 410 in gambas: Signal 11 in gb.net.curl In-Reply-To: <18-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> References: <18-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> <0-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Message-ID: <19-6813199134517018827-1968304656972596596-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #19 on issue 410 by benoit.m... at ...626...: Signal 11 in gb.net.curl http://code.google.com/p/gambas/issues/detail?id=410 OK, marked as fixed. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Mar 19 21:10:10 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 19 Mar 2013 20:10:10 +0000 Subject: [Gambas-user] Issue 355 in gambas: gb.gtk still uses gtk2 In-Reply-To: <2-6813199134517018827-2755329248504962869-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-2755329248504962869-gambas=googlecode.com@...2524...> <0-6813199134517018827-2755329248504962869-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-2755329248504962869-gambas=googlecode.com@...2524...> Updates: Status: Accepted Comment #3 on issue 355 by benoit.m... at ...626...: gb.gtk still uses gtk2 http://code.google.com/p/gambas/issues/detail?id=355 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From rterry at ...1823... Tue Mar 19 21:59:08 2013 From: rterry at ...1823... (Richard Terry) Date: Wed, 20 Mar 2013 07:59:08 +1100 Subject: [Gambas-user] Error messages when IDE stops ?how to capture Message-ID: <5148D19C.6080009@...1823...> Is there anyway when one inspects the line that the program crashes on to copy/paste the popup error message? richard From gambas at ...2524... Wed Mar 20 08:16:32 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 20 Mar 2013 07:16:32 +0000 Subject: [Gambas-user] Issue 415 in gambas: Cannot run child process (native code) Message-ID: <0-6813199134517018827-7376830185188479970-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 415 by r... at ...1740...: Cannot run child process (native code) http://code.google.com/p/gambas/issues/detail?id=415 1) Describe the problem. While running my project from the IDE for a while it stops, and the IDE shows 'Cannot exec child process...' (native code) See screenshot in attachment. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r5584 [System] OperatingSystem=Linux Kernel=2.6.38-16-generic Architecture=x86_64 Distribution=Ubuntu 11.04 Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=3699M [Libraries] GStreamer=libgstreamer-0.10.so.0.28.0 GTK+=libgtk-x11-2.0.so.0.2400.4 Poppler=libpoppler.so.13.0.0 Qt4=libQtCore.so.4.7.2 SDL=libSDL-1.2.so.0.11.3 3) Provide a little project that reproduces the bug or the crash. Source of error is too unknown to extract the correct code yet. 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. Running DomotiGa3 for a while it stops in IDE When I connect to the hanging project with gdb you see this: ... Loaded symbols for /lib/x86_64-linux-gnu/libnss_dns.so.2 0x00007f8217e522ed in read () at ../sysdeps/unix/syscall-template.S:82 82 ../sysdeps/unix/syscall-template.S: No such file or directory. in ../sysdeps/unix/syscall-template.S (gdb) bt #0 0x00007f8217e522ed in read () at ../sysdeps/unix/syscall-template.S:82 #1 0x00007f8217ded798 in _IO_new_file_underflow (fp=0xb0ec30) at fileops.c:606 #2 0x00007f8217dee7be in _IO_default_uflow (fp=0xb0ec30) at genops.c:440 #3 0x00007f8217de28fa in _IO_getline_info (fp=0xb0ec30, buf=0x7fffa2028d00 "", n=63, delim=10, extract_delim=1, eof=0x0) at iogetline.c:74 #4 0x00007f8217de17ca in _IO_fgets (buf=0x7fffa2028d00 "", n=, fp=0xb0ec30) at iofgets.c:58 #5 0x00007f8217b74bca in DEBUG_main (error=1 '\001') at debug.c:924 #6 0x0000000000442b8b in main (argc=1, argv=0x7fffa2028fc8) at gbx.c:413 (gdb) (gdb) p DEBUG_get_position(EXEC_current.cp, EXEC_current.fp, EXEC_current.pc) $1 = 0x7f67650d56f0 "?.?" (gdb) 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! Attachments: native code.png 18.2 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From willy at ...2734... Thu Mar 21 16:44:16 2013 From: willy at ...2734... (Willy Raets) Date: Thu, 21 Mar 2013 16:44:16 +0100 Subject: [Gambas-user] Gambas on Debian! Message-ID: <1363880656.3000.24.camel@...3024...> Hi all, I have finally found a mail address to reach the guy responsible for the Gambas packages on Debain. I have written him a mail with request to please update the Debain repository to a more recent Gambas3 version. My main concern is that I write some applications that are used by non-developers (so end users). For Gambas2 about 1/3 of the downloads for these applications are for Debain, 2/3 for Ubuntu and a few for Fedora (hardly worth mentioning). Now I'm faced that if I port these applications I will loose about 1/3 or my users simply because they can't install the deb package on Debain. So I haven't ported them yet and am stuck with Gambas2 for distributing to end users (kind of frustrating). Maybe others can report their hazards to the Debain maintainers of teh package as well, to make them more responsive to our needs. Package maintainer mail address for Gambas on Debain: Hope this might have some effect. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From gambas at ...2524... Fri Mar 22 06:37:54 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 22 Mar 2013 05:37:54 +0000 Subject: [Gambas-user] Issue 416 in gambas: Segfault with gb.net.curl on program exit Message-ID: <0-6813199134517018827-971387120798116935-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 416 by adamn... at ...626...: Segfault with gb.net.curl on program exit http://code.google.com/p/gambas/issues/detail?id=416 1) Describe the problem. The project attached, when run in the IDE exits abnormally with a segfault 11. If gb.net.curl is removed from the component list it exits normally. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r5584 Operating system: Linux Distribution: pclinuxos Architecture: x86 GUI component: QT4 / GTK+ Desktop used: LXDE 3) Provide a little project that reproduces the bug or the crash. Attached. 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. Open the project in the IDE. Run it and click the top right hand close button. Remove the gb.net.curl component from the project properties|Components tab and retry. Attachments: badexit-0.0.1.tar.gz 4.8 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Mar 22 06:44:56 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 22 Mar 2013 05:44:56 +0000 Subject: [Gambas-user] Issue 416 in gambas: Segfault with gb.net.curl on program exit In-Reply-To: <0-6813199134517018827-971387120798116935-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-971387120798116935-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-971387120798116935-gambas=googlecode.com@...2524...> Comment #1 on issue 416 by adamn... at ...626...: Segfault with gb.net.curl on program exit http://code.google.com/p/gambas/issues/detail?id=416 Further info: 1) This appears to be something in the runtime, running the compiled project also result in a segfault. 2) The form is just a form with a few random controls. It doesn't seem to be related to them. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From ihaywood at ...1979... Fri Mar 22 22:22:47 2013 From: ihaywood at ...1979... (Ian Haywood) Date: Sat, 23 Mar 2013 08:22:47 +1100 Subject: [Gambas-user] Gambas on Debian! In-Reply-To: <1363880656.3000.24.camel@...3024...> References: <1363880656.3000.24.camel@...3024...> Message-ID: On Fri, Mar 22, 2013 at 2:44 AM, Willy Raets wrote: > Hi all, > > I have finally found a mail address to reach the guy responsible for the > Gambas packages on Debain. sorry wally, I suspect it's only me on the other end, I'm part of the "Debian packaging team" but I don't have the authority to upload new versions, you need to be a "Debian developer" for that. The key blocker for me is actually getting Gambas to compile on Debian, I confess I have banged my head against that particular brick wall long enough, and gone back to using Ubuntu. If you can get it to compile, let me know how you did it and we can find a Debian developer to actually get it uploaded. Ian From gambas at ...2524... Sat Mar 23 19:09:04 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 23 Mar 2013 18:09:04 +0000 Subject: [Gambas-user] Issue 414 in gambas: Error on closing stream In-Reply-To: <0-6813199134517018827-12248524037249887996-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-12248524037249887996-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-12248524037249887996-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-3.4.0 Comment #1 on issue 414 by benoit.m... at ...626...: Error on closing stream http://code.google.com/p/gambas/issues/detail?id=414 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Mar 23 19:13:14 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 23 Mar 2013 18:13:14 +0000 Subject: [Gambas-user] Issue 414 in gambas: Error on closing stream In-Reply-To: <1-6813199134517018827-12248524037249887996-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-12248524037249887996-gambas=googlecode.com@...2524...> <0-6813199134517018827-12248524037249887996-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-12248524037249887996-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 414 by benoit.m... at ...626...: Error on closing stream http://code.google.com/p/gambas/issues/detail?id=414 Fixed in revision #5585. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Mar 23 19:26:55 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 23 Mar 2013 18:26:55 +0000 Subject: [Gambas-user] Issue 415 in gambas: Cannot run child process (native code) In-Reply-To: <0-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Updates: Labels: -Version Version-TRUNK Comment #1 on issue 415 by benoit.m... at ...626...: Cannot run child process (native code) http://code.google.com/p/gambas/issues/detail?id=415 Can you run the project from gdb with revision #5586? I have added a breakpoint that will be raised (normally) just before the error is thrown. Then send the gdb backtrace. Thanks! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Mar 23 19:30:26 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 23 Mar 2013 18:30:26 +0000 Subject: [Gambas-user] Issue 416 in gambas: Segfault with gb.net.curl on program exit In-Reply-To: <1-6813199134517018827-971387120798116935-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-971387120798116935-gambas=googlecode.com@...2524...> <0-6813199134517018827-971387120798116935-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-971387120798116935-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-TRUNK Comment #2 on issue 416 by benoit.m... at ...626...: Segfault with gb.net.curl on program exit http://code.google.com/p/gambas/issues/detail?id=416 There is a bug in libcurl that was fixed upstream. See issue 405. Can you check the version of libcurl installed on your system? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Mar 23 19:31:26 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 23 Mar 2013 18:31:26 +0000 Subject: [Gambas-user] Issue 415 in gambas: Cannot run child process (native code) In-Reply-To: <1-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> <0-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Comment #2 on issue 415 by benoit.m... at ...626...: Cannot run child process (native code) http://code.google.com/p/gambas/issues/detail?id=415 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Mar 23 19:40:06 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 23 Mar 2013 18:40:06 +0000 Subject: [Gambas-user] Issue 415 in gambas: Cannot run child process (native code) In-Reply-To: <2-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> <0-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Comment #3 on issue 415 by benoit.m... at ...626...: Cannot run child process (native code) http://code.google.com/p/gambas/issues/detail?id=415 Oops, forgot to say that you must run the program that way: $ GB_ISSUE_415=1 gdb gbx3 -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Mar 23 19:41:06 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 23 Mar 2013 18:41:06 +0000 Subject: [Gambas-user] Issue 416 in gambas: Segfault with gb.net.curl on program exit In-Reply-To: <2-6813199134517018827-971387120798116935-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-971387120798116935-gambas=googlecode.com@...2524...> <0-6813199134517018827-971387120798116935-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-971387120798116935-gambas=googlecode.com@...2524...> Comment #3 on issue 416 by benoit.m... at ...626...: Segfault with gb.net.curl on program exit http://code.google.com/p/gambas/issues/detail?id=416 In revision #5587, the IDE now displays the libcurl version inside the system information dialog. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From dr.diesel at ...626... Sat Mar 23 19:43:15 2013 From: dr.diesel at ...626... (dr.diesel) Date: Sat, 23 Mar 2013 11:43:15 -0700 (PDT) Subject: [Gambas-user] Best method to trigger event at midnight? Message-ID: <1364064195458-41408.post@...3046...> I'm looking to trigger an event at midnight, any suggestions on the best method to ensure the time is not missed? My application reads/writes a DB, launches websites and reads heavily on the COM port. I'm afraid that if I simply look for the date/time to be 00:00 I'll miss the time while some other event is happening. Do I need to just carefully code this or is there some other method I'm not seeing? Many thanks Andy -- View this message in context: http://gambas.8142.n7.nabble.com/Best-method-to-trigger-event-at-midnight-tp41408.html Sent from the gambas-user mailing list archive at Nabble.com. From shordi at ...626... Sat Mar 23 19:54:43 2013 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Sat, 23 Mar 2013 19:54:43 +0100 Subject: [Gambas-user] Best method to trigger event at midnight? In-Reply-To: <1364064195458-41408.post@...3046...> References: <1364064195458-41408.post@...3046...> Message-ID: I have a application that does db backups al 3.00 o'clock. I run it with the S.O. cron comman. It works fine. 2013/3/23 dr.diesel > I'm looking to trigger an event at midnight, any suggestions on the best > method to ensure the time is not missed? > > My application reads/writes a DB, launches websites and reads heavily on > the > COM port. I'm afraid that if I simply look for the date/time to be 00:00 > I'll miss the time while some other event is happening. Do I need to just > carefully code this or is there some other method I'm not seeing? > > Many thanks > Andy > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/Best-method-to-trigger-event-at-midnight-tp41408.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dr.diesel at ...626... Sat Mar 23 20:01:22 2013 From: dr.diesel at ...626... (dr.diesel) Date: Sat, 23 Mar 2013 12:01:22 -0700 (PDT) Subject: [Gambas-user] Best method to trigger event at midnight? In-Reply-To: References: <1364064195458-41408.post@...3046...> Message-ID: <1364065282269-41410.post@...3046...> Thanks Jorge, however I need to trigger this from within Gambas? Or am I not understanding correctly? -- View this message in context: http://gambas.8142.n7.nabble.com/Best-method-to-trigger-event-at-midnight-tp41408p41410.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Mar 23 20:06:42 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 23 Mar 2013 20:06:42 +0100 Subject: [Gambas-user] Best method to trigger event at midnight? In-Reply-To: <1364064195458-41408.post@...3046...> References: <1364064195458-41408.post@...3046...> Message-ID: <514DFD42.3080902@...1...> Le 23/03/2013 19:43, dr.diesel a ?crit : > I'm looking to trigger an event at midnight, any suggestions on the best > method to ensure the time is not missed? > > My application reads/writes a DB, launches websites and reads heavily on the > COM port. I'm afraid that if I simply look for the date/time to be 00:00 > I'll miss the time while some other event is happening. Do I need to just > carefully code this or is there some other method I'm not seeing? > > Many thanks > Andy > Check the time with two timers. For example, the first timer will be raised for example each hour. And when it is past 23:00, start another timer with a more precise resolution to check when midnight is reached. You can use more timers. It depends on which precision you need. But beware that there is only one thread in Gambas, so a too long event handler prevents other events to be raised. Regards, -- Beno?t Minisini From taboege at ...626... Sat Mar 23 20:20:28 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 23 Mar 2013 20:20:28 +0100 Subject: [Gambas-user] Best method to trigger event at midnight? In-Reply-To: <514DFD42.3080902@...1...> References: <1364064195458-41408.post@...3046...> <514DFD42.3080902@...1...> Message-ID: <20130323192028.GB506@...2774...> On Sat, 23 Mar 2013, Beno?t Minisini wrote: > Le 23/03/2013 19:43, dr.diesel a ?crit : > > I'm looking to trigger an event at midnight, any suggestions on the best > > method to ensure the time is not missed? > > > > My application reads/writes a DB, launches websites and reads heavily on the > > COM port. I'm afraid that if I simply look for the date/time to be 00:00 > > I'll miss the time while some other event is happening. Do I need to just > > carefully code this or is there some other method I'm not seeing? > > > > Many thanks > > Andy > > > > Check the time with two timers. > > For example, the first timer will be raised for example each hour. And > when it is past 23:00, start another timer with a more precise > resolution to check when midnight is reached. > > You can use more timers. It depends on which precision you need. > > But beware that there is only one thread in Gambas, so a too long event > handler prevents other events to be raised. > > Regards, Isn't it simpler to calculate the time delta until midnight and then, depending on what the application otherwise does: a) it's otherwise idle: Wait iDelay (or even Sleep iDelay) b) it has something to do: arm a Timer with iDelay to expire once This would require only one Timer and less overall effort. Any inconvenience I missed with this approach? Regards, Tobi From rmorgan62 at ...626... Sat Mar 23 20:32:30 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Sat, 23 Mar 2013 12:32:30 -0700 Subject: [Gambas-user] Best method to trigger event at midnight? In-Reply-To: <20130323192028.GB506@...2774...> References: <1364064195458-41408.post@...3046...> <514DFD42.3080902@...1...> <20130323192028.GB506@...2774...> Message-ID: Does it have to be from the running program? or can you use cron to trigger an applet to accomplish what you need to? I do a lot of db work and often need to run processes when the load is lite and everyone is home in bed. I usually write these tasks as separate applets and then let cron run them. If I had to do it in my app, I would create a flag to indicate the process was running and then check for a time span, say from 12:00AM - 12:15AM if i were worried about it being missed. Then when the process was started I would set the flag to indicate that the process was running. Then I'd reset the running flag at some point after the time window to ensure the process wasn't ran more than once during the window. Or if the process was expected to take many times long than the start window, I would simply let the process reset the flag on exit. Hope that gives you some ideas.... On Sat, Mar 23, 2013 at 12:20 PM, Tobias Boege wrote: > On Sat, 23 Mar 2013, Beno?t Minisini wrote: >> Le 23/03/2013 19:43, dr.diesel a ?crit : >> > I'm looking to trigger an event at midnight, any suggestions on the best >> > method to ensure the time is not missed? >> > >> > My application reads/writes a DB, launches websites and reads heavily on the >> > COM port. I'm afraid that if I simply look for the date/time to be 00:00 >> > I'll miss the time while some other event is happening. Do I need to just >> > carefully code this or is there some other method I'm not seeing? >> > >> > Many thanks >> > Andy >> > >> >> Check the time with two timers. >> >> For example, the first timer will be raised for example each hour. And >> when it is past 23:00, start another timer with a more precise >> resolution to check when midnight is reached. >> >> You can use more timers. It depends on which precision you need. >> >> But beware that there is only one thread in Gambas, so a too long event >> handler prevents other events to be raised. >> >> Regards, > > Isn't it simpler to calculate the time delta until midnight and then, > depending on what the application otherwise does: > > a) it's otherwise idle: Wait iDelay (or even Sleep iDelay) > b) it has something to do: arm a Timer with iDelay to expire once > > This would require only one Timer and less overall effort. Any > inconvenience I missed with this approach? > > Regards, > Tobi > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From dr.diesel at ...626... Sat Mar 23 20:34:06 2013 From: dr.diesel at ...626... (dr.diesel) Date: Sat, 23 Mar 2013 12:34:06 -0700 (PDT) Subject: [Gambas-user] Best method to trigger event at midnight? In-Reply-To: <20130323192028.GB506@...2774...> References: <1364064195458-41408.post@...3046...> <514DFD42.3080902@...1...> <20130323192028.GB506@...2774...> Message-ID: <1364067246340-41414.post@...3046...> Funny you mention, I just wrote this: Dim midnight As Date Dim seconds As Integer midnight = DateAdd(Date, gb.day, 1) TextBox1.Text = DateDiff(Now, midnight, gb.Second) Need to validate it then maybe I can assume any value < say 5 seconds is midnight. -- View this message in context: http://gambas.8142.n7.nabble.com/Best-method-to-trigger-event-at-midnight-tp41408p41414.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...2524... Sat Mar 23 23:43:46 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 23 Mar 2013 22:43:46 +0000 Subject: [Gambas-user] Issue 416 in gambas: Segfault with gb.net.curl on program exit In-Reply-To: <3-6813199134517018827-971387120798116935-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-971387120798116935-gambas=googlecode.com@...2524...> <0-6813199134517018827-971387120798116935-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-971387120798116935-gambas=googlecode.com@...2524...> Comment #4 on issue 416 by adamn... at ...626...: Segfault with gb.net.curl on program exit http://code.google.com/p/gambas/issues/detail?id=416 [System] OperatingSystem=Linux Kernel=3.2.18-pclos2.bfs Architecture=x86 Distribution=PCLinuxOS Desktop=LXDE Theme=QWindows Language=en_AU.UTF-8 Memory=1517M [Libraries] Curl=libcurl.so.3.0.0 GStreamer=libgstreamer-0.10.so.0.29.0 GTK+=libgtk-x11-2.0.so.0.2400.10 Poppler=libpoppler.so.13.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.3 But ? at rev 5587 the segfault is no longer occurring? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sun Mar 24 17:42:51 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 24 Mar 2013 16:42:51 +0000 Subject: [Gambas-user] Issue 416 in gambas: Segfault with gb.net.curl on program exit In-Reply-To: <4-6813199134517018827-971387120798116935-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-971387120798116935-gambas=googlecode.com@...2524...> <0-6813199134517018827-971387120798116935-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-971387120798116935-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #5 on issue 416 by benoit.m... at ...626...: Segfault with gb.net.curl on program exit http://code.google.com/p/gambas/issues/detail?id=416 Strange... I have fixed something in gb.net.curl in rev #5584, but nothing related. I mark the bug as fixed. Just tell if you get it again! By the way, I have libcurl 4.2.0 on my ubuntu 12.10. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sun Mar 24 19:42:27 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 24 Mar 2013 18:42:27 +0000 Subject: [Gambas-user] Issue 415 in gambas: Cannot run child process (native code) In-Reply-To: <3-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> <0-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Comment #4 on issue 415 by r... at ...1740...: Cannot run child process (native code) http://code.google.com/p/gambas/issues/detail?id=415 I was on a long weekend outdoors.. Will test this soon, too bad you tagged 3.4.1 already... would be nice if this was fixed too in next release. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sun Mar 24 19:50:57 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 24 Mar 2013 18:50:57 +0000 Subject: [Gambas-user] Issue 415 in gambas: Cannot run child process (native code) In-Reply-To: <4-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> <0-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Comment #5 on issue 415 by benoit.m... at ...626...: Cannot run child process (native code) http://code.google.com/p/gambas/issues/detail?id=415 I will make a 3.4.2 release then. The issue 415 may be complex to solve, so I prefer release 3.4.1 now! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sun Mar 24 19:56:18 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 24 Mar 2013 18:56:18 +0000 Subject: [Gambas-user] Issue 416 in gambas: Segfault with gb.net.curl on program exit In-Reply-To: <5-6813199134517018827-971387120798116935-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-971387120798116935-gambas=googlecode.com@...2524...> <0-6813199134517018827-971387120798116935-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-971387120798116935-gambas=googlecode.com@...2524...> Comment #6 on issue 416 by r... at ...1740...: Segfault with gb.net.curl on program exit http://code.google.com/p/gambas/issues/detail?id=416 The exit segfault was gone here too with just the gambas patch from r5584. No libcurl updates involved. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From nemh at ...2007... Sun Mar 24 19:58:25 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Sun, 24 Mar 2013 19:58:25 +0100 Subject: [Gambas-user] Issue 415 in gambas: Cannot run child process (native code) In-Reply-To: <5-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> <0-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> <5-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Message-ID: <20130324195825.4055feff@...3104...> Cool, I've been waiting. > > Comment #5 on issue 415 by benoit.m... at ...626...: Cannot run child > process (native code) > http://code.google.com/p/gambas/issues/detail?id=415 > > I will make a 3.4.2 release then. The issue 415 may be complex to > solve, so I prefer release 3.4.1 now! > From gambas at ...1... Sun Mar 24 20:54:13 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 24 Mar 2013 20:54:13 +0100 Subject: [Gambas-user] Pre-release of gambas 3.4.1 Message-ID: <514F59E5.6080100@...1...> Here you can download the source package of Gambas 3.4.1: http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.4.1.tar.bz2/download This is the 3.4.0 version with most of the bug fixes backported from /trunk. Please tell me if everything is OK, and I will update the website with the changelog. -- Beno?t Minisini From nemh at ...2007... Sun Mar 24 21:42:01 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Sun, 24 Mar 2013 21:42:01 +0100 Subject: [Gambas-user] Pre-release of gambas 3.4.1 In-Reply-To: <514F59E5.6080100@...1...> References: <514F59E5.6080100@...1...> Message-ID: <20130324214201.096d1619@...3104...> I have tested it, and the compilation and packaging is OK on my part. So I uploading the update to Ubuntu PPA. :-) > Here you can download the source package of Gambas 3.4.1: > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.4.1.tar.bz2/download > > This is the 3.4.0 version with most of the bug fixes backported > from /trunk. > > Please tell me if everything is OK, and I will update the website > with the changelog. > From gambas at ...2524... Mon Mar 25 08:41:15 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 25 Mar 2013 07:41:15 +0000 Subject: [Gambas-user] Issue 415 in gambas: Cannot run child process (native code) In-Reply-To: <5-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> <0-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Comment #6 on issue 415 by r... at ...1740...: Cannot run child process (native code) http://code.google.com/p/gambas/issues/detail?id=415 Yes we are at the breakpoint. I will try to get some info, if you need more/other, just let me know. [New Thread 0x7fffdbfff700 (LWP 22533)] [Thread 0x7fffdbfff700 (LWP 22533) exited] [Thread 0x7fffe36d2700 (LWP 22512) exited] Program received signal SIGTRAP, Trace/breakpoint trap. throw_last_child_error () at gbx_c_process.c:256 256 if (child_error < 0) (gdb) print child_error $1 = 5 (gdb) info locals child_error = 5 child_errno = 2 (gdb) p DEBUG_get_position(EXEC_current.cp, EXEC_current.fp, EXEC_current.pc) $2 = 0x43baf4 "?" (gdb) f 1 #1 0x000000000042f45b in callback_child (signum=17, data=0) at gbx_c_process.c:750 750 throw_last_child_error(); (gdb) bt #0 throw_last_child_error () at gbx_c_process.c:256 #1 0x000000000042f45b in callback_child (signum=17, data=0) at gbx_c_process.c:750 #2 0x0000000000432f8a in SIGNAL_raise_callbacks (fd=, type=, data=) at gbx_signal.c:184 #3 0x00007ffff5ec0ff4 in CWatch::read (this=0x159ad30, fd=49) at CWatch.cpp:143 #4 0x00007ffff5ec0dcf in CWatch::qt_metacall (this=0x159ad30, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fffffffd8e0) at CWatch_moc.cpp:73 #5 0x00007ffff41f95a8 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4 #6 0x00007ffff4240b2e in QSocketNotifier::activated(int) () from /usr/lib/libQtCore.so.4 #7 0x00007ffff41feefb in QSocketNotifier::event(QEvent*) () from /usr/lib/libQtCore.so.4 #8 0x00007ffff46d29f4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #9 0x00007ffff46d73ba in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #10 0x00007ffff41e444c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4 #11 0x00007ffff420ed59 in ?? () from /usr/lib/libQtCore.so.4 #12 0x00007ffff3015bcd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #13 0x00007ffff30163a8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #14 0x00007ffff3016639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #15 0x00007ffff420f39f in QEventDispatcherGlib::processEvents(QFlags) () from /usr/lib/libQtCore.so.4 #16 0x00007ffff477c4de in ?? () from /usr/lib/libQtGui.so.4 #17 0x00007ffff41e3832 in QEventLoop::processEvents(QFlags) () from /usr/lib/libQtCore.so.4 #18 0x00007ffff41e3a6c in QEventLoop::exec(QFlags) () from /usr/lib/libQtCore.so.4 #19 0x00007ffff41e7e7b in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4 #20 0x00007ffff5e9e582 in hook_loop () at main.cpp:777 #21 0x00000000004261c0 in main (argc=1, argv=0x7fffffffe3d8) at gbx.c:402 (gdb) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From nemh at ...2007... Mon Mar 25 10:41:47 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Mon, 25 Mar 2013 10:41:47 +0100 Subject: [Gambas-user] Gambas 3 PPA Message-ID: <20130325104147.1e87c78f@...3118...> Service announcements! Ubuntu Maverick release has really reached end of life and is no longer supported by Gambas 3 PPA (nemh/gambas3). I'm sorry, but it is impossible to upload to further updates, because unable to obtain the required dependencies from internal repository. If you are affected, please upgrade your system to a newer Ubuntu release. Thanks, Kendek From shordi at ...626... Mon Mar 25 10:54:59 2013 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Mon, 25 Mar 2013 10:54:59 +0100 Subject: [Gambas-user] Gambas 3 PPA In-Reply-To: <20130325104147.1e87c78f@...3118...> References: <20130325104147.1e87c78f@...3118...> Message-ID: Keep doing the good work Kendek. It's very, very usefull for a lot of people! Thanks 2013/3/25 Kende Kriszti?n > Service announcements! > > Ubuntu Maverick release has really reached end of life and is no longer > supported by Gambas 3 PPA (nemh/gambas3). I'm sorry, but it is > impossible to upload to further updates, because unable to obtain the > required dependencies from internal repository. > If you are affected, please upgrade your system to a newer Ubuntu > release. > > Thanks, > > Kendek > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Mar 25 12:11:23 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 25 Mar 2013 12:11:23 +0100 Subject: [Gambas-user] (hopefully) small feature suggestion In-Reply-To: <51416BA8.50608@...1887...> References: <51416BA8.50608@...1887...> Message-ID: <515030DB.5080501@...1...> Le 14/03/2013 07:18, Kevin Fishburne a ?crit : > Currently when you perform a search the columns displayed are File, > Line, Col., and Text. It would be extremely convenient if there was also > a Procedure column just after the File column. I frequently find myself > clicking on each row just to see what procedure the result was found in, > so this change would give a more "bird's eye view" of the results. > Something to put on the back burner, maybe? Done in revision #5587. > > Also, sorry about your PC Beno?t. I'm a hardware guy so I know all about > that. :/ The good news is that now you have an excuse to get a machine > so ridiculously powerful it will temp you to be a lazy programmer. > Fastest RAM, best CPU, RAID 5 with SSD's: the works! > Done too, without the RAID stuff. :-) -- Beno?t Minisini From nemh at ...2007... Mon Mar 25 14:07:56 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Mon, 25 Mar 2013 14:07:56 +0100 Subject: [Gambas-user] Gambas 3 PPA In-Reply-To: References: <20130325104147.1e87c78f@...3118...> Message-ID: <20130325140756.0388cce0@...3118...> Yeah, I'm also developing an Gambas application (Systemback) for Ubuntu and Debian, so I'm forced to do it. :-) > Keep doing the good work Kendek. > It's very, very usefull for a lot of people! > > Thanks > > > 2013/3/25 Kende Kriszti?n > > > Service announcements! > > > > Ubuntu Maverick release has really reached end of life and is no > > longer supported by Gambas 3 PPA (nemh/gambas3). I'm sorry, but it > > is impossible to upload to further updates, because unable to > > obtain the required dependencies from internal repository. > > If you are affected, please upgrade your system to a newer Ubuntu > > release. > > > > Thanks, > > > > Kendek > > > > > > ------------------------------------------------------------------------------ > > Everyone hates slow websites. So do we. > > Make your web apps faster with AppDynamics > > Download AppDynamics Lite for free today: > > http://p.sf.net/sfu/appdyn_d2d_mar > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Mon Mar 25 16:49:21 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 25 Mar 2013 16:49:21 +0100 Subject: [Gambas-user] Project meta data messed up? Message-ID: <20130325154921.GA509@...2774...> Hi Benoit, I removed some backup and translation files, etc. from the project directory of one of my Gambas projects - I thought it was nothing I never removed before but now I see problems in the IDE: My Forms are not shown at all in the project source tree and I can't create Forms anymore. Classes and modules are OK, but not Forms, although compilation and execution do work. Graphical components _are_ enabled. Opening my project in gambas3 yields: gb.qt4: Form.Action declared but not implemented gb.qt4: Window.Action declared but not implemented in the terminal which may be related and doesn't appear with other projects. It seems that I managed to confuse the IDE :-) I'd like to avoid sending my project because it may not even be halfways re-worked but if you need it, there's no problem. Regards, Tobi From gambas.fr at ...626... Mon Mar 25 17:43:10 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 25 Mar 2013 17:43:10 +0100 Subject: [Gambas-user] Project meta data messed up? In-Reply-To: <20130325154921.GA509@...2774...> References: <20130325154921.GA509@...2774...> Message-ID: I think I can correct that but you need to send me the project on my personal mail Le 25 mars 2013 16:52, "Tobias Boege" a ?crit : > Hi Benoit, > > I removed some backup and translation files, etc. from the project > directory > of one of my Gambas projects - I thought it was nothing I never removed > before but now I see problems in the IDE: > > My Forms are not shown at all in the project source tree and I can't create > Forms anymore. Classes and modules are OK, but not Forms, although > compilation and execution do work. Graphical components _are_ enabled. > > Opening my project in gambas3 yields: > > gb.qt4: Form.Action declared but not implemented > gb.qt4: Window.Action declared but not implemented > > in the terminal which may be related and doesn't appear with other > projects. > It seems that I managed to confuse the IDE :-) > > I'd like to avoid sending my project because it may not even be halfways > re-worked but if you need it, there's no problem. > > Regards, > Tobi > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Mon Mar 25 20:39:02 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 25 Mar 2013 20:39:02 +0100 Subject: [Gambas-user] Project meta data messed up? In-Reply-To: References: <20130325154921.GA509@...2774...> Message-ID: <20130325193902.GE505@...2774...> On Mon, 25 Mar 2013, Fabien Bodard wrote: > I think I can correct that but you need to send me the project on my > personal mail Fabien helped me out of it: I renamed one of my modules to "Control" which explains the weird error message and to some extent that the Form handling was broken. Anyway, re-renaming the module corrected it. The Forms showed magically up again after IDE restart :-) He pointed out: "I think a warning message in the ide will be good". But I see no way to distinguish between "accidentally overridden" and "deliberately overridden" classes. Any idea? Maybe just an info message for each overridden class or would that be considered spam? Regards, Tobi From kevinfishburne at ...1887... Tue Mar 26 08:21:07 2013 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 26 Mar 2013 03:21:07 -0400 Subject: [Gambas-user] (hopefully) small feature suggestion In-Reply-To: <515030DB.5080501@...1...> References: <51416BA8.50608@...1887...> <515030DB.5080501@...1...> Message-ID: <51514C63.3080302@...1887...> On 03/25/2013 07:11 AM, Beno?t Minisini wrote: > Le 14/03/2013 07:18, Kevin Fishburne a ?crit : >> Currently when you perform a search the columns displayed are File, >> Line, Col., and Text. It would be extremely convenient if there was also >> a Procedure column just after the File column. I frequently find myself >> clicking on each row just to see what procedure the result was found in, >> so this change would give a more "bird's eye view" of the results. >> Something to put on the back burner, maybe? > Done in revision #5587. 'Tis a thing of beauty! Love how it's sorted properly and you can resize the columns now. Thanks, and lovely attention to detail. > >> Also, sorry about your PC Beno?t. I'm a hardware guy so I know all about >> that. :/ The good news is that now you have an excuse to get a machine >> so ridiculously powerful it will temp you to be a lazy programmer. >> Fastest RAM, best CPU, RAID 5 with SSD's: the works! >> > Done too, without the RAID stuff. :-) Heh, well there's always next time (knock on wood). :) -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas.fr at ...626... Tue Mar 26 12:54:17 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 26 Mar 2013 12:54:17 +0100 Subject: [Gambas-user] Project meta data messed up? In-Reply-To: <20130325193902.GE505@...2774...> References: <20130325154921.GA509@...2774...> <20130325193902.GE505@...2774...> Message-ID: yes there is no way ... just a warning message on the class renaming or creation or addition in a message box. and a message on all compilation process that inform about overridden classes 2013/3/25 Tobias Boege > On Mon, 25 Mar 2013, Fabien Bodard wrote: > > I think I can correct that but you need to send me the project on my > > personal mail > > Fabien helped me out of it: I renamed one of my modules to "Control" which > explains the weird error message and to some extent that the Form handling > was broken. Anyway, re-renaming the module corrected it. The Forms showed > magically up again after IDE restart :-) > > He pointed out: "I think a warning message in the ide will be good". But > I see no way to distinguish between "accidentally overridden" and > "deliberately overridden" classes. Any idea? Maybe just an info message for > each overridden class or would that be considered spam? > > Regards, > Tobi > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From willy at ...2734... Wed Mar 27 16:50:17 2013 From: willy at ...2734... (Willy Raets) Date: Wed, 27 Mar 2013 16:50:17 +0100 Subject: [Gambas-user] Strange problem with running Shell on Fedora (code works in IDE but not in executable!!) Message-ID: <1364399417.2916.14.camel@...3024...> I have this strange problem on Fedora. I have this form (part of a bigger project) that is used to install rpm packages on Fedora using yum. The form has: txbPass (TextBox) to enter password tarOutput (TextArea) to output stream read from the running yum in shell btnInstall (Button) to click to start installing variable PathTemp (String) contains full path to rpm install file The code for btnInstall is: Public Sub btnInstall_Click() Dim sPass, sEPass, sCommand, sFull As String btnClose.Enabled = False tarOutput.Clear Me.Refresh Wait 0.15 If tbxPass.Text = Null Then Message.Warning("First enter a password") btnClose.Enabled = True tbxPass.SetFocus Else sPass = tbxPass.Text sEPass = "echo \"" & sPass & "\" | " sCommand = "yum install -y " & PathTemp sFull = sEPass & "sudo -S " & sCommand 'TODO: Remove print Print sFull tarOutput.Text = "Start install..\n\n" Wait 0.05 hProcess1 = Shell sFull For Read As "Process1" hProcess1.Wait hProcess1.Kill Wait 0.05 tarOutput.Text &= "\nEnd install.." btnClose.Enabled = True btnInstall.Enabled = False btnClose.SetFocus Endif Catch tarOutput.Text &= Error.Text If hProcess1.State = 1 Then hProcess1.Kill Endif Error.Clear End Public Sub Process1_Read() Dim sLine As String Read #hProcess1, sLine, Lof(hProcess1) tarOutput.Text &= sLine tarOutput.Refresh Wait 0.02 End What happens: 1. When running from IDE (debug -> run) the installation runs perfectly and application installs. tarOutput reads: Start install.. End install.. 2. When running a gambas executable of the application or install a IDE made package of the application the installation doesn't run for some reason and rpm package doesn't install tarOutput reads: Start install.. End install.. So no output from the Process1_Read event is added, nor is application installed. It seems as if shell is never run!! Any ideas here? [System] OperatingSystem=Linux Kernel=3.8.4-102.fc17.i686 Architecture=x86 Distribution=redhat Fedora release 17 (Beefy Miracle) Desktop=LXDE Theme=QWindows Language=en_US.UTF-8 Memory=1003M [Libraries] GStreamer=libgstreamer-0.10.so.0.30.0 GTK+=libgtk-x11-2.0.so.0.2400.13 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.3 Gambas 3.4.0 -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From willy at ...2734... Wed Mar 27 17:10:03 2013 From: willy at ...2734... (Willy Raets) Date: Wed, 27 Mar 2013 17:10:03 +0100 Subject: [Gambas-user] Strange problem with running Shell on Fedora (code works in IDE but not in executable!!) In-Reply-To: <1364399417.2916.14.camel@...3024...> References: <1364399417.2916.14.camel@...3024...> Message-ID: <1364400603.2916.24.camel@...3024...> Attached four screenshots to clarify the situation. In both cases the application was already installed, but that should not matter (I tested with application not installed before as well). FromIDE.png shows output from yum on installation FromExecutable.png clearly misses the output from yum installation. >From executable it never even runs the read event.I tested this by adding a custom output to the tarOutput in the Read event. I added tarOutput.Text &= "Been in the read event.." FromIDE-2.png shows output from yum on installation with the added Been in the read event FromExecutable-2.png clearly never shows 'Been in the read event..' so apparently the Read event is never processed!! I have no idea on what to do next..been experimenting and trying stuff all night until 5 AM this morning...Any help is appreciated. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org -------------- next part -------------- A non-text attachment was scrubbed... Name: FromIDE.png Type: image/png Size: 15370 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: FromExecutable.png Type: image/png Size: 10859 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: FromIDE-2.png Type: image/png Size: 15229 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: FromExecutable-2.png Type: image/png Size: 10859 bytes Desc: not available URL: From taboege at ...626... Wed Mar 27 17:22:55 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 27 Mar 2013 17:22:55 +0100 Subject: [Gambas-user] Strange problem with running Shell on Fedora (code works in IDE but not in executable!!) In-Reply-To: <1364399417.2916.14.camel@...3024...> References: <1364399417.2916.14.camel@...3024...> Message-ID: <20130327162255.GD733@...2774...> On Wed, 27 Mar 2013, Willy Raets wrote: > I have this strange problem on Fedora. > I have this form (part of a bigger project) that is used to install rpm > packages on Fedora using yum. > The form has: > txbPass (TextBox) to enter password > tarOutput (TextArea) to output stream read from the running yum in shell > btnInstall (Button) to click to start installing > variable PathTemp (String) contains full path to rpm install file > > The code for btnInstall is: > > Public Sub btnInstall_Click() > > Dim sPass, sEPass, sCommand, sFull As String > btnClose.Enabled = False > tarOutput.Clear > Me.Refresh > Wait 0.15 > If tbxPass.Text = Null Then > Message.Warning("First enter a password") > btnClose.Enabled = True > tbxPass.SetFocus > Else > sPass = tbxPass.Text > sEPass = "echo \"" & sPass & "\" | " > sCommand = "yum install -y " & PathTemp > sFull = sEPass & "sudo -S " & sCommand > 'TODO: Remove print > Print sFull > tarOutput.Text = "Start install..\n\n" > Wait 0.05 > hProcess1 = Shell sFull For Read As "Process1" > hProcess1.Wait > hProcess1.Kill > Wait 0.05 > tarOutput.Text &= "\nEnd install.." > btnClose.Enabled = True > btnInstall.Enabled = False > btnClose.SetFocus > Endif > > Catch > tarOutput.Text &= Error.Text > If hProcess1.State = 1 Then > hProcess1.Kill > Endif > Error.Clear > > End > > Public Sub Process1_Read() > > Dim sLine As String > Read #hProcess1, sLine, Lof(hProcess1) > tarOutput.Text &= sLine > tarOutput.Refresh > Wait 0.02 > > End > > What happens: > 1. When running from IDE (debug -> run) the installation runs perfectly > and application installs. > tarOutput reads: > Start install.. > > > > End install.. > > > 2. When running a gambas executable of the application or install a IDE > made package of the application the installation doesn't run for some > reason and rpm package doesn't install > tarOutput reads: > Start install.. > > > End install.. > > So no output from the Process1_Read event is added, nor is application > installed. It seems as if shell is never run!! > > Any ideas here? > > [System] > OperatingSystem=Linux > Kernel=3.8.4-102.fc17.i686 > Architecture=x86 > Distribution=redhat Fedora release 17 (Beefy Miracle) > Desktop=LXDE > Theme=QWindows > Language=en_US.UTF-8 > Memory=1003M > > [Libraries] > GStreamer=libgstreamer-0.10.so.0.30.0 > GTK+=libgtk-x11-2.0.so.0.2400.13 > Poppler=libpoppler.so.19.0.0 > Qt4=libQtCore.so.4.8.4 > SDL=libSDL-1.2.so.0.11.3 > > Gambas 3.4.0 Well, there are some vague assumptions I could make about what's going on but none of them would be based on knowledge. So I just propose something: leave the "echo" out of your command string. Instead connect sudo's stdin to your Gambas program directly and write the password you obtained as Print #hProcess1, sPassword immediately after your "Shell" instruction (note that you must open the process "For Read Write" now). _Perhaps_ it would even give a better feeling to sudo when you use "For Input Output" instead of "Read Write"... Maybe you should add Process1_Error() just in case there is something that could help you. Regards, Tobi From willy at ...2734... Wed Mar 27 18:25:02 2013 From: willy at ...2734... (Willy Raets) Date: Wed, 27 Mar 2013 18:25:02 +0100 Subject: [Gambas-user] Strange problem with running Shell on Fedora (code works in IDE but not in executable!!) In-Reply-To: <20130327162255.GD733@...2774...> References: <1364399417.2916.14.camel@...3024...> <20130327162255.GD733@...2774...> Message-ID: <1364405102.2916.40.camel@...3024...> On Wed, 2013-03-27 at 17:22 +0100, Tobias Boege wrote: > Well, there are some vague assumptions I could make about what's going on > but none of them would be based on knowledge. > > So I just propose something: leave the "echo" out of your command string. > Instead connect sudo's stdin to your Gambas program directly and write the > password you obtained as > > Print #hProcess1, sPassword > > immediately after your "Shell" instruction (note that you must open the > process "For Read Write" now). _Perhaps_ it would even give a better feeling > to sudo when you use "For Input Output" instead of "Read Write"... > > Maybe you should add Process1_Error() just in case there is something that > could help you. Hi Tobias, Thanks for your answer and you are right. I did implement a Catch but that won't feed me back errors in the process. So I started by adding a Process1_Error handle and now in IDE all still runs producing a small difference in output. It now outputs exactly the same as when I copy/paste the sFull output printed in console to a terminal window and hit enter (1 extra line saying: error:nothing to do When run from executable I now get something returned from the process error handle. Seems not yum but sudo is complaining: 'sudo: sorry, you must have a tty to run sudo' tty I understand as terminal. So apparently when run from executable shell seems to act different somehow. I can't quite wrap my head around it. I will have a look at your suggestion on sending the password using read write or input output. Could you explain the 'Instead connect sudo's stdin to your Gambas program directly' a bit more maybe? Thanks.. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org -------------- next part -------------- A non-text attachment was scrubbed... Name: RunFromExecutable-3.png Type: image/png Size: 12379 bytes Desc: not available URL: From taboege at ...626... Wed Mar 27 18:54:08 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 27 Mar 2013 18:54:08 +0100 Subject: [Gambas-user] Strange problem with running Shell on Fedora (code works in IDE but not in executable!!) In-Reply-To: <1364405102.2916.40.camel@...3024...> References: <1364399417.2916.14.camel@...3024...> <20130327162255.GD733@...2774...> <1364405102.2916.40.camel@...3024...> Message-ID: <20130327175408.GE733@...2774...> On Wed, 27 Mar 2013, Willy Raets wrote: > On Wed, 2013-03-27 at 17:22 +0100, Tobias Boege wrote: > > Well, there are some vague assumptions I could make about what's going on > > but none of them would be based on knowledge. > > > > So I just propose something: leave the "echo" out of your command string. > > Instead connect sudo's stdin to your Gambas program directly and write the > > password you obtained as > > > > Print #hProcess1, sPassword > > > > immediately after your "Shell" instruction (note that you must open the > > process "For Read Write" now). _Perhaps_ it would even give a better feeling > > to sudo when you use "For Input Output" instead of "Read Write"... > > > > Maybe you should add Process1_Error() just in case there is something that > > could help you. > > Hi Tobias, > > Thanks for your answer and you are right. > I did implement a Catch but that won't feed me back errors in the > process. So I started by adding a Process1_Error handle and now in IDE > all still runs producing a small difference in output. > It now outputs exactly the same as when I copy/paste the sFull output > printed in console to a terminal window and hit enter (1 extra line > saying: error:nothing to do > > When run from executable I now get something returned from the process > error handle. > > Seems not yum but sudo is complaining: > 'sudo: sorry, you must have a tty to run sudo' > > tty I understand as terminal. So apparently when run from executable > shell seems to act different somehow. I can't quite wrap my head around > it. > > I will have a look at your suggestion on sending the password using read > write or input output. > Could you explain the 'Instead connect sudo's stdin to your Gambas > program directly' a bit more maybe? > > Thanks.. OK, this was my assumption *slapping on my back* but I don't know enough about the IDE to really put it into the picture assertively. Even with -S, sudo still wants a tty connected to it (according to the sources I have available, opening /dev/tty must not fail for sudo). I remember vaguely that the IDE runs Gambas executables in a pseudo tty (pty) so that over three edges[0] sudo has access to a pty which it recognises as a valid tty. However, if you double-click on your executable on your desktop, there is no tty or pty involved and sudo complains. I see three solutions to this: a) run your Gambas executable from a terminal emulator; b) tick some checkbox in your DE's dialogs to run the Gambas executable in a terminal emulator; or c) use "For Input Output" in your Shell instruction which, according to the docs[1], opens a pty to run the command. Of course, c) removes the issue in your program and I'd prefer using this option. And concerning your question about "connect[ing] sudo's stdin to your Gambas program": it is faster. You don't need to run "echo" to pipe the password to sudo if you can pipe the password yourself. The code would look like this: hProcess = Shell "sudo -S yum ..." For Input Output As "Process" Print #hProcess, sPass hProcess.Wait() This way, you write the password sPass and the newline sudo wants into the standard input of the sudo process - which is, by means of "For Input Output" connected to a pty - which is the same thing that "echo" did in your original code snippet but faster, and eventually resulting in working code, I hope :-) Regards, Tobi [0] It's a german idiom I couldn't find a translation for. Hope the meaning is obvious. [1] http://gambasdoc.org/help/lang/shell?v3 From willy at ...2734... Wed Mar 27 19:02:49 2013 From: willy at ...2734... (Willy Raets) Date: Wed, 27 Mar 2013 19:02:49 +0100 Subject: [Gambas-user] Strange problem with running Shell on Fedora (code works in IDE but not in executable!!) In-Reply-To: <1364405102.2916.40.camel@...3024...> References: <1364399417.2916.14.camel@...3024...> <20130327162255.GD733@...2774...> <1364405102.2916.40.camel@...3024...> Message-ID: <1364407369.2916.43.camel@...3024...> On Wed, 2013-03-27 at 18:25 +0100, Willy Raets wrote: > On Wed, 2013-03-27 at 17:22 +0100, Tobias Boege wrote: > > Well, there are some vague assumptions I could make about what's going on > > but none of them would be based on knowledge. > > > > So I just propose something: leave the "echo" out of your command string. > > Instead connect sudo's stdin to your Gambas program directly and write the > > password you obtained as > > > > Print #hProcess1, sPassword > > > > immediately after your "Shell" instruction (note that you must open the > > process "For Read Write" now). _Perhaps_ it would even give a better feeling > > to sudo when you use "For Input Output" instead of "Read Write"... > > > > Maybe you should add Process1_Error() just in case there is something that > > could help you. > > Hi Tobias, > > Thanks for your answer and you are right. > I did implement a Catch but that won't feed me back errors in the > process. So I started by adding a Process1_Error handle and now in IDE > all still runs producing a small difference in output. > It now outputs exactly the same as when I copy/paste the sFull output > printed in console to a terminal window and hit enter (1 extra line > saying: error:nothing to do > > When run from executable I now get something returned from the process > error handle. > > Seems not yum but sudo is complaining: > 'sudo: sorry, you must have a tty to run sudo' > > tty I understand as terminal. So apparently when run from executable > shell seems to act different somehow. I can't quite wrap my head around > it. > > I will have a look at your suggestion on sending the password using read > write or input output. > Could you explain the 'Instead connect sudo's stdin to your Gambas > program directly' a bit more maybe? Okay, got what you meant. I implemented for read write and send password using priny right after the shell call. In IDE all still works as before In Executable same error message as before: 'sudo: sorry, you must have a tty to run sudo' Any other suggestions? > > Thanks.. > > ------------------------------------------------------------------------------ > Own the Future-Intel® Level Up Game Demo Contest 2013 > Rise to greatness in Intel's independent game demo contest. > Compete for recognition, cash, and the chance to get your game > on Steam. $5K grand prize plus 10 genre and skill prizes. > Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d > _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From taboege at ...626... Wed Mar 27 19:32:46 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 27 Mar 2013 19:32:46 +0100 Subject: [Gambas-user] gba3 -> Invalid cross-device link Message-ID: <20130327183246.GG733@...2774...> Hi, I try to create a Gambas executable (from within the IDE but that doesn't seem to be relevant here). The project directory lies on another hard drive partition than the executable's target directory. This causes gba3 to fail with: gba: ERROR: Cannot make executable: Cannot create executable: Invalid cross-device link Project.MakeExecutable.2828 There seems to be a hardlink involved and so I ask: is it really necessary to hardlink? Wouldn't a symlink do it, too? Regards, Tobi From willy at ...2734... Wed Mar 27 19:53:04 2013 From: willy at ...2734... (Willy Raets) Date: Wed, 27 Mar 2013 19:53:04 +0100 Subject: [Gambas-user] Strange problem with running Shell on Fedora (code works in IDE but not in executable!!) In-Reply-To: <20130327175408.GE733@...2774...> References: <1364399417.2916.14.camel@...3024...> <20130327162255.GD733@...2774...> <1364405102.2916.40.camel@...3024...> <20130327175408.GE733@...2774...> Message-ID: <1364410384.2916.51.camel@...3024...> On Wed, 2013-03-27 at 18:54 +0100, Tobias Boege wrote: > On Wed, 27 Mar 2013, Willy Raets wrote: > > On Wed, 2013-03-27 at 17:22 +0100, Tobias Boege wrote: > > > Well, there are some vague assumptions I could make about what's going on > > > but none of them would be based on knowledge. > > > > > > So I just propose something: leave the "echo" out of your command string. > > > Instead connect sudo's stdin to your Gambas program directly and write the > > > password you obtained as > > > > > > Print #hProcess1, sPassword > > > > > > immediately after your "Shell" instruction (note that you must open the > > > process "For Read Write" now). _Perhaps_ it would even give a better feeling > > > to sudo when you use "For Input Output" instead of "Read Write"... > > > > > > Maybe you should add Process1_Error() just in case there is something that > > > could help you. > > > > Hi Tobias, > > > > Thanks for your answer and you are right. > > I did implement a Catch but that won't feed me back errors in the > > process. So I started by adding a Process1_Error handle and now in IDE > > all still runs producing a small difference in output. > > It now outputs exactly the same as when I copy/paste the sFull output > > printed in console to a terminal window and hit enter (1 extra line > > saying: error:nothing to do > > > > When run from executable I now get something returned from the process > > error handle. > > > > Seems not yum but sudo is complaining: > > 'sudo: sorry, you must have a tty to run sudo' > > > > tty I understand as terminal. So apparently when run from executable > > shell seems to act different somehow. I can't quite wrap my head around > > it. > > > > I will have a look at your suggestion on sending the password using read > > write or input output. > > Could you explain the 'Instead connect sudo's stdin to your Gambas > > program directly' a bit more maybe? > > > > Thanks.. > > OK, this was my assumption *slapping on my back* but I don't know enough > about the IDE to really put it into the picture assertively. > > Even with -S, sudo still wants a tty connected to it (according to the > sources I have available, opening /dev/tty must not fail for sudo). I > remember vaguely that the IDE runs Gambas executables in a pseudo tty (pty) > so that over three edges[0] sudo has access to a pty which it recognises as > a valid tty. > > However, if you double-click on your executable on your desktop, there is no > tty or pty involved and sudo complains. > > I see three solutions to this: > a) run your Gambas executable from a terminal emulator; > b) tick some checkbox in your DE's dialogs to run the Gambas executable in a > terminal emulator; or > c) use "For Input Output" in your Shell instruction which, according to the > docs[1], opens a pty to run the command. > > Of course, c) removes the issue in your program and I'd prefer using this > option. > > And concerning your question about "connect[ing] sudo's stdin to your Gambas > program": it is faster. You don't need to run "echo" to pipe the password to > sudo if you can pipe the password yourself. The code would look like this: > > hProcess = Shell "sudo -S yum ..." For Input Output As "Process" > Print #hProcess, sPass > hProcess.Wait() > > This way, you write the password sPass and the newline sudo wants into the > standard input of the sudo process - which is, by means of "For Input > Output" connected to a pty - which is the same thing that "echo" did in your > original code snippet but faster, and eventually resulting in working code, > I hope :-) > As I all ready implemented READ WRITE it was a small step to INPUT OUTPUT. This is how I have it now: .... sPass = tbxPass.Text sCommand = "yum install -y " & PathTemp sFull = "sudo -S " & sCommand 'TODO: Remove print Print sFull tarOutput.Text = "Start install..\n" Wait 0.05 hProcess1 = Shell sFull For Input Output As "Process1" Print #hProcess1, sPass hProcess1.Wait hProcess1.Kill .... Public Sub Process1_Read() Dim sLine As String tarOutput.Text &= "\n" Line Input #hProcess1, sLine tarOutput.Text &= sLine tarOutput.Refresh Wait 0.02 End Public Sub Process1_Error(MyError As String) tarOutput.Text &= MyError & "\n" End Again in IDE is runs In executable it gives same error as before on tty!! -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org -------------- next part -------------- A non-text attachment was scrubbed... Name: FromIDE-InputOutput.png Type: image/png Size: 29273 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: FromExecutable-InputOutput-used.png Type: image/png Size: 12379 bytes Desc: not available URL: From bbruen at ...2308... Thu Mar 28 06:39:01 2013 From: bbruen at ...2308... (Bruce) Date: Thu, 28 Mar 2013 16:09:01 +1030 Subject: [Gambas-user] Feature request: project refresh should reload dependencies Message-ID: <1364449142.28862.4.camel@...2688...> Hi Beno?t, It would be helpful if the IDE Project Refresh action re-read the project dependencies (components and libraries) so that when working on a main project and a library at the same time we didn't have to keep quitting and re-opening the main program in order to get new features in the dependency visible in the auto-complete. TIA Bruce From bbruen at ...2308... Thu Mar 28 07:35:10 2013 From: bbruen at ...2308... (Bruce) Date: Thu, 28 Mar 2013 17:05:10 +1030 Subject: [Gambas-user] Select Case problem Message-ID: <1364452510.28862.15.camel@...2688...> Hi, I am trying to parse a text file that contains key,value pairs like: Name=Malarky Size=10 BackImage[N]=sometext FrontImage[S]=sometext etc using a construct like For idx = 0 to sourcearray.max Select Upper(Split(SourceArray[idx],"+")[0]) Case "NAME" blah blah Case "SIZE" blah blah Case Like "BACKIMAGE[*]" blah blah Case Like "FRONTIMAGE[*]" blah blah End Select Next This fails because Case Like "BACKIMAGE[*]" is being interpreted as a regular expression where I need to escape the regexp "[]" meaning. Trying to use escapes like Case Like "BACKIMAGE\[*\]" fails as \[ is an unknown escape sequence. Any clues? tia Bruce From bbruen at ...2308... Thu Mar 28 07:47:20 2013 From: bbruen at ...2308... (Bruce) Date: Thu, 28 Mar 2013 17:17:20 +1030 Subject: [Gambas-user] Select Case problem In-Reply-To: <1364452510.28862.15.camel@...2688...> References: <1364452510.28862.15.camel@...2688...> Message-ID: <1364453240.28862.18.camel@...2688...> On Thu, 2013-03-28 at 17:05 +1030, Bruce wrote: > Hi, > > I am trying to parse a text file that contains key,value pairs like: > Name=Malarky > Size=10 > BackImage[N]=sometext > FrontImage[S]=sometext > etc > using a construct like > For idx = 0 to sourcearray.max > Select Upper(Split(SourceArray[idx],"+")[0]) > Case "NAME" > blah blah > Case "SIZE" > blah blah > Case Like "BACKIMAGE[*]" > blah blah > Case Like "FRONTIMAGE[*]" > blah blah > End Select > Next > > This fails because Case Like "BACKIMAGE[*]" is being interpreted as a > regular expression where I need to escape the regexp "[]" meaning. > > Trying to use escapes like > Case Like "BACKIMAGE\[*\]" > fails as \[ is an unknown escape sequence. > > Any clues? > > tia > Bruce > Sorry, I have over simplified that. I also need to discern lines like BACKIMAGE[*] from lines like BACKIMAGE[*][*] so Like "BACKIMAGE*" wont work. B From taboege at ...626... Thu Mar 28 10:15:06 2013 From: taboege at ...626... (Tobias Boege) Date: Thu, 28 Mar 2013 10:15:06 +0100 Subject: [Gambas-user] Select Case problem In-Reply-To: <1364453240.28862.18.camel@...2688...> References: <1364452510.28862.15.camel@...2688...> <1364453240.28862.18.camel@...2688...> Message-ID: <20130328091506.GA646@...2774...> On Thu, 28 Mar 2013, Bruce wrote: > On Thu, 2013-03-28 at 17:05 +1030, Bruce wrote: > > Hi, > > > > I am trying to parse a text file that contains key,value pairs like: > > Name=Malarky > > Size=10 > > BackImage[N]=sometext > > FrontImage[S]=sometext > > etc > > using a construct like > > For idx = 0 to sourcearray.max > > Select Upper(Split(SourceArray[idx],"+")[0]) > > Case "NAME" > > blah blah > > Case "SIZE" > > blah blah > > Case Like "BACKIMAGE[*]" > > blah blah > > Case Like "FRONTIMAGE[*]" > > blah blah > > End Select > > Next > > > > This fails because Case Like "BACKIMAGE[*]" is being interpreted as a > > regular expression where I need to escape the regexp "[]" meaning. > > > > Trying to use escapes like > > Case Like "BACKIMAGE\[*\]" > > fails as \[ is an unknown escape sequence. > > > > Any clues? > > > > tia > > Bruce > > > > Sorry, I have over simplified that. I also need to discern lines like > BACKIMAGE[*] > from lines like > BACKIMAGE[*][*] > so > Like "BACKIMAGE*" > wont work. > > B OK. If the lines above (from your most recent mail) are literal strings, then you'll need something like: Case Like "BACKIMAGE\\[*\\]" ' The compiler transforms "\\" to a literal "\" ' so that you end up with the right expression. to match "BACKIMAGE[*]" but since you want to distinguish between, e.g. "BACKIMAGE[*]" and "BACKIMAGE[*][*]" - why would you use "Case Like", i.e. a regular expression at all? These are distinct strings you want to keep distinct, no need to group them by regular expressions then? Regards, Tobi From taboege at ...626... Thu Mar 28 10:20:46 2013 From: taboege at ...626... (Tobias Boege) Date: Thu, 28 Mar 2013 10:20:46 +0100 Subject: [Gambas-user] Select Case problem In-Reply-To: <20130328091506.GA646@...2774...> References: <1364452510.28862.15.camel@...2688...> <1364453240.28862.18.camel@...2688...> <20130328091506.GA646@...2774...> Message-ID: <20130328092046.GB646@...2774...> On Thu, 28 Mar 2013, Tobias Boege wrote: > On Thu, 28 Mar 2013, Bruce wrote: > > On Thu, 2013-03-28 at 17:05 +1030, Bruce wrote: > > > Hi, > > > > > > I am trying to parse a text file that contains key,value pairs like: > > > Name=Malarky > > > Size=10 > > > BackImage[N]=sometext > > > FrontImage[S]=sometext > > > etc > > > using a construct like > > > For idx = 0 to sourcearray.max > > > Select Upper(Split(SourceArray[idx],"+")[0]) > > > Case "NAME" > > > blah blah > > > Case "SIZE" > > > blah blah > > > Case Like "BACKIMAGE[*]" > > > blah blah > > > Case Like "FRONTIMAGE[*]" > > > blah blah > > > End Select > > > Next > > > > > > This fails because Case Like "BACKIMAGE[*]" is being interpreted as a > > > regular expression where I need to escape the regexp "[]" meaning. > > > > > > Trying to use escapes like > > > Case Like "BACKIMAGE\[*\]" > > > fails as \[ is an unknown escape sequence. > > > > > > Any clues? > > > > > > tia > > > Bruce > > > > > > > Sorry, I have over simplified that. I also need to discern lines like > > BACKIMAGE[*] > > from lines like > > BACKIMAGE[*][*] > > so > > Like "BACKIMAGE*" > > wont work. > > > > B > > OK. If the lines above (from your most recent mail) are literal strings, > then you'll need something like: > > Case Like "BACKIMAGE\\[*\\]" ' The compiler transforms "\\" to a literal "\" > ' so that you end up with the right expression. > > to match "BACKIMAGE[*]" but since you want to distinguish between, e.g. > "BACKIMAGE[*]" and "BACKIMAGE[*][*]" - why would you use "Case Like", i.e. a > regular expression at all? These are distinct strings you want to keep > distinct, no need to group them by regular expressions then? Oops, since you want "[*]" literal at the end of your strings which are actually three characters with special LIKE meaning, you must use: Case Like "BACKIMAGE\\[\\*\\]" Just in case you still need regular expressions and I misunderstood something. Regards, Tobi From gambas at ...1... Thu Mar 28 10:57:34 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 28 Mar 2013 10:57:34 +0100 Subject: [Gambas-user] Select Case problem In-Reply-To: <1364453240.28862.18.camel@...2688...> References: <1364452510.28862.15.camel@...2688...> <1364453240.28862.18.camel@...2688...> Message-ID: <5154140E.5080609@...1...> Le 28/03/2013 07:47, Bruce a ?crit : > On Thu, 2013-03-28 at 17:05 +1030, Bruce wrote: >> Hi, >> >> I am trying to parse a text file that contains key,value pairs like: >> Name=Malarky >> Size=10 >> BackImage[N]=sometext >> FrontImage[S]=sometext >> etc >> using a construct like >> For idx = 0 to sourcearray.max >> Select Upper(Split(SourceArray[idx],"+")[0]) >> Case "NAME" >> blah blah >> Case "SIZE" >> blah blah >> Case Like "BACKIMAGE[*]" >> blah blah >> Case Like "FRONTIMAGE[*]" >> blah blah >> End Select >> Next >> >> This fails because Case Like "BACKIMAGE[*]" is being interpreted as a >> regular expression where I need to escape the regexp "[]" meaning. >> >> Trying to use escapes like >> Case Like "BACKIMAGE\[*\]" >> fails as \[ is an unknown escape sequence. >> >> Any clues? >> >> tia >> Bruce >> > > Sorry, I have over simplified that. I also need to discern lines like > BACKIMAGE[*] > from lines like > BACKIMAGE[*][*] > so > Like "BACKIMAGE*" > wont work. > > B > Case "BACKIMAGE[[]*]" Case "BACKIMAGE[[]*][[]*]" Is that what you want? Escaping '[' character in regular expression is done by using "[[]" or "\\[". (see the documentation of LIKE). Regards, -- Beno?t Minisini From taboege at ...626... Thu Mar 28 11:04:44 2013 From: taboege at ...626... (Tobias Boege) Date: Thu, 28 Mar 2013 11:04:44 +0100 Subject: [Gambas-user] Select Case problem In-Reply-To: <5154140E.5080609@...1...> References: <1364452510.28862.15.camel@...2688...> <1364453240.28862.18.camel@...2688...> <5154140E.5080609@...1...> Message-ID: <20130328100444.GD646@...2774...> On Thu, 28 Mar 2013, Beno?t Minisini wrote: > Le 28/03/2013 07:47, Bruce a ?crit : > > On Thu, 2013-03-28 at 17:05 +1030, Bruce wrote: > >> Hi, > >> > >> I am trying to parse a text file that contains key,value pairs like: > >> Name=Malarky > >> Size=10 > >> BackImage[N]=sometext > >> FrontImage[S]=sometext > >> etc > >> using a construct like > >> For idx = 0 to sourcearray.max > >> Select Upper(Split(SourceArray[idx],"+")[0]) > >> Case "NAME" > >> blah blah > >> Case "SIZE" > >> blah blah > >> Case Like "BACKIMAGE[*]" > >> blah blah > >> Case Like "FRONTIMAGE[*]" > >> blah blah > >> End Select > >> Next > >> > >> This fails because Case Like "BACKIMAGE[*]" is being interpreted as a > >> regular expression where I need to escape the regexp "[]" meaning. > >> > >> Trying to use escapes like > >> Case Like "BACKIMAGE\[*\]" > >> fails as \[ is an unknown escape sequence. > >> > >> Any clues? > >> > >> tia > >> Bruce > >> > > > > Sorry, I have over simplified that. I also need to discern lines like > > BACKIMAGE[*] > > from lines like > > BACKIMAGE[*][*] > > so > > Like "BACKIMAGE*" > > wont work. > > > > B > > > > Case "BACKIMAGE[[]*]" > Case "BACKIMAGE[[]*][[]*]" > > Is that what you want? > > Escaping '[' character in regular expression is done by using "[[]" or > "\\[". (see the documentation of LIKE). > This expression (the first one of yours) would match "BACKIMAGE[", "BACKIMAGE*" or "BACKIMAGE]" but not "BACKIMAGE[*]" Using the []-LIKE notation, the correct expression would be "BACKIMAGE[[][*][]]" but I'd prefer the "\\" style for readability in this case. CMIIW. Regards, Tobi From taboege at ...626... Thu Mar 28 11:11:36 2013 From: taboege at ...626... (Tobias Boege) Date: Thu, 28 Mar 2013 11:11:36 +0100 Subject: [Gambas-user] Select Case problem In-Reply-To: <20130328100444.GD646@...2774...> References: <1364452510.28862.15.camel@...2688...> <1364453240.28862.18.camel@...2688...> <5154140E.5080609@...1...> <20130328100444.GD646@...2774...> Message-ID: <20130328101136.GE646@...2774...> On Thu, 28 Mar 2013, Tobias Boege wrote: > On Thu, 28 Mar 2013, Beno?t Minisini wrote: > > Le 28/03/2013 07:47, Bruce a ?crit : > > > On Thu, 2013-03-28 at 17:05 +1030, Bruce wrote: > > >> Hi, > > >> > > >> I am trying to parse a text file that contains key,value pairs like: > > >> Name=Malarky > > >> Size=10 > > >> BackImage[N]=sometext > > >> FrontImage[S]=sometext > > >> etc > > >> using a construct like > > >> For idx = 0 to sourcearray.max > > >> Select Upper(Split(SourceArray[idx],"+")[0]) > > >> Case "NAME" > > >> blah blah > > >> Case "SIZE" > > >> blah blah > > >> Case Like "BACKIMAGE[*]" > > >> blah blah > > >> Case Like "FRONTIMAGE[*]" > > >> blah blah > > >> End Select > > >> Next > > >> > > >> This fails because Case Like "BACKIMAGE[*]" is being interpreted as a > > >> regular expression where I need to escape the regexp "[]" meaning. > > >> > > >> Trying to use escapes like > > >> Case Like "BACKIMAGE\[*\]" > > >> fails as \[ is an unknown escape sequence. > > >> > > >> Any clues? > > >> > > >> tia > > >> Bruce > > >> > > > > > > Sorry, I have over simplified that. I also need to discern lines like > > > BACKIMAGE[*] > > > from lines like > > > BACKIMAGE[*][*] > > > so > > > Like "BACKIMAGE*" > > > wont work. > > > > > > B > > > > > > > Case "BACKIMAGE[[]*]" > > Case "BACKIMAGE[[]*][[]*]" > > > > Is that what you want? > > > > Escaping '[' character in regular expression is done by using "[[]" or > > "\\[". (see the documentation of LIKE). > > > > This expression (the first one of yours) would match > > "BACKIMAGE[", "BACKIMAGE*" or "BACKIMAGE]" > > but not > > "BACKIMAGE[*]" > > Using the []-LIKE notation, the correct expression would be > > "BACKIMAGE[[][*][]]" > > but I'd prefer the "\\" style for readability in this case. CMIIW. Ahh! Ok, I mis-parsed your expressions. They _will_ match "BACKIMAGE[*]", but also something like "BACKIMAGE[a]" which may or maybe not what Bruce wants... From gambas at ...2524... Thu Mar 28 14:29:43 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 28 Mar 2013 13:29:43 +0000 Subject: [Gambas-user] Issue 415 in gambas: Cannot run child process (native code) In-Reply-To: <6-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> References: <6-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> <0-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Message-ID: <7-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Comment #7 on issue 415 by r... at ...1740...: Cannot run child process (native code) http://code.google.com/p/gambas/issues/detail?id=415 What can I do to get more info about which part of Gambas triggers this? Is it the Exec/Shell command or something else? Then I can try to strip down the code to get a sample project to reproduce this. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Thu Mar 28 14:36:57 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 28 Mar 2013 13:36:57 +0000 Subject: [Gambas-user] Issue 415 in gambas: Cannot run child process (native code) In-Reply-To: <7-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> References: <7-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> <0-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Message-ID: <8-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Comment #8 on issue 415 by benoit.m... at ...626...: Cannot run child process (native code) http://code.google.com/p/gambas/issues/detail?id=415 Normally, this error is the consequence of the last EXEC or SHELL instruction. Can you print each EXEC/SHELL arguments each time you call it? If it is too complex, I can add debugging information in the interpreter instead. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Thu Mar 28 15:25:09 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 28 Mar 2013 14:25:09 +0000 Subject: [Gambas-user] Issue 415 in gambas: Cannot run child process (native code) In-Reply-To: <8-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> References: <8-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> <0-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Message-ID: <9-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Comment #9 on issue 415 by r... at ...1740...: Cannot run child process (native code) http://code.google.com/p/gambas/issues/detail?id=415 I enabled these in gbx_exec.c and started again #define DEBUG_STACK 1 #define SHOW_FUNCTION 1 I got these as last entries... does is reveal anything more? I will add DEBUG lines to my code (about 25 places with exec/shell enabled) | >> EXEC_leave | SP = 6 BP = 0 FP = 0xd515e4 PC = 0xd52dbc EC = 0xd52dbe | << EXEC_leave() | SP = 0 BP = 5143040 FP = (nil) PC = (nil) EC = (nil) | >> EXEC_native: Stream.m_free (0x7fffffffd548) | << EXEC_native: m_free (0x7fffffffd548) | >> EXEC_native: Process.m_free (0x7fffffffd548) | << EXEC_native: m_free (0x7fffffffd548) Program received signal SIGTRAP, Trace/breakpoint trap. throw_last_child_error (signum=, data=) at gbx_c_process.c:256 256 if (child_error < 0) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Thu Mar 28 15:46:36 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 28 Mar 2013 14:46:36 +0000 Subject: [Gambas-user] Issue 415 in gambas: Cannot run child process (native code) In-Reply-To: <9-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> References: <9-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> <0-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Message-ID: <10-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Comment #10 on issue 415 by r... at ...1740...: Cannot run child process (native code) http://code.google.com/p/gambas/issues/detail?id=415 I enabled DEBUG_ME in gbx_c_process.c and I'm waiting for it to fail.. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Thu Mar 28 17:07:47 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 28 Mar 2013 16:07:47 +0000 Subject: [Gambas-user] Issue 415 in gambas: Cannot run child process (native code) In-Reply-To: <10-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> References: <10-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> <0-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Message-ID: <11-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Comment #11 on issue 415 by r... at ...1740...: Cannot run child process (native code) http://code.google.com/p/gambas/issues/detail?id=415 Bingo! Maybe it has to do with the missing quotes around the text, or it's random, don't know yet, nothing has changed in my code. Process_free 0xde0ee8 exit_process: 0xde0ee8 Process 32295 has returned 0 stop_process: 0xde0c48 stop_process_after: 0xde0c48 callback_error: 58 0xde0c48 callback_write: 51 0xde0c48 callback_write: 51 0xde0c48 exit_process: 0xde0c48 unwatch: 51 unwatch: 58 run_process 0xdfc698: /usr/bin/notify-send DomotiGa TV is On -i /home/ron/domotiga/icons/logo.png fork: pid = 32310 abort_child: 5 2 Process_free 0xde0c48 exit_process: 0xde0c48 Process 32294 has returned 0 stop_process: 0xde15e8 stop_process_after: 0xde15e8 exit_process: 0xde15e8 Process_free 0xde15e8 exit_process: 0xde15e8 >> callback_child << callback_child Process 32310 has returned 65280 stop_process: 0xdfc698 stop_process_after: 0xdfc698 prepare_child_error: 0xdfc698: /tmp/gambas.1000/28241/32310.child prepare_child_error: error = 5 errno = 2 exit_process: 0xdfc698 exit_process: 0xdfc698 Process_free 0xdfc698 exit_process: 0xdfc698 throw_last_child_error: 5 2 Program received signal SIGTRAP, Trace/breakpoint trap. throw_last_child_error (signum=, data=) at gbx_c_process.c:258 258 if (child_error < 0) (gdb) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Thu Mar 28 17:28:11 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 28 Mar 2013 16:28:11 +0000 Subject: [Gambas-user] Issue 415 in gambas: Cannot run child process (native code) In-Reply-To: <11-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> References: <11-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> <0-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Message-ID: <12-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Comment #12 on issue 415 by benoit.m... at ...626...: Cannot run child process (native code) http://code.google.com/p/gambas/issues/detail?id=415 if errno = 2 is "No such file or directory", that shoould means "/usr/bin/notify-send" does not exist. Can you check that? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Thu Mar 28 17:35:35 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 28 Mar 2013 16:35:35 +0000 Subject: [Gambas-user] Issue 415 in gambas: Cannot run child process (native code) In-Reply-To: <12-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> References: <12-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> <0-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Message-ID: <13-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Comment #13 on issue 415 by benoit.m... at ...626...: Cannot run child process (native code) http://code.google.com/p/gambas/issues/detail?id=415 if errno = 2 is "No such file or directory", that shoould means "/usr/bin/notify-send" does not exist. Can you check that? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Thu Mar 28 18:51:20 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 28 Mar 2013 17:51:20 +0000 Subject: [Gambas-user] Issue 415 in gambas: Cannot run child process (native code) In-Reply-To: <13-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> References: <13-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> <0-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Message-ID: <14-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Comment #14 on issue 415 by r... at ...1740...: Cannot run child process (native code) http://code.google.com/p/gambas/issues/detail?id=415 Correct it doesn't exist anymore. Normally (in the old days) this just raises the correct error. But it now triggers a bug. See attached project. Attachments: NativeExec-0.0.1.tar.gz 598 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Thu Mar 28 18:53:50 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 28 Mar 2013 17:53:50 +0000 Subject: [Gambas-user] Issue 415 in gambas: Cannot run child process (native code) In-Reply-To: <14-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> References: <14-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> <0-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Message-ID: <15-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Comment #15 on issue 415 by r... at ...1740...: Cannot run child process (native code) http://code.google.com/p/gambas/issues/detail?id=415 Or am I looking at the wrong error? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From vuott at ...325... Thu Mar 28 20:23:14 2013 From: vuott at ...325... (Ru Vuott) Date: Thu, 28 Mar 2013 19:23:14 +0000 (GMT) Subject: [Gambas-user] IconPanel: adding and destroying a Tab Message-ID: <1364498594.93045.YahooMailClassic@...3054...> Hello, no way to add or to destroy a Tab (but NOT at the end with .Count property) in the *middle* of IconPanel array ? Regards vuott From gambas at ...2524... Thu Mar 28 22:37:23 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 28 Mar 2013 21:37:23 +0000 Subject: [Gambas-user] Issue 415 in gambas: Cannot run child process (native code) In-Reply-To: <15-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> References: <15-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> <0-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Message-ID: <16-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Updates: Status: Started Comment #16 on issue 415 by benoit.m... at ...626...: Cannot run child process (native code) http://code.google.com/p/gambas/issues/detail?id=415 In revision #5598, when dealing with the EXEC instruction, I now check that the executable file exists before forking. If it does not exist, an error is immediately raised. Tell me if it fixes your problems. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From bbruen at ...2308... Thu Mar 28 23:19:09 2013 From: bbruen at ...2308... (Bruce) Date: Fri, 29 Mar 2013 08:49:09 +1030 Subject: [Gambas-user] Select Case problem In-Reply-To: <20130328101136.GE646@...2774...> References: <1364452510.28862.15.camel@...2688...> <1364453240.28862.18.camel@...2688...> <5154140E.5080609@...1...> <20130328100444.GD646@...2774...> <20130328101136.GE646@...2774...> Message-ID: <1364509149.28862.40.camel@...2688...> On Thu, 2013-03-28 at 11:11 +0100, Tobias Boege wrote: > > > > > > > > > > Case "BACKIMAGE[[]*]" > > > Case "BACKIMAGE[[]*][[]*]" > > > > > > Is that what you want? > > > > > > Escaping '[' character in regular expression is done by using "[[]" or > > > "\\[". (see the documentation of LIKE). > > > > > ... > "BACKIMAGE[*]", but also something like "BACKIMAGE[a]" which may or maybe > not what Bruce wants... Thanks guys, That was the escape sequence I needed. I just couldn't see it in the LIKE help page. I guess I'll have to put that "Read EVERY word in the help page!" sign back up above my desk. By way of demystification, we have over 1500 text parameter files that represent 50 or so objects. These have evolved over several generations of the software which now has too much "back compatibility" code in it. So we now need to standardise all these parameter files to the current release "shape". The "xxxIMAGE" parameters now looks for example like BACKIMAGE[N][1][0]=filename BACKIMAGE[E][1][0]=filename BACKIMAGE[E][2][0]=filename but different parameter files might have BACKIMAGE[N]=filename,1 (at ver 1.0) BACKIMAGE[E]=filename,1,2 (at ver 3.0) BACKIMAGE[N][3]=filename (at ver 3.x) etc (and xxxIMAGE is only one example of the problem!) Given an arbitrary parameter file there is no way to detect which software version it comes from. This is further exacerbated by the fact that individual lines in a file may accord to different versions of the parameter syntax. So each line in the file has to be parsed to detect its' likely syntax version and reprocessed accordingly. Hence, Select Upper(Split(SourceArray[idx],"=")[0]) Case Like "BACKIMAGE[[]*]" 'looks like a ver 1.0 to 3.0 syntax, so ' parse the second half of the line and pick the correct process Case Like "BACKIMAGE[[]*][[]*]" ' looks like a ver 3.x syntax, so TargetArray[idx]=ReformatBackImage_3x(SourceArray[idx]) Case Like "BACKIMAGE[[*][[*][[*]" ' is current syntax, so TargetArray[idx]=SourceArray[idx] etc etc Thanks again Bruce From gambas at ...2524... Fri Mar 29 10:08:29 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 29 Mar 2013 09:08:29 +0000 Subject: [Gambas-user] Issue 415 in gambas: Cannot run child process (native code) In-Reply-To: <16-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> References: <16-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> <0-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Message-ID: <17-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Comment #17 on issue 415 by r... at ...1740...: Cannot run child process (native code) http://code.google.com/p/gambas/issues/detail?id=415 Testing with the code. The native error is gone. But strange things happen. I get: 2013/03/29 10:01:59 ERROR: Parsing Ping Result: File or directory does not exist at Main.NotifySend.6349 The Error.Text and Error.Where are correct, but the line displaying the error is somewhere in a different part of the project. The '2013/03/29 10:01:59 ERROR: Parsing Ping Result:' Is a ping module which works ok. Ping.Module: Catch Main.WriteDebugLog(("ERROR: Parsing Ping Result: ") & Error.Text & " at " & Error.Where) As if the error management is mixed up. There is no Catch in the Main.NotifySend routine yet, but does it then propagate to a completely different part of the project?? Is this another bug? I hope not, I finally want to switch to Gambas3, but I can't. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Mar 29 11:53:34 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 29 Mar 2013 10:53:34 +0000 Subject: [Gambas-user] Issue 415 in gambas: Cannot run child process (native code) In-Reply-To: <17-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> References: <17-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> <0-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Message-ID: <18-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Comment #18 on issue 415 by r... at ...1740...: Cannot run child process (native code) http://code.google.com/p/gambas/issues/detail?id=415 If I add a Catch section to the Main.NotifySend routine, it's ok. 2013/03/29 11:50:27 ERROR: NotifySend Result: File or directory does not exist at Main.NotifySend.6349 -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From taboege at ...626... Fri Mar 29 20:48:37 2013 From: taboege at ...626... (Tobias Boege) Date: Fri, 29 Mar 2013 20:48:37 +0100 Subject: [Gambas-user] Desktop.SendMail() into Thunderbird leaves clobbered data Message-ID: <20130329194836.GE498@...2774...> Hi, has anyone had practise with Desktop.SendMail() yet? Hans got problems with data being transformed into that URL-style %XX notation but not back again in his mail client (Thunderbird 17.x or so, just read his mail headers), resulting in wrong mail addresses. I attach the two screenshots he gave me. Can we pin this issue to be the client's fault? I myself didn't test it because I have no graphical mail client to test against, sorry. Regards, Tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: Desktop_Warnung.png Type: image/png Size: 19632 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Desktop_Warnung2.png Type: image/png Size: 29696 bytes Desc: not available URL: From gambas at ...2524... Sat Mar 30 00:35:32 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 29 Mar 2013 23:35:32 +0000 Subject: [Gambas-user] Issue 415 in gambas: Cannot run child process (native code) In-Reply-To: <18-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> References: <18-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> <0-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Message-ID: <19-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Comment #19 on issue 415 by benoit.m... at ...626...: Cannot run child process (native code) http://code.google.com/p/gambas/issues/detail?id=415 I don't understand what is mixed up exactly in the error management (message #17). Can you give more details of what happens? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Mar 30 10:11:14 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 30 Mar 2013 09:11:14 +0000 Subject: [Gambas-user] Issue 415 in gambas: Cannot run child process (native code) In-Reply-To: <19-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> References: <19-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> <0-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Message-ID: <20-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Comment #20 on issue 415 by r... at ...1740...: Cannot run child process (native code) http://code.google.com/p/gambas/issues/detail?id=415 Difficult to explain, i'll try... The routine (Main.NotifySend) with the Exec["/notfound"] code doesn't have a Catch section. During the execution of this code, the error "File not found" is raised with you latest patch. But the project/ide does not stop in this routine displaying the error (since there is no Catch this should happen) But in another section in the project there are other shell commands run (async) one of them is a Shell cmd running bti to send a tweet it has a _Kill event defined, which checks the Last.Value in this code and it gets the error code 2, and in another part of the project a Ping command runs from a Shell command too, it's _Kill event also reads Last.Value and Last.Tag but this routine also has a Catch section. And the Error.Where and Error.Text there are filled with the error from Main.NotifySend. So with the patch and without the Catch code in Main.NotifySend, all kinds of Shell processes seem to fail (so it seems since the error code gets triggered) because they inherit the error info from Main.NotifySend. This never happened before. As if the different Shell processes mix up their error status. I'm trying to create a test project, but it's not easy. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From taboege at ...626... Sat Mar 30 11:49:28 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 30 Mar 2013 11:49:28 +0100 Subject: [Gambas-user] Strange problem with running Shell on Fedora (code works in IDE but not in executable!!) In-Reply-To: <1364601367.5555.6.camel@...3024...> References: <1364399417.2916.14.camel@...3024...> <20130327162255.GD733@...2774...> <1364405102.2916.40.camel@...3024...> <1364407369.2916.43.camel@...3024...> <20130327191456.GH733@...2774...> <1364601367.5555.6.camel@...3024...> Message-ID: <20130330104928.GG498@...2774...> On Sat, 30 Mar 2013, Willy Raets wrote: > On Wed, 2013-03-27 at 20:14 +0100, Tobias Boege wrote: > > On Wed, 27 Mar 2013, Willy Raets wrote: > > > Okay, got what you meant. > > > I implemented for read write and send password using priny right after > > > the shell call. > > > In IDE all still works as before > > > In Executable same error message as before: > > > 'sudo: sorry, you must have a tty to run sudo' > > > > > > Any other suggestions? > > > > I'm attaching a minimal project that *does* work on my system. My test cases > > were: > > > > | Run from | Using "For Read Write" | Using "For Input Output" | > > | IDE | OK | OK | > > | Terminal | OK | OK | > > | Desktop | OK | OK | > > > > so I always got root and my assumption with the pty was wrong. This is good > > news - although I don't understand it. I never got your tty error... > > > > So I wrote a program to open /dev/tty as sudo does, according to my sudo > > sources. This program _failed_ when run via double-click from desktop - as I > > expected. How strange that sudo didn't complain then, I have no idea about > > why this worked above... But I don't really have the desire to find it out. > > > > BTW, my sudo (and source I'm staring at) is sudo-1.8.6p7. > > > > Since your project does not work, it is either a system issue (what's your > > sudo version?) or in another part of your program (the hProcess1.Wait() > > looks strange - at least, I never used that method). Could you try the > > attached project so that we can throw away the "system issue" idea (or not)? > > > > So, if my project works for you, experiment with it to get yours working. > > > > Regards, > > Tobi > > Okay Tobi, > > I finally had time to get this tested. > > I first run it on my LinuxMint 13 - Mate 1.4.0 - Gambas 3.3.4 > - runs in IDE > - runs from executable > > sudo-1.8.3p1 > > Next I run it on Fedora 17 - LXDE 0.8.12 - Gambas 3.4.0 > - runs in IDE (see SudoIDE.png) > - Error in executable (see Sudo.png) > > sudo-1.8.6p7 > > So, is this a Gambas shell problem in combination with certain > circumstances present on the system or sudo related? > > I'll test on some more distros later and report back any discoveries. Hmm. I have sudo-1.8.6p7 in use (more accurately, the error comes from the 'sudoers' plugin but it has the same version here) on Arch Linux and, as I said, my test program works. Well, I had another look at the source code and it seems that there's a certain variable 'def_requiretty' which is zero in my system's package and prevents checking /dev/tty at all. This finally explains why all test cases worked on my system even though there was no /dev/tty accessible from Desktop. See sudoers(5) for a description and how to deactivate this in the sudoers configuration. Since editing user configurations to make programs work is often not desirable, I experimented with a patched sudo that requires the tty et voila! Got the same error as yours when running from desktop. However, now I can't solve it either :-) I'll start another thread to attract Benoit's attention again... Regards, Tobi From taboege at ...626... Sat Mar 30 12:11:36 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 30 Mar 2013 12:11:36 +0100 Subject: [Gambas-user] Strange problem with running Shell on Fedora (code works in IDE but not in executable!!) In-Reply-To: <20130330104928.GG498@...2774...> References: <1364399417.2916.14.camel@...3024...> <20130327162255.GD733@...2774...> <1364405102.2916.40.camel@...3024...> <1364407369.2916.43.camel@...3024...> <20130327191456.GH733@...2774...> <1364601367.5555.6.camel@...3024...> <20130330104928.GG498@...2774...> Message-ID: <20130330111136.GH498@...2774...> On Sat, 30 Mar 2013, Tobias Boege wrote: > Hmm. I have sudo-1.8.6p7 in use (more accurately, the error comes from the > 'sudoers' plugin but it has the same version here) on Arch Linux and, as I > said, my test program works. > > Well, I had another look at the source code and it seems that there's a > certain variable 'def_requiretty' which is zero in my system's package and > prevents checking /dev/tty at all. This finally explains why all test cases > worked on my system even though there was no /dev/tty accessible from > Desktop. See sudoers(5) for a description and how to deactivate this in the > sudoers configuration. > > Since editing user configurations to make programs work is often not > desirable, I experimented with a patched sudo that requires the tty et > voila! Got the same error as yours when running from desktop. However, now > I can't solve it either :-) > > I'll start another thread to attract Benoit's attention again... > Hmm, nevermind. You can use the Exec instruction to get it to work: hProcess = Exec ["sudo", "-s", "id", "-u" ] For Input Output As "Process" This is how the IDE does it and as you mentioned, the IDE gets it correctly. Maybe someone can enlighten us why it doesn't work with Shell but it's not that important to me. Regards, Tobi From gambas at ...1... Sat Mar 30 13:05:11 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 30 Mar 2013 13:05:11 +0100 Subject: [Gambas-user] Strange problem with running Shell on Fedora (code works in IDE but not in executable!!) In-Reply-To: <20130330111136.GH498@...2774...> References: <1364399417.2916.14.camel@...3024...> <20130327162255.GD733@...2774...> <1364405102.2916.40.camel@...3024...> <1364407369.2916.43.camel@...3024...> <20130327191456.GH733@...2774...> <1364601367.5555.6.camel@...3024...> <20130330104928.GG498@...2774...> <20130330111136.GH498@...2774...> Message-ID: <5156D4F7.4040307@...1...> Le 30/03/2013 12:11, Tobias Boege a ?crit : > On Sat, 30 Mar 2013, Tobias Boege wrote: >> Hmm. I have sudo-1.8.6p7 in use (more accurately, the error comes from the >> 'sudoers' plugin but it has the same version here) on Arch Linux and, as I >> said, my test program works. >> >> Well, I had another look at the source code and it seems that there's a >> certain variable 'def_requiretty' which is zero in my system's package and >> prevents checking /dev/tty at all. This finally explains why all test cases >> worked on my system even though there was no /dev/tty accessible from >> Desktop. See sudoers(5) for a description and how to deactivate this in the >> sudoers configuration. >> >> Since editing user configurations to make programs work is often not >> desirable, I experimented with a patched sudo that requires the tty et >> voila! Got the same error as yours when running from desktop. However, now >> I can't solve it either :-) >> >> I'll start another thread to attract Benoit's attention again... >> > > Hmm, nevermind. You can use the Exec instruction to get it to work: > > hProcess = Exec ["sudo", "-s", "id", "-u" ] For Input Output As "Process" > > This is how the IDE does it and as you mentioned, the IDE gets it correctly. > Maybe someone can enlighten us why it doesn't work with Shell but it's not > that important to me. > > Regards, > Tobi > SHELL "a b c" ... is equivalent to: EXEC [ System.Shell, "-c", "a b c" ] with a call to setpgid(0,0) to create its own session like an independant shell. As for virtual terminal creation, they work both the same. - "For Input Output" => create a virtual terminal for the i/o of the child process, and get the i/o of the child process through it. - "For Read Write" => Just redirect the i/o of the child process to get them in the parent process. Can you try to replace "SHELL ..." by "EXEC [ System.Shell, "-c", ... ]" and tell me if it works better? -- Beno?t Minisini From taboege at ...626... Sat Mar 30 13:14:40 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 30 Mar 2013 13:14:40 +0100 Subject: [Gambas-user] Strange problem with running Shell on Fedora (code works in IDE but not in executable!!) In-Reply-To: <5156D4F7.4040307@...1...> References: <1364399417.2916.14.camel@...3024...> <20130327162255.GD733@...2774...> <1364405102.2916.40.camel@...3024...> <1364407369.2916.43.camel@...3024...> <20130327191456.GH733@...2774...> <1364601367.5555.6.camel@...3024...> <20130330104928.GG498@...2774...> <20130330111136.GH498@...2774...> <5156D4F7.4040307@...1...> Message-ID: <20130330121440.GI498@...2774...> On Sat, 30 Mar 2013, Beno?t Minisini wrote: > Le 30/03/2013 12:11, Tobias Boege a ?crit : > > On Sat, 30 Mar 2013, Tobias Boege wrote: > >> Hmm. I have sudo-1.8.6p7 in use (more accurately, the error comes from the > >> 'sudoers' plugin but it has the same version here) on Arch Linux and, as I > >> said, my test program works. > >> > >> Well, I had another look at the source code and it seems that there's a > >> certain variable 'def_requiretty' which is zero in my system's package and > >> prevents checking /dev/tty at all. This finally explains why all test cases > >> worked on my system even though there was no /dev/tty accessible from > >> Desktop. See sudoers(5) for a description and how to deactivate this in the > >> sudoers configuration. > >> > >> Since editing user configurations to make programs work is often not > >> desirable, I experimented with a patched sudo that requires the tty et > >> voila! Got the same error as yours when running from desktop. However, now > >> I can't solve it either :-) > >> > >> I'll start another thread to attract Benoit's attention again... > >> > > > > Hmm, nevermind. You can use the Exec instruction to get it to work: > > > > hProcess = Exec ["sudo", "-s", "id", "-u" ] For Input Output As "Process" > > > > This is how the IDE does it and as you mentioned, the IDE gets it correctly. > > Maybe someone can enlighten us why it doesn't work with Shell but it's not > > that important to me. > > > > Regards, > > Tobi > > > > SHELL "a b c" ... > > is equivalent to: > > EXEC [ System.Shell, "-c", "a b c" ] > > with a call to setpgid(0,0) to create its own session like an > independant shell. > > As for virtual terminal creation, they work both the same. > > - "For Input Output" => create a virtual terminal for the i/o of the > child process, and get the i/o of the child process through it. > > - "For Read Write" => Just redirect the i/o of the child process to get > them in the parent process. > > Can you try to replace "SHELL ..." by "EXEC [ System.Shell, "-c", ... ]" > and tell me if it works better? > Exec [System.Shell, "-c", "sudo -s id -u"] For Input Output It works! Regards, Tobi From gambas at ...1... Sat Mar 30 13:30:56 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 30 Mar 2013 13:30:56 +0100 Subject: [Gambas-user] Strange problem with running Shell on Fedora (code works in IDE but not in executable!!) In-Reply-To: <20130330121440.GI498@...2774...> References: <1364399417.2916.14.camel@...3024...> <20130327162255.GD733@...2774...> <1364405102.2916.40.camel@...3024...> <1364407369.2916.43.camel@...3024...> <20130327191456.GH733@...2774...> <1364601367.5555.6.camel@...3024...> <20130330104928.GG498@...2774...> <20130330111136.GH498@...2774...> <5156D4F7.4040307@...1...> <20130330121440.GI498@...2774...> Message-ID: <5156DB00.9010108@...1...> Le 30/03/2013 13:14, Tobias Boege a ?crit : >> >> SHELL "a b c" ... >> >> is equivalent to: >> >> EXEC [ System.Shell, "-c", "a b c" ] >> >> with a call to setpgid(0,0) to create its own session like an >> independant shell. >> >> As for virtual terminal creation, they work both the same. >> >> - "For Input Output" => create a virtual terminal for the i/o of the >> child process, and get the i/o of the child process through it. >> >> - "For Read Write" => Just redirect the i/o of the child process to get >> them in the parent process. >> >> Can you try to replace "SHELL ..." by "EXEC [ System.Shell, "-c", ... ]" >> and tell me if it works better? >> > > Exec [System.Shell, "-c", "sudo -s id -u"] For Input Output > > It works! > > Regards, > Tobi > So is it the setpgid() call that prevents sudo from finding the virtual terminal? Strange... -- Beno?t Minisini From taboege at ...626... Sat Mar 30 13:39:58 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 30 Mar 2013 13:39:58 +0100 Subject: [Gambas-user] Strange problem with running Shell on Fedora (code works in IDE but not in executable!!) In-Reply-To: <5156DB00.9010108@...1...> References: <20130327162255.GD733@...2774...> <1364405102.2916.40.camel@...3024...> <1364407369.2916.43.camel@...3024...> <20130327191456.GH733@...2774...> <1364601367.5555.6.camel@...3024...> <20130330104928.GG498@...2774...> <20130330111136.GH498@...2774...> <5156D4F7.4040307@...1...> <20130330121440.GI498@...2774...> <5156DB00.9010108@...1...> Message-ID: <20130330123958.GJ498@...2774...> On Sat, 30 Mar 2013, Beno?t Minisini wrote: > Le 30/03/2013 13:14, Tobias Boege a ?crit : > >> > >> SHELL "a b c" ... > >> > >> is equivalent to: > >> > >> EXEC [ System.Shell, "-c", "a b c" ] > >> > >> with a call to setpgid(0,0) to create its own session like an > >> independant shell. > >> > >> As for virtual terminal creation, they work both the same. > >> > >> - "For Input Output" => create a virtual terminal for the i/o of the > >> child process, and get the i/o of the child process through it. > >> > >> - "For Read Write" => Just redirect the i/o of the child process to get > >> them in the parent process. > >> > >> Can you try to replace "SHELL ..." by "EXEC [ System.Shell, "-c", ... ]" > >> and tell me if it works better? > >> > > > > Exec [System.Shell, "-c", "sudo -s id -u"] For Input Output > > > > It works! > > > > Regards, > > Tobi > > > > So is it the setpgid() call that prevents sudo from finding the virtual > terminal? Strange... Well, I spent the whole forenoon searching for a solution and setpgid() was mentioned sometimes[0] when it was about acquiring a virtual terminal. Only a session leader can change the virtual terminal (setsid()) but you *must not* be a group leader (but you are by setpgid(0, 0)). This seems to be it, indeed. Regards, Tobi [0] http://blog.habets.pp.se/2009/03/Moving-a-process-to-another-terminal From willy at ...2734... Sat Mar 30 15:18:21 2013 From: willy at ...2734... (Willy Raets) Date: Sat, 30 Mar 2013 15:18:21 +0100 Subject: [Gambas-user] Strange problem with running Shell on Fedora (code works in IDE but not in executable!!) In-Reply-To: <20130330121440.GI498@...2774...> References: <1364399417.2916.14.camel@...3024...> <20130327162255.GD733@...2774...> <1364405102.2916.40.camel@...3024...> <1364407369.2916.43.camel@...3024...> <20130327191456.GH733@...2774...> <1364601367.5555.6.camel@...3024...> <20130330104928.GG498@...2774...> <20130330111136.GH498@...2774...> <5156D4F7.4040307@...1...> <20130330121440.GI498@...2774...> Message-ID: <1364653101.2022.5.camel@...3024...> On Sat, 2013-03-30 at 13:14 +0100, Tobias Boege wrote: > On Sat, 30 Mar 2013, Beno?t Minisini wrote: > > Le 30/03/2013 12:11, Tobias Boege a ?crit : > > > On Sat, 30 Mar 2013, Tobias Boege wrote: > > >> Hmm. I have sudo-1.8.6p7 in use (more accurately, the error comes from the > > >> 'sudoers' plugin but it has the same version here) on Arch Linux and, as I > > >> said, my test program works. > > >> > > >> Well, I had another look at the source code and it seems that there's a > > >> certain variable 'def_requiretty' which is zero in my system's package and > > >> prevents checking /dev/tty at all. This finally explains why all test cases > > >> worked on my system even though there was no /dev/tty accessible from > > >> Desktop. See sudoers(5) for a description and how to deactivate this in the > > >> sudoers configuration. > > >> > > >> Since editing user configurations to make programs work is often not > > >> desirable, I experimented with a patched sudo that requires the tty et > > >> voila! Got the same error as yours when running from desktop. However, now > > >> I can't solve it either :-) > > >> > > >> I'll start another thread to attract Benoit's attention again... > > >> > > > > > > Hmm, nevermind. You can use the Exec instruction to get it to work: > > > > > > hProcess = Exec ["sudo", "-s", "id", "-u" ] For Input Output As "Process" > > > > > > This is how the IDE does it and as you mentioned, the IDE gets it correctly. > > > Maybe someone can enlighten us why it doesn't work with Shell but it's not > > > that important to me. > > > > > > Regards, > > > Tobi > > > > > > > SHELL "a b c" ... > > > > is equivalent to: > > > > EXEC [ System.Shell, "-c", "a b c" ] > > > > with a call to setpgid(0,0) to create its own session like an > > independant shell. > > > > As for virtual terminal creation, they work both the same. > > > > - "For Input Output" => create a virtual terminal for the i/o of the > > child process, and get the i/o of the child process through it. > > > > - "For Read Write" => Just redirect the i/o of the child process to get > > them in the parent process. > > > > Can you try to replace "SHELL ..." by "EXEC [ System.Shell, "-c", ... ]" > > and tell me if it works better? > > > > Exec [System.Shell, "-c", "sudo -s id -u"] For Input Output > > It works! NOT on the Fedora 17 - LXDE 0.5.12 - Gambas 3.4.0 when run from executable. Same error again Screen01.png -> Running executable with error message Screen02.png -> changed code using Exec [System.Shell .....] Somehow it is impossible to use sudo on the Fedora box from Gambas executable. Although all works when done directly in terminal by hand or when done from Gambas 3 app run in IDE. The Gambas 3 executables just refuse to work... On my Linux Mint 13 all works just fine. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen01.png Type: image/png Size: 7913 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen02.png Type: image/png Size: 15874 bytes Desc: not available URL: From gambas at ...1... Sat Mar 30 15:21:10 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 30 Mar 2013 15:21:10 +0100 Subject: [Gambas-user] Strange problem with running Shell on Fedora (code works in IDE but not in executable!!) In-Reply-To: <1364653101.2022.5.camel@...3024...> References: <1364399417.2916.14.camel@...3024...> <20130327162255.GD733@...2774...> <1364405102.2916.40.camel@...3024...> <1364407369.2916.43.camel@...3024...> <20130327191456.GH733@...2774...> <1364601367.5555.6.camel@...3024...> <20130330104928.GG498@...2774...> <20130330111136.GH498@...2774...> <5156D4F7.4040307@...1...> <20130330121440.GI498@...2774...> <1364653101.2022.5.camel@...3024...> Message-ID: <5156F4D6.1000804@...1...> Le 30/03/2013 15:18, Willy Raets a ?crit : > On Sat, 2013-03-30 at 13:14 +0100, Tobias Boege wrote: >> On Sat, 30 Mar 2013, Beno?t Minisini wrote: >>> Le 30/03/2013 12:11, Tobias Boege a ?crit : >>>> On Sat, 30 Mar 2013, Tobias Boege wrote: >>>>> Hmm. I have sudo-1.8.6p7 in use (more accurately, the error comes from the >>>>> 'sudoers' plugin but it has the same version here) on Arch Linux and, as I >>>>> said, my test program works. >>>>> >>>>> Well, I had another look at the source code and it seems that there's a >>>>> certain variable 'def_requiretty' which is zero in my system's package and >>>>> prevents checking /dev/tty at all. This finally explains why all test cases >>>>> worked on my system even though there was no /dev/tty accessible from >>>>> Desktop. See sudoers(5) for a description and how to deactivate this in the >>>>> sudoers configuration. >>>>> >>>>> Since editing user configurations to make programs work is often not >>>>> desirable, I experimented with a patched sudo that requires the tty et >>>>> voila! Got the same error as yours when running from desktop. However, now >>>>> I can't solve it either :-) >>>>> >>>>> I'll start another thread to attract Benoit's attention again... >>>>> >>>> >>>> Hmm, nevermind. You can use the Exec instruction to get it to work: >>>> >>>> hProcess = Exec ["sudo", "-s", "id", "-u" ] For Input Output As "Process" >>>> >>>> This is how the IDE does it and as you mentioned, the IDE gets it correctly. >>>> Maybe someone can enlighten us why it doesn't work with Shell but it's not >>>> that important to me. >>>> >>>> Regards, >>>> Tobi >>>> >>> >>> SHELL "a b c" ... >>> >>> is equivalent to: >>> >>> EXEC [ System.Shell, "-c", "a b c" ] >>> >>> with a call to setpgid(0,0) to create its own session like an >>> independant shell. >>> >>> As for virtual terminal creation, they work both the same. >>> >>> - "For Input Output" => create a virtual terminal for the i/o of the >>> child process, and get the i/o of the child process through it. >>> >>> - "For Read Write" => Just redirect the i/o of the child process to get >>> them in the parent process. >>> >>> Can you try to replace "SHELL ..." by "EXEC [ System.Shell, "-c", ... ]" >>> and tell me if it works better? >>> >> >> Exec [System.Shell, "-c", "sudo -s id -u"] For Input Output >> >> It works! > > NOT on the Fedora 17 - LXDE 0.5.12 - Gambas 3.4.0 when run from > executable. Same error again > > Screen01.png -> Running executable with error message > Screen02.png -> changed code using Exec [System.Shell .....] > > Somehow it is impossible to use sudo on the Fedora box from Gambas > executable. > Although all works when done directly in terminal by hand or when done > from Gambas 3 app run in IDE. The Gambas 3 executables just refuse to > work... > > On my Linux Mint 13 all works just fine. > Sorry, but you must use "For Input Output", not "For Read Write". -- Beno?t Minisini From willy at ...2734... Sat Mar 30 15:35:29 2013 From: willy at ...2734... (Willy Raets) Date: Sat, 30 Mar 2013 15:35:29 +0100 Subject: [Gambas-user] Strange problem with running Shell on Fedora (code works in IDE but not in executable!!) In-Reply-To: <5156F4D6.1000804@...1...> References: <1364399417.2916.14.camel@...3024...> <20130327162255.GD733@...2774...> <1364405102.2916.40.camel@...3024...> <1364407369.2916.43.camel@...3024...> <20130327191456.GH733@...2774...> <1364601367.5555.6.camel@...3024...> <20130330104928.GG498@...2774...> <20130330111136.GH498@...2774...> <5156D4F7.4040307@...1...> <20130330121440.GI498@...2774...> <1364653101.2022.5.camel@...3024...> <5156F4D6.1000804@...1...> Message-ID: <1364654129.2022.9.camel@...3024...> On Sat, 2013-03-30 at 15:21 +0100, Beno?t Minisini wrote: > Le 30/03/2013 15:18, Willy Raets a ?crit : > > On Sat, 2013-03-30 at 13:14 +0100, Tobias Boege wrote: > >> On Sat, 30 Mar 2013, Beno?t Minisini wrote: > >>> Le 30/03/2013 12:11, Tobias Boege a ?crit : > >>>> On Sat, 30 Mar 2013, Tobias Boege wrote: > >>>>> Hmm. I have sudo-1.8.6p7 in use (more accurately, the error comes from the > >>>>> 'sudoers' plugin but it has the same version here) on Arch Linux and, as I > >>>>> said, my test program works. > >>>>> > >>>>> Well, I had another look at the source code and it seems that there's a > >>>>> certain variable 'def_requiretty' which is zero in my system's package and > >>>>> prevents checking /dev/tty at all. This finally explains why all test cases > >>>>> worked on my system even though there was no /dev/tty accessible from > >>>>> Desktop. See sudoers(5) for a description and how to deactivate this in the > >>>>> sudoers configuration. > >>>>> > >>>>> Since editing user configurations to make programs work is often not > >>>>> desirable, I experimented with a patched sudo that requires the tty et > >>>>> voila! Got the same error as yours when running from desktop. However, now > >>>>> I can't solve it either :-) > >>>>> > >>>>> I'll start another thread to attract Benoit's attention again... > >>>>> > >>>> > >>>> Hmm, nevermind. You can use the Exec instruction to get it to work: > >>>> > >>>> hProcess = Exec ["sudo", "-s", "id", "-u" ] For Input Output As "Process" > >>>> > >>>> This is how the IDE does it and as you mentioned, the IDE gets it correctly. > >>>> Maybe someone can enlighten us why it doesn't work with Shell but it's not > >>>> that important to me. > >>>> > >>>> Regards, > >>>> Tobi > >>>> > >>> > >>> SHELL "a b c" ... > >>> > >>> is equivalent to: > >>> > >>> EXEC [ System.Shell, "-c", "a b c" ] > >>> > >>> with a call to setpgid(0,0) to create its own session like an > >>> independant shell. > >>> > >>> As for virtual terminal creation, they work both the same. > >>> > >>> - "For Input Output" => create a virtual terminal for the i/o of the > >>> child process, and get the i/o of the child process through it. > >>> > >>> - "For Read Write" => Just redirect the i/o of the child process to get > >>> them in the parent process. > >>> > >>> Can you try to replace "SHELL ..." by "EXEC [ System.Shell, "-c", ... ]" > >>> and tell me if it works better? > >>> > >> > >> Exec [System.Shell, "-c", "sudo -s id -u"] For Input Output > >> > >> It works! > > > > NOT on the Fedora 17 - LXDE 0.5.12 - Gambas 3.4.0 when run from > > executable. Same error again > > > > Screen01.png -> Running executable with error message > > Screen02.png -> changed code using Exec [System.Shell .....] > > > > Somehow it is impossible to use sudo on the Fedora box from Gambas > > executable. > > Although all works when done directly in terminal by hand or when done > > from Gambas 3 app run in IDE. The Gambas 3 executables just refuse to > > work... > > > > On my Linux Mint 13 all works just fine. > > > > Sorry, but you must use "For Input Output", not "For Read Write". Well I used Read Write because when replacing Read Write with Input Output the application does nothing but keep the system busy!! Source Archive attached (made by Tobias, adapted by me) -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org -------------- next part -------------- A non-text attachment was scrubbed... Name: gsudo-0.0.17.tar.gz Type: application/x-compressed-tar Size: 6185 bytes Desc: not available URL: From gambas at ...1... Sun Mar 31 04:01:57 2013 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Sun, 31 Mar 2013 04:01:57 +0200 Subject: [Gambas-user] Feature request: project refresh should reload dependencies In-Reply-To: <1364449142.28862.4.camel@...2688...> References: <1364449142.28862.4.camel@...2688...> Message-ID: <51579915.90003@...1...> Le 28/03/2013 06:39, Bruce a ?crit : > Hi Beno?t, > > It would be helpful if the IDE Project Refresh action re-read the > project dependencies (components and libraries) so that when working on > a main project and a library at the same time we didn't have to keep > quitting and re-opening the main program in order to get new features in > the dependency visible in the auto-complete. > > TIA > Bruce > Done in revision #5602. Tell me if it works as expected for you! Regards, -- Beno?t Minisini From gambas at ...1... Sun Mar 31 04:03:04 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 31 Mar 2013 04:03:04 +0200 Subject: [Gambas-user] gba3 -> Invalid cross-device link In-Reply-To: <20130327183246.GG733@...2774...> References: <20130327183246.GG733@...2774...> Message-ID: <51579958.6060204@...1...> Le 27/03/2013 19:32, Tobias Boege a ?crit : > Hi, > > I try to create a Gambas executable (from within the IDE but that doesn't > seem to be relevant here). The project directory lies on another hard drive > partition than the executable's target directory. This causes gba3 to fail > with: > > gba: ERROR: Cannot make executable: Cannot create executable: Invalid cross-device link > Project.MakeExecutable.2828 > > There seems to be a hardlink involved and so I ask: is it really necessary > to hardlink? Wouldn't a symlink do it, too? > > Regards, > Tobi > There is no hardlink used anywhere in Gambas. That's a strange error! I will investigate... -- Beno?t Minisini From gambas at ...1... Sun Mar 31 04:06:12 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 31 Mar 2013 04:06:12 +0200 Subject: [Gambas-user] gba3 -> Invalid cross-device link In-Reply-To: <51579958.6060204@...1...> References: <20130327183246.GG733@...2774...> <51579958.6060204@...1...> Message-ID: <51579A14.6020908@...1...> Le 31/03/2013 04:03, Beno?t Minisini a ?crit : > Le 27/03/2013 19:32, Tobias Boege a ?crit : >> Hi, >> >> I try to create a Gambas executable (from within the IDE but that doesn't >> seem to be relevant here). The project directory lies on another hard >> drive >> partition than the executable's target directory. This causes gba3 to >> fail >> with: >> >> gba: ERROR: Cannot make executable: Cannot create executable: Invalid >> cross-device link >> Project.MakeExecutable.2828 >> >> There seems to be a hardlink involved and so I ask: is it really >> necessary >> to hardlink? Wouldn't a symlink do it, too? >> >> Regards, >> Tobi >> > > There is no hardlink used anywhere in Gambas. That's a strange error! I > will investigate... > OK. This error has nothing to do with hardlinks. It's just that the executable is created inside a temporary file, and that temporay file is then moved (i.e. renamed), which does not work if the target directory is on a different device than the temporary directory. -- Beno?t Minisini From gambas at ...2524... Sun Mar 31 07:37:50 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 31 Mar 2013 05:37:50 +0000 Subject: [Gambas-user] Issue 415 in gambas: Cannot run child process (native code) In-Reply-To: <20-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> References: <20-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> <0-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Message-ID: <21-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #21 on issue 415 by benoit.m... at ...626...: Cannot run child process (native code) http://code.google.com/p/gambas/issues/detail?id=415 Do you have the same behavior with the very last svn version? If you have more details, can you open a new issue? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Sun Mar 31 08:25:05 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 31 Mar 2013 08:25:05 +0200 Subject: [Gambas-user] gba3 -> Invalid cross-device link In-Reply-To: <51579A14.6020908@...1...> References: <20130327183246.GG733@...2774...> <51579958.6060204@...1...> <51579A14.6020908@...1...> Message-ID: <5157D6C1.60304@...1...> Le 31/03/2013 04:06, Beno?t Minisini a ?crit : > Le 31/03/2013 04:03, Beno?t Minisini a ?crit : >> Le 27/03/2013 19:32, Tobias Boege a ?crit : >>> Hi, >>> >>> I try to create a Gambas executable (from within the IDE but that >>> doesn't >>> seem to be relevant here). The project directory lies on another hard >>> drive >>> partition than the executable's target directory. This causes gba3 to >>> fail >>> with: >>> >>> gba: ERROR: Cannot make executable: Cannot create executable: Invalid >>> cross-device link >>> Project.MakeExecutable.2828 >>> >>> There seems to be a hardlink involved and so I ask: is it really >>> necessary >>> to hardlink? Wouldn't a symlink do it, too? >>> >>> Regards, >>> Tobi >>> >> >> There is no hardlink used anywhere in Gambas. That's a strange error! I >> will investigate... >> > > OK. This error has nothing to do with hardlinks. It's just that the > executable is created inside a temporary file, and that temporay file is > then moved (i.e. renamed), which does not work if the target directory > is on a different device than the temporary directory. > It should be fixed in revision #5604. Regards, -- Beno?t Minisini From bbruen at ...2308... Sun Mar 31 09:42:58 2013 From: bbruen at ...2308... (Bruce) Date: Sun, 31 Mar 2013 18:12:58 +1030 Subject: [Gambas-user] Feature request: project refresh should reload dependencies In-Reply-To: <51579915.90003@...1...> References: <1364449142.28862.4.camel@...2688...> <51579915.90003@...1...> Message-ID: <1364715780.19887.0.camel@...2688...> On Sun, 2013-03-31 at 04:01 +0200, Beno?t Minisini wrote: > Le 28/03/2013 06:39, Bruce a ?crit : > > Hi Beno?t, > > > > It would be helpful if the IDE Project Refresh action re-read the > > project dependencies (components and libraries) so that when working on > > a main project and a library at the same time we didn't have to keep > > quitting and re-opening the main program in order to get new features in > > the dependency visible in the auto-complete. > > > > TIA > > Bruce > > > > Done in revision #5602. Tell me if it works as expected for you! > > Regards, > Works fine! Thanks Beno?t From gambas at ...1... Sun Mar 31 10:02:44 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 31 Mar 2013 10:02:44 +0200 Subject: [Gambas-user] Gambas3 IDE editor and lines In-Reply-To: <51405DD2.70005@...221...> References: <51405DD2.70005@...221...> Message-ID: <5157EDA4.7000401@...1...> Le 13/03/2013 12:06, Rolf-Werner Eilert a ?crit : > Hi folks, > > Just wanted to ask if you experience the same on your Gambas3 IDE: When > I let the project run and end, the editor doesn't return to the original > line in the program code when some of the functions are collapsed. It > seems it doesn't count the lines correctly then. > > Or is this only on my system? > > Rolf > I can't reproduce what you are talking about : when the project ends, the cursor is not moved at all, it stays at its position. Can you give me more details? -- Beno?t Minisini From gambas at ...1... Sun Mar 31 10:06:09 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 31 Mar 2013 10:06:09 +0200 Subject: [Gambas-user] Editor.Lines[0].Refresh() does not trigger custom Highlight event In-Reply-To: <20130310131355.GC526@...2774...> References: <20130309171052.GG529@...2774...> <513B80D1.40709@...1...> <20130309191112.GI529@...2774...> <513C803D.6080406@...1...> <20130310131355.GC526@...2774...> Message-ID: <5157EE71.9060204@...1...> Le 10/03/2013 14:13, Tobias Boege a ?crit : >> I don't understand what you want to do exactly with Editor. Could you >> explain with more details? >> > > Of course. I wasn't clear at all. The goal is to enter a regular expression > and then highlight all matching strings in a text (like Editor.ShowString() > does for fixed strings). > > One may also replace all matches by another string (currently not containing > submatches of the original expression because it was just a POC for an > article about gb.pcre). I'd just leave this task to an invocation of 'sed'. > > BTW, I finished the thing yesterday and the attached code may show better > what I was trying to explain. > > Regards, > Tobi > To force lines to be highlighted, you can use the HighlightAll() method. -- Beno?t Minisini From willy at ...2734... Sun Mar 31 13:48:17 2013 From: willy at ...2734... (Willy Raets) Date: Sun, 31 Mar 2013 13:48:17 +0200 Subject: [Gambas-user] Strange problem with running Shell on Fedora (code works in IDE but not in executable!!) In-Reply-To: <1364654129.2022.9.camel@...3024...> References: <1364399417.2916.14.camel@...3024...> <20130327162255.GD733@...2774...> <1364405102.2916.40.camel@...3024...> <1364407369.2916.43.camel@...3024...> <20130327191456.GH733@...2774...> <1364601367.5555.6.camel@...3024...> <20130330104928.GG498@...2774...> <20130330111136.GH498@...2774...> <5156D4F7.4040307@...1...> <20130330121440.GI498@...2774...> <1364653101.2022.5.camel@...3024...> <5156F4D6.1000804@...1...> <1364654129.2022.9.camel@...3024...> Message-ID: <1364730497.2042.5.camel@...3024...> On Sat, 2013-03-30 at 15:35 +0100, Willy Raets wrote: > On Sat, 2013-03-30 at 15:21 +0100, Beno?t Minisini wrote: > > Le 30/03/2013 15:18, Willy Raets a ?crit : > > > On Sat, 2013-03-30 at 13:14 +0100, Tobias Boege wrote: > > >> On Sat, 30 Mar 2013, Beno?t Minisini wrote: > > >>> Le 30/03/2013 12:11, Tobias Boege a ?crit : > > >>>> On Sat, 30 Mar 2013, Tobias Boege wrote: > > >>>>> Hmm. I have sudo-1.8.6p7 in use (more accurately, the error comes from the > > >>>>> 'sudoers' plugin but it has the same version here) on Arch Linux and, as I > > >>>>> said, my test program works. > > >>>>> > > >>>>> Well, I had another look at the source code and it seems that there's a > > >>>>> certain variable 'def_requiretty' which is zero in my system's package and > > >>>>> prevents checking /dev/tty at all. This finally explains why all test cases > > >>>>> worked on my system even though there was no /dev/tty accessible from > > >>>>> Desktop. See sudoers(5) for a description and how to deactivate this in the > > >>>>> sudoers configuration. > > >>>>> > > >>>>> Since editing user configurations to make programs work is often not > > >>>>> desirable, I experimented with a patched sudo that requires the tty et > > >>>>> voila! Got the same error as yours when running from desktop. However, now > > >>>>> I can't solve it either :-) > > >>>>> > > >>>>> I'll start another thread to attract Benoit's attention again... > > >>>>> > > >>>> > > >>>> Hmm, nevermind. You can use the Exec instruction to get it to work: > > >>>> > > >>>> hProcess = Exec ["sudo", "-s", "id", "-u" ] For Input Output As "Process" > > >>>> > > >>>> This is how the IDE does it and as you mentioned, the IDE gets it correctly. > > >>>> Maybe someone can enlighten us why it doesn't work with Shell but it's not > > >>>> that important to me. > > >>>> > > >>>> Regards, > > >>>> Tobi > > >>>> > > >>> > > >>> SHELL "a b c" ... > > >>> > > >>> is equivalent to: > > >>> > > >>> EXEC [ System.Shell, "-c", "a b c" ] > > >>> > > >>> with a call to setpgid(0,0) to create its own session like an > > >>> independant shell. > > >>> > > >>> As for virtual terminal creation, they work both the same. > > >>> > > >>> - "For Input Output" => create a virtual terminal for the i/o of the > > >>> child process, and get the i/o of the child process through it. > > >>> > > >>> - "For Read Write" => Just redirect the i/o of the child process to get > > >>> them in the parent process. > > >>> > > >>> Can you try to replace "SHELL ..." by "EXEC [ System.Shell, "-c", ... ]" > > >>> and tell me if it works better? > > >>> > > >> > > >> Exec [System.Shell, "-c", "sudo -s id -u"] For Input Output > > >> > > >> It works! > > > > > > NOT on the Fedora 17 - LXDE 0.5.12 - Gambas 3.4.0 when run from > > > executable. Same error again > > > > > > Screen01.png -> Running executable with error message > > > Screen02.png -> changed code using Exec [System.Shell .....] > > > > > > Somehow it is impossible to use sudo on the Fedora box from Gambas > > > executable. > > > Although all works when done directly in terminal by hand or when done > > > from Gambas 3 app run in IDE. The Gambas 3 executables just refuse to > > > work... > > > > > > On my Linux Mint 13 all works just fine. > > > > > > > Sorry, but you must use "For Input Output", not "For Read Write". > > Well I used Read Write because when replacing Read Write with Input > Output the application does nothing but keep the system busy!! The not doing anything mentioned above is only when run from IDE on Fedora. On other distro's no problem at all when running from IDE I can confirm that the: Exec [System.Shell, "-c", "sudo -s id -u"] For Input Output now works on Fedora from executable. So now I'll implement this manner of executing a Shell in my application and see if all works there as well Tobi, Beno?t, Thanks... -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From ron at ...1740... Sun Mar 31 17:27:18 2013 From: ron at ...1740... (Ron) Date: Sun, 31 Mar 2013 17:27:18 +0200 Subject: [Gambas-user] Gambas IDE doesn't save files. Message-ID: Ok. I have again a serious issue with Gambas3. I had coded quite some stuff in a specific class, and clicked save all the time on the class tab. It never complained... I look on disk, (i wanted to svn commit it from cli), svn didn't find any files to commit, simply because the changes are not there. When I run the project the changes are running... Then I thought ok I save the whole project as backup to a different location, just to be sure I don't lost my code. Did this, it didn't complained again... After saving, the class file in IDE contains the old code. And now all my changes are gone. Why doesn't the IDE raise a big error when it cannot save a file, or a whole project 100%?? I seriously find myself caught in very big issues every time, I simply don't get any further coding on my own project. The time has come to say Gambas farewell and stop using it I am afraid... Gambas3 is simply not even close to the stability Gambas2 was for years and years... Regards, Ron. From gambas at ...1... Sun Mar 31 17:40:07 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 31 Mar 2013 17:40:07 +0200 Subject: [Gambas-user] Gambas IDE doesn't save files. In-Reply-To: References: Message-ID: <515858D7.5020903@...1...> Le 31/03/2013 17:27, Ron a ?crit : > Ok. > > I have again a serious issue with Gambas3. > > I had coded quite some stuff in a specific class, and clicked save all > the time on the class tab. > It never complained... > > I look on disk, (i wanted to svn commit it from cli), svn didn't find > any files to commit, simply because the changes are not there. > When I run the project the changes are running... > > Then I thought ok I save the whole project as backup to a different > location, just to be sure I don't lost my code. > > Did this, it didn't complained again... > After saving, the class file in IDE contains the old code. > And now all my changes are gone. > > Why doesn't the IDE raise a big error when it cannot save a file, or a > whole project 100%?? > > I seriously find myself caught in very big issues every time, I simply > don't get any further coding on my own project. > The time has come to say Gambas farewell and stop using it I am afraid... > > Gambas3 is simply not even close to the stability Gambas2 was for > years and years... > > Regards, > Ron. > Sorry for your lost, but Gambas IDE does display a big error message in a balloon if a file cannot be saved. Which version of Gambas do yo use? Did you compile it yourself? I use the Gambas IDE for my job all the days for years, and I have never lost anything yet. The only possible code path that can prevent a source code file to be saved is if the code editor is read-only. But then you could not have modified its contents, so it is strange! Maybe you were unlucky and triggered a bug that noone has encountered yet. Sorry for that again. Regards, -- Beno?t Minisini From abbat.81 at ...787... Sun Mar 31 17:49:31 2013 From: abbat.81 at ...787... (abbat81) Date: Sun, 31 Mar 2013 08:49:31 -0700 (PDT) Subject: [Gambas-user] HTML comtent in MySQL query. Message-ID: <1364744971466-41533.post@...3046...> Hello, I got problem. How to send a html content in mysql query. Dim Qry As String = " " DConnect.$Con.Exec("UPDATE users SET login = '" & Qry & "'") I get error about syntax. Thanks. -- View this message in context: http://gambas.8142.n7.nabble.com/HTML-comtent-in-MySQL-query-tp41533.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Sun Mar 31 17:48:02 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 31 Mar 2013 17:48:02 +0200 Subject: [Gambas-user] gb.jit compilation fails due to rev #5601 Message-ID: <20130331154802.GA492@...2774...> Hi Emil, gb.jit gives (as always on my machine) lots of warnings during compilation but this time there are also errors. AFAICS, the OBJECT_REF() macro changed in rev #5601 which breaks your code. It's only about two invocations of the macro in jit_runtime.c and fixing these makes compilation possible again (over here)... So no big deal. Regards, Tobi From taboege at ...626... Sun Mar 31 17:53:50 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 31 Mar 2013 17:53:50 +0200 Subject: [Gambas-user] gba3 -> Invalid cross-device link In-Reply-To: <5157D6C1.60304@...1...> References: <20130327183246.GG733@...2774...> <51579958.6060204@...1...> <51579A14.6020908@...1...> <5157D6C1.60304@...1...> Message-ID: <20130331155350.GB492@...2774...> On Sun, 31 Mar 2013, Beno?t Minisini wrote: > Le 31/03/2013 04:06, Beno?t Minisini a ?crit : > > Le 31/03/2013 04:03, Beno?t Minisini a ?crit : > >> Le 27/03/2013 19:32, Tobias Boege a ?crit : > >>> Hi, > >>> > >>> I try to create a Gambas executable (from within the IDE but that > >>> doesn't > >>> seem to be relevant here). The project directory lies on another hard > >>> drive > >>> partition than the executable's target directory. This causes gba3 to > >>> fail > >>> with: > >>> > >>> gba: ERROR: Cannot make executable: Cannot create executable: Invalid > >>> cross-device link > >>> Project.MakeExecutable.2828 > >>> > >>> There seems to be a hardlink involved and so I ask: is it really > >>> necessary > >>> to hardlink? Wouldn't a symlink do it, too? > >>> > >>> Regards, > >>> Tobi > >>> > >> > >> There is no hardlink used anywhere in Gambas. That's a strange error! I > >> will investigate... > >> > > > > OK. This error has nothing to do with hardlinks. It's just that the > > executable is created inside a temporary file, and that temporay file is > > then moved (i.e. renamed), which does not work if the target directory > > is on a different device than the temporary directory. > > > > It should be fixed in revision #5604. Yep, thanks. Regards, Tobi From ron at ...1740... Sun Mar 31 17:55:47 2013 From: ron at ...1740... (Ron) Date: Sun, 31 Mar 2013 17:55:47 +0200 Subject: [Gambas-user] Gambas IDE doesn't save files. In-Reply-To: <515858D7.5020903@...1...> References: <515858D7.5020903@...1...> Message-ID: I run trunk version self compiled to test the gbx_c cleanup patches you made earlier. I haven't seen any errors, and if I grep my whole home dir now for my new code it only matches the binary... ~/domotiga$ fgrep -R CheckValid * Binary file DomotiGa3/.gambas/FDEVICEEDITOR matches Very strange... I will take some coffee and start over ;-) Regards, Ron. 2013/3/31 Beno?t Minisini : > Le 31/03/2013 17:27, Ron a ?crit : >> Ok. >> >> I have again a serious issue with Gambas3. >> >> I had coded quite some stuff in a specific class, and clicked save all >> the time on the class tab. >> It never complained... >> >> I look on disk, (i wanted to svn commit it from cli), svn didn't find >> any files to commit, simply because the changes are not there. >> When I run the project the changes are running... >> >> Then I thought ok I save the whole project as backup to a different >> location, just to be sure I don't lost my code. >> >> Did this, it didn't complained again... >> After saving, the class file in IDE contains the old code. >> And now all my changes are gone. >> >> Why doesn't the IDE raise a big error when it cannot save a file, or a >> whole project 100%?? >> >> I seriously find myself caught in very big issues every time, I simply >> don't get any further coding on my own project. >> The time has come to say Gambas farewell and stop using it I am afraid... >> >> Gambas3 is simply not even close to the stability Gambas2 was for >> years and years... >> >> Regards, >> Ron. >> > > Sorry for your lost, but Gambas IDE does display a big error message in > a balloon if a file cannot be saved. > > Which version of Gambas do yo use? Did you compile it yourself? > > I use the Gambas IDE for my job all the days for years, and I have never > lost anything yet. > > The only possible code path that can prevent a source code file to be > saved is if the code editor is read-only. But then you could not have > modified its contents, so it is strange! > > Maybe you were unlucky and triggered a bug that noone has encountered > yet. Sorry for that again. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Own the Future-Intel(R) Level Up Game Demo Contest 2013 > Rise to greatness in Intel's independent game demo contest. Compete > for recognition, cash, and the chance to get your game on Steam. > $5K grand prize plus 10 genre and skill prizes. Submit your demo > by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From Karl.Reinl at ...2345... Sun Mar 31 18:25:51 2013 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sun, 31 Mar 2013 18:25:51 +0200 Subject: [Gambas-user] HTML comtent in MySQL query. In-Reply-To: <1364744971466-41533.post@...3046...> References: <1364744971466-41533.post@...3046...> Message-ID: <1364747151.2382.11.camel@...40...> Am Sonntag, den 31.03.2013, 08:49 -0700 schrieb abbat81: > Hello, > I got problem. > > How to send a html content in mysql query. > > Dim Qry As String = " > > " > DConnect.$Con.Exec("UPDATE users SET login = '" & Qry & "'") > > I get error about syntax. > > Thanks. > Hi, you should us provide the contents off Qry. I'm sure there are one or more signs in which breaks the string. -- Amicalement Charlie From abbat.81 at ...787... Sun Mar 31 18:47:11 2013 From: abbat.81 at ...787... (abbat81) Date: Sun, 31 Mar 2013 09:47:11 -0700 (PDT) Subject: [Gambas-user] HTML comtent in MySQL query. In-Reply-To: <1364747151.2382.11.camel@...40...> References: <1364744971466-41533.post@...3046...> <1364747151.2382.11.camel@...40...> Message-ID: <1364748431028-41538.post@...3046...> I'm sorry, but I don't understand. I have problem with quotes. -- View this message in context: http://gambas.8142.n7.nabble.com/HTML-comtent-in-MySQL-query-tp41533p41538.html Sent from the gambas-user mailing list archive at Nabble.com. From Karl.Reinl at ...2345... Sun Mar 31 19:17:57 2013 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sun, 31 Mar 2013 19:17:57 +0200 Subject: [Gambas-user] HTML comtent in MySQL query. In-Reply-To: <1364748431028-41538.post@...3046...> References: <1364744971466-41533.post@...3046...> <1364747151.2382.11.camel@...40...> <1364748431028-41538.post@...3046...> Message-ID: <1364750277.2382.22.camel@...40...> Am Sonntag, den 31.03.2013, 09:47 -0700 schrieb abbat81: > I'm sorry, but I don't understand. > > > > I have problem with quotes. Hallo, yes Qry="
" set to "UPDATE users SET login = '" & Qry & "'" gives you "UPDATE users SET login = '
'" behind the = you have '
' and a 650 in the middle. try DConnect.$Con.Exec("UPDATE users SET login = &1",Qry) or DConnect.$Con.Exec("UPDATE users SET login = '" & replace(Qry,"'","''") & "'") -- Amicalement Charlie From gambas at ...1... Sun Mar 31 20:19:21 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 31 Mar 2013 20:19:21 +0200 Subject: [Gambas-user] HTML comtent in MySQL query. In-Reply-To: <1364750277.2382.22.camel@...40...> References: <1364744971466-41533.post@...3046...> <1364747151.2382.11.camel@...40...> <1364748431028-41538.post@...3046...> <1364750277.2382.22.camel@...40...> Message-ID: <51587E29.4050500@...1...> Le 31/03/2013 19:17, Charlie Reinl a ?crit : > Am Sonntag, den 31.03.2013, 09:47 -0700 schrieb abbat81: >> I'm sorry, but I don't understand. >> >> >> >> I have problem with quotes. > > Hallo, > > yes > Qry="
" > > set to "UPDATE users SET login = '" & Qry & "'" > gives you "UPDATE users SET login = '
'" > > behind the = you have '
' and a 650 in the > middle. > > try > DConnect.$Con.Exec("UPDATE users SET login = &1",Qry) > or > DConnect.$Con.Exec("UPDATE users SET login = '" & replace(Qry,"'","''") > & "'") > You should use the Gambas quoting facilities instead: DConnect.$Con.Exec("UPDATE users SET login = &1", Qry) Easier, isn't it? -- Beno?t Minisini From sunblaster5 at ...626... Sun Mar 31 23:44:42 2013 From: sunblaster5 at ...626... (rocko) Date: Sun, 31 Mar 2013 14:44:42 -0700 Subject: [Gambas-user] Output to Libre Office Writer ?? Message-ID: <5158AE4A.6000809@...626...> I don't know much about the capabilities of Gambas writing to Libre Office, as I don't think I ever heard of it being done before. I would like to read the names and addresses from an SQLite data base and put them into a Libre Office Writer template(.ods). Is this possible? Using Gambas 3 on Linux Mint 14. From gambas at ...1... Sun Mar 31 23:53:51 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 31 Mar 2013 23:53:51 +0200 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <5158AE4A.6000809@...626...> References: <5158AE4A.6000809@...626...> Message-ID: <5158B06F.5070908@...1...> Le 31/03/2013 23:44, rocko a ?crit : > I don't know much about the capabilities of Gambas writing to Libre Office, > as I don't think I ever heard of it being done before. > > I would like to read the names and addresses from an SQLite data base > and put them into a Libre Office Writer template(.ods). > Is this possible? > > > > Using Gambas 3 on Linux Mint 14. > I do that for my job. I first creat a Write document (ods) where I put a special text everywhere I want to replace something. For example: $(name), $(address), $(town)... Than I unzip the *.ods file, and modify the 'contents.xml' file by replacing the special text by their associated value. Beware that 'contents.xml' is XML, and so some characters have to be quoted: & < > ' Once done, I zip the document back to an ods file. "Et voil? !". -- Beno?t Minisini