From owlbrudder at gmail.com Mon Jan 1 00:14:01 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Mon, 01 Jan 2018 09:14:01 +1000 Subject: [Gambas-user] What is wrong with my query syntax? In-Reply-To: <20171231195550.GA21012@highrise.localdomain> References: <1514519004.3262.102.camel@gmail.com> <11352897-4c74-cd85-9f77-3ddd45ea4412@gmail.com> <20171231195550.GA21012@highrise.localdomain> Message-ID: <1514762041.12546.143.camel@gmail.com> On Sun, 2017-12-31 at 20:55 +0100, Tobias Boege wrote: > On Fri, 29 Dec 2017, ML wrote: > > Just a very stupid observation: The query is completed by the > > contents > > of a textbox control (called TBXName) on the form where it's > > supposed to > > be placed. > > If the syntax error comes from GAMBAS, this textbox may not exist > > (didn't try actually, but a possibility nonetheless). > > > > On the other hand, if the error comes from the DB Engine > > (PostgreSQL in > > this case), then the query may be malformed; maybe a single quote > > in the > > textbox data is screwing the query up. > > For example, suppose the textbox has the name "O'Malley". The query > > string would become the following: > > > > ?SELECT * FROM Friends WHERE Name = 'O'Malley'? > > > > As you can see, the WHERE clause becomes "WHERE Name = 'O'" and the > > "Malley'" excess string post-clause will trigger the syntax error > > at the > > DB Engine level. > > You MUST escape all apostrophes at the very basic level or, better, > > use > > StoredProcedures with Parameters. Google up "SQL Injection" for > > (lotsa) > > more info. > > Try with "' OR 1 --" in the textbox data to see some unwanted > > effects > > abused by database attackers... > > > > Doug, you should listen to this advice about SQL injection. Code > which > puts unchecked user input into an SQL query string is easily > exploited > and gives the perfect security hole. A user can make the program > crash, > bypass filters in the rest of your query hence leak data, delete all > the tables or add unwanted data -- everything that SQL can do, > provided > the executing user has the required privileges. > > Gambas can quote SQL queries for you: > > hConn.Exec("SELECT * FROM Friends WHERE Name = &1", "O'Malley") > > Better yet, use hConn.Find() if you want to do SELECT queries, like > so: > > hConn.Find("Friends", "Name = &1", "O'Malley") > > If you need complex queries and have Gambas >= 3.8, you should use > the > SQLRequest class: > > Dim hSql As New SqlRequest(hConn) > Dim sQuery As String > > sQuery = hSql.Select().From("Friends").Where("Name = &1", > "O'Malley").And().Where("Age >= &1", 32).OrderBy("Age DESC").Get() > hConn.Exec(sQuery) > > SQLRequest knows how to build a proper SQL sentence for the > underlying > database driver. Note how your Gambas code, if it uses Find() or > SQLRequest, > is free of SQL strings of a specific dialect. You can use the same > Gambas > code with MySQL, PostgreSQL, SQLite3, etc. (provided that the drivers > work > correctly). This is of course desirable: if you want to run unit > tests, > SQLite3 might be a good choice, but you might want to use Postgres > for > production and someone else might prefer MySQL. > > Regards, > Tobi > > PS: when did this become a top-posting mailing list? > Hi Tobi. Happy 1st of January everyone! Tobi, as far as top/bottom posting is concerned, I admit I have just been using my mail system (Evolution) default: wherever it puts the cursor is where I start typing. If the convention is for bottom posting, I will try to remember this. Apologies for any inconvenience. As for your advice, it is all excellent. I had been using the SQLRequest class and only dropped it to eliminate one possible source of error. The SQL injection problem is in the forefront of my mind, but right now I just want to get the bare bones working as simply as possible. I will do three things, in order: 1 Create a completely fresh project and type everything in by hand to ensure there are no cut 'n paste artifacts causing problems. 2 If that does not work, I will create a similar MySql project and see if it works on my machine. 3 If that works, I will bundle up my PostgreSQL project from step 1 and a dump of the table I have been using - it has one row and 35 columns (I know - don't ask - I inherited this mess). Many thanks to you and everyone who has responded. Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Jan 1 00:48:31 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sun, 31 Dec 2017 19:48:31 -0400 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: <1514760996.12546.131.camel@gmail.com> References: <1514684664.12546.82.camel@gmail.com> <1514685624.12546.84.camel@gmail.com> <1514701561.12546.114.camel@gmail.com> <8c776eb0-44f9-bf27-ddbf-a671ea9774d2@gmail.com> <1514760996.12546.131.camel@gmail.com> Message-ID: yeah Tobias, it's due postgres of coourse its for scalar grade and more fine tune things.. of course with mysql and sqlite will not fail.. with postgres and odbc fail as the other already now confirmed, i reported some time ago similar problems.. but due i was busy does not paid attention.. i still must test and made some other fine tune agains the odbc updates in gambas, i have many expoerience with but gambas must be still compile-able in my ery olders linuxes also i take a look to the stalled web-cam and vide4linux gambas module and seems one of my manpowers at the job can made something.. but for now there's many work in load.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-12-31 18:56 GMT-04:00 Doug Hutcheson : > Good idea Lee - I will fire up MySql on my machine and try a similar > approach. > > Using PostgreSQL, the For loop using a loop index works perfectly, showing > the field names and the data, but the For Each loop fails on the 'For Each > ... ' line. > > I will get back to the list about MySql. > > Doug > > On Sun, 2017-12-31 at 12:49 -0500, T Lee Davidson wrote: > > Yes, MyResult!txtMasterDatabase should work. (Did you copy/paste that name, or type it in directly?) The For Each loop should > work as well. > > I tried a simple command-line application on a MySQL data table with just one row. All the application does is, first connect to > the database, and then 'MyResult = hConn.Exec("select * from users")' > > A For Each loop prints the field names just fine. And, 'Print MyResult!id' displays the correct value. > > Perhaps there is a bug in the Gambas PostgreSQL driver. Can you test on a MySQL table to see if that works for you? > > > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From owlbrudder at gmail.com Mon Jan 1 07:19:34 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Mon, 01 Jan 2018 16:19:34 +1000 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: <2263ed80-159d-a85b-ac73-fd5b5cae90af@gmail.com> References: <1514684664.12546.82.camel@gmail.com> <1514685624.12546.84.camel@gmail.com> <1514701561.12546.114.camel@gmail.com> <8c776eb0-44f9-bf27-ddbf-a671ea9774d2@gmail.com> <20171231201643.GB21012@highrise.localdomain> <2263ed80-159d-a85b-ac73-fd5b5cae90af@gmail.com> Message-ID: <1514787574.3338.6.camel@gmail.com> On Sun, 2017-12-31 at 16:23 -0500, T Lee Davidson wrote: > On 12/31/2017 03:16 PM, Tobias Boege wrote: > > On Sun, 31 Dec 2017, T Lee Davidson wrote: > > > Yes, MyResult!txtMasterDatabase should work. (Did you copy/paste > > > that name, or type it in directly?) The For Each loop should > > > work as well. > > > > > > I tried a simple command-line application on a MySQL data table > > > with just one row. All the application does is, first connect to > > > the database, and then 'MyResult = hConn.Exec("select * from > > > users")' > > > > > > A For Each loop prints the field names just fine. And, 'Print > > > MyResult!id' displays the correct value. > > > > > > Perhaps there is a bug in the Gambas PostgreSQL driver. Can you > > > test on a MySQL table to see if that works for you? > > > > > > > I agree that the original code should have worked. See the attached > > script which uses an in-memory SQLite3 database to demonstrate that > > it works with another driver. > > > > A (minimal!) project and database dump, just enough to reproduce > > the > > behaviour, would be helpful. > > > > Regards, > > Tobi > > I installed a PostgreSQL server. PostgreSQL does not appear at first > glance to be as easy to work with as MySQL. > > After finally figuring out how to configure and use it, I was able to > run a simple command-line application to successfully > print the field names. (Interestingly enough, even without the > gb.db.postgresql database driver component enabled! Beno?t?) > > It does work as you expect it should, Doug. > > You will find my code and the output below. > > Thanks Lee and Tobi (and others) for sticking with me on this. I can now report s follows: For a PostgreSQL object on my machine: An indexed For ... Next loop works fine A For Each ... Next always fails at the first line - see attached image. Gambas is reporting it can't find a field of a given name, but it has to have found it in order to report its name. For a MySQL (MariaDB) connection on my machine, both forms of loop work fine. Using the Connection option from the project window, I can see and browse all data in both types of database. So, it appears to be a glitch in the way the code is executed in a For Each loop on a PostgreSQL object. Having said that. I have previously had issues with executables from the Fedora repositories misbehaving, so I installed Gambas from the Gambas repositories instead and proved the issue was still there. Lee has reported different behaviour, so something is definitely screwy on my system. Sigh. How do I prepare my project and transmit it to the list? Kind regards, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas screenshot showing error message from For Each loop.png Type: image/png Size: 16542 bytes Desc: not available URL: From owlbrudder at gmail.com Mon Jan 1 08:47:08 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Mon, 01 Jan 2018 17:47:08 +1000 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: <1514787574.3338.6.camel@gmail.com> References: <1514684664.12546.82.camel@gmail.com> <1514685624.12546.84.camel@gmail.com> <1514701561.12546.114.camel@gmail.com> <8c776eb0-44f9-bf27-ddbf-a671ea9774d2@gmail.com> <20171231201643.GB21012@highrise.localdomain> <2263ed80-159d-a85b-ac73-fd5b5cae90af@gmail.com> <1514787574.3338.6.camel@gmail.com> Message-ID: <1514792828.3338.25.camel@gmail.com> On Mon, 2018-01-01 at 16:19 +1000, Doug Hutcheson wrote: > On Sun, 2017-12-31 at 16:23 -0500, T Lee Davidson wrote: > > On 12/31/2017 03:16 PM, Tobias Boege wrote: > > > On Sun, 31 Dec 2017, T Lee Davidson wrote: > > > > Yes, MyResult!txtMasterDatabase should work. (Did you > > > > copy/paste that name, or type it in directly?) The For Each > > > > loop should > > > > work as well. > > > > > > > > I tried a simple command-line application on a MySQL data table > > > > with just one row. All the application does is, first connect > > > > to > > > > the database, and then 'MyResult = hConn.Exec("select * from > > > > users")' > > > > > > > > A For Each loop prints the field names just fine. And, 'Print > > > > MyResult!id' displays the correct value. > > > > > > > > Perhaps there is a bug in the Gambas PostgreSQL driver. Can you > > > > test on a MySQL table to see if that works for you? > > > > > > > > > > I agree that the original code should have worked. See the > > > attached > > > script which uses an in-memory SQLite3 database to demonstrate > > > that > > > it works with another driver. > > > > > > A (minimal!) project and database dump, just enough to reproduce > > > the > > > behaviour, would be helpful. > > > > > > Regards, > > > Tobi > > > > I installed a PostgreSQL server. PostgreSQL does not appear at > > first glance to be as easy to work with as MySQL. > > > > After finally figuring out how to configure and use it, I was able > > to run a simple command-line application to successfully > > print the field names. (Interestingly enough, even without the > > gb.db.postgresql database driver component enabled! Beno?t?) > > > > It does work as you expect it should, Doug. > > > > You will find my code and the output below. > > > > > Thanks Lee and Tobi (and others) for sticking with me on this. > > I can now report s follows: > > For a PostgreSQL object on my machine: > An indexed For ... Next loop works fine > A For Each ... Next always fails at the first line - see attached > image. Gambas is reporting it can't find a field of a given name, but > it has to have found it in order to report its name. > > For a MySQL (MariaDB) connection on my machine, both forms of loop > work fine. > > Using the Connection option from the project window, I can see and > browse all data in both types of database. > > So, it appears to be a glitch in the way the code is executed in a > For Each loop on a PostgreSQL object. Having said that. I have > previously had issues with executables from the Fedora repositories > misbehaving, so I installed Gambas from the Gambas repositories > instead and proved the issue was still there. > > Lee has reported different behaviour, so something is definitely > screwy on my system. Sigh. > > How do I prepare my project and transmit it to the list? > > Kind regards, > Doug > Hi everyone. Another piece of the puzzle, I think: I have a Database Application where I have been experiencing the above problems. Within this application I have one form which I have hardly been using. I have also created two Connections, one for my PostgreSQL database and one for my MySql database. As the two connections are able to browse their respective databases, it seemed logical that controls using these connections would work also. I created a DataSource control on my form and set its Connection property to Connection1 (my PostgreSQL database). When I run the project, I am told "Cannot open database: fe_sendauth: no password supplied". I then set the Connection property to Connection2 (my MySql connection). When I run the project I am told "Cannot open database: Access denied for user 'root'@'localhost' (using password: NO)" Why am I seeing these password problems when the Connection objects they are using connect perfectly? It seems to me I have some kind of data access issue related to my specific installation, because others are not reporting these. Incidentally, the data-aware controls look excellent! I will be able to develop my applications faster that I had imagined. I have reverted to using Gambas 3.10.0 from the Fedora 28 repositories, to eliminate any finger fumbles I may have had when compiling from source. If requested, I can switch back again. Cheers, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Mon Jan 1 18:17:16 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 1 Jan 2018 12:17:16 -0500 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: <1514792828.3338.25.camel@gmail.com> References: <1514684664.12546.82.camel@gmail.com> <1514685624.12546.84.camel@gmail.com> <1514701561.12546.114.camel@gmail.com> <8c776eb0-44f9-bf27-ddbf-a671ea9774d2@gmail.com> <20171231201643.GB21012@highrise.localdomain> <2263ed80-159d-a85b-ac73-fd5b5cae90af@gmail.com> <1514787574.3338.6.camel@gmail.com> <1514792828.3338.25.camel@gmail.com> Message-ID: <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> On 01/01/2018 02:47 AM, Doug Hutcheson wrote: > > On Mon, 2018-01-01 at 16:19 +1000, Doug Hutcheson wrote: >> [snip] >> >> How do I prepare my project and transmit it to the list? Go to Project > Make > Source archive... You could put a pared down database dump file in the project directory before making an archive, so that others could more easily re-create it from that SQL file. > Hi everyone. Another piece of the puzzle, I think: > > I have a Database Application where I have been experiencing the above problems. Within this application I have one form which I > have hardly been using. I have also created two Connections, one for my PostgreSQL database and one for my MySql database. > > As the two connections are able to browse their respective databases, it seemed logical that controls using these connections > would work also. I created a DataSource control on my form and set its Connection property to Connection1 (my PostgreSQL > database). When I run the project, I am told "Cannot open database: fe_sendauth: no password supplied". I then set the > Connection property to Connection2 (my MySql connection). When I run the project I am told "Cannot open database: Access denied > for user 'root'@'localhost' (using password: NO)" > > Why am I seeing these password problems when the Connection objects they are using connect perfectly? Good question. I am having a similar issue, but all I get is "Cannot open database:" - no reason given. "Common.CheckDB.34" tops the Stack backtrace. I don't know if it's related, but when I set the properties for the Connection, I did not enable "Remember password". Yet, I got an error message, "Unable to save password. Cannot store passwords on desktop KDE5: No wallet found". The error is correct; there is no wallet. But I shouldn't have gotten any error because I did not elect to save the password. The Connection can read the database statically through the IDE, but apparently not at runtime. -- Lee From t.lee.davidson at gmail.com Mon Jan 1 18:34:55 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 1 Jan 2018 12:34:55 -0500 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> References: <1514684664.12546.82.camel@gmail.com> <1514685624.12546.84.camel@gmail.com> <1514701561.12546.114.camel@gmail.com> <8c776eb0-44f9-bf27-ddbf-a671ea9774d2@gmail.com> <20171231201643.GB21012@highrise.localdomain> <2263ed80-159d-a85b-ac73-fd5b5cae90af@gmail.com> <1514787574.3338.6.camel@gmail.com> <1514792828.3338.25.camel@gmail.com> <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> Message-ID: <84aadabe-1831-c379-6611-82bf4dbd8c26@gmail.com> On 01/01/2018 12:17 PM, T Lee Davidson wrote: > On 01/01/2018 02:47 AM, Doug Hutcheson wrote: [snip] >> >> Why am I seeing these password problems when the Connection objects they are using connect perfectly? > > Good question. I am having a similar issue, but all I get is "Cannot open database:" - no reason given. "Common.CheckDB.34" tops > the Stack backtrace. > > I don't know if it's related, but when I set the properties for the Connection, I did not enable "Remember password". Yet, I got > an error message, "Unable to save password. Cannot store passwords on desktop KDE5: No wallet found". The error is correct; > there is no wallet. But I shouldn't have gotten any error because I did not elect to save the password. > > The Connection can read the database statically through the IDE, but apparently not at runtime. BTW, Doug, did you try the command line application version I posted? Or, in your graphical application, you could try setting the database connection programmatically to bypass the IDE's Connection component as that appears it might have issues (or we're doing something wrong). [code] ' Gambas module file Public Sub Main() Dim hConn As New Connection Dim rField As ResultField Dim MyResult As Result hConn.Type = "postgresql" ' Type of connection hConn.Host = "localhost" ' Name of the server hConn.Login = "postgres" ' User's name for the connection hConn.Port = "5432" ' Port to use in the connection, usually 3306 hConn.Name = "postgres" ' Name of the database we want to use hConn.Password = "mypgpass" ' User's password hConn.Open() ' Open the connection If Error Then Print "OUCH!!" Else Print "Connected." Endif MyResult = hConn.Exec("select * from users") Debug MyResult.Fields.Count Debug MyResult!id For Each rField In MyResult.Fields Print rField.Name Next End [/code] -- Lee From owlbrudder at gmail.com Tue Jan 2 04:00:32 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Tue, 02 Jan 2018 13:00:32 +1000 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: <84aadabe-1831-c379-6611-82bf4dbd8c26@gmail.com> References: <1514684664.12546.82.camel@gmail.com> <1514685624.12546.84.camel@gmail.com> <1514701561.12546.114.camel@gmail.com> <8c776eb0-44f9-bf27-ddbf-a671ea9774d2@gmail.com> <20171231201643.GB21012@highrise.localdomain> <2263ed80-159d-a85b-ac73-fd5b5cae90af@gmail.com> <1514787574.3338.6.camel@gmail.com> <1514792828.3338.25.camel@gmail.com> <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> <84aadabe-1831-c379-6611-82bf4dbd8c26@gmail.com> Message-ID: <1514862032.3338.40.camel@gmail.com> On Mon, 2018-01-01 at 12:34 -0500, T Lee Davidson wrote: > On 01/01/2018 12:17 PM, T Lee Davidson wrote: > > On 01/01/2018 02:47 AM, Doug Hutcheson wrote: > > [snip] > > > Why am I seeing these password problems when the Connection > > > objects they are using connect perfectly? > > > > Good question. I am having a similar issue, but all I get is > > "Cannot open database:" - no reason given. "Common.CheckDB.34" tops > > the Stack backtrace. > > > > I don't know if it's related, but when I set the properties for the > > Connection, I did not enable "Remember password". Yet, I got > > an error message, "Unable to save password. Cannot store passwords > > on desktop KDE5: No wallet found". The error is correct; > > there is no wallet. But I shouldn't have gotten any error because I > > did not elect to save the password. > > > > The Connection can read the database statically through the IDE, > > but apparently not at runtime. > > BTW, Doug, did you try the command line application version I posted? > Or, in your graphical application, you could try setting > the database connection programmatically to bypass the IDE's > Connection component as that appears it might have issues (or we're > doing something wrong). > > [code] > ' Gambas module file > > Public Sub Main() > > Dim hConn As New Connection > Dim rField As ResultField > Dim MyResult As Result > > hConn.Type = "postgresql" ' Type of connection > hConn.Host = "localhost" ' Name of the server > hConn.Login = "postgres" ' User's name for the connection > hConn.Port = "5432" ' Port to use in the connection, usually > 3306 > hConn.Name = "postgres" ' Name of the database we want to use > hConn.Password = "mypgpass" ' User's password > hConn.Open() ' Open the connection > If Error Then > Print "OUCH!!" > Else > Print "Connected." > Endif > > MyResult = hConn.Exec("select * from users") > > Debug MyResult.Fields.Count > Debug MyResult!id > For Each rField In MyResult.Fields > Print rField.Name > Next > > End > [/code] > Hi Lee. Your code as it stands reports:[doug at womble CommandLinePostgreSQLtestApp]$ ./CommandLinePostgreSQLtestApp.gambas Connected.Main.Main.22: Query failed: ERROR: relation "users" does not existLINE 1: select * from users ^ Main.Main.22 [doug at womble CommandLinePostgreSQLtestApp]$ I changed the code to connect to my database and the following was the output:[doug at womble CommandLinePostgreSQLtestApp]$ ./CommandLinePostgreSQLtestApp.gambas Connected.Main.Main.24: 35Main.Main.25: Main.Main.25: Unknown field: txtMasterDatabaseMain.Main.25 35 is the correct field count; txtMasterDatabase is the first field in the table. I have attached two source archives: one is my PostgreSQL test application - the one which started this thread - and the other is your command line application. Please feel free to point out if I have done something stupid, because I am at the start of my Gambas learning curve and welcome any input. Regards, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: CommandLinePostgreSQLtestApp-0.0.3.tar.gz Type: application/x-compressed-tar Size: 239865 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PostgreSQL_test-0.0.1.tar.gz Type: application/x-compressed-tar Size: 12506 bytes Desc: not available URL: From t.lee.davidson at gmail.com Tue Jan 2 05:12:13 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 1 Jan 2018 23:12:13 -0500 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: <1514862032.3338.40.camel@gmail.com> References: <1514684664.12546.82.camel@gmail.com> <1514685624.12546.84.camel@gmail.com> <1514701561.12546.114.camel@gmail.com> <8c776eb0-44f9-bf27-ddbf-a671ea9774d2@gmail.com> <20171231201643.GB21012@highrise.localdomain> <2263ed80-159d-a85b-ac73-fd5b5cae90af@gmail.com> <1514787574.3338.6.camel@gmail.com> <1514792828.3338.25.camel@gmail.com> <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> <84aadabe-1831-c379-6611-82bf4dbd8c26@gmail.com> <1514862032.3338.40.camel@gmail.com> Message-ID: On 01/01/2018 10:00 PM, Doug Hutcheson wrote: > I changed the code to connect to my database and the following was the output: > [doug at womble CommandLinePostgreSQLtestApp]$ ./CommandLinePostgreSQLtestApp.gambas? > Connected. > Main.Main.24: 35 > Main.Main.25: Main.Main.25: Unknown field: txtMasterDatabase > Main.Main.25? > > 35 is the correct field count; txtMasterDatabase is the first field in the table. > > I have attached two source archives: one is my PostgreSQL test application - the one which started this thread - and the other > is your command line application. Please feel free to point out if I have done something stupid, because I am at the start of my > Gambas learning curve and welcome any input. > Looking at the name of the first field in the table reminded me of something I stumbled across during my foray into PostgreSQL land. It has an issue with mixed-case names. https://stackoverflow.com/questions/20878932/are-postgresql-column-names-case-sensitive : "All identifiers (including column names) that are not double-quoted are folded to lower case in PostgreSQL." -- Lee From owlbrudder at gmail.com Tue Jan 2 05:34:47 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Tue, 02 Jan 2018 14:34:47 +1000 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: References: <1514684664.12546.82.camel@gmail.com> <1514685624.12546.84.camel@gmail.com> <1514701561.12546.114.camel@gmail.com> <8c776eb0-44f9-bf27-ddbf-a671ea9774d2@gmail.com> <20171231201643.GB21012@highrise.localdomain> <2263ed80-159d-a85b-ac73-fd5b5cae90af@gmail.com> <1514787574.3338.6.camel@gmail.com> <1514792828.3338.25.camel@gmail.com> <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> <84aadabe-1831-c379-6611-82bf4dbd8c26@gmail.com> <1514862032.3338.40.camel@gmail.com> Message-ID: <1514867687.4301.5.camel@gmail.com> On Mon, 2018-01-01 at 23:12 -0500, T Lee Davidson wrote: > On 01/01/2018 10:00 PM, Doug Hutcheson wrote: > > I changed the code to connect to my database and the following was > > the output: > > [doug at womble CommandLinePostgreSQLtestApp]$ > > ./CommandLinePostgreSQLtestApp.gambas > > Connected. > > Main.Main.24: 35 > > Main.Main.25: Main.Main.25: Unknown field: txtMasterDatabase > > Main.Main.25 > > > > 35 is the correct field count; txtMasterDatabase is the first field > > in the table. > > > > I have attached two source archives: one is my PostgreSQL test > > application - the one which started this thread - and the other > > is your command line application. Please feel free to point out if > > I have done something stupid, because I am at the start of my > > Gambas learning curve and welcome any input. > > > > Looking at the name of the first field in the table reminded me of > something I stumbled across during my foray into PostgreSQL > land. It has an issue with mixed-case names. > > https://stackoverflow.com/questions/20878932/are-postgresql-column-na > mes-case-sensitive : > "All identifiers (including column names) that are not double-quoted > are folded to lower case in PostgreSQL." > > Darn! I knew about that restriction and commonly double-quote my identifiers for that reason. Sure 'nuff, when I change the first field name to all lower-case the loop works fine, then barfs on the next one which I have not changed. Looks like you have solved that much of the quandary for me, Lee. Give yourself a gold star and an elephant stamp! "8-) Now I will see if it solves the problem of the Connections not wanting to play nicely. I'll get back to you on that. Cheers, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From owlbrudder at gmail.com Tue Jan 2 06:18:00 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Tue, 02 Jan 2018 15:18:00 +1000 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: <1514867687.4301.5.camel@gmail.com> References: <1514684664.12546.82.camel@gmail.com> <1514685624.12546.84.camel@gmail.com> <1514701561.12546.114.camel@gmail.com> <8c776eb0-44f9-bf27-ddbf-a671ea9774d2@gmail.com> <20171231201643.GB21012@highrise.localdomain> <2263ed80-159d-a85b-ac73-fd5b5cae90af@gmail.com> <1514787574.3338.6.camel@gmail.com> <1514792828.3338.25.camel@gmail.com> <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> <84aadabe-1831-c379-6611-82bf4dbd8c26@gmail.com> <1514862032.3338.40.camel@gmail.com> <1514867687.4301.5.camel@gmail.com> Message-ID: <1514870280.4301.14.camel@gmail.com> On Tue, 2018-01-02 at 14:34 +1000, Doug Hutcheson wrote: > On Mon, 2018-01-01 at 23:12 -0500, T Lee Davidson wrote: > > On 01/01/2018 10:00 PM, Doug Hutcheson wrote: > > > I changed the code to connect to my database and the following > > > was the output: > > > [doug at womble CommandLinePostgreSQLtestApp]$ > > > ./CommandLinePostgreSQLtestApp.gambas > > > Connected. > > > Main.Main.24: 35 > > > Main.Main.25: Main.Main.25: Unknown field: txtMasterDatabase > > > Main.Main.25 > > > > > > 35 is the correct field count; txtMasterDatabase is the first > > > field in the table. > > > > > > I have attached two source archives: one is my PostgreSQL test > > > application - the one which started this thread - and the other > > > is your command line application. Please feel free to point out > > > if I have done something stupid, because I am at the start of my > > > Gambas learning curve and welcome any input. > > > > > > > Looking at the name of the first field in the table reminded me of > > something I stumbled across during my foray into PostgreSQL > > land. It has an issue with mixed-case names. > > > > https://stackoverflow.com/questions/20878932/are-postgresql-column- > > names-case-sensitive : > > "All identifiers (including column names) that are not double- > > quoted are folded to lower case in PostgreSQL." > > > > > Darn! I knew about that restriction and commonly double-quote my > identifiers for that reason. Sure 'nuff, when I change the first > field name to all lower-case the loop works fine, then barfs on the > next one which I have not changed. > > Looks like you have solved that much of the quandary for me, Lee. > Give yourself a gold star and an elephant stamp! "8-) > > Now I will see if it solves the problem of the Connections not > wanting to play nicely. I'll get back to you on that. > > Cheers, Doug Hi Lee. Nope, it does not help with the Connections problem. My Connections tool correctly shows all my tables and browses my data, but attempting to use a Connection with a Datasource control and giving it a tablename visible in the Connections tool, causes the error "Cannot open database: fe_sendauth: no password supplied". I am a retired C and VBA programmer with more time than sense, so I'll poke around in the Gambas source (gb.db, gb.db.mysql, gb.db.postgresql for a start) and see what I can see. The field names issue might just be a matter of double-quoting each time a field is accessed and the password issue seems to be common to MySql and PostgreSQL so is going to be something obvious. I'll let you know if I find anything interesting. Cheers, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From owlbrudder at gmail.com Tue Jan 2 07:30:40 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Tue, 02 Jan 2018 16:30:40 +1000 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: <1514870280.4301.14.camel@gmail.com> References: <1514684664.12546.82.camel@gmail.com> <1514685624.12546.84.camel@gmail.com> <1514701561.12546.114.camel@gmail.com> <8c776eb0-44f9-bf27-ddbf-a671ea9774d2@gmail.com> <20171231201643.GB21012@highrise.localdomain> <2263ed80-159d-a85b-ac73-fd5b5cae90af@gmail.com> <1514787574.3338.6.camel@gmail.com> <1514792828.3338.25.camel@gmail.com> <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> <84aadabe-1831-c379-6611-82bf4dbd8c26@gmail.com> <1514862032.3338.40.camel@gmail.com> <1514867687.4301.5.camel@gmail.com> <1514870280.4301.14.camel@gmail.com> Message-ID: <1514874640.4301.29.camel@gmail.com> On Tue, 2018-01-02 at 15:18 +1000, Doug Hutcheson wrote: > On Tue, 2018-01-02 at 14:34 +1000, Doug Hutcheson wrote: > > On Mon, 2018-01-01 at 23:12 -0500, T Lee Davidson wrote: > > > On 01/01/2018 10:00 PM, Doug Hutcheson wrote: > > > > I changed the code to connect to my database and the following > > > > was the output: > > > > [doug at womble > > > > CommandLinePostgreSQLtestApp]$ > > > > ./CommandLinePostgreSQLtestApp.gambas > > > > Connected. > > > > Main.Main.24: 35 > > > > Main.Main.25: Main.Main.25: Unknown field: txtMasterDatabase > > > > Main.Main.25 > > > > > > > > 35 is the correct field count; txtMasterDatabase is the first > > > > field in the table. > > > > > > > > I have attached two source archives: one is my PostgreSQL test > > > > application - the one which started this thread - and the other > > > > is your command line application. Please feel free to point out > > > > if I have done something stupid, because I am at the start of > > > > my > > > > Gambas learning curve and welcome any input. > > > > > > > > > > Looking at the name of the first field in the table reminded me > > > of something I stumbled across during my foray into PostgreSQL > > > land. It has an issue with mixed-case names. > > > > > > https://stackoverflow.com/questions/20878932/are-postgresql-colum > > > n-names-case-sensitive : > > > "All identifiers (including column names) that are not double- > > > quoted are folded to lower case in PostgreSQL." > > > > > > > > Darn! I knew about that restriction and commonly double-quote my > > identifiers for that reason. Sure 'nuff, when I change the first > > field name to all lower-case the loop works fine, then barfs on the > > next one which I have not changed. > > > > Looks like you have solved that much of the quandary for me, Lee. > > Give yourself a gold star and an elephant stamp! "8-) > > > > Now I will see if it solves the problem of the Connections not > > wanting to play nicely. I'll get back to you on that. > > > > Cheers, Doug > > Hi Lee. Nope, it does not help with the Connections problem. My > Connections tool correctly shows all my tables and browses my data, > but attempting to use a Connection with a Datasource control and > giving it a tablename visible in the Connections tool, causes the > error "Cannot open database: fe_sendauth: no password supplied". > > I am a retired C and VBA programmer with more time than sense, so > I'll poke around in the Gambas source (gb.db, gb.db.mysql, > gb.db.postgresql for a start) and see what I can see. The field names > issue might just be a matter of double-quoting each time a field is > accessed and the password issue seems to be common to MySql and > PostgreSQL so is going to be something obvious. I'll let you know if > I find anything interesting. > Cheers, Doug Hi Lee. A first look at the code tells me three things: 1. gb.db.postgresql/main.c contains code to quote identifiers, but I will have to look further to determine whether it uses a single quote or a double quote. Suspicious, but needs more investigation. If it uses a sinle quote, that will be our problem right there. 2. Both gb.db.mysql/main.c and gb.db.postgresql/main.c have a routine to open a database. In each case, the parameters - including password - are contained in a structure passed to the routine. I will have to dig more to determine whether the password is actually being passed. Logic says it must be, because others would have tripped over this problem in the past, but the evidence on my machine at least suggests the password is not being correctly embedded in the structure. 3. I don't seem to have the source for gb.db, which is where I expect to find some of the high-level code and structures. Will dig more. Now, before I go any further, I don't want to be treading on anyone's toes. If it is not my place to go ferreting around in the code please let me know - the last thing I want is to give anyone offence. If it is OK, I will gladly dive in and see what I can contribute. Cheers, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Tue Jan 2 07:38:44 2018 From: taboege at gmail.com (Tobias Boege) Date: Tue, 2 Jan 2018 07:38:44 +0100 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: <1514874640.4301.29.camel@gmail.com> References: <2263ed80-159d-a85b-ac73-fd5b5cae90af@gmail.com> <1514787574.3338.6.camel@gmail.com> <1514792828.3338.25.camel@gmail.com> <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> <84aadabe-1831-c379-6611-82bf4dbd8c26@gmail.com> <1514862032.3338.40.camel@gmail.com> <1514867687.4301.5.camel@gmail.com> <1514870280.4301.14.camel@gmail.com> <1514874640.4301.29.camel@gmail.com> Message-ID: <20180102063844.GC21012@highrise.localdomain> On Tue, 02 Jan 2018, Doug Hutcheson wrote: > 3. I don't seem to have the source for gb.db, which is where I expect > to find some of the high-level code and structures. Will dig more. > The common gb.db code is in main/lib/db. > Now, before I go any further, I don't want to be treading on anyone's > toes. If it is not my place to go ferreting around in the code please > let me know - the last thing I want is to give anyone offence. > By all means, do what you can. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From owlbrudder at gmail.com Tue Jan 2 07:40:22 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Tue, 02 Jan 2018 16:40:22 +1000 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: <20180102063844.GC21012@highrise.localdomain> References: <2263ed80-159d-a85b-ac73-fd5b5cae90af@gmail.com> <1514787574.3338.6.camel@gmail.com> <1514792828.3338.25.camel@gmail.com> <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> <84aadabe-1831-c379-6611-82bf4dbd8c26@gmail.com> <1514862032.3338.40.camel@gmail.com> <1514867687.4301.5.camel@gmail.com> <1514870280.4301.14.camel@gmail.com> <1514874640.4301.29.camel@gmail.com> <20180102063844.GC21012@highrise.localdomain> Message-ID: <1514875222.4301.30.camel@gmail.com> On Tue, 2018-01-02 at 07:38 +0100, Tobias Boege wrote: > On Tue, 02 Jan 2018, Doug Hutcheson wrote: > > 3. I don't seem to have the source for gb.db, which is where I > > expect > > to find some of the high-level code and structures. Will dig more. > > > > The common gb.db code is in main/lib/db. > > > Now, before I go any further, I don't want to be treading on > > anyone's > > toes. If it is not my place to go ferreting around in the code > > please > > let me know - the last thing I want is to give anyone offence. > > > > By all means, do what you can. > > Regards, > Tobi > > Thank you Tobi. So, my adventure into the code begins ... Cheers, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From owlbrudder at gmail.com Tue Jan 2 08:59:59 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Tue, 02 Jan 2018 17:59:59 +1000 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: <1514875222.4301.30.camel@gmail.com> References: <2263ed80-159d-a85b-ac73-fd5b5cae90af@gmail.com> <1514787574.3338.6.camel@gmail.com> <1514792828.3338.25.camel@gmail.com> <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> <84aadabe-1831-c379-6611-82bf4dbd8c26@gmail.com> <1514862032.3338.40.camel@gmail.com> <1514867687.4301.5.camel@gmail.com> <1514870280.4301.14.camel@gmail.com> <1514874640.4301.29.camel@gmail.com> <20180102063844.GC21012@highrise.localdomain> <1514875222.4301.30.camel@gmail.com> Message-ID: <1514879999.4301.34.camel@gmail.com> On Tue, 2018-01-02 at 16:40 +1000, Doug Hutcheson wrote: > On Tue, 2018-01-02 at 07:38 +0100, Tobias Boege wrote: > > On Tue, 02 Jan 2018, Doug Hutcheson wrote: > > > 3. I don't seem to have the source for gb.db, which is where I > > > expect > > > to find some of the high-level code and structures. Will dig > > > more. > > > > > > > The common gb.db code is in main/lib/db. > > > > > Now, before I go any further, I don't want to be treading on > > > anyone's > > > toes. If it is not my place to go ferreting around in the code > > > please > > > let me know - the last thing I want is to give anyone offence. > > > > > > > By all means, do what you can. > > > > Regards, > > Tobi > > > Thank you Tobi. So, my adventure into the code begins ... > Cheers, Doug I can confirm the PostgreSQL quote character is correctly declared as " , so that is one line of investigation closed. Still digging ... "8-) Cheers, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Tue Jan 2 17:41:37 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 2 Jan 2018 11:41:37 -0500 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: <1514870280.4301.14.camel@gmail.com> References: <1514684664.12546.82.camel@gmail.com> <1514685624.12546.84.camel@gmail.com> <1514701561.12546.114.camel@gmail.com> <8c776eb0-44f9-bf27-ddbf-a671ea9774d2@gmail.com> <20171231201643.GB21012@highrise.localdomain> <2263ed80-159d-a85b-ac73-fd5b5cae90af@gmail.com> <1514787574.3338.6.camel@gmail.com> <1514792828.3338.25.camel@gmail.com> <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> <84aadabe-1831-c379-6611-82bf4dbd8c26@gmail.com> <1514862032.3338.40.camel@gmail.com> <1514867687.4301.5.camel@gmail.com> <1514870280.4301.14.camel@gmail.com> Message-ID: On 01/02/2018 12:18 AM, Doug Hutcheson wrote: > Hi Lee. Nope, it does not help with the Connections problem. My Connections tool correctly shows all my tables and browses my > data, but attempting to use a Connection with a Datasource control and giving it a tablename visible in the Connections tool, > causes the error "Cannot open database: fe_sendauth: no password supplied". It's not just PostgreSQL. It happens to me with and IDE-defined MySQL Connection. When I run a simple test program, I get, "Cannot open database:" - no reason given. I believe that error message, in the case of MySQL, is generated by line 775 of gb.db.mysql. (https://gitlab.com/gambas/gambas/blob/master/gb.db.mysql/src/main.c#L775) The 'Local variables' tab shows "hConn (Connection 0xss6faa8)". Examining that object by double-clicking it shows that the Password property is empty. -- Lee From owlbrudder at gmail.com Tue Jan 2 23:56:04 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Wed, 03 Jan 2018 08:56:04 +1000 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: References: <1514684664.12546.82.camel@gmail.com> <1514685624.12546.84.camel@gmail.com> <1514701561.12546.114.camel@gmail.com> <8c776eb0-44f9-bf27-ddbf-a671ea9774d2@gmail.com> <20171231201643.GB21012@highrise.localdomain> <2263ed80-159d-a85b-ac73-fd5b5cae90af@gmail.com> <1514787574.3338.6.camel@gmail.com> <1514792828.3338.25.camel@gmail.com> <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> <84aadabe-1831-c379-6611-82bf4dbd8c26@gmail.com> <1514862032.3338.40.camel@gmail.com> <1514867687.4301.5.camel@gmail.com> <1514870280.4301.14.camel@gmail.com> Message-ID: <1514933764.4301.48.camel@gmail.com> On Tue, 2018-01-02 at 11:41 -0500, T Lee Davidson wrote: > On 01/02/2018 12:18 AM, Doug Hutcheson wrote: > > Hi Lee. Nope, it does not help with the Connections problem. My > > Connections tool correctly shows all my tables and browses my > > data, but attempting to use a Connection with a Datasource control > > and giving it a tablename visible in the Connections tool, > > causes the error "Cannot open database: fe_sendauth: no password > > supplied". > > It's not just PostgreSQL. It happens to me with and IDE-defined MySQL > Connection. > > When I run a simple test program, I get, "Cannot open database:" - no > reason given. I believe that error message, in the case of > MySQL, is generated by line 775 of gb.db.mysql. > (https://gitlab.com/gambas/gambas/blob/master/gb.db.mysql/src/main.c# > L775) > I agree - that seems to be the line. (Takes note to self: must learn how to use gitlab ...) The corresponding line in the gb.db.postgresql source is 720, although the surrounding code is quite different. Still, both must have been working (?) so the mission is to discover what has changed. > The 'Local variables' tab shows "hConn (Connection 0xss6faa8)". > Examining that object by double-clicking it shows that the > Password property is empty. > That is consistent with what is happening for me, but I had not gone as far as debugging the hConn variable. So, there are two issues to address: 1. Why are PostgreSQL table and column names not recognised if mixed case - probably not being double quoted even though the code is there? 2. Why are passwords not being passed? At least we are both seeing identical problems, so I can eliminate my own setup as being at fault. Gambas is a big beast to get the head around, but the code is beautifully written which makes it possible to follow the logic in most cases. As is always the case, I wish there were more comments. '8-) Kind regards, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From owlbrudder at gmail.com Wed Jan 3 00:42:00 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Wed, 03 Jan 2018 09:42:00 +1000 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: <1514933764.4301.48.camel@gmail.com> References: <1514684664.12546.82.camel@gmail.com> <1514685624.12546.84.camel@gmail.com> <1514701561.12546.114.camel@gmail.com> <8c776eb0-44f9-bf27-ddbf-a671ea9774d2@gmail.com> <20171231201643.GB21012@highrise.localdomain> <2263ed80-159d-a85b-ac73-fd5b5cae90af@gmail.com> <1514787574.3338.6.camel@gmail.com> <1514792828.3338.25.camel@gmail.com> <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> <84aadabe-1831-c379-6611-82bf4dbd8c26@gmail.com> <1514862032.3338.40.camel@gmail.com> <1514867687.4301.5.camel@gmail.com> <1514870280.4301.14.camel@gmail.com> <1514933764.4301.48.camel@gmail.com> Message-ID: <1514936520.4301.60.camel@gmail.com> On Wed, 2018-01-03 at 08:56 +1000, Doug Hutcheson wrote: > On Tue, 2018-01-02 at 11:41 -0500, T Lee Davidson wrote: > > On 01/02/2018 12:18 AM, Doug Hutcheson wrote: > > > Hi Lee. Nope, it does not help with the Connections problem. My > > > Connections tool correctly shows all my tables and browses my > > > data, but attempting to use a Connection with a Datasource > > > control and giving it a tablename visible in the Connections > > > tool, > > > causes the error "Cannot open database: fe_sendauth: no password > > > supplied". > > > > It's not just PostgreSQL. It happens to me with and IDE-defined > > MySQL Connection. > > > > When I run a simple test program, I get, "Cannot open database:" - > > no reason given. I believe that error message, in the case of > > MySQL, is generated by line 775 of gb.db.mysql. > > (https://gitlab.com/gambas/gambas/blob/master/gb.db.mysql/src/main. > > c#L775) > > > I agree - that seems to be the line. (Takes note to self: must learn > how to use gitlab ...) The corresponding line in the gb.db.postgresql > source is 720, although the surrounding code is quite different. > Still, both must have been working (?) so the mission is to discover > what has changed. > > > The 'Local variables' tab shows "hConn (Connection 0xss6faa8)". > > Examining that object by double-clicking it shows that the > > Password property is empty. > > > That is consistent with what is happening for me, but I had not gone > as far as debugging the hConn variable. > > So, there are two issues to address: > 1. Why are PostgreSQL table and column names not recognised if mixed > case - probably not being double quoted even though the code is > there? > 2. Why are passwords not being passed? > > At least we are both seeing identical problems, so I can eliminate my > own setup as being at fault. > > > Gambas is a big beast to get the head around, but the code is > beautifully written which makes it possible to follow the logic in > most cases. As is always the case, I wish there were more > comments. '8-) > > Kind regards, Doug Hi Lee. An interesting piece of code resides in main/lib/db/CConnection.c lines 315 to 337, which is surrounded by #ifdef 0 ... #endif and attempts to set a flag indicating whether the database in question is case sensitive. Clearly the ability for databases to have identifiers in mixed case has received attention in the past. My understanding of #ifdef 0 is that it will always fail, so the code is never included - do you agree? I can't imagine a case where one would #define 0, but I am willing to be proved wrong "8-) Is there a better way to collaborate than sending emails to the list? I'm sure other users must be getting sick of the constant flow of messages. Kind regards, Doug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From owlbrudder at gmail.com Wed Jan 3 02:26:44 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Wed, 03 Jan 2018 11:26:44 +1000 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: <1514933764.4301.48.camel@gmail.com> References: <1514684664.12546.82.camel@gmail.com> <1514685624.12546.84.camel@gmail.com> <1514701561.12546.114.camel@gmail.com> <8c776eb0-44f9-bf27-ddbf-a671ea9774d2@gmail.com> <20171231201643.GB21012@highrise.localdomain> <2263ed80-159d-a85b-ac73-fd5b5cae90af@gmail.com> <1514787574.3338.6.camel@gmail.com> <1514792828.3338.25.camel@gmail.com> <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> <84aadabe-1831-c379-6611-82bf4dbd8c26@gmail.com> <1514862032.3338.40.camel@gmail.com> <1514867687.4301.5.camel@gmail.com> <1514870280.4301.14.camel@gmail.com> <1514933764.4301.48.camel@gmail.com> Message-ID: <1514942804.4301.71.camel@gmail.com> On Wed, 2018-01-03 at 08:56 +1000, Doug Hutcheson wrote: > On Tue, 2018-01-02 at 11:41 -0500, T Lee Davidson wrote: > > On 01/02/2018 12:18 AM, Doug Hutcheson wrote: > > > Hi Lee. Nope, it does not help with the Connections problem. My > > > Connections tool correctly shows all my tables and browses my > > > data, but attempting to use a Connection with a Datasource > > > control and giving it a tablename visible in the Connections > > > tool, > > > causes the error "Cannot open database: fe_sendauth: no password > > > supplied". > > > > It's not just PostgreSQL. It happens to me with and IDE-defined > > MySQL Connection. > > > > When I run a simple test program, I get, "Cannot open database:" - > > no reason given. I believe that error message, in the case of > > MySQL, is generated by line 775 of gb.db.mysql. > > (https://gitlab.com/gambas/gambas/blob/master/gb.db.mysql/src/main. > > c#L775) > > > I agree - that seems to be the line. (Takes note to self: must learn > how to use gitlab ...) The corresponding line in the gb.db.postgresql > source is 720, although the surrounding code is quite different. > Still, both must have been working (?) so the mission is to discover > what has changed. > > > The 'Local variables' tab shows "hConn (Connection 0xss6faa8)". > > Examining that object by double-clicking it shows that the > > Password property is empty. > > > That is consistent with what is happening for me, but I had not gone > as far as debugging the hConn variable. > > So, there are two issues to address: > 1. Why are PostgreSQL table and column names not recognised if mixed > case - probably not being double quoted even though the code is > there? > 2. Why are passwords not being passed? > > At least we are both seeing identical problems, so I can eliminate my > own setup as being at fault. > > > Gambas is a big beast to get the head around, but the code is > beautifully written which makes it possible to follow the logic in > most cases. As is always the case, I wish there were more > comments. '8-) > > Kind regards, Doug Working on the password issue. I uncommented line 708 of bg.db.postgresql/src/main.c, to allow a debug statement to be displayed. I recompiled and restarted. Opened the form with the DataSource control and saw this result: gb.db.postgresql: host = `localhost` port = `(null)` dbnname = `dbname='ABPA' connect_timeout=20` user = `doug` password = `` so the port is not set at that point, which could be the reason the database is not opening - perhaps? I then changed Connection1 to point to a different database and adjusted the relevant properties of the DataSource control. Running it saw this result: gb.db.postgresql: host = `localhost` port = `5432` dbnname = `dbname='softwarebiz' connect_timeout=20` user = `doug` password = `(null)` so now the port is correct but the password has gone to the bit bucket. I wonder whether we are seeing a pointer dereferencing issue with the DB_DESC structure? Too little information to go on as yet. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail.gambaspi at gmail.com Wed Jan 3 05:43:34 2018 From: mail.gambaspi at gmail.com (Zainudin Ahmad) Date: Wed, 3 Jan 2018 11:43:34 +0700 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: <1514684664.12546.82.camel@gmail.com> References: <1514684664.12546.82.camel@gmail.com> Message-ID: Hi You can see this video ( https://drive.google.com/open?id=1jq6I26ykS5Mkr3L2oPA1D15ZtjLt2_S3) Debug hRes.Fields.Exist("\"TxtMyDb\"") ---> true Debug hRes.Fields.Exist("TxtMyDb") ----> false I think gambas not fully support for case sensitive(for postgres) field name. I don't know about postgres I think maybe the recommended way you should write your field name with lower case name. you can see in that video, doing this : Debug hRes.Fields["name"].name Debug hRes.Fields["NaMe"].name it's no different I think this is also possible : For Each hRes Debug hRes!Name Debug hRes!NaMe Next if you doing hRes!txtMasterDatabase or hRes!txtMasterDATABASE or other it's mean you must have a field name with lower case name in your table. sorry for my english, I hope that can help. On Sun, Dec 31, 2017 at 8:44 AM, Doug Hutcheson wrote: > Hi everyone. > > I have successfully connected to my PostgreSQL database and the field > count in the Result from my query is correct, but all my attempts to > extract data from the fields have failed. I am cobbling together code from > the wiki and from other posts here, but I am still missing something. > > The table I am reading from has exactly one row and 35 fields. The first > field is named txtMasterDatabase. > > My code declares a Field and a Result as follows: > Dim $Field As ResultField > Dim $Result As Result > > The query works correctly: > $Query = "Select * From abpa.tblParameters" > $Result = $Con.Exec($Query) > > The field count is correct - 35: > Message("Fields count = " & $Result.Fields.Count) > > Now I try to loop through the fields in the result: > For Each $Field In $Result.Fields > Message($Field.Name) > Next > > The problem occurs on the For Each line in that the Basic IDE displays an > error at this point: > Unknown field: txtMasterDatabase in FRMStart:41 > > As I said above, the first field in the tuple is named txtMasterDatabase, > so Gambas is at least seeing it. Why is it telling me the field is unknown? > > Thanks for any help and Happy New Year, > Doug > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From owlbrudder at gmail.com Wed Jan 3 05:51:32 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Wed, 03 Jan 2018 14:51:32 +1000 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: References: <1514684664.12546.82.camel@gmail.com> Message-ID: <1514955092.4301.75.camel@gmail.com> Hi Zainudin Ahmad Thanks for the information. I think you are correct, in that I will have to use lowercase names instead of CamelCase that I have been using for years. I would still like to know exactly where in the code I should be looking in order to fix the PostgreSQL interface, because I am happy to go through the compile/run/debug cycle as often as needed. "8-)Kind regards, Doug On Wed, 2018-01-03 at 11:43 +0700, Zainudin Ahmad wrote: > Hi > > You can see this video (https://drive.google.com/open?id=1jq6I26ykS5M > kr3L2oPA1D15ZtjLt2_S3) > > Debug hRes.Fields.Exist("\"TxtMyDb\"") ---> true > Debug hRes.Fields.Exist("TxtMyDb") ----> false > I > think gambas not fully support for case sensitive(for postgres) > field > name. I don't know about postgres I think maybe the recommended way > you should > write your field name with lower case name. > you can see in that video, doing this : > Debug hRes.Fields["name"].name > Debug hRes.Fields["NaMe"].name > it's no different > I think this is also possible : > For Each hRes > Debug hRes!Name Debug hRes!NaMe Next > if > you doing hRes!txtMasterDatabase or hRes!txtMasterDATABASE or other > it's mean you must have a field name with lower case name in your > table. > > sorry for my english, I hope that can help. > > On Sun, Dec 31, 2017 at 8:44 AM, Doug Hutcheson > wrote: > > Hi everyone. > > I have successfully connected to my PostgreSQL database and the > > field count in the Result from my query is correct, but all my > > attempts to extract data from the fields have failed. I am cobbling > > together code from the wiki and from other posts here, but I am > > still missing something. > > The table I am reading from has exactly one row and 35 fields. The > > first field is named txtMasterDatabase. > > My code declares a Field and a Result as follows: Dim > > $Field As ResultField Dim $Result As Result > > The query works correctly: $Query = "Select * From > > abpa.tblParameters" $Result = $Con.Exec($Query) > > The field count is correct - 35: Message("Fields count = > > " & $Result.Fields.Count) > > Now I try to loop through the fields in the result: For > > Each $Field In > > $Result.Fields Message($Field.Name) Next > > The problem occurs on the For Each line in that the Basic IDE > > displays an error at this point: Unknown field: > > txtMasterDatabase in FRMStart:41 > > As I said above, the first field in the tuple is named > > txtMasterDatabase, so Gambas is at least seeing it. Why is it > > telling me the field is unknown? > > Thanks for any help and Happy New Year,Doug > > > > > > -------------------------------------------------- > > > > > > > > This is the Gambas Mailing List > > > > https://lists.gambas-basic.org/listinfo/user > > > > > > > > Hosted by https://www.hostsharing.net > > > > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From owlbrudder at gmail.com Wed Jan 3 08:03:36 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Wed, 03 Jan 2018 17:03:36 +1000 Subject: [Gambas-user] What IDE if any to use for development of Gambas? Message-ID: <1514963016.4301.79.camel@gmail.com> Hi everyone. I have been wrestling with the Eclipse IDE, but losing the fight. What do you use for development of Gambas code? (I am not referring to the Gambas Basic IDE here - I mean for developing Gambas itself). Thanks, Doug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Wed Jan 3 09:16:52 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 03 Jan 2018 08:16:52 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1221: Object explorer Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1221&from=L21haW4- Fabien BODARD reported a new bug. Summary ------- Object explorer Type : Request Priority : Medium Gambas version : Master Product : Development Environment Description ----------- Hi, Why not adding an object explorer on the left side ? It can be usefull to have a way to see for example database fields during the code writting. Or any object content as sometime the auto suggesting don't know the object nature. I join a snapshot of what it can look like. I anybody have better ideas :-) fill free to discuss. From bugtracker at gambaswiki.org Wed Jan 3 09:17:47 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 03 Jan 2018 08:17:47 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1221: Object explorer In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1221&from=L21haW4- Fabien BODARD added an attachment: Screenshot_20180103_080703.png From bugtracker at gambaswiki.org Wed Jan 3 09:36:35 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 03 Jan 2018 08:36:35 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1222: Circles on maps Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1222&from=L21haW4- Carlo PANARA reported a new bug. Summary ------- Circles on maps Type : Request Priority : Medium Gambas version : 3.10 Product : Unknown Description ----------- The possibility (in gb.map) to create circles on a map. Centre of known latitude and longitude and radius of the circle in meters. I enclose an example written in java, if it can be useful. Thank you From bugtracker at gambaswiki.org Wed Jan 3 09:37:35 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 03 Jan 2018 08:37:35 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1222: Circles on maps In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1222&from=L21haW4- Comment #1 by Carlo PANARA: https://developers.google.com/maps/documentation/javascript/examples/circle-simple From gambas.fr at gmail.com Wed Jan 3 09:47:57 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 3 Jan 2018 09:47:57 +0100 Subject: [Gambas-user] What IDE if any to use for development of Gambas? In-Reply-To: <1514963016.4301.79.camel@gmail.com> References: <1514963016.4301.79.camel@gmail.com> Message-ID: 2018-01-03 8:03 GMT+01:00 Doug Hutcheson : > Hi everyone. I have been wrestling with the Eclipse IDE, but losing the > fight. What do you use for development of Gambas code? (I am not referring > to the Gambas Basic IDE here - I mean for developing Gambas itself). Thanks, > Doug. If i remember well I think Benoit use kate. :-) For my little little time on coding C/C++ I use kate too because I don't need UI stuff. > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -- Fabien Bodard From taboege at gmail.com Wed Jan 3 13:30:15 2018 From: taboege at gmail.com (Tobias Boege) Date: Wed, 3 Jan 2018 13:30:15 +0100 Subject: [Gambas-user] What IDE if any to use for development of Gambas? In-Reply-To: References: <1514963016.4301.79.camel@gmail.com> Message-ID: <20180103123015.GD21012@highrise.localdomain> On Wed, 03 Jan 2018, Fabien Bodard wrote: > 2018-01-03 8:03 GMT+01:00 Doug Hutcheson : > > Hi everyone. I have been wrestling with the Eclipse IDE, but losing the > > fight. What do you use for development of Gambas code? (I am not referring > > to the Gambas Basic IDE here - I mean for developing Gambas itself). Thanks, > > Doug. > > If i remember well I think Benoit use kate. :-) For my little little > time on coding C/C++ I use kate too because I don't need UI stuff. > vim and ctags when I'm looking into the interpreter, vim and grep in components. Everything grows smaller with some time, though, and you'll learn where to expect what code. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From t.lee.davidson at gmail.com Wed Jan 3 18:14:39 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 3 Jan 2018 12:14:39 -0500 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: <1514936520.4301.60.camel@gmail.com> References: <1514684664.12546.82.camel@gmail.com> <1514685624.12546.84.camel@gmail.com> <1514701561.12546.114.camel@gmail.com> <8c776eb0-44f9-bf27-ddbf-a671ea9774d2@gmail.com> <20171231201643.GB21012@highrise.localdomain> <2263ed80-159d-a85b-ac73-fd5b5cae90af@gmail.com> <1514787574.3338.6.camel@gmail.com> <1514792828.3338.25.camel@gmail.com> <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> <84aadabe-1831-c379-6611-82bf4dbd8c26@gmail.com> <1514862032.3338.40.camel@gmail.com> <1514867687.4301.5.camel@gmail.com> <1514870280.4301.14.camel@gmail.com> <1514933764.4301.48.camel@gmail.com> <1514936520.4301.60.camel@gmail.com> Message-ID: On 01/02/2018 06:42 PM, Doug Hutcheson wrote: > I can't imagine a case where one would #define 0, but I am willing to be proved wrong "8-) For block commenting, with benefits? > Is there a better way to collaborate than sending emails to the list? I'm sure other users must be getting sick of the constant > flow of messages. Messages can be kept off the list simply by replying to the sender instead of to the list. However, I was hoping someone else (like Beno?t) would join in here, because you'd be further ahead collaborating with a fish than with me. I was trying to help out and see if I could determine why the password property was not getting set in the connection object and just happened to stumble across that one line that contained the error text I was getting. At one point when, in the signature of DB_Open in gambas/main/lib/db/main.c, I saw "DB_DRIVER **driver" (which is, what, a pointer to a pointer?), I had gone as far as my knowledge would take me. If the database connection is defined programmatically, ie. not using a IDE-defined Connection, there is no problem connecting. So, I think a password would indeed get sent if it was set, and the issue is, why is the connection object not being properly populated from the IDE-defined Connection properties? Perhaps it is as you stated, "a pointer dereferencing issue with the DB_DESC structure". -- Lee From g4mba5 at gmail.com Wed Jan 3 19:14:41 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 3 Jan 2018 19:14:41 +0100 Subject: [Gambas-user] What IDE if any to use for development of Gambas? In-Reply-To: <20180103123015.GD21012@highrise.localdomain> References: <1514963016.4301.79.camel@gmail.com> <20180103123015.GD21012@highrise.localdomain> Message-ID: <241ef3d9-322d-3225-f33f-a87b692b7b22@gmail.com> Le 03/01/2018 ? 13:30, Tobias Boege a ?crit?: > On Wed, 03 Jan 2018, Fabien Bodard wrote: >> 2018-01-03 8:03 GMT+01:00 Doug Hutcheson : >>> Hi everyone. I have been wrestling with the Eclipse IDE, but losing the >>> fight. What do you use for development of Gambas code? (I am not referring >>> to the Gambas Basic IDE here - I mean for developing Gambas itself). Thanks, >>> Doug. >> >> If i remember well I think Benoit use kate. :-) For my little little >> time on coding C/C++ I use kate too because I don't need UI stuff. >> > > vim and ctags when I'm looking into the interpreter, vim and grep in > components. Everything grows smaller with some time, though, and you'll > learn where to expect what code. > > Regards, > Tobi > I use Kate, or Geany when Kate starts to crash. If I have a text editor with syntax highlighting, tabulation management, and a shortcut to switch between the *.c file and the *.h file, I'm happy. -- Beno?t Minisini From g4mba5 at gmail.com Wed Jan 3 19:21:42 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 3 Jan 2018 19:21:42 +0100 Subject: [Gambas-user] Case problem in database fields Message-ID: <8852b803-286c-94b7-6d3e-ad9e4ae27a6b@gmail.com> Hi, I have just come back from a trip, and didn't have the time to read all the mails. By the way, I brought an influenza with me (that may be malaria, I will make a blood test tomorrow), so it is a bit difficult to concentrate... I know that there is a problem with uppercase in database fields as soon as you want to deal with different databases. If you use lowercase only, you have no problem. I will investigate that as soon as I am lucid enough. Happy new year to everyone! -- Beno?t Minisini From taboege at gmail.com Wed Jan 3 20:13:03 2018 From: taboege at gmail.com (Tobias Boege) Date: Wed, 3 Jan 2018 20:13:03 +0100 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: References: <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> <84aadabe-1831-c379-6611-82bf4dbd8c26@gmail.com> <1514862032.3338.40.camel@gmail.com> <1514867687.4301.5.camel@gmail.com> <1514870280.4301.14.camel@gmail.com> <1514933764.4301.48.camel@gmail.com> <1514936520.4301.60.camel@gmail.com> Message-ID: <20180103191302.GF21012@highrise.localdomain> On Wed, 03 Jan 2018, T Lee Davidson wrote: > On 01/02/2018 06:42 PM, Doug Hutcheson wrote: > > Is there a better way to collaborate than sending emails to the list? I'm sure other users must be getting sick of the constant > > flow of messages. > > Messages can be kept off the list simply by replying to the sender instead of to the list. However, I was hoping someone else > (like Beno?t) would join in here, because you'd be further ahead collaborating with a fish than with me. > We had a devel mailinglist when the lists were provided by sourceforge, but it wasn't continued [1]. There is a #gambas channel on freenode, if you want a chat. I've never heard of anyone using it but you might recognise one or two. > I was trying to help out and see if I could determine why the password property was not getting set in the connection object and > just happened to stumble across that one line that contained the error text I was getting. At one point when, in the signature > of DB_Open in gambas/main/lib/db/main.c, I saw "DB_DRIVER **driver" (which is, what, a pointer to a pointer?), I had gone as far > as my knowledge would take me. > > If the database connection is defined programmatically, ie. not using a IDE-defined Connection, there is no problem connecting. > So, I think a password would indeed get sent if it was set, and the issue is, why is the connection object not being properly > populated from the IDE-defined Connection properties? Perhaps it is as you stated, "a pointer dereferencing issue with the > DB_DESC structure". > This sounds more like a problem with the Connection editor in the IDE, to me. I can't imagine a pointer dereferencing bug to only have such gentle consequences. I have never used the Connection editor, but from reading the code, it doesn't save the password directly somewhere but uses Desktop.Passwords to store and retrieve it, leaving the details to the current desktop's tools. (I've never had much luck with gb.desktop as a whole, I must say, and I don't know how it works.) Also, I kind of lost the thread. We have two issues here, right? 1. The pg driver might not handle the case-insensitive column names correctly in all places. 2. Opening IDE-defined connections with passwords fails. Regards, Tobi [1] https://lists.gambas-basic.org/pipermail/user/2017-October/062196.html -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From t.lee.davidson at gmail.com Wed Jan 3 22:18:22 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 3 Jan 2018 16:18:22 -0500 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: <20180103191302.GF21012@highrise.localdomain> References: <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> <84aadabe-1831-c379-6611-82bf4dbd8c26@gmail.com> <1514862032.3338.40.camel@gmail.com> <1514867687.4301.5.camel@gmail.com> <1514870280.4301.14.camel@gmail.com> <1514933764.4301.48.camel@gmail.com> <1514936520.4301.60.camel@gmail.com> <20180103191302.GF21012@highrise.localdomain> Message-ID: On 01/03/2018 02:13 PM, Tobias Boege wrote: > > Also, I kind of lost the thread. We have two issues here, right? > > 1. The pg driver might not handle the case-insensitive column names > correctly in all places. > 2. Opening IDE-defined connections with passwords fails. AFAIK, that is correct, Tobi. > I have never used the Connection editor, but from reading the code, > it doesn't save the password directly somewhere but uses Desktop.Passwords > to store and retrieve it, leaving the details to the current desktop's > tools. (I've never had much luck with gb.desktop as a whole, I must say, > and I don't know how it works.) I would have to agree that the problem is in the Connection editor, and more specifically, the manner in which it handles passwords. As I reported earlier, when Saving the connection properties, I got an error, "Cannot store passwords on desktop KDE5: No wallet found" even though "Remember password" was not enabled. That option seems to have no effect. It is not an error that there was no wallet found. I don't use one. So, there should be a fall-back for that, IMO. But even then, after I have entered the password and it is set in the editor's password field, the application is still unable to connect. -- Lee From owlbrudder at gmail.com Wed Jan 3 23:59:40 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Thu, 04 Jan 2018 08:59:40 +1000 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: References: <1514684664.12546.82.camel@gmail.com> <1514685624.12546.84.camel@gmail.com> <1514701561.12546.114.camel@gmail.com> <8c776eb0-44f9-bf27-ddbf-a671ea9774d2@gmail.com> <20171231201643.GB21012@highrise.localdomain> <2263ed80-159d-a85b-ac73-fd5b5cae90af@gmail.com> <1514787574.3338.6.camel@gmail.com> <1514792828.3338.25.camel@gmail.com> <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> <84aadabe-1831-c379-6611-82bf4dbd8c26@gmail.com> <1514862032.3338.40.camel@gmail.com> <1514867687.4301.5.camel@gmail.com> <1514870280.4301.14.camel@gmail.com> <1514933764.4301.48.camel@gmail.com> <1514936520.4301.60.camel@gmail.com> Message-ID: <1515020380.4301.89.camel@gmail.com> On Wed, 2018-01-03 at 12:14 -0500, T Lee Davidson wrote: > On 01/02/2018 06:42 PM, Doug Hutcheson wrote: > > I can't imagine a case where one would #define 0, but I am willing > > to be proved wrong "8-) > > For block commenting, with benefits? Hmmmm ... so that block could be activated by #define 0 - yes, I can live with that. Thanks for the idea. > > Is there a better way to collaborate than sending emails to the > > list? I'm sure other users must be getting sick of the constant > > flow of messages. > > Messages can be kept off the list simply by replying to the sender > instead of to the list. However, I was hoping someone else > (like Beno?t) would join in here, because you'd be further ahead > collaborating with a fish than with me. I would not presume to correspond directly unless invited to do so, but I can see what you mean. Perhaps I should be like Trump and use Twitter to communicate publicly? Don't minimise your ability to contribute to the discussion - you have been very helpful in confirming my problem is not just mine and in prodding me to look further. I have started to get my head around the code and am still at the steepest part of the learning curve, so I know about as much as you at this stage. > I was trying to help out and see if I could determine why the > password property was not getting set in the connection object and > just happened to stumble across that one line that contained the > error text I was getting. At one point when, in the signature > of DB_Open in gambas/main/lib/db/main.c, I saw "DB_DRIVER **driver" > (which is, what, a pointer to a pointer?), I had gone as far > as my knowledge would take me. Yes, **thing is a double indirection to thing. I have browsed some of the code and seen triple indirection ***thing used. Very useful and the only solution in some cases. > If the database connection is defined programmatically, ie. not using > a IDE-defined Connection, there is no problem connecting. > So, I think a password would indeed get sent if it was set, and the > issue is, why is the connection object not being properly > populated from the IDE-defined Connection properties? Perhaps it is > as you stated, "a pointer dereferencing issue with the > DB_DESC structure". > As you say, we can access the database through code, so the problem I believe is going to be something simple in the end. Kind regards, Doug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From owlbrudder at gmail.com Thu Jan 4 00:02:49 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Thu, 04 Jan 2018 09:02:49 +1000 Subject: [Gambas-user] Case problem in database fields In-Reply-To: <8852b803-286c-94b7-6d3e-ad9e4ae27a6b@gmail.com> References: <8852b803-286c-94b7-6d3e-ad9e4ae27a6b@gmail.com> Message-ID: <1515020569.4301.92.camel@gmail.com> On Wed, 2018-01-03 at 19:21 +0100, Beno?t Minisini wrote: > Hi, > > I have just come back from a trip, and didn't have the time to read all > the mails. By the way, I brought an influenza with me (that may be > malaria, I will make a blood test tomorrow), so it is a bit difficult to > concentrate... > > I know that there is a problem with uppercase in database fields as soon > as you want to deal with different databases. If you use lowercase only, > you have no problem. > > I will investigate that as soon as I am lucid enough. > > Happy new year to everyone! > I hope you get well soon, Beno?t. Please take time off to recover from your physical bugs and don't worry about our software bugs. "8-) When you are ready, I would be glad to help where I can. Cheers, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From owlbrudder at gmail.com Thu Jan 4 00:14:01 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Thu, 04 Jan 2018 09:14:01 +1000 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: <20180103191302.GF21012@highrise.localdomain> References: <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> <84aadabe-1831-c379-6611-82bf4dbd8c26@gmail.com> <1514862032.3338.40.camel@gmail.com> <1514867687.4301.5.camel@gmail.com> <1514870280.4301.14.camel@gmail.com> <1514933764.4301.48.camel@gmail.com> <1514936520.4301.60.camel@gmail.com> <20180103191302.GF21012@highrise.localdomain> Message-ID: <1515021241.4301.102.camel@gmail.com> On Wed, 2018-01-03 at 20:13 +0100, Tobias Boege wrote: > On Wed, 03 Jan 2018, T Lee Davidson wrote: > > On 01/02/2018 06:42 PM, Doug Hutcheson wrote: > > > Is there a better way to collaborate than sending emails to the > > > list? I'm sure other users must be getting sick of the constant > > > flow of messages. > > > > Messages can be kept off the list simply by replying to the sender > > instead of to the list. However, I was hoping someone else > > (like Beno?t) would join in here, because you'd be further ahead > > collaborating with a fish than with me. > > > > We had a devel mailinglist when the lists were provided by > sourceforge, > but it wasn't continued [1]. There is a #gambas channel on freenode, > if you want a chat. I've never heard of anyone using it but you might > recognise one or two. > > > I was trying to help out and see if I could determine why the > > password property was not getting set in the connection object and > > just happened to stumble across that one line that contained the > > error text I was getting. At one point when, in the signature > > of DB_Open in gambas/main/lib/db/main.c, I saw "DB_DRIVER **driver" > > (which is, what, a pointer to a pointer?), I had gone as far > > as my knowledge would take me. > > > > If the database connection is defined programmatically, ie. not > > using a IDE-defined Connection, there is no problem connecting. > > So, I think a password would indeed get sent if it was set, and the > > issue is, why is the connection object not being properly > > populated from the IDE-defined Connection properties? Perhaps it is > > as you stated, "a pointer dereferencing issue with the > > DB_DESC structure". > > > > This sounds more like a problem with the Connection editor in the > IDE, > to me. I can't imagine a pointer dereferencing bug to only have such > gentle consequences. > I agree, but it would make sense if the password was supposed to be accessed via a pointer, but the pointer actually pointed to an area of memory containing a null word at that moment. I suggested this as a possibility only because I have seen that sort of behaviour in the past. Like in my own code. Doh! > I have never used the Connection editor, So, how do you control your data-aware controls? Programmatically? I could not see how to do that. > but from reading the code, > it doesn't save the password directly somewhere but uses > Desktop.Passwords > to store and retrieve it, leaving the details to the current > desktop's > tools. (I've never had much luck with gb.desktop as a whole, I must > say, > and I don't know how it works.) Ah - the light dawns. If that is the case, it may require some kind of setup for the password container on the desktop. More digging may shed a light. > Also, I kind of lost the thread. We have two issues here, right? > > 1. The pg driver might not handle the case-insensitive column names > correctly in all places. > 2. Opening IDE-defined connections with passwords fails. Yes, exactly. > Regards, > Tobi > > [1] https://lists.gambas-basic.org/pipermail/user/2017-October/062196 > .html > Thanks for replying Tobi, Cheers, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From owlbrudder at gmail.com Thu Jan 4 00:29:42 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Thu, 04 Jan 2018 09:29:42 +1000 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: References: <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> <84aadabe-1831-c379-6611-82bf4dbd8c26@gmail.com> <1514862032.3338.40.camel@gmail.com> <1514867687.4301.5.camel@gmail.com> <1514870280.4301.14.camel@gmail.com> <1514933764.4301.48.camel@gmail.com> <1514936520.4301.60.camel@gmail.com> <20180103191302.GF21012@highrise.localdomain> Message-ID: <1515022182.4301.111.camel@gmail.com> On Wed, 2018-01-03 at 16:18 -0500, T Lee Davidson wrote: > On 01/03/2018 02:13 PM, Tobias Boege wrote: > > Also, I kind of lost the thread. We have two issues here, right? > > > > 1. The pg driver might not handle the case-insensitive column > > names > > correctly in all places. > > 2. Opening IDE-defined connections with passwords fails. > > AFAIK, that is correct, Tobi. > > > > I have never used the Connection editor, but from reading the code, > > it doesn't save the password directly somewhere but uses > > Desktop.Passwords > > to store and retrieve it, leaving the details to the current > > desktop's > > tools. (I've never had much luck with gb.desktop as a whole, I must > > say, > > and I don't know how it works.) > > I would have to agree that the problem is in the Connection editor, > and more specifically, the manner in which it handles passwords. > > As I reported earlier, when Saving the connection properties, I got > an error, "Cannot store passwords on desktop KDE5: No wallet > found" even though "Remember password" was not enabled. That option > seems to have no effect. Just to add some information to that, I use the Gnome desktop, not KDE. Gnome uses GnomeKeyring and, prompted by this discussion, I have just browsed the keyring. It does have the correct password set for my application PostgreSQL_test, using path PostgreSQL_test/Connection/Connection1 - Connection1 being the connection I have established for my test harness. > It is not an error that there was no wallet found. I don't use one. > So, there should be a fall-back for that, IMO. > > But even then, after I have entered the password and it is set in the > editor's password field, the application is still unable > to connect. > I agree. When I use the Connection editor, I can go back to it at any time and find the password still correctly shown. Interesting. -------------- next part -------------- An HTML attachment was scrubbed... URL: From owlbrudder at gmail.com Thu Jan 4 00:40:14 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Thu, 04 Jan 2018 09:40:14 +1000 Subject: [Gambas-user] What IDE if any to use for development of Gambas? In-Reply-To: <241ef3d9-322d-3225-f33f-a87b692b7b22@gmail.com> References: <1514963016.4301.79.camel@gmail.com> <20180103123015.GD21012@highrise.localdomain> <241ef3d9-322d-3225-f33f-a87b692b7b22@gmail.com> Message-ID: <1515022814.4301.119.camel@gmail.com> On Wed, 2018-01-03 at 19:14 +0100, Beno?t Minisini wrote: > Le 03/01/2018 ? 13:30, Tobias Boege a ?crit : > > On Wed, 03 Jan 2018, Fabien Bodard wrote: > > > 2018-01-03 8:03 GMT+01:00 Doug Hutcheson : > > > > Hi everyone. I have been wrestling with the Eclipse IDE, but > > > > losing the > > > > fight. What do you use for development of Gambas code? (I am > > > > not referring > > > > to the Gambas Basic IDE here - I mean for developing Gambas > > > > itself). Thanks, > > > > Doug. > > > > > > If i remember well I think Benoit use kate. :-) For my little > > > little > > > time on coding C/C++ I use kate too because I don't need UI > > > stuff. > > > > > > > vim and ctags when I'm looking into the interpreter, vim and grep > > in > > components. Everything grows smaller with some time, though, and > > you'll > > learn where to expect what code. > > > > Regards, > > Tobi > > > > I use Kate, or Geany when Kate starts to crash. If I have a text > editor > with syntax highlighting, tabulation management, and a shortcut to > switch between the *.c file and the *.h file, I'm happy. > Thank you all very much. I am used to vi/vim and ctags, so will start there and see if I need more 'help' from a GUI. I'm sure Eclipse would be wonderful, if I could start by taking an intensive six-week course in how to drive it. "8-D When I was a software development team manager I could only dream of my programmers writing such well structured code. As they say, it was like herding cats. Kind regards, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Thu Jan 4 01:22:00 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 3 Jan 2018 19:22:00 -0500 Subject: [Gambas-user] IDE Connection Editor password save anamoly (was Re: Extracting fields from a Result) In-Reply-To: <1515022182.4301.111.camel@gmail.com> References: <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> <84aadabe-1831-c379-6611-82bf4dbd8c26@gmail.com> <1514862032.3338.40.camel@gmail.com> <1514867687.4301.5.camel@gmail.com> <1514870280.4301.14.camel@gmail.com> <1514933764.4301.48.camel@gmail.com> <1514936520.4301.60.camel@gmail.com> <20180103191302.GF21012@highrise.localdomain> <1515022182.4301.111.camel@gmail.com> Message-ID: <40176ba5-9e81-dc21-730f-a14a184db59c@gmail.com> On 01/03/2018 06:29 PM, Doug Hutcheson wrote: > Just to add some information to that, I use the Gnome desktop, not KDE. Gnome uses GnomeKeyring and, prompted by this > discussion, I have just browsed the keyring. It does have the correct password set for my application PostgreSQL_test, using > path PostgreSQL_test/Connection/Connection1 - Connection1 being the connection I have established for my test harness. Given that, I would have to assume that the runtime is looking in the '.connection' Settings file in the project source directory for the password. And, it's not there. By looking at FNewConnection.class and MConnection.module in master/app/src/gambas3/.src/Connection, I see that, as Tobi pointed out, the Connection Editor is relying solely on saving the password on the Desktop. It does not even attempt to save it in the Settings file. That might be for security reasons. But, if we have to put a password directly in code to make it successfully connect, what's the difference? -- Lee P.S. I've updated the subject line to more accurately describe the current context of this thread. From owlbrudder at gmail.com Thu Jan 4 01:25:43 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Thu, 04 Jan 2018 10:25:43 +1000 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: <1515022182.4301.111.camel@gmail.com> References: <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> <84aadabe-1831-c379-6611-82bf4dbd8c26@gmail.com> <1514862032.3338.40.camel@gmail.com> <1514867687.4301.5.camel@gmail.com> <1514870280.4301.14.camel@gmail.com> <1514933764.4301.48.camel@gmail.com> <1514936520.4301.60.camel@gmail.com> <20180103191302.GF21012@highrise.localdomain> <1515022182.4301.111.camel@gmail.com> Message-ID: <1515025543.4301.125.camel@gmail.com> > > As I reported earlier, when Saving the connection properties, I got > > an error, "Cannot store passwords on desktop KDE5: No wallet > > found" even though "Remember password" was not enabled. That option > > seems to have no effect. > > Just to add some information to that, I use the Gnome desktop, not > KDE. Gnome uses GnomeKeyring and, prompted by this discussion, I have > just browsed the keyring. It does have the correct password set for > my application PostgreSQL_test, using path > PostgreSQL_test/Connection/Connection1 - Connection1 being the > connection I have established for my test harness. Starting Gambas from the command line and trying to assess some data resulted in this output on the terminal: [doug at womble ~]$ gambas3 loaded the Generic plugin ** Message: Remote error from secret service: org.freedesktop.DBus.Error.Failed: Couldn't create item: The secret was transferred or encrypted in an invalid way. So the spotlight is focusing on the way Gambas accesses the keyring. That gives me something to go on. I will let you know if I find anything. > > It is not an error that there was no wallet found. I don't use one. > > So, there should be a fall-back for that, IMO. > > > > But even then, after I have entered the password and it is set in > > the editor's password field, the application is still unable > > to connect. > > > I agree. When I use the Connection editor, I can go back to it at any > time and find the password still correctly shown. Interesting. I used Seahorse to browse my keyring. The second time I opened it, my keys were gone. Backups are my friend, but I wonder what Seahorse did to the keyring? Seahorse no longer has space on my system. Sigh. Cheers, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From owlbrudder at gmail.com Thu Jan 4 01:40:16 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Thu, 04 Jan 2018 10:40:16 +1000 Subject: [Gambas-user] IDE Connection Editor password save anomaly (was Re: Extracting fields from a Result) In-Reply-To: <40176ba5-9e81-dc21-730f-a14a184db59c@gmail.com> References: <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> <84aadabe-1831-c379-6611-82bf4dbd8c26@gmail.com> <1514862032.3338.40.camel@gmail.com> <1514867687.4301.5.camel@gmail.com> <1514870280.4301.14.camel@gmail.com> <1514933764.4301.48.camel@gmail.com> <1514936520.4301.60.camel@gmail.com> <20180103191302.GF21012@highrise.localdomain> <1515022182.4301.111.camel@gmail.com> <40176ba5-9e81-dc21-730f-a14a184db59c@gmail.com> Message-ID: <1515026416.4301.131.camel@gmail.com> On Wed, 2018-01-03 at 19:22 -0500, T Lee Davidson wrote: > On 01/03/2018 06:29 PM, Doug Hutcheson wrote: > > Just to add some information to that, I use the Gnome desktop, not > > KDE. Gnome uses GnomeKeyring and, prompted by this > > discussion, I have just browsed the keyring. It does have the > > correct password set for my application PostgreSQL_test, using > > path PostgreSQL_test/Connection/Connection1 - Connection1 being the > > connection I have established for my test harness. > > Given that, I would have to assume that the runtime is looking in the > '.connection' Settings file in the project source > directory for the password. And, it's not there. Perhaps it is sending an invalid request to secret-tool (the Gnome variant). I have tried a couple of times to extract the key from the command line using secret-tool and the result is a null value, exactly what we are seeing when trying to make a connection. We may be onto something here! > By looking at FNewConnection.class and MConnection.module in > master/app/src/gambas3/.src/Connection, I see that, as Tobi pointed > out, the Connection Editor is relying solely on saving the password > on the Desktop. It does not even attempt to save it in the > Settings file. That might be for security reasons. > > But, if we have to put a password directly in code to make it > successfully connect, what's the difference? > Exactly so. Cheers, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Thu Jan 4 02:38:03 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 3 Jan 2018 20:38:03 -0500 Subject: [Gambas-user] IDE Connection Editor password save anomaly (was Re: Extracting fields from a Result) In-Reply-To: <1515026416.4301.131.camel@gmail.com> References: <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> <84aadabe-1831-c379-6611-82bf4dbd8c26@gmail.com> <1514862032.3338.40.camel@gmail.com> <1514867687.4301.5.camel@gmail.com> <1514870280.4301.14.camel@gmail.com> <1514933764.4301.48.camel@gmail.com> <1514936520.4301.60.camel@gmail.com> <20180103191302.GF21012@highrise.localdomain> <1515022182.4301.111.camel@gmail.com> <40176ba5-9e81-dc21-730f-a14a184db59c@gmail.com> <1515026416.4301.131.camel@gmail.com> Message-ID: <036fa7d0-e964-8158-4efd-e8f2cd49ea53@gmail.com> On 01/03/2018 07:40 PM, Doug Hutcheson wrote: >> Given that, I would have to assume that the runtime is looking in the '.connection' Settings file in the project source >> directory for the password. And, it's not there. > > Perhaps it is sending an invalid request to secret-tool (the Gnome variant). I have tried a couple of times to extract the key > from the command line using secret-tool and the result is a null value, exactly what we are seeing when trying to make a > connection. We may be onto something here! Doug, I'm not referring to a Desktop keyring. I'm referring to the Settings[0] file created by the Connection Editor when the "OK" button is clicked. It is found in the project's directory in the hidden directory, ".connection". In my case, it is named, "Connection1.connection" and is just a text file with the connection parameters -- minus the password. -- Lee [0]: http://gambaswiki.org/wiki/comp/gb.settings From owlbrudder at gmail.com Thu Jan 4 02:52:56 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Thu, 04 Jan 2018 11:52:56 +1000 Subject: [Gambas-user] IDE Connection Editor password save anomaly (was Re: Extracting fields from a Result) In-Reply-To: <036fa7d0-e964-8158-4efd-e8f2cd49ea53@gmail.com> References: <5c81a78a-e7b7-5cec-27a2-33152bf115d8@gmail.com> <84aadabe-1831-c379-6611-82bf4dbd8c26@gmail.com> <1514862032.3338.40.camel@gmail.com> <1514867687.4301.5.camel@gmail.com> <1514870280.4301.14.camel@gmail.com> <1514933764.4301.48.camel@gmail.com> <1514936520.4301.60.camel@gmail.com> <20180103191302.GF21012@highrise.localdomain> <1515022182.4301.111.camel@gmail.com> <40176ba5-9e81-dc21-730f-a14a184db59c@gmail.com> <1515026416.4301.131.camel@gmail.com> <036fa7d0-e964-8158-4efd-e8f2cd49ea53@gmail.com> Message-ID: <1515030776.4301.138.camel@gmail.com> On Wed, 2018-01-03 at 20:38 -0500, T Lee Davidson wrote: > On 01/03/2018 07:40 PM, Doug Hutcheson wrote: > > > Given that, I would have to assume that the runtime is looking in > > > the '.connection' Settings file in the project source > > > directory for the password. And, it's not there. > > > > Perhaps it is sending an invalid request to secret-tool (the Gnome > > variant). I have tried a couple of times to extract the key > > from the command line using secret-tool and the result is a null > > value, exactly what we are seeing when trying to make a > > connection. We may be onto something here! > > Doug, I'm not referring to a Desktop keyring. I'm referring to the > Settings[0] file created by the Connection Editor when the > "OK" button is clicked. It is found in the project's directory in the > hidden directory, ".connection". In my case, it is named, > "Connection1.connection" and is just a text file with the connection > parameters -- minus the password. > You are correct, Lee, the password is not being stored there. I was leaping one step further and trying to decipher the alternative method of using the keyring - sorry for the confusion. My few attempts to get the password from the keyring were failures and I was just wondering if a malformed request to the keyring is returning null. In the meantime, I used Seahorse to browse my keyring and now it is not showing most of my keys any more. Aaaargh! (Slaps forehead). We will get to the bottom of this, but might need some help. Kind regards, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jan 4 08:29:03 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 4 Jan 2018 08:29:03 +0100 Subject: [Gambas-user] Password problem in database connection Message-ID: <170f0de9-7e98-a338-eded-f1dcdd189e31@gmail.com> Hi, For information, the IDE use the 'gb.desktop' component for storing and retrieving password. The source code is in the "_Desktop_Password.class" file. That class tries to use the command-line tool associated with the current desktop: DBus with "KDE", secret-tool with "GNOME", "LXDE", "MATE", "XFCE", "UNITY" and "CYGWIN". Regards, -- Beno?t Minisini From owlbrudder at gmail.com Thu Jan 4 08:41:05 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Thu, 04 Jan 2018 17:41:05 +1000 Subject: [Gambas-user] Password problem in database connection In-Reply-To: <170f0de9-7e98-a338-eded-f1dcdd189e31@gmail.com> References: <170f0de9-7e98-a338-eded-f1dcdd189e31@gmail.com> Message-ID: <1515051665.4409.9.camel@gmail.com> On Thu, 2018-01-04 at 08:29 +0100, Beno?t Minisini wrote: > Hi, > > For information, the IDE use the 'gb.desktop' component for storing and > retrieving password. > > The source code is in the "_Desktop_Password.class" file. That class > tries to use the command-line tool associated with the current desktop: > DBus with "KDE", secret-tool with "GNOME", "LXDE", "MATE", "XFCE", > "UNITY" and "CYGWIN". > > Regards, > Thanks Beno?t. I will have to bone up on secret-tool to see if I can emulate what your code is doing, but from the command line. I am pretty sure this is where the problem exists. Your code is corrctly setting the password in the keyring, so it must be a problem with retrieving the password again. Kind regards, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Thu Jan 4 11:51:28 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 04 Jan 2018 10:51:28 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1222: Circles on maps In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1222&from=L21haW4- Comment #2 by Fabien BODARD: Done in commit Commit f71115e8 https://gitlab.com/gambas/gambas/commit/f71115e89b0d0ac142467c5ca844251fe95aec85 With MapView1.Map["Poly"] .AddCircle("pop", MapPoint(48.457454, -4.638139), 2000) .Opacity = 1 End With With MapView1.Map["Poly"]["pop"] .FillColor = Color.SetAlpha(Color.Yellow, 50) .Color = Color.Red .LineWidth = 2 End With Try it and report if you find bugs Thank you Fabien BODARD changed the state of the bug to: Accepted. From t.lee.davidson at gmail.com Thu Jan 4 16:54:57 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 4 Jan 2018 10:54:57 -0500 Subject: [Gambas-user] The Impact of Meltdown & Spectre Vulnerabilities Message-ID: "Google?s Project Zero (GPZ) is a think tank of leading edge security researchers who have established a track record of ground breaking research. Yesterday they announced a set of flaws in CPU architectures that create a two kinds of vulnerabilities. It is early in the year, but this may be the most important and impactful security vulnerability in 2018. This affects any software running on Intel chips, no matter the operating system or vendor. This affects every Intel processor since 1995 that implements out-of-order execution, except Itanium, and the Atom before 2013. The vulnerabilities were discovered by collaborating researchers at University of Pennsylvania, University of Maryland, Graz University of Technology, Cyberus Technology, Rambus Cryptography Research Division, University of Adelaide and Data61 along with researchers at GPZ." [https://www.defiant.com/meltdown-spectre-impact/] -- Lee From bugtracker at gambaswiki.org Thu Jan 4 17:19:43 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 04 Jan 2018 16:19:43 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1222: Circles on maps In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1222&from=L21haW4- Comment #3 by Carlo PANARA: OK Thank you! From mckaygerhard at gmail.com Thu Jan 4 19:37:47 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 4 Jan 2018 14:37:47 -0400 Subject: [Gambas-user] The Impact of Meltdown & Spectre Vulnerabilities In-Reply-To: References: Message-ID: i a great vulnerability, now people of IT must thnkg that always "grow up" without taking care are a pain in the future.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-01-04 11:54 GMT-04:00 T Lee Davidson : > "Google?s Project Zero (GPZ) is a think tank of leading edge security > researchers who have established a track record of ground > breaking research. Yesterday they announced a set of flaws in CPU > architectures that create a two kinds of vulnerabilities. > > It is early in the year, but this may be the most important and impactful > security vulnerability in 2018. This affects any > software running on Intel chips, no matter the operating system or vendor. > This affects every Intel processor since 1995 that > implements out-of-order execution, except Itanium, and the Atom before > 2013. > > The vulnerabilities were discovered by collaborating researchers at > University of Pennsylvania, University of Maryland, Graz > University of Technology, Cyberus Technology, Rambus Cryptography Research > Division, University of Adelaide and Data61 along > with researchers at GPZ." > > [https://www.defiant.com/meltdown-spectre-impact/] > > > -- > Lee > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Jan 4 19:43:45 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 4 Jan 2018 14:43:45 -0400 Subject: [Gambas-user] The Impact of Meltdown & Spectre Vulnerabilities In-Reply-To: References: Message-ID: ah i forgot to mention! my K6-III and my older atom mini lapto are not sufering from those two problems.. the problem afects a specific series or procesors, as T said, older before 1995 (suck my K6-III) and atoms before 2013 are not affected.. It is a great example that the excessive evolution leads to hidden errors that are paid in the future, everyone knows that I am a detractor of evolution so quickly, because we know that everything must be controlled and made discreet .. For example, Apple has removed the 3.5 mm jack forever, now you can only use wireless headphones. If this had been done 10 years ago, the only problem would not have been the costs. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-01-04 14:37 GMT-04:00 PICCORO McKAY Lenz : > i a great vulnerability, now people of IT must thnkg that always "grow up" > without taking care are a pain in the future.. > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-01-04 11:54 GMT-04:00 T Lee Davidson : > >> "Google?s Project Zero (GPZ) is a think tank of leading edge security >> researchers who have established a track record of ground >> breaking research. Yesterday they announced a set of flaws in CPU >> architectures that create a two kinds of vulnerabilities. >> >> It is early in the year, but this may be the most important and impactful >> security vulnerability in 2018. This affects any >> software running on Intel chips, no matter the operating system or >> vendor. This affects every Intel processor since 1995 that >> implements out-of-order execution, except Itanium, and the Atom before >> 2013. >> >> The vulnerabilities were discovered by collaborating researchers at >> University of Pennsylvania, University of Maryland, Graz >> University of Technology, Cyberus Technology, Rambus Cryptography >> Research Division, University of Adelaide and Data61 along >> with researchers at GPZ." >> >> [https://www.defiant.com/meltdown-spectre-impact/] >> >> >> -- >> Lee >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List >> https://lists.gambas-basic.org/listinfo/user >> >> Hosted by https://www.hostsharing.net >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Jan 4 20:15:21 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 4 Jan 2018 15:15:21 -0400 Subject: [Gambas-user] Password problem in database connection In-Reply-To: <1515051665.4409.9.camel@gmail.com> References: <170f0de9-7e98-a338-eded-f1dcdd189e31@gmail.com> <1515051665.4409.9.camel@gmail.com> Message-ID: a fool question, if i not have any of those stuff can i still use if i do not decided to store the password? similar problem happened in the pas when gnome-keyring was not available.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-01-04 3:41 GMT-04:00 Doug Hutcheson : > On Thu, 2018-01-04 at 08:29 +0100, Beno?t Minisini wrote: > > Hi, > > For information, the IDE use the 'gb.desktop' component for storing and > retrieving password. > > The source code is in the "_Desktop_Password.class" file. That class > tries to use the command-line tool associated with the current desktop: > DBus with "KDE", secret-tool with "GNOME", "LXDE", "MATE", "XFCE", > "UNITY" and "CYGWIN". > > Regards, > > > Thanks Beno?t. I will have to bone up on secret-tool to see if I can > emulate what your code is doing, but from the command line. I am pretty > sure this is where the problem exists. Your code is corrctly setting the > password in the keyring, so it must be a problem with retrieving the > password again. > > Kind regards, > Doug > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Jan 4 20:16:48 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 4 Jan 2018 15:16:48 -0400 Subject: [Gambas-user] What IDE if any to use for development of Gambas? In-Reply-To: <1515022814.4301.119.camel@gmail.com> References: <1514963016.4301.79.camel@gmail.com> <20180103123015.GD21012@highrise.localdomain> <241ef3d9-322d-3225-f33f-a87b692b7b22@gmail.com> <1515022814.4301.119.camel@gmail.com> Message-ID: ahhh geany rules! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-01-03 19:40 GMT-04:00 Doug Hutcheson : > > > On Wed, 2018-01-03 at 19:14 +0100, Beno?t Minisini wrote: > > Le 03/01/2018 ? 13:30, Tobias Boege a ?crit : > > > On Wed, 03 Jan 2018, Fabien Bodard wrote: > > > 2018-01-03 8:03 GMT+01:00 Doug Hutcheson : > > > Hi everyone. I have been wrestling with the Eclipse IDE, but losing the > fight. What do you use for development of Gambas code? (I am not referring > to the Gambas Basic IDE here - I mean for developing Gambas itself). Thanks, > Doug. > > > > If i remember well I think Benoit use kate. :-) For my little little > time on coding C/C++ I use kate too because I don't need UI stuff. > > > > > vim and ctags when I'm looking into the interpreter, vim and grep in > components. Everything grows smaller with some time, though, and you'll > learn where to expect what code. > > Regards, > Tobi > > > > > I use Kate, or Geany when Kate starts to crash. If I have a text editor > with syntax highlighting, tabulation management, and a shortcut to > switch between the *.c file and the *.h file, I'm happy. > > > > Thank you all very much. > > I am used to vi/vim and ctags, so will start there and see if I need more > 'help' from a GUI. > I'm sure Eclipse would be wonderful, if I could start by taking an > intensive six-week course in how to drive it. "8-D > > When I was a software development team manager I could only dream of my > programmers writing such well structured code. As they say, it was like > herding cats. > > Kind regards, > Doug > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl.reinl at fen-net.de Thu Jan 4 20:56:29 2018 From: karl.reinl at fen-net.de (Karl Reinl) Date: Thu, 04 Jan 2018 20:56:29 +0100 Subject: [Gambas-user] What IDE if any to use for development of Gambas? In-Reply-To: <1515022814.4301.119.camel@gmail.com> References: <1514963016.4301.79.camel@gmail.com> <20180103123015.GD21012@highrise.localdomain> <241ef3d9-322d-3225-f33f-a87b692b7b22@gmail.com> <1515022814.4301.119.camel@gmail.com> Message-ID: <1515095789.10085.4.camel@Scenic.local> Am Donnerstag, den 04.01.2018, 09:40 +1000 schrieb Doug Hutcheson: > > > > > On Wed, 2018-01-03 at 19:14 +0100, Beno?t Minisini wrote: > > Le 03/01/2018 ? 13:30, Tobias Boege a ?crit : > > > > > > On Wed, 03 Jan 2018, Fabien Bodard wrote: > > > > > > > > 2018-01-03 8:03 GMT+01:00 Doug Hutcheson : > > > > > > > > > > Hi everyone. I have been wrestling with the Eclipse IDE, but losing the > > > > > fight. What do you use for development of Gambas code? (I am not referring > > > > > to the Gambas Basic IDE here - I mean for developing Gambas itself). Thanks, > > > > > Doug. > > > > > > > > > > > > If i remember well I think Benoit use kate. :-) For my little little > > > > time on coding C/C++ I use kate too because I don't need UI stuff. > > > > > > > > > > > > > vim and ctags when I'm looking into the interpreter, vim and grep in > > > components. Everything grows smaller with some time, though, and you'll > > > learn where to expect what code. > > > > > > Regards, > > > Tobi > > > > > > > > > I use Kate, or Geany when Kate starts to crash. If I have a text editor > > with syntax highlighting, tabulation management, and a shortcut to > > switch between the *.c file and the *.h file, I'm happy. > > > > > Thank you all very much. > > > I am used to vi/vim and ctags, so will start there and see if I need > more 'help' from a GUI. > I'm sure Eclipse would be wonderful, if I could start by taking an > intensive six-week course in how to drive it. "8-D > > > When I was a software development team manager I could only dream of > my programmers writing such well structured code. As they say, it was > like herding cats. > Salut Doug, once (in march 2005) I wrote down what I did to use Eclipse on the (at that time gambas1) source code. I don't if that way work still today, but can be a starter. -- Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: useEclipse.pdf Type: application/pdf Size: 325451 bytes Desc: not available URL: From mb at code-it.com Thu Jan 4 22:41:05 2018 From: mb at code-it.com (mikeB) Date: Thu, 4 Jan 2018 14:41:05 -0700 Subject: [Gambas-user] Web Cam preview and capture Message-ID: <43ffc9f8-9079-1e61-e619-5579b1102ed9@code-it.com> eGreetings Gambas World, Would anyone out there happen to have a code snippet or simple Gambas project that reviews/ displays the web cam input and records video with sound - that you're willing to share? I know how to record using ffmpeg but can not find a way to review/ display what it's recording. Also, have spent days looking at the code of "MediaPlayer" from the Gambas farm - it's completely above my head ;-( A BIG THANKS for your consideration, mikeB From owlbrudder at gmail.com Fri Jan 5 00:14:42 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Fri, 05 Jan 2018 09:14:42 +1000 Subject: [Gambas-user] What IDE if any to use for development of Gambas? In-Reply-To: <1515095789.10085.4.camel@Scenic.local> References: <1514963016.4301.79.camel@gmail.com> <20180103123015.GD21012@highrise.localdomain> <241ef3d9-322d-3225-f33f-a87b692b7b22@gmail.com> <1515022814.4301.119.camel@gmail.com> <1515095789.10085.4.camel@Scenic.local> Message-ID: <1515107682.4277.2.camel@gmail.com> > Salut Doug, > > once (in march 2005) I wrote down what I did to use Eclipse on the (at > that time gambas1) source code. > I don't if that way work still today, but can be a starter. > Salut Charlie. Those instructions are great and I am sure I can apply them to the latest version of Eclipse. I will study the instruction with Eclipse open and see what I can do. Many thanks, Doug From owlbrudder at gmail.com Fri Jan 5 00:26:57 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Fri, 05 Jan 2018 09:26:57 +1000 Subject: [Gambas-user] Password problem in database connection In-Reply-To: References: <170f0de9-7e98-a338-eded-f1dcdd189e31@gmail.com> <1515051665.4409.9.camel@gmail.com> Message-ID: <1515108417.4277.11.camel@gmail.com> On Thu, 2018-01-04 at 15:15 -0400, PICCORO McKAY Lenz wrote: > a fool question, if i not have any of those stuff can i still use if > i do not decided to store the password? similar problem happened in > the pas when gnome-keyring was not available.. > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-01-04 3:41 GMT-04:00 Doug Hutcheson : > > On Thu, 2018-01-04 at 08:29 +0100, Beno?t Minisini wrote: > > > Hi, > > > > > > For information, the IDE use the 'gb.desktop' component for > > > storing and > > > retrieving password. > > > > > > The source code is in the "_Desktop_Password.class" file. That > > > class > > > tries to use the command-line tool associated with the current > > > desktop: > > > DBus with "KDE", secret-tool with "GNOME", "LXDE", "MATE", > > > "XFCE", > > > "UNITY" and "CYGWIN". > > > > > > Regards, > > > > > > > Thanks Beno?t. I will have to bone up on secret-tool to see if I > > can emulate what your code is doing, but from the command line. I > > am pretty sure this is where the problem exists. Your code is > > corrctly setting the password in the keyring, so it must be a > > problem with retrieving the password again. > > > > Kind regards, > > Doug > > > > PICCORO, you can still access a database through code with the password 'hard wired', but I do not see how you could use the Connection objects without a desktop keyring. I may be wrong - I often am. "8-) From taboege at gmail.com Fri Jan 5 01:08:26 2018 From: taboege at gmail.com (Tobias Boege) Date: Fri, 5 Jan 2018 01:08:26 +0100 Subject: [Gambas-user] Password problem in database connection In-Reply-To: <1515108417.4277.11.camel@gmail.com> References: <170f0de9-7e98-a338-eded-f1dcdd189e31@gmail.com> <1515051665.4409.9.camel@gmail.com> <1515108417.4277.11.camel@gmail.com> Message-ID: <20180105000826.GA1055@highrise.localdomain> On Fri, 05 Jan 2018, Doug Hutcheson wrote: > On Thu, 2018-01-04 at 15:15 -0400, PICCORO McKAY Lenz wrote: > > a fool question, if i not have any of those stuff can i still use if > > i do not decided to store the password? similar problem happened in > > the pas when gnome-keyring was not available.. > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > 2018-01-04 3:41 GMT-04:00 Doug Hutcheson : > > > On Thu, 2018-01-04 at 08:29 +0100, Beno?t Minisini wrote: > > > > Hi, > > > > > > > > For information, the IDE use the 'gb.desktop' component for > > > > storing and > > > > retrieving password. > > > > > > > > The source code is in the "_Desktop_Password.class" file. That > > > > class > > > > tries to use the command-line tool associated with the current > > > > desktop: > > > > DBus with "KDE", secret-tool with "GNOME", "LXDE", "MATE", > > > > "XFCE", > > > > "UNITY" and "CYGWIN". > > > > > > > > Regards, > > > > > > > > > > Thanks Beno?t. I will have to bone up on secret-tool to see if I > > > can emulate what your code is doing, but from the command line. I > > > am pretty sure this is where the problem exists. Your code is > > > corrctly setting the password in the keyring, so it must be a > > > problem with retrieving the password again. > > > > > > Kind regards, > > > Doug > > > > > > > > PICCORO, you can still access a database through code with the password > 'hard wired', but I do not see how you could use the Connection objects > without a desktop keyring. I may be wrong - I often am. "8-) > You are, unless you are all implicitly talking about the IDE-built-in Connection features only. I have never used the IDE to manage my Connections and I don't use my desktop's keyring. What I do is effectively the same as what the IDE does though: create a Connection object programmatically and configure it from a Settings file, except that my file is in the application's configuration directory (where it belongs, IMHO), and not in the source code directory. As for the passwords, I've seen a number of programs (maybe I'm only looking at very old PHP/perl scripts?) which simply save database passwords in plain text. That's an option. You can also halt the execution when your program initialises and ask for the password once. The way I go by default is a password-less login using MariaDB's auth_socket [1], which requires the application to be on the same server as the database(!). You connect through a local UNIX socket, which allows the database server to determine your system account. By logging in and starting the program as the right system user, you prove that you are entitled to certain rights in the database, too, but you keep the password business out of the database layer. (Of course, by changing the configuration file, the person installing the software can choose to use a simple SQLite db as well or a password saved in plain text, provided that the program was made DBMS-agnostic enough. All this choice is built into the Connection object already and it should be used, and provided to the person who has to deal with the program in the end. ) Regards, Tobi [1] https://mariadb.com/kb/en/library/authentication-plugin-unix-socket/ -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From owlbrudder at gmail.com Fri Jan 5 01:22:09 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Fri, 05 Jan 2018 10:22:09 +1000 Subject: [Gambas-user] Password problem in database connection In-Reply-To: <20180105000826.GA1055@highrise.localdomain> References: <170f0de9-7e98-a338-eded-f1dcdd189e31@gmail.com> <1515051665.4409.9.camel@gmail.com> <1515108417.4277.11.camel@gmail.com> <20180105000826.GA1055@highrise.localdomain> Message-ID: <1515111729.4277.19.camel@gmail.com> On Fri, 2018-01-05 at 01:08 +0100, Tobias Boege wrote: > On Fri, 05 Jan 2018, Doug Hutcheson wrote: > > On Thu, 2018-01-04 at 15:15 -0400, PICCORO McKAY Lenz wrote: > > > a fool question, if i not have any of those stuff can i still use > > > if > > > i do not decided to store the password? similar problem happened > > > in > > > the pas when gnome-keyring was not available.. > > > > > > Lenz McKAY Gerardo (PICCORO) > > > http://qgqlochekone.blogspot.com > > > > > > 2018-01-04 3:41 GMT-04:00 Doug Hutcheson : > > > > On Thu, 2018-01-04 at 08:29 +0100, Beno?t Minisini wrote: > > > > > Hi, > > > > > > > > > > For information, the IDE use the 'gb.desktop' component for > > > > > storing and > > > > > retrieving password. > > > > > > > > > > The source code is in the "_Desktop_Password.class" file. > > > > > That > > > > > class > > > > > tries to use the command-line tool associated with the > > > > > current > > > > > desktop: > > > > > DBus with "KDE", secret-tool with "GNOME", "LXDE", "MATE", > > > > > "XFCE", > > > > > "UNITY" and "CYGWIN". > > > > > > > > > > Regards, > > > > > > > > > > > > > Thanks Beno?t. I will have to bone up on secret-tool to see if > > > > I > > > > can emulate what your code is doing, but from the command line. > > > > I > > > > am pretty sure this is where the problem exists. Your code is > > > > corrctly setting the password in the keyring, so it must be a > > > > problem with retrieving the password again. > > > > > > > > Kind regards, > > > > Doug > > > > > > > > > > > > PICCORO, you can still access a database through code with the > > password > > 'hard wired', but I do not see how you could use the Connection > > objects > > without a desktop keyring. I may be wrong - I often am. "8-) > > > > You are, unless you are all implicitly talking about the IDE-built-in > Connection features only. I have never used the IDE to manage my > Connections and I don't use my desktop's keyring. > > What I do is effectively the same as what the IDE does though: create > a Connection object programmatically and configure it from a Settings > file, except that my file is in the application's configuration > directory (where it belongs, IMHO), and not in the source code > directory. > > As for the passwords, I've seen a number of programs (maybe I'm only > looking at very old PHP/perl scripts?) which simply save database > passwords in plain text. That's an option. You can also halt the > execution when your program initialises and ask for the password > once. > > The way I go by default is a password-less login using MariaDB's > auth_socket [1], which requires the application to be on the same > server as the database(!). You connect through a local UNIX socket, > which allows the database server to determine your system account. > By logging in and starting the program as the right system user, > you prove that you are entitled to certain rights in the database, > too, but you keep the password business out of the database layer. > > (Of course, by changing the configuration file, the person installing > the software can choose to use a simple SQLite db as well or a > password > saved in plain text, provided that the program was made DBMS-agnostic > enough. All this choice is built into the Connection object already > and it should be used, and provided to the person who has to deal > with > the program in the end. ) > > Regards, > Tobi > > [1] https://mariadb.com/kb/en/library/authentication-plugin-unix-sock > et/ > > That is sound advice, Tobi. I was expecting to be able to use the IDE Connection tool because it was there and I assumed it was the correct way to go. "8-) I will now examine the Connection object and see if it allows me to use it for data-aware controls - I assume it does. Many thanks for your input. Kind regards, Doug From taboege at gmail.com Fri Jan 5 01:50:58 2018 From: taboege at gmail.com (Tobias Boege) Date: Fri, 5 Jan 2018 01:50:58 +0100 Subject: [Gambas-user] Password problem in database connection In-Reply-To: <1515111729.4277.19.camel@gmail.com> References: <170f0de9-7e98-a338-eded-f1dcdd189e31@gmail.com> <1515051665.4409.9.camel@gmail.com> <1515108417.4277.11.camel@gmail.com> <20180105000826.GA1055@highrise.localdomain> <1515111729.4277.19.camel@gmail.com> Message-ID: <20180105005057.GB1055@highrise.localdomain> On Fri, 05 Jan 2018, Doug Hutcheson wrote: > That is sound advice, Tobi. I was expecting to be able to use the IDE > Connection tool because it was there and I assumed it was the correct > way to go. "8-) > > I will now examine the Connection object and see if it allows me to use > it for data-aware controls - I assume it does. > Ah, I think I understand your recent and current concerns about the data-aware/-bound controls now. These controls work when you place them inside a DataSource container and the DataSource needs a Connection object in its property of the same name. True to its name, the DataSource container provides its children with (meta)data from the database and it needs a Connection to a database to do that. Makes sense, right? The IDE form editor of course lets you only select Connections it knows about, in that little Combobox. Since you create the Connection at runtime now, let it be inside a variable $hConn, you need to set DataSource1.Connection = $hConn at some point in your code and everything will work. Where this line occurs depends on your program (do you have the Connection ready before the form containing the data-aware controls is shown or do you establish it on-demand?). Note that (IIRC) you can fill/change the DataSource.Connection at any time, so whatever you do should be fine. I didn't get your problem when you mentioned data-aware controls the first time because I don't use the form editor all that often anymore, and as you see, data-aware controls aren't really related otherwise to defining Connections. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From owlbrudder at gmail.com Fri Jan 5 02:05:19 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Fri, 05 Jan 2018 11:05:19 +1000 Subject: [Gambas-user] Password problem in database connection In-Reply-To: <20180105005057.GB1055@highrise.localdomain> References: <170f0de9-7e98-a338-eded-f1dcdd189e31@gmail.com> <1515051665.4409.9.camel@gmail.com> <1515108417.4277.11.camel@gmail.com> <20180105000826.GA1055@highrise.localdomain> <1515111729.4277.19.camel@gmail.com> <20180105005057.GB1055@highrise.localdomain> Message-ID: <1515114319.4277.29.camel@gmail.com> On Fri, 2018-01-05 at 01:50 +0100, Tobias Boege wrote: > On Fri, 05 Jan 2018, Doug Hutcheson wrote: > > That is sound advice, Tobi. I was expecting to be able to use the > > IDE > > Connection tool because it was there and I assumed it was the > > correct > > way to go. "8-) > > > > I will now examine the Connection object and see if it allows me to > > use > > it for data-aware controls - I assume it does. > > > > Ah, I think I understand your recent and current concerns about the > data-aware/-bound controls now. > > These controls work when you place them inside a DataSource container > and the DataSource needs a Connection object in its property of the > same name. True to its name, the DataSource container provides its > children with (meta)data from the database and it needs a Connection > to a database to do that. Makes sense, right? > > The IDE form editor of course lets you only select Connections it > knows > about, in that little Combobox. Since you create the Connection at > runtime now, let it be inside a variable $hConn, you need to set > > DataSource1.Connection = $hConn > > at some point in your code and everything will work. Where this line > occurs depends on your program (do you have the Connection ready > before > the form containing the data-aware controls is shown or do you > establish > it on-demand?). > > Note that (IIRC) you can fill/change the DataSource.Connection at any > time, so whatever you do should be fine. > > I didn't get your problem when you mentioned data-aware controls the > first time because I don't use the form editor all that often > anymore, > and as you see, data-aware controls aren't really related otherwise > to defining Connections. > > Regards, > Tobi > Thanks a million Tobi - you have saved me many hours of wandering through the maze of code. Using a programmatic connection object will be fine. The IDE still has the disadvantage that one cannot create and test a Connection conveniently, but I will forgive that now that I know the alternative. Still, it would be nice if it worked ... "8-) Kind regards, Doug. From bagonergi at gmail.com Fri Jan 5 09:32:05 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 5 Jan 2018 09:32:05 +0100 Subject: [Gambas-user] Web Cam preview and capture In-Reply-To: <43ffc9f8-9079-1e61-e619-5579b1102ed9@code-it.com> References: <43ffc9f8-9079-1e61-e619-5579b1102ed9@code-it.com> Message-ID: I do not know if these lessons can help you: http://www.gambas-it.org/wiki/index.php?title=Effettuare_una_ripresa_video_mediante_una_WebCam_con_il_Componente_gb.media http://www.gambas-it.org/wiki/index.php?title=Salvare_in_un_file_OGV_una_ripresa_video_mediante_una_WebCam_con_il_Componente_gb.media http://www.gambas-it.org/wiki/index.php?title=Salvare_in_un_file_MKV_una_ripresa_video_mediante_una_WebCam_con_il_Componente_gb.media http://www.gambas-it.org/wiki/index.php?title=Catturare_video_e_audio_con_una_webcam_ed_un_microfono_e_salvarli_in_un_unico_file_video_mediante_le_funzioni_esterne_del_API_di_VLC http://www.gambas-it.org/wiki/index.php?title=Catturare_e_riprodurre_immagini_video_mediante_una_WebCam_con_le_funzioni_esterne_delle_API_di_GStreamer http://www.gambas-it.org/wiki/index.php?title=Salvare_in_un_file_video_mediante_le_funzioni_esterne_del_API_di_GStreamer_la_ripresa_video_effettuata_con_una_WebCam http://www.gambas-it.org/wiki/index.php?title=Catturare_e_riprodurre_immagini_video_mediante_una_WebCam_con_le_funzioni_esterne_delle_API_di_VLC Regards Gianluigi 2018-01-04 22:41 GMT+01:00 mikeB : > eGreetings Gambas World, > > Would anyone out there happen to have a code snippet or simple > Gambas project that reviews/ displays the web cam input and records > video with sound - that you're willing to share? > > I know how to record using ffmpeg but can not find a way to review/ > display what it's recording. Also, have spent days looking at the code > of "MediaPlayer" from the Gambas farm - it's completely above my head > ;-( > > A BIG THANKS for your consideration, > mikeB > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Jan 5 14:23:31 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 5 Jan 2018 14:23:31 +0100 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: <1514684664.12546.82.camel@gmail.com> References: <1514684664.12546.82.camel@gmail.com> Message-ID: <682dfc0f-136a-f7c7-8b0c-d32043a6e939@gmail.com> Le 31/12/2017 ? 02:44, Doug Hutcheson a ?crit?: > Hi everyone. > > I have successfully connected to my PostgreSQL database and the field > count in the Result from my query is correct, but all my attempts to > extract data from the fields have failed. I am cobbling together code > from the wiki and from other posts here, but I am still missing something. > > The table I am reading from has exactly one row and 35 fields. The first > field is named txtMasterDatabase. > > My code declares a Field and a Result as follows: > ??????????Dim $Field As ResultField > ??????????Dim $Result As Result > > The query works correctly: > ???????????$Query = "Select * From abpa.tblParameters" > ???????????$Result = $Con.Exec($Query) > > The field count is correct - 35: > ???????????Message("Fields count = " & $Result.Fields.Count) > > Now I try to loop through the fields in the result: > ???????????For Each $Field In $Result.Fields > ????????????Message($Field.Name) > ???????????Next > > The problem occurs on the For Each line in that the Basic IDE displays > an error at this point: > Unknown field: txtMasterDatabase in FRMStart:41 > > As I said above, the first field in the tuple is named > txtMasterDatabase, so Gambas is at least seeing it. Why is it telling me > the field is unknown? > > Thanks for any help and Happy New Year, > Doug > > Can you send me a SQL dump of that table? -- Beno?t Minisini From mb at code-it.com Fri Jan 5 14:34:49 2018 From: mb at code-it.com (mikeB) Date: Fri, 5 Jan 2018 06:34:49 -0700 Subject: [Gambas-user] Web Cam preview and capture In-Reply-To: References: <43ffc9f8-9079-1e61-e619-5579b1102ed9@code-it.com> Message-ID: eGreetings, At first glance it doesn't look like any of these examples preview what is being recorded but I'll spend some more time look'n them over and doing some testing with the code. Thank you for your time and effort in responding to my quest. mikeB On 01/05/2018 01:32 AM, Gianluigi wrote: > I do not know if these lessons can help you: > > http://www.gambas-it.org/wiki/index.php?title=Effettuare_una_ripresa_video_mediante_una_WebCam_con_il_Componente_gb.media > > http://www.gambas-it.org/wiki/index.php?title=Salvare_in_un_file_OGV_una_ripresa_video_mediante_una_WebCam_con_il_Componente_gb.media > > http://www.gambas-it.org/wiki/index.php?title=Salvare_in_un_file_MKV_una_ripresa_video_mediante_una_WebCam_con_il_Componente_gb.media > > http://www.gambas-it.org/wiki/index.php?title=Catturare_video_e_audio_con_una_webcam_ed_un_microfono_e_salvarli_in_un_unico_file_video_mediante_le_funzioni_esterne_del_API_di_VLC > > http://www.gambas-it.org/wiki/index.php?title=Catturare_e_riprodurre_immagini_video_mediante_una_WebCam_con_le_funzioni_esterne_delle_API_di_GStreamer > > http://www.gambas-it.org/wiki/index.php?title=Salvare_in_un_file_video_mediante_le_funzioni_esterne_del_API_di_GStreamer_la_ripresa_video_effettuata_con_una_WebCam > > http://www.gambas-it.org/wiki/index.php?title=Catturare_e_riprodurre_immagini_video_mediante_una_WebCam_con_le_funzioni_esterne_delle_API_di_VLC > > Regards > Gianluigi > > 2018-01-04 22:41 GMT+01:00 mikeB : > >> eGreetings Gambas World, >> >> Would anyone out there happen to have a code snippet or simple >> Gambas project that reviews/ displays the web cam input and records >> video with sound - that you're willing to share? >> >> I know how to record using ffmpeg but can not find a way to review/ >> display what it's recording. Also, have spent days looking at the code >> of "MediaPlayer" from the Gambas farm - it's completely above my head >> ;-( >> >> A BIG THANKS for your consideration, >> mikeB >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List >> https://lists.gambas-basic.org/listinfo/user >> >> Hosted by https://www.hostsharing.net >> > > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > From g4mba5 at gmail.com Fri Jan 5 14:57:14 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 5 Jan 2018 14:57:14 +0100 Subject: [Gambas-user] Web Cam preview and capture In-Reply-To: <43ffc9f8-9079-1e61-e619-5579b1102ed9@code-it.com> References: <43ffc9f8-9079-1e61-e619-5579b1102ed9@code-it.com> Message-ID: Le 04/01/2018 ? 22:41, mikeB a ?crit?: > eGreetings Gambas World, > > Would anyone out there happen to have a code snippet or simple > Gambas project that reviews/ displays the web cam input and records > video with sound - that you're willing to share? > > I know how to record using ffmpeg but can not find a way to review/ > display what it's recording. Also, have spent days looking at the code > of "MediaPlayer" from the Gambas farm - it's completely above my head > ;-( > > A BIG THANKS for your consideration, > mikeB > You should use the gb.media component, which is an almost direct interface to GStreamer. So if you find how to do what you want with GStreamer, doing the same thing with Gambas should be just a matter of translation between GStreamer names and its Gambas equivalents. Regards, -- Beno?t Minisini From mb at code-it.com Fri Jan 5 15:42:26 2018 From: mb at code-it.com (mikeB) Date: Fri, 5 Jan 2018 07:42:26 -0700 Subject: [Gambas-user] Web Cam preview and capture In-Reply-To: References: <43ffc9f8-9079-1e61-e619-5579b1102ed9@code-it.com> Message-ID: Thank you Sir - I'll spend my time hack'n the "GStreamer" - as I know it can be done but just don't understand how at the moment:-) Have a GREAT day, mikeB On 01/05/2018 06:57 AM, Beno?t Minisini wrote: > Le 04/01/2018 ? 22:41, mikeB a ?crit?: >> eGreetings Gambas World, >> >> Would anyone out there happen to have a code snippet or simple >> Gambas project that reviews/ displays the web cam input and records >> video with sound - that you're willing to share? >> >> I know how to record using ffmpeg but can not find a way to review/ >> display what it's recording. Also, have spent days looking at the code >> of "MediaPlayer" from the Gambas farm - it's completely above my head >> ;-( >> >> A BIG THANKS for your consideration, >> mikeB >> > > You should use the gb.media component, which is an almost direct > interface to GStreamer. > > So if you find how to do what you want with GStreamer, doing the same > thing with Gambas should be just a matter of translation between > GStreamer names and its Gambas equivalents. > > Regards, > From owlbrudder at gmail.com Sat Jan 6 04:31:15 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Sat, 06 Jan 2018 13:31:15 +1000 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: <682dfc0f-136a-f7c7-8b0c-d32043a6e939@gmail.com> References: <1514684664.12546.82.camel@gmail.com> <682dfc0f-136a-f7c7-8b0c-d32043a6e939@gmail.com> Message-ID: <1515209475.4277.62.camel@gmail.com> On Fri, 2018-01-05 at 14:23 +0100, Beno?t Minisini wrote: > Le 31/12/2017 ? 02:44, Doug Hutcheson a ?crit : > > Hi everyone. > > > > I have successfully connected to my PostgreSQL database and the > > field > > count in the Result from my query is correct, but all my attempts > > to > > extract data from the fields have failed. I am cobbling together > > code > > from the wiki and from other posts here, but I am still missing > > something. > > > > The table I am reading from has exactly one row and 35 fields. The > > first > > field is named txtMasterDatabase. > > > > My code declares a Field and a Result as follows: > > Dim $Field As ResultField > > Dim $Result As Result > > > > The query works correctly: > > $Query = "Select * From abpa.tblParameters" > > $Result = $Con.Exec($Query) > > > > The field count is correct - 35: > > Message("Fields count = " & $Result.Fields.Count) > > > > Now I try to loop through the fields in the result: > > For Each $Field In $Result.Fields > > Message($Field.Name) > > Next > > > > The problem occurs on the For Each line in that the Basic IDE > > displays > > an error at this point: > > Unknown field: txtMasterDatabase in FRMStart:41 > > > > As I said above, the first field in the tuple is named > > txtMasterDatabase, so Gambas is at least seeing it. Why is it > > telling me > > the field is unknown? > > > > Thanks for any help and Happy New Year, > > Doug > > > > > > > Can you send me a SQL dump of that table? > Hi Beno?t. I have attached the dump of that table and the test harness I used to try to read it. I hope these are useful. Kind regards, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tblparameters.sql Type: application/sql Size: 2214 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PostgreSQL_test-0.0.1.tar.gz Type: application/x-compressed-tar Size: 12506 bytes Desc: not available URL: From owlbrudder at gmail.com Sat Jan 6 09:27:21 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Sat, 06 Jan 2018 18:27:21 +1000 Subject: [Gambas-user] Errors using DataBrowser control Message-ID: <1515227241.4277.83.camel@gmail.com> Hi everyone. I am having difficulty with my DataBrowser on a PostgreSQL table. I have attached the source of my mini project, an SQL dump of the table, and two images showing the error when I click the delete button and when I click the save button. In both cases it is complaining about a null object, but I cannot work out which object this refers to. I was able to add the record "Fungusbungle" using the DataBrowser, but now I can't use the same control to get rid of it again. I am sure it is my lack of understanding which is causing these problems. Any help would be appreciated. Thanks everyone for the great help in getting me up and running with the Connection object. Kind regards, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Delete error.png Type: image/png Size: 21590 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Save error.png Type: image/png Size: 20929 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PostgreSQL_test-0.0.1-2.tar.gz Type: application/x-compressed-tar Size: 49591 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tblparameters2.sql Type: application/sql Size: 18315 bytes Desc: not available URL: From g4mba5 at gmail.com Sat Jan 6 10:08:51 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 6 Jan 2018 10:08:51 +0100 Subject: [Gambas-user] Errors using DataBrowser control In-Reply-To: <1515227241.4277.83.camel@gmail.com> References: <1515227241.4277.83.camel@gmail.com> Message-ID: Le 06/01/2018 ? 09:27, Doug Hutcheson a ?crit?: > Hi everyone. > > I am having difficulty with my DataBrowser on a PostgreSQL table. I have > attached the source of my mini project, an SQL dump of the table, and > two images showing the error when I click the delete button and when I > click the save button. In both cases it is complaining about a null > object, but I cannot work out which object this refers to. I was able to > add the record "Fungusbungle" using the DataBrowser, but now I can't use > the same control to get rid of it again. > > I am sure it is my lack of understanding which is causing these > problems. Any help would be appreciated. > > Thanks everyone for the great help in getting me up and running with the > Connection object. > > Kind regards, > Doug > How did you create the 'tblparameters2.sql' file? It is not a text file. -- Beno?t Minisini From patrik at trixon.se Sat Jan 6 10:54:34 2018 From: patrik at trixon.se (Patrik Karlsson) Date: Sat, 6 Jan 2018 10:54:34 +0100 Subject: [Gambas-user] Loading Picture/Image from String/Byte[] data Message-ID: Hi there! I have been away from Gambas for a while but now I'm looking into a gambas client to a java server. The goal is to restore a binary file (image) which is base64 encoded and serialized to json. I can load the image in the Gambas Client if I first store the file content and load it as usual, but I would like to avoid generating a temp file and read it directly since I already have its content loaded. Is it possible to load a Picture/Image from String/Byte[] data that represents a file? Option 1 below works, but I would like to use something that does not include generating a file. Option 2 is me poking around without any success. Public Sub Button1_Click() Dim javaGeneratedBase64EncodedImageFile As String Dim decodedBase64 As String Dim tempImagePath As String = Temp() Dim fileByteArray As Byte[] Dim i As Integer Dim p As Pointer Dim hFile As File javaGeneratedBase64EncodedImageFile = File.Load("/home/pata/base64.txt") decodedBase64 = UnBase64(javaGeneratedBase64EncodedImageFile) fileByteArray = Byte[].FromString(decodedBase64) Print tempImagePath ' option 1 File.Save(tempImagePath, decodedBase64) PictureBox1.Picture = Picture.Load(tempImagePath) ' option 2 p = VarPtr(decodedBase64) hFile = Open Memory p For Read Close #hFile ' end of option 2 For i = 0 To fileByteArray.Length - 1 'Print fileByteArray[i] Next Print fileByteArray.Length Print Now End -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Jan 6 12:55:20 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 6 Jan 2018 12:55:20 +0100 Subject: [Gambas-user] Loading Picture/Image from String/Byte[] data In-Reply-To: References: Message-ID: <5ae477b7-98be-ef14-621e-fa1a456f3334@gmail.com> Le 06/01/2018 ? 10:54, Patrik Karlsson a ?crit?: > Hi there! > > I have been away from Gambas for a while but now I'm looking into a > gambas client to a java server. > The goal is to restore a binary file (image) which is base64 encoded and > serialized to json. > > I can load the image in the Gambas Client if I first store the file > content and load it as usual, > but I would like to avoid generating a temp file and read it directly > since I already have its content loaded. > > Is it possible to load a Picture/Image from String/Byte[] data that > represents a file? > > Option 1 below works, but I would like to use something that does not > include generating a file. > Option 2 is me poking around without any success. > > Public Sub Button1_Click() > > ? Dim javaGeneratedBase64EncodedImageFile As String > ? Dim decodedBase64 As String > ? Dim tempImagePath As String = Temp() > ? Dim fileByteArray As Byte[] > ? Dim i As Integer > ? Dim p As Pointer > ? Dim hFile As File > > ? javaGeneratedBase64EncodedImageFile = File.Load("/home/pata/base64.txt") > ? decodedBase64 = UnBase64(javaGeneratedBase64EncodedImageFile) > ? fileByteArray = Byte[].FromString(decodedBase64) > ? Print tempImagePath > ? ' option 1 > ? File.Save(tempImagePath, decodedBase64) > ? PictureBox1.Picture = Picture.Load(tempImagePath) > > ? ' option 2 > ? p = VarPtr(decodedBase64) > ? hFile = Open Memory p For Read > > ? Close #hFile > ? ' end of option 2 > > ? For i = 0 To fileByteArray.Length - 1 > ? ? 'Print fileByteArray[i] > ? Next > > ? Print fileByteArray.Length > ? Print Now > > End > I can add some methods to the Image and/or Picture class for that. -- Beno?t Minisini From bugtracker at gambaswiki.org Sat Jan 6 13:16:32 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 06 Jan 2018 12:16:32 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1222: Circles on maps In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1222&from=L21haW4- Comment #4 by Carlo PANARA: It seems that it works well! Thank you Fabien! From patrik at trixon.se Sat Jan 6 13:36:34 2018 From: patrik at trixon.se (Patrik Karlsson) Date: Sat, 6 Jan 2018 13:36:34 +0100 Subject: [Gambas-user] Loading Picture/Image from String/Byte[] data In-Reply-To: <5ae477b7-98be-ef14-621e-fa1a456f3334@gmail.com> References: <5ae477b7-98be-ef14-621e-fa1a456f3334@gmail.com> Message-ID: 2018-01-06 12:55 GMT+01:00 Beno?t Minisini : > Le 06/01/2018 ? 10:54, Patrik Karlsson a ?crit : > >> Hi there! >> >> I have been away from Gambas for a while but now I'm looking into a >> gambas client to a java server. >> The goal is to restore a binary file (image) which is base64 encoded and >> serialized to json. >> >> I can load the image in the Gambas Client if I first store the file >> content and load it as usual, >> but I would like to avoid generating a temp file and read it directly >> since I already have its content loaded. >> >> Is it possible to load a Picture/Image from String/Byte[] data that >> represents a file? >> >> Option 1 below works, but I would like to use something that does not >> include generating a file. >> Option 2 is me poking around without any success. >> >> Public Sub Button1_Click() >> >> Dim javaGeneratedBase64EncodedImageFile As String >> Dim decodedBase64 As String >> Dim tempImagePath As String = Temp() >> Dim fileByteArray As Byte[] >> Dim i As Integer >> Dim p As Pointer >> Dim hFile As File >> >> javaGeneratedBase64EncodedImageFile = File.Load("/home/pata/base64.t >> xt") >> decodedBase64 = UnBase64(javaGeneratedBase64EncodedImageFile) >> fileByteArray = Byte[].FromString(decodedBase64) >> Print tempImagePath >> ' option 1 >> File.Save(tempImagePath, decodedBase64) >> PictureBox1.Picture = Picture.Load(tempImagePath) >> >> ' option 2 >> p = VarPtr(decodedBase64) >> hFile = Open Memory p For Read >> >> Close #hFile >> ' end of option 2 >> >> For i = 0 To fileByteArray.Length - 1 >> 'Print fileByteArray[i] >> Next >> >> Print fileByteArray.Length >> Print Now >> >> End >> >> > I can add some methods to the Image and/or Picture class for that. > > -- > Beno?t Minisini > That would be great! I'll stick to using a temp file until its done. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Sat Jan 6 14:13:21 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 06 Jan 2018 13:13:21 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1222: Circles on maps In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1222&from=L21haW4- Comment #5 by Fabien BODARD: So I close the issue :-) . Tel me if you need something else. The components are growing with user needs. Fabien BODARD changed the state of the bug to: Fixed. From g4mba5 at gmail.com Sat Jan 6 17:16:09 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 6 Jan 2018 17:16:09 +0100 Subject: [Gambas-user] Loading Picture/Image from String/Byte[] data In-Reply-To: References: <5ae477b7-98be-ef14-621e-fa1a456f3334@gmail.com> Message-ID: <388c6c35-4ea7-4f7c-3c5c-2a8d72a9db7c@gmail.com> Le 06/01/2018 ? 13:36, Patrik Karlsson a ?crit?: > > > I can add some methods to the Image and/or Picture class for that. > > -- > Beno?t Minisini > > > That would be great! I'll stick to using a temp file until its done. > Done in commit https://gitlab.com/gambas/gambas/commit/066c25c7aa0adaf2e558d837ab64dc84079cb8c7. Regards, -- Beno?t Minisini From owlbrudder at gmail.com Sun Jan 7 05:25:09 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Sun, 07 Jan 2018 14:25:09 +1000 Subject: [Gambas-user] Errors using DataBrowser control In-Reply-To: References: <1515227241.4277.83.camel@gmail.com> Message-ID: <1515299109.4277.85.camel@gmail.com> On Sat, 2018-01-06 at 10:08 +0100, Beno?t Minisini wrote: > Le 06/01/2018 ? 09:27, Doug Hutcheson a ?crit : > > Hi everyone. > > > > I am having difficulty with my DataBrowser on a PostgreSQL table. I > > have > > attached the source of my mini project, an SQL dump of the table, > > and > > two images showing the error when I click the delete button and > > when I > > click the save button. In both cases it is complaining about a > > null > > object, but I cannot work out which object this refers to. I was > > able to > > add the record "Fungusbungle" using the DataBrowser, but now I > > can't use > > the same control to get rid of it again. > > > > I am sure it is my lack of understanding which is causing these > > problems. Any help would be appreciated. > > > > Thanks everyone for the great help in getting me up and running > > with the > > Connection object. > > > > Kind regards, > > Doug > > > > How did you create the 'tblparameters2.sql' file? It is not a text > file. > > Finger fumble when creating it. Here is the version I meant to provide. Sorry, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tblparameters2.sql Type: application/sql Size: 18693 bytes Desc: not available URL: From patrik at trixon.se Sun Jan 7 07:25:49 2018 From: patrik at trixon.se (Patrik Karlsson) Date: Sun, 7 Jan 2018 07:25:49 +0100 Subject: [Gambas-user] Problem building from source. Due to changes in SDL? Message-ID: I was interested in testing the new image loading functions so I tried to build from git, and stable release. It failed. I found something about changes in SDL mixer, https://hg.libsdl.org/SDL_mixer/diff/92882ef2ab81/SDL_mixer.h 1.5 typedef enum 1.6 { 1.7 - MIX_INIT_FLAC = 0x00000001, 1.8 - MIX_INIT_MOD = 0x00000002, 1.9 - MIX_INIT_MODPLUG = 0x00000004, 1.10 - MIX_INIT_MP3 = 0x00000008, 1.11 - MIX_INIT_OGG = 0x00000010, 1.12 - MIX_INIT_FLUIDSYNTH = 0x00000020 1.13 + MIX_INIT_FLAC = 0x00000001, 1.14 + MIX_INIT_MOD = 0x00000002, 1.15 + MIX_INIT_MP3 = 0x00000008, 1.16 + MIX_INIT_OGG = 0x00000010, 1.17 + MIX_INIT_MID = 0x00000020, 1.18 } MIX_InitFlags; I'm using SDL Mixer 2.0.2 on Netrunner (arch). Do I have to downgrade SDL or will Gambas be updated? Making all in audio make[5]: Entering directory '/home/pata/src/gambas3-3.10.0/gb.sdl2/src/audio' CC gb_sdl2_audio_la-c_sound.lo CC gb_sdl2_audio_la-c_music.lo CC gb_sdl2_audio_la-c_channel.lo CC gb_sdl2_audio_la-main.lo main.c: In function 'AUDIO_init': main.c:61:13: error: 'MIX_INIT_FLUIDSYNTH' undeclared (first use in this function); did you mean 'MIX_INIT_MID'? init_mixer(MIX_INIT_FLUIDSYNTH, "FLUIDSYNTH"); ^~~~~~~~~~~~~~~~~~~ MIX_INIT_MID main.c:61:13: note: each undeclared identifier is reported only once for each function it appears in make[5]: *** [Makefile:514: gb_sdl2_audio_la-main.lo] Error 1 make[5]: Leaving directory '/home/pata/src/gambas3-3.10.0/gb.sdl2/src/audio' make[4]: *** [Makefile:678: all-recursive] Error 1 make[4]: Leaving directory '/home/pata/src/gambas3-3.10.0/gb.sdl2/src' make[3]: *** [Makefile:437: all-recursive] Error 1 make[3]: Leaving directory '/home/pata/src/gambas3-3.10.0/gb.sdl2' make[2]: *** [Makefile:369: all] Error 2 make[2]: Leaving directory '/home/pata/src/gambas3-3.10.0/gb.sdl2' make[1]: *** [Makefile:438: all-recursive] Error 1 make[1]: Leaving directory '/home/pata/src/gambas3-3.10.0' make: *** [Makefile:379: all] Error 2 [pata at xps gambas3-3.10.0]$ -------------- next part -------------- An HTML attachment was scrubbed... URL: From patrik at trixon.se Sun Jan 7 08:04:44 2018 From: patrik at trixon.se (Patrik Karlsson) Date: Sun, 7 Jan 2018 08:04:44 +0100 Subject: [Gambas-user] Loading Picture/Image from String/Byte[] data In-Reply-To: <388c6c35-4ea7-4f7c-3c5c-2a8d72a9db7c@gmail.com> References: <5ae477b7-98be-ef14-621e-fa1a456f3334@gmail.com> <388c6c35-4ea7-4f7c-3c5c-2a8d72a9db7c@gmail.com> Message-ID: Hey, It works! :) Thank you! Public Sub loadButton_Click() PictureBox1.Picture = Picture.FromString(UnBase64( File.Load("/home/pata/base64.txt"))) Print Now End 2018-01-06 17:16 GMT+01:00 Beno?t Minisini : > Le 06/01/2018 ? 13:36, Patrik Karlsson a ?crit : > >> >> >> I can add some methods to the Image and/or Picture class for that. >> >> -- Beno?t Minisini >> >> >> That would be great! I'll stick to using a temp file until its done. >> >> > Done in commit https://gitlab.com/gambas/gamb > as/commit/066c25c7aa0adaf2e558d837ab64dc84079cb8c7. > > Regards, > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From patrik at trixon.se Sun Jan 7 08:06:06 2018 From: patrik at trixon.se (Patrik Karlsson) Date: Sun, 7 Jan 2018 08:06:06 +0100 Subject: [Gambas-user] Problem building from source. Due to changes in SDL? In-Reply-To: References: Message-ID: 2018-01-07 7:25 GMT+01:00 Patrik Karlsson : > I was interested in testing the new image loading functions so I tried to > build from git, and stable release. It failed. > > I found something about changes in SDL mixer, https://hg.libsdl.org/ > SDL_mixer/diff/92882ef2ab81/SDL_mixer.h > > 1.5 typedef enum 1.6 { 1.7 - MIX_INIT_FLAC = 0x00000001, 1.8 - MIX_INIT_MOD = 0x00000002, 1.9 - MIX_INIT_MODPLUG = 0x00000004, 1.10 - MIX_INIT_MP3 = 0x00000008, 1.11 - MIX_INIT_OGG = 0x00000010, 1.12 - MIX_INIT_FLUIDSYNTH = 0x00000020 1.13 + MIX_INIT_FLAC = 0x00000001, 1.14 + MIX_INIT_MOD = 0x00000002, 1.15 + MIX_INIT_MP3 = 0x00000008, 1.16 + MIX_INIT_OGG = 0x00000010, 1.17 + MIX_INIT_MID = 0x00000020, 1.18 } MIX_InitFlags; > > > I'm using SDL Mixer 2.0.2 on Netrunner (arch). > > Do I have to downgrade SDL or will Gambas be updated? > > > Making all in audio > make[5]: Entering directory '/home/pata/src/gambas3-3.10.0/gb.sdl2/src/audio' > > CC gb_sdl2_audio_la-c_sound.lo > CC gb_sdl2_audio_la-c_music.lo > CC gb_sdl2_audio_la-c_channel.lo > CC gb_sdl2_audio_la-main.lo > main.c: In function 'AUDIO_init': > main.c:61:13: error: 'MIX_INIT_FLUIDSYNTH' undeclared (first use in this > function); did you mean 'MIX_INIT_MID'? > init_mixer(MIX_INIT_FLUIDSYNTH, "FLUIDSYNTH"); > ^~~~~~~~~~~~~~~~~~~ > MIX_INIT_MID > main.c:61:13: note: each undeclared identifier is reported only once for > each function it appears in > make[5]: *** [Makefile:514: gb_sdl2_audio_la-main.lo] Error 1 > make[5]: Leaving directory '/home/pata/src/gambas3-3.10. > 0/gb.sdl2/src/audio' > make[4]: *** [Makefile:678: all-recursive] Error 1 > make[4]: Leaving directory '/home/pata/src/gambas3-3.10.0/gb.sdl2/src' > > make[3]: *** [Makefile:437: all-recursive] Error 1 > make[3]: Leaving directory '/home/pata/src/gambas3-3.10.0/gb.sdl2' > > make[2]: *** [Makefile:369: all] Error 2 > make[2]: Leaving directory '/home/pata/src/gambas3-3.10.0/gb.sdl2' > > make[1]: *** [Makefile:438: all-recursive] Error 1 > make[1]: Leaving directory '/home/pata/src/gambas3-3.10.0' > > make: *** [Makefile:379: all] Error 2 > [pata at xps gambas3-3.10.0]$ > > I have just found the arch patch for gambas at https://git.archlinux.org/ svntogit/community.git/tree/trunk/sdl2_mixer.diff?h=packages/gambas3 --- a/gb.sdl2/src/audio/main.c 2017-07-18 17:48:44.000000000 +0200+++ b/gb.sdl2/src/audio/main.c.new 2017-11-09 21:33:11.442013948 +0100@@ -58,7 +58,7 @@ init_mixer(MIX_INIT_OGG, "OGG"); init_mixer(MIX_INIT_MOD, "MOD"); init_mixer(MIX_INIT_FLAC, "FLAC");- init_mixer(MIX_INIT_FLUIDSYNTH, "FLUIDSYNTH");+ init_mixer(MIX_INIT_MID, "MID"); if (Mix_OpenAudio(AUDIO_frequency, MIX_DEFAULT_FORMAT, 2, AUDIO_buffer_size)) { After changing FLUIDSYNTH to MID it compiles, installs and runs. But I do get a lot of errors like the following examples. Compiling gb.dbus.trayicon... OK Installing gb.dbus.trayicon... Error loading libdumb.so: libdumb.so: cannot open shared object file: No such file or directory Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared object file: No such file or directory Compiling gb.web.form... OK Installing gb.web.form... Error loading libdumb.so: libdumb.so: cannot open shared object file: No such file or directory Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared object file: No such file or directory Compiling gb.form.terminal... OK Installing gb.form.terminal... Error loading libdumb.so: libdumb.so: cannot open shared object file: No such file or directory Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared object file: No such file or directory -------------- next part -------------- An HTML attachment was scrubbed... URL: From bkv at mailbox.org Sun Jan 7 20:40:21 2018 From: bkv at mailbox.org (bkv at mailbox.org) Date: Sun, 7 Jan 2018 20:40:21 +0100 (CET) Subject: [Gambas-user] Select statement in Table property Message-ID: <448419913.17277.1515354022071@office.mailbox.org> Hi I want to use a SQL SELECT instead of table name in the Table property of the Datasource object, but the property field does not take input from the keyboard. I may select a table name, but it won't let me type into the property field. I have done it on another form, though. Any ideas? Regards, Bj?rn -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sun Jan 7 21:50:31 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 7 Jan 2018 22:50:31 +0200 Subject: [Gambas-user] gambas qt4 depends was changes or still can compile in low depends In-Reply-To: References: Message-ID: > Gambas wiki says gb.qt4 and the sub components needs all Qt4 libraries >= >> Qt 4.5. So, 4.6 should be fine. >> > well remenber that webkit between 4.6 and 4.8 are separated!!!! its not so > easy i ask again! should be fine!? > I don't understand the issue, both 4.6 and 4.8 satisfies the requirement (>= 4.5). Also you can custom build Linux kernel for older hardware. >> > recent kernels removed code for older hardware, the only way its use older > kernels > Hence "custom build". Recent kernels do not compile the old code, but the code still exist. > because they are very rarely used anymore. >> > talk by yourself! only the people that pay intenet made a amount of > statics in the internet as "modern hardware", but mayority of them dont use > linux, and gambas only runs in linux so ... > Well I guess it depends on how you define modern and old, but I'm quite sure the decision was based on average user. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Mon Jan 8 02:35:06 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 7 Jan 2018 20:35:06 -0500 Subject: [Gambas-user] Select statement in Table property In-Reply-To: <448419913.17277.1515354022071@office.mailbox.org> References: <448419913.17277.1515354022071@office.mailbox.org> Message-ID: You're talking about setting that property statically from the IDE, correct? You may have to do it in code. >From http://gambaswiki.org/wiki/comp/gb.db.form/datasource/table: 'This property can take any SQL "SELECT" request actually. If the string does not begin with "SELECT ", it is taken as a table name.' -- Lee On 01/07/2018 02:40 PM, bkv at mailbox.org wrote: > Hi > > I want to use a SQL SELECT instead of table name in the Table property of the Datasource? object, but the property field does > not take input from the keyboard. I may select a table name, but it won't let me type into? the property field. I have done it > on another form, though. Any ideas? > > Regards, > > Bj?rn From g4mba5 at gmail.com Mon Jan 8 12:55:49 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 8 Jan 2018 12:55:49 +0100 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: <1514684664.12546.82.camel@gmail.com> References: <1514684664.12546.82.camel@gmail.com> Message-ID: Le 31/12/2017 ? 02:44, Doug Hutcheson a ?crit?: > Hi everyone. > > I have successfully connected to my PostgreSQL database and the field > count in the Result from my query is correct, but all my attempts to > extract data from the fields have failed. I am cobbling together code > from the wiki and from other posts here, but I am still missing something. > > The table I am reading from has exactly one row and 35 fields. The first > field is named txtMasterDatabase. > > My code declares a Field and a Result as follows: > ??????????Dim $Field As ResultField > ??????????Dim $Result As Result > > The query works correctly: > ???????????$Query = "Select * From abpa.tblParameters" > ???????????$Result = $Con.Exec($Query) > > The field count is correct - 35: > ???????????Message("Fields count = " & $Result.Fields.Count) > > Now I try to loop through the fields in the result: > ???????????For Each $Field In $Result.Fields > ????????????Message($Field.Name) > ???????????Next > > The problem occurs on the For Each line in that the Basic IDE displays > an error at this point: > Unknown field: txtMasterDatabase in FRMStart:41 > > As I said above, the first field in the tuple is named > txtMasterDatabase, so Gambas is at least seeing it. Why is it telling me > the field is unknown? > > Thanks for any help and Happy New Year, > Doug > It should be fixed with commit https://gitlab.com/gambas/gambas/commit/36132fa99abeba8549b127a1438d5b3d29d88f2c. Regards, -- Beno?t Minisini From mckaygerhard at gmail.com Mon Jan 8 23:35:03 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 8 Jan 2018 18:35:03 -0400 Subject: [Gambas-user] gambas qt4 depends was changes or still can compile in low depends In-Reply-To: References: Message-ID: 2018-01-07 16:50 GMT-04:00 Jussi Lahtinen : > > Gambas wiki says gb.qt4 and the sub components needs all Qt4 libraries >= >>> Qt 4.5. So, 4.6 should be fine. >>> >> well remenber that webkit between 4.6 and 4.8 are separated!!!! its not >> so easy i ask again! should be fine!? >> > > I don't understand the issue, both 4.6 and 4.8 satisfies the requirement > (>= 4.5). > errr yes and not! webkit was split from 4.7 so if some calls are fro recent webkit this will raise that! Also you can custom build Linux kernel for older hardware. >>> >> recent kernels removed code for older hardware, the only way its use >> older kernels >> > > Hence "custom build". Recent kernels do not compile the old code, but the > code still exist. > code for older hardware was removed in many componets since 3.4, and since 2.6.18 was the first try, by removin a tvcard ramegrabber support (since that i cannot upgrade now) because they are very rarely used anymore. >>> >> talk by yourself! only the people that pay intenet made a amount of >> statics in the internet as "modern hardware", but mayority of them dont use >> linux, and gambas only runs in linux so ... >> > > Well I guess it depends on how you define modern and old, but I'm quite > sure the decision was based on average user. > that not democracy.. that's only "mayority", i remenber that mayority something in the past said "the sun its the center of the universe"... > > > > Jussi > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Jan 8 23:39:33 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 8 Jan 2018 18:39:33 -0400 Subject: [Gambas-user] Web Cam preview and capture In-Reply-To: References: <43ffc9f8-9079-1e61-e619-5579b1102ed9@code-it.com> Message-ID: i remenber tha tthe webcam componet was very easy to use.. and gstreamer force my system to upgrade and my system use the framegrabber's tv capture cards not compatible today with recent linuxes.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-01-05 10:42 GMT-04:00 mikeB : > Thank you Sir - I'll spend my time hack'n the "GStreamer" - > as I know it can be done but just don't understand how at > the moment:-) > Have a GREAT day, > mikeB > > On 01/05/2018 06:57 AM, Beno?t Minisini wrote: > >> Le 04/01/2018 ? 22:41, mikeB a ?crit : >> >>> eGreetings Gambas World, >>> >>> Would anyone out there happen to have a code snippet or simple >>> Gambas project that reviews/ displays the web cam input and records >>> video with sound - that you're willing to share? >>> >>> I know how to record using ffmpeg but can not find a way to review/ >>> display what it's recording. Also, have spent days looking at the code >>> of "MediaPlayer" from the Gambas farm - it's completely above my head >>> ;-( >>> >>> A BIG THANKS for your consideration, >>> mikeB >>> >>> >> You should use the gb.media component, which is an almost direct >> interface to GStreamer. >> >> So if you find how to do what you want with GStreamer, doing the same >> thing with Gambas should be just a matter of translation between GStreamer >> names and its Gambas equivalents. >> >> Regards, >> >> > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Tue Jan 9 00:38:16 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 9 Jan 2018 01:38:16 +0200 Subject: [Gambas-user] gambas qt4 depends was changes or still can compile in low depends In-Reply-To: References: Message-ID: > I don't understand the issue, both 4.6 and 4.8 satisfies the requirement >> (>= 4.5). >> > errr yes and not! webkit was split from 4.7 so if some calls are fro > recent webkit this will raise that! > I don't know about webkit that much... are you saying 4.7 and above / the splits are not *backward* compatible with 4.5? > Well I guess it depends on how you define modern and old, but I'm quite >> sure the decision was based on average user. >> > that not democracy.. that's only "mayority", i remenber that mayority > something in the past said "the sun its the center of the universe"... > I don't think this is question of right and wrong, like in case of heliocentricity. It's just logical to serve the majority (= more customers). Moreover if you have CPU without SSE2, I don't think you can even use any modern web browsers, etc software. So, not much need for the kernel either. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Tue Jan 9 00:47:25 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 08 Jan 2018 23:47:25 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1220: error select case (format code) In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1220&from=L21haW4- Comment #2 by Beno?t MINISINI: Formatting is correct on my system, so I guess the bug is already fixed in more recent versions. Beno?t MINISINI changed the state of the bug to: Fixed. From owlbrudder at gmail.com Tue Jan 9 02:29:28 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Tue, 09 Jan 2018 11:29:28 +1000 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: References: <1514684664.12546.82.camel@gmail.com> Message-ID: <1515461368.4277.95.camel@gmail.com> On Mon, 2018-01-08 at 12:55 +0100, Beno?t Minisini wrote: > Le 31/12/2017 ? 02:44, Doug Hutcheson a ?crit : > > Hi everyone. > > > > I have successfully connected to my PostgreSQL database and the > > field > > count in the Result from my query is correct, but all my attempts > > to > > extract data from the fields have failed. I am cobbling together > > code > > from the wiki and from other posts here, but I am still missing > > something. > > > > The table I am reading from has exactly one row and 35 fields. The > > first > > field is named txtMasterDatabase. > > > > My code declares a Field and a Result as follows: > > Dim $Field As ResultField > > Dim $Result As Result > > > > The query works correctly: > > $Query = "Select * From abpa.tblParameters" > > $Result = $Con.Exec($Query) > > > > The field count is correct - 35: > > Message("Fields count = " & $Result.Fields.Count) > > > > Now I try to loop through the fields in the result: > > For Each $Field In $Result.Fields > > Message($Field.Name) > > Next > > > > The problem occurs on the For Each line in that the Basic IDE > > displays > > an error at this point: > > Unknown field: txtMasterDatabase in FRMStart:41 > > > > As I said above, the first field in the tuple is named > > txtMasterDatabase, so Gambas is at least seeing it. Why is it > > telling me > > the field is unknown? > > > > Thanks for any help and Happy New Year, > > Doug > > > > It should be fixed with commit > https://gitlab.com/gambas/gambas/commit/36132fa99abeba8549b127a1438d5 > b3d29d88f2c. > > Regards, > > Thank you Beno?t - I will test it today. Regards, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From owlbrudder at gmail.com Tue Jan 9 03:31:18 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Tue, 09 Jan 2018 12:31:18 +1000 Subject: [Gambas-user] Extracting fields from a Result In-Reply-To: <1515461368.4277.95.camel@gmail.com> References: <1514684664.12546.82.camel@gmail.com> <1515461368.4277.95.camel@gmail.com> Message-ID: <1515465078.4277.104.camel@gmail.com> On Tue, 2018-01-09 at 11:29 +1000, Doug Hutcheson wrote: > On Mon, 2018-01-08 at 12:55 +0100, Beno?t Minisini wrote: > > Le 31/12/2017 ? 02:44, Doug Hutcheson a ?crit : > > > Hi everyone. > > > > > > I have successfully connected to my PostgreSQL database and the > > > field > > > count in the Result from my query is correct, but all my attempts > > > to > > > extract data from the fields have failed. I am cobbling together > > > code > > > from the wiki and from other posts here, but I am still missing > > > something. > > > > > > The table I am reading from has exactly one row and 35 fields. > > > The first > > > field is named txtMasterDatabase. > > > > > > My code declares a Field and a Result as follows: > > > Dim $Field As ResultField > > > Dim $Result As Result > > > > > > The query works correctly: > > > $Query = "Select * From abpa.tblParameters" > > > $Result = $Con.Exec($Query) > > > > > > The field count is correct - 35: > > > Message("Fields count = " & $Result.Fields.Count) > > > > > > Now I try to loop through the fields in the result: > > > For Each $Field In $Result.Fields > > > Message($Field.Name) > > > Next > > > > > > The problem occurs on the For Each line in that the Basic IDE > > > displays > > > an error at this point: > > > Unknown field: txtMasterDatabase in FRMStart:41 > > > > > > As I said above, the first field in the tuple is named > > > txtMasterDatabase, so Gambas is at least seeing it. Why is it > > > telling me > > > the field is unknown? > > > > > > Thanks for any help and Happy New Year, > > > Doug > > > > > > > It should be fixed with commit > > https://gitlab.com/gambas/gambas/commit/36132fa99abeba8549b127a1438 > > d5b3d29d88f2c. > > > > Regards, > > > Thank you Beno?t - I will test it today. > Regards, > Doug An excellent job - it works perfectly! The more of Gambas I learn, the more I like it. Kind regards, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue Jan 9 05:27:13 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 9 Jan 2018 00:27:13 -0400 Subject: [Gambas-user] gambas qt4 depends was changes or still can compile in low depends In-Reply-To: References: Message-ID: 2018-01-08 19:38 GMT-04:00 Jussi Lahtinen : > > I don't understand the issue, both 4.6 and 4.8 satisfies the requirement >>> (>= 4.5). >>> >> errr yes and not! webkit was split from 4.7 so if some calls are fro >> recent webkit this will raise that! >> > > I don't know about webkit that much... are you saying 4.7 and above / the > splits are not *backward* compatible with 4.5? > yeah Moreover if you have CPU without SSE2, I don't think you can even use any > modern web browsers, etc software. So, not much need for the kernel either. > i have a K6-III not afected by the stpudid meldon and spectre problem, and that said much.. i browse web with my k6.. ofcourse not very heavy and not necesary webs.... for what? > > > > Jussi > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bkv at mailbox.org Tue Jan 9 10:52:03 2018 From: bkv at mailbox.org (bkv at mailbox.org) Date: Tue, 9 Jan 2018 10:52:03 +0100 (CET) Subject: [Gambas-user] Select statement in Table property In-Reply-To: References: <448419913.17277.1515354022071@office.mailbox.org> Message-ID: <1541475670.17047.1515491524409@office.mailbox.org> Yes, the idea was to set it statically in the IDE. I shall try to do it in code instead. Regards, Bj?rn > On January 8, 2018 at 2:35 AM T Lee Davidson wrote: > > > You're talking about setting that property statically from the IDE, correct? > > You may have to do it in code. > > From http://gambaswiki.org/wiki/comp/gb.db.form/datasource/table: > 'This property can take any SQL "SELECT" request actually. If the string does not begin with "SELECT ", it is taken as a table > name.' > > > -- > Lee > > > On 01/07/2018 02:40 PM, bkv at mailbox.org wrote: > > Hi > > > > I want to use a SQL SELECT instead of table name in the Table property of the Datasource object, but the property field does > > not take input from the keyboard. I may select a table name, but it won't let me type into the property field. I have done it > > on another form, though. Any ideas? > > > > Regards, > > > > Bj?rn > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net From owlbrudder at gmail.com Wed Jan 10 08:46:54 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Wed, 10 Jan 2018 17:46:54 +1000 Subject: [Gambas-user] Errors using DataBrowser control In-Reply-To: <1515299109.4277.85.camel@gmail.com> References: <1515227241.4277.83.camel@gmail.com> <1515299109.4277.85.camel@gmail.com> Message-ID: <1515570414.4277.133.camel@gmail.com> On Sun, 2018-01-07 at 14:25 +1000, Doug Hutcheson wrote: > On Sat, 2018-01-06 at 10:08 +0100, Beno?t Minisini wrote: > > Le 06/01/2018 ? 09:27, Doug Hutcheson a ?crit : > > > Hi everyone. > > > > > > I am having difficulty with my DataBrowser on a PostgreSQL table. > > > I have > > > attached the source of my mini project, an SQL dump of the table, > > > and > > > two images showing the error when I click the delete button and > > > when I > > > click the save button. In both cases it is complaining about a > > > null > > > object, but I cannot work out which object this refers to. I was > > > able to > > > add the record "Fungusbungle" using the DataBrowser, but now I > > > can't use > > > the same control to get rid of it again. > > > > > > I am sure it is my lack of understanding which is causing these > > > problems. Any help would be appreciated. > > > > > > Thanks everyone for the great help in getting me up and running > > > with the > > > Connection object. > > > > > > Kind regards, > > > Doug > > > > > > > How did you create the 'tblparameters2.sql' file? It is not a text > > file. > > > Finger fumble when creating it. Here is the version I meant to > provide. > Sorry, > Doug Hi everyone. Just to complete the picture with my DataBrowser problems, I have attached three images: after trying to edit, to save and to delete a record. In all cases the control was in edit mode. Adding is unreliable in that it reports "You must fill in all mandatory fields" but the record is added. It also sometimes terminates the application, but on running the application again, the record is present. I am not recording these as bugs, because I expect the error to be in my code, or in my understanding of how things are supposed to work, rather than in Gambas itself. Please let me know if you would prefer them as bug reports. Kind regards, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas after trying to delete record.png Type: image/png Size: 11103 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas after trying to edit record.png Type: image/png Size: 7473 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas after trying to save record.png Type: image/png Size: 7028 bytes Desc: not available URL: From daniel.blanch.bataller at gmail.com Wed Jan 10 12:43:54 2018 From: daniel.blanch.bataller at gmail.com (Daniel Blanch Bataller) Date: Wed, 10 Jan 2018 12:43:54 +0100 Subject: [Gambas-user] upgrade gambas in selected directory (upgrade script) Message-ID: <942C53EC-E1D9-4D80-9711-C77D3D973187@gmail.com> HI, I would like to 'make install' latest version of gambas in an specific directory, let?s say /opt/gambas/3.10 moreover I would like to just install the ?runtime? not the development enviroment. This is because I need to make an upgrade script, so I do have to mantain previous version for a while. The idea is to tar.gz the /opt/gambas/3.10 directory and install it in the destination machine. When I do have the newer version I?ll change /usr/bin/gambas3 and others to point to the new version. Is there anyway to do so? Regards, D. From t.lee.davidson at gmail.com Wed Jan 10 18:02:58 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 10 Jan 2018 12:02:58 -0500 Subject: [Gambas-user] Errors using DataBrowser control In-Reply-To: <1515570414.4277.133.camel@gmail.com> References: <1515227241.4277.83.camel@gmail.com> <1515299109.4277.85.camel@gmail.com> <1515570414.4277.133.camel@gmail.com> Message-ID: <33d18d09-d3d9-8c8c-9876-21aee6994968@gmail.com> On 01/10/2018 02:46 AM, Doug Hutcheson wrote: > Hi everyone. > > Just to complete the picture with my DataBrowser problems, I have attached three images: after trying to edit, to save and to > delete a record. In all cases the control was in edit mode. Adding is unreliable in that it?reports "You must fill in all > mandatory fields" but the record is added. It also sometimes terminates the application, but on running the application again, > the record is present. > > I am not recording these as bugs, because I expect the error to be in my code, or in my understanding of how things are supposed > to work, rather than in Gambas itself. Please let me know if you would prefer them as bug reports. > > Kind regards, > Doug The DataBrowser has a handy toolbar that uses its own code. So, if you're using that alone, whatever you might have in your code is irrelevant. Since I have since removed the PostgreSQL server, I just now tested on a MySQL data table with the DataBrowser in edit mode. It works just as one would expect. No problem. I'd say the DataSource is still having a bit of a problem with the PostgreSQL resource. -- Lee From owlbrudder at gmail.com Wed Jan 10 23:17:35 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Thu, 11 Jan 2018 08:17:35 +1000 Subject: [Gambas-user] Errors using DataBrowser control In-Reply-To: <33d18d09-d3d9-8c8c-9876-21aee6994968@gmail.com> References: <1515227241.4277.83.camel@gmail.com> <1515299109.4277.85.camel@gmail.com> <1515570414.4277.133.camel@gmail.com> <33d18d09-d3d9-8c8c-9876-21aee6994968@gmail.com> Message-ID: <1515622655.4277.139.camel@gmail.com> On Wed, 2018-01-10 at 12:02 -0500, T Lee Davidson wrote: > On 01/10/2018 02:46 AM, Doug Hutcheson wrote: > > Hi everyone. > > > > Just to complete the picture with my DataBrowser problems, I have > > attached three images: after trying to edit, to save and to > > delete a record. In all cases the control was in edit mode. Adding > > is unreliable in that it reports "You must fill in all > > mandatory fields" but the record is added. It also sometimes > > terminates the application, but on running the application again, > > the record is present. > > > > I am not recording these as bugs, because I expect the error to be > > in my code, or in my understanding of how things are supposed > > to work, rather than in Gambas itself. Please let me know if you > > would prefer them as bug reports. > > > > Kind regards, > > Doug > > The DataBrowser has a handy toolbar that uses its own code. So, if > you're using that alone, whatever you might have in your code > is irrelevant. Since I have since removed the PostgreSQL server, I > just now tested on a MySQL data table with the DataBrowser in > edit mode. It works just as one would expect. No problem. > > I'd say the DataSource is still having a bit of a problem with the > PostgreSQL resource. > > > Thanks Lee. I will do some more investigating on that basis Cheers, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail.gambaspi at gmail.com Fri Jan 12 01:00:56 2018 From: mail.gambaspi at gmail.com (Zainudin Ahmad) Date: Fri, 12 Jan 2018 07:00:56 +0700 Subject: [Gambas-user] upgrade gambas in selected directory (upgrade script) In-Reply-To: <942C53EC-E1D9-4D80-9711-C77D3D973187@gmail.com> References: <942C53EC-E1D9-4D80-9711-C77D3D973187@gmail.com> Message-ID: I have do this when playing gambas with multi version(Recommended way, because this not change any code or string in source code and still use the same libs, environtment and DE). # Command Installation for playing Gambas Multi version ./reconf-all LLVM_CONFIG=llvm-config-3.5 ./configure -C --prefix=/usr/local/gambas3/3.?.? --quiet make --quiet sudo make install (if you want to replace you must remove first, rm -r /usr/local/gambas3/3.?.?) before run that command change 3.?.? with gambas version what you want to install( like 3.10.90 or 3.8.4.) # Create Link /usr/local/bin/gambas3 ---> /usr/local/gambas3/3.10.90/bin/gambas3 /usr/local/bin/gbc3 ---> /usr/local/gambas3/3.10.90/bin/gbc3 /usr/local/bin/??? ---> /usr/local/gambas3/3.10.90/bin/??? (gbx3, gbi3, gbs3 and other binary/gambas file) you must change all link if you want switch to other version. # Copy File Copy file like desktop file and other to right directory (I hope do you understand what I meant) and just using the newer version(if you have 3.10 and 3.8 installed use 3.10 file). # Other - Make sure there is no gambas binary (like gbr3,gbx3 and other) in /usr/bin/ directory (remove that binary if exist) - Make sure there is no gambas component/library in /usr/lib/gambas3 directory (remove this directory if exist) - Don't run gambas3 ide with older or newer version runtime, So gambas3(3.8.4) ide must run with gambas 3.8.4 runtime and component. - If you want to install gambas3 like from ppa or ubuntu repo you should remove all link file(like gbr3,gbx3, gambas3 and other) in /usr/loca/bin directory. you can still keep /usr/local/gambas3/* all file :) . there is any an issue when you run newer gambas version like 3.10 after that you run gambas 3.6.0 or other, the toolbar looks messy. but you can still use it (I hope gambas have /home/user/.config/gambas3/gambas3.conf in each version like gambas3.10.conf or maybe any better solution). good luck. On Wed, Jan 10, 2018 at 6:43 PM, Daniel Blanch Bataller < daniel.blanch.bataller at gmail.com> wrote: > HI, > > I would like to 'make install' latest version of gambas in an specific > directory, let?s say /opt/gambas/3.10 > > moreover I would like to just install the ?runtime? not the development > enviroment. > > This is because I need to make an upgrade script, so I do have to mantain > previous version for a while. > > The idea is to tar.gz the /opt/gambas/3.10 directory and install it in > the destination machine. > > When I do have the newer version I?ll change /usr/bin/gambas3 and others > to point to the new version. > > Is there anyway to do so? > > Regards, > > D. > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.blanch.bataller at gmail.com Fri Jan 12 10:47:28 2018 From: daniel.blanch.bataller at gmail.com (Daniel Blanch Bataller) Date: Fri, 12 Jan 2018 10:47:28 +0100 Subject: [Gambas-user] upgrade gambas in selected directory (upgrade script) In-Reply-To: References: <942C53EC-E1D9-4D80-9711-C77D3D973187@gmail.com> Message-ID: Thank you very much for your detailed and prompt answer. Cheers, D. > El 12 ene 2018, a las 1:00, Zainudin Ahmad escribi?: > > I have do this when playing gambas with multi version(Recommended way, because this not change any code or string in source code and still use the same libs, environtment and DE). > > # Command Installation for playing Gambas Multi version > > ./reconf-all > LLVM_CONFIG=llvm-config-3.5 ./configure -C --prefix=/usr/local/gambas3/3.?.? --quiet > make --quiet > sudo make install (if you want to replace you must remove first, rm -r /usr/local/gambas3/3.?.?) > > before run that command change 3.?.? with gambas version what you want to install( like 3.10.90 or 3.8.4.) > > # Create Link > > /usr/local/bin/gambas3 ---> /usr/local/gambas3/3.10.90/bin/gambas3 > /usr/local/bin/gbc3 ---> /usr/local/gambas3/3.10.90/bin/gbc3 > /usr/local/bin/??? ---> /usr/local/gambas3/3.10.90/bin/??? (gbx3, gbi3, gbs3 and other binary/gambas file) > > you must change all link if you want switch to other version. > > # Copy File > > Copy file like desktop file and other to right directory (I hope do you understand what I meant) and just using the newer version(if you have 3.10 and 3.8 installed use 3.10 file). > > # Other > > - Make sure there is no gambas binary (like gbr3,gbx3 and other) in /usr/bin/ directory (remove that binary if exist) > - Make sure there is no gambas component/library in /usr/lib/gambas3 directory (remove this directory if exist) > - Don't run gambas3 ide with older or newer version runtime, So gambas3(3.8.4) ide must run with gambas 3.8.4 runtime and component. > - If you want to install gambas3 like from ppa or ubuntu repo you should remove all link file(like gbr3,gbx3, gambas3 and other) in /usr/loca/bin directory. you can still keep /usr/local/gambas3/* all file :) . > > there is any an issue when you run newer gambas version like 3.10 after that you run gambas 3.6.0 or other, the toolbar looks messy. but you can still use it (I hope gambas have /home/user/.config/gambas3/gambas3.conf in each version like gambas3.10.conf or maybe any better solution). > > good luck. > > On Wed, Jan 10, 2018 at 6:43 PM, Daniel Blanch Bataller > wrote: > HI, > > I would like to 'make install' latest version of gambas in an specific directory, let?s say /opt/gambas/3.10 > > moreover I would like to just install the ?runtime? not the development enviroment. > > This is because I need to make an upgrade script, so I do have to mantain previous version for a while. > > The idea is to tar.gz the /opt/gambas/3.10 directory and install it in the destination machine. > > When I do have the newer version I?ll change /usr/bin/gambas3 and others to point to the new version. > > Is there anyway to do so? > > Regards, > > D. > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From owlbrudder at gmail.com Sun Jan 14 01:23:25 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Sun, 14 Jan 2018 10:23:25 +1000 Subject: [Gambas-user] Configuration problems Message-ID: <1515889405.8449.25.camel@gmail.com> Hi everyone. I have been trying to get my configuration correct. Everything works, but at the end of ./configure -C I see this: || THESE COMPONENTS ARE DISABLED: || - gb.jit || - gb.sdl2 || - gb.sdl2.audio I read the wiki at http://gambaswiki.org/wiki/install#t6 and changed my configure command to 'env LLVM-CONFIG=llvm-config-3.5 ./configure -C', but the problem is still there. The wiki page suggests looking in the INSTALL file for more configuration suggestions, but the INSTALL file just says to refer to the wiki. Should I try to resolve these issues and, if so, how? Thanks for any help, Doug From jussi.lahtinen at gmail.com Sun Jan 14 02:37:03 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 14 Jan 2018 03:37:03 +0200 Subject: [Gambas-user] Configuration problems In-Reply-To: <1515889405.8449.25.camel@gmail.com> References: <1515889405.8449.25.camel@gmail.com> Message-ID: They aren't mandatory components. You can compile Gambas wihtout them. However if you want to use jit or sdl you need to resolve those issues. Anyone to be able to help further you need to tell us what is your system exactly. Jussi On Sun, Jan 14, 2018 at 2:23 AM, Doug Hutcheson wrote: > Hi everyone. > > I have been trying to get my configuration correct. Everything works, > but at the end of ./configure -C I see this: > > || THESE COMPONENTS ARE DISABLED: > || - gb.jit > || - gb.sdl2 > || - gb.sdl2.audio > > I read the wiki at http://gambaswiki.org/wiki/install#t6 and changed my > configure command to 'env LLVM-CONFIG=llvm-config-3.5 ./configure -C', > but the problem is still there. > > The wiki page suggests looking in the INSTALL file for more > configuration suggestions, but the INSTALL file just says to refer to > the wiki. > > Should I try to resolve these issues and, if so, how? > > Thanks for any help, > Doug > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From owlbrudder at gmail.com Sun Jan 14 03:20:01 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Sun, 14 Jan 2018 12:20:01 +1000 Subject: [Gambas-user] Configuration problems In-Reply-To: References: <1515889405.8449.25.camel@gmail.com> Message-ID: <1515896401.8449.57.camel@gmail.com> On Sun, 2018-01-14 at 03:37 +0200, Jussi Lahtinen wrote: > They aren't mandatory components. You can compile Gambas wihtout > them. However if you want to use jit or sdl you need to resolve those > issues. Anyone to be able to help further you need to tell us what is > your system exactly. > > > Jussi > > On Sun, Jan 14, 2018 at 2:23 AM, Doug Hutcheson > wrote: > > Hi everyone. > > > > > > > > I have been trying to get my configuration correct. Everything > > works, > > > > but at the end of ./configure -C I see this: > > > > > > > > || THESE COMPONENTS ARE DISABLED: > > > > || - gb.jit > > > > || - gb.sdl2 > > > > || - gb.sdl2.audio > > > > > > > > I read the wiki at http://gambaswiki.org/wiki/install#t6 and > > changed my > > > > configure command to 'env LLVM-CONFIG=llvm-config-3.5 ./configure > > -C', > > > > but the problem is still there. > > > > > > > > The wiki page suggests looking in the INSTALL file for more > > > > configuration suggestions, but the INSTALL file just says to refer > > to > > > > the wiki. > > > > > > > > Should I try to resolve these issues and, if so, how? > > > > > > > > Thanks for any help, > > > > Doug > > > > > > > > -------------------------------------------------- > > > > > > > > This is the Gambas Mailing List > > > > https://lists.gambas-basic.org/listinfo/user > > > > > > > > Hosted by https://www.hostsharing.net > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > Thanks Jussi. Here is my system info: [System] Gambas=3.10.90 ce6d6e7e9 (master) OperatingSystem=Linux Kernel=4.14.13-300.fc27.x86_64 Architecture=x86_64 Distribution=redhat Fedora release 27 (Twenty Seven) Desktop=GNOME Theme=Gtk Language=en_AU.UTF-8 Memory=15860M [Libraries] Cairo=libcairo.so.2.11510.0 DBus=libdbus-1.so.3.19.3 GStreamer=libgstreamer-1.0.so.0.1204.0 GTK+2=libgtk-x11-2.0.so.0.2400.31 OpenGL=libGL.so.1.0.0 SQLite=libsqlite3.so.0.8.6 [Environment] BASH_FUNC_module%%=() { eval `/usr/bin/modulecmd bash $*` } BASH_FUNC_scl%%=() { if [ "$1" = "load" -o "$1" = "unload" ]; then eval "module $@"; else /usr/bin/scl "$@"; fi } COLORTERM=truecolor CVS_RSH=ssh DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DESKTOP_SESSION=gnome-xorg DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=gnome-xorg GDM_LANG=en_AU.UTF-8 GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESKTOP_SESSION_ID=this-is-deprecated HISTCONTROL=ignoredups HISTSIZE=1000 HOME= HOSTNAME= IMSETTINGS_INTEGRATE_DESKTOP=yes IMSETTINGS_MODULE=none JOURNAL_STREAM=9:44770 KDEDIRS=/usr LANG=en_AU.UTF-8 LESSOPEN=||/usr/bin/lesspipe.sh %s LOADEDMODULES=python-sphinx/python3-sphinx LOGNAME= LS_COLORS=rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38;5;13:do= 38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=01; 05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw =48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;40:*.tar =38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5; 9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.t zo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:* .gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5 ;9:*.tzst=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*. tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38; 5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*. cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.wim=38;5;9:*.swm=38; 5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5; 13:*.mjpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5 ;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5; 13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5 ;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5 ;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5 ;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5; 13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;1 3:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:* .xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38;5;13:*. ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38;5;45:*.m id=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.o gg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.oga=38;5;45:*.opus=38;5;45:*.sp x=38;5;45:*.xspf=38;5;45: MAIL=/var/spool/mail/ MODULEPATH=/etc/scl/modulefiles:/etc/scl/modulefiles:/usr/share/Modules /modulefiles:/etc/modulefiles:/usr/share/modulefiles MODULESHOME=/usr/share/Modules OLDPWD=/Downloads/MySql PATH=/usr/libexec/python3-sphinx:/usr/lib64/qt- 3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/ sbin:/.local/bin:/bin PWD=/Downloads/Gambas/gambasdevel QTDIR=/usr/lib64/qt-3.3 QTINC=/usr/lib64/qt-3.3/include QTLIB=/usr/lib64/qt-3.3/lib QT_IM_MODULE=xim SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/7782,unix/unix:/tmp/.ICE- unix/7782 SHELL=/bin/bash SHLVL=2 SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass SSH_AUTH_SOCK=/run/user/1000/keyring/ssh S_COLORS=auto TERM=xterm-256color TZ=:/etc/localtime USER= USERNAME= VTE_VERSION=5002 WINDOWID=79691782 WINDOWPATH=2 XAUTHORITY=/run/user/1000/gdm/Xauthority XDG_CURRENT_DESKTOP=GNOME XDG_DATA_DIRS=/.local/share/flatpak/exports/share/:/var/lib/flatp ak/exports/share/:/usr/local/share/:/usr/share/ XDG_MENU_PREFIX=gnome- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_DESKTOP=gnome-xorg XDG_SESSION_ID=2 XDG_SESSION_TYPE=x11 XDG_VTNR=2 XMODIFIERS=@im=none _=/usr/bin/gambas3 _LMFILES_=/usr/share/modulefiles/python-sphinx/python3-sphinx -------------- next part -------------- An HTML attachment was scrubbed... URL: From owlbrudder at gmail.com Sun Jan 14 03:46:41 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Sun, 14 Jan 2018 12:46:41 +1000 Subject: [Gambas-user] Behaviour of built-in buttons of DataBrowser Message-ID: <1515898001.8449.62.camel@gmail.com> Hi everyone. I'm on Fedora 27 using the latest gambas3 from the git repository - full system details at the end of this email As I plan to use Gambas for data-oriented applications, it is important to me to understand how all the data-aware controls work. At present I am having issues with the DataBrowser as follows: 1. Form freezes when ?Enter? is pressed in last row of data. Explanation: During an edit or view session on a MySql table, or a PostgreSQL table, if I navigate to the right-most column of the last row of data and press Enter, the form freezes and has to be dismissed using the Stop button in the IDE. This does not happen on any other row of data. If the data in the last row were changed, the change is correctly transmitted to the database even though the form has frozen. 2. 'Editable? DataBrowser reports numerous null objects when opening a larger PostgreSQL table. Explanation: When opening a PostgreSQL table containing many rows (tested with 180 rows) in an ?Editable? DataBrowser, the control displays ?DataView.TableView_Data.420: Null Object? for all visible rows. Navigating toward the beginning of the table causes normal information to be displayed eventually. At this point, navigating to the end of the table again sees all data displayed normally. This behaviour is not seen when opening a PostgreSQL table with few records (eg tested with a table containing only 12 rows). See attachment. 3. Attempt to delete from non-editable DataBrowser using a PostgreSQL table throws errors and locks form. Setup: Create a DataBrowser on a PostgreSQL table containing mixed-case column names. With the DataBrowser property ?Editable? set to False, if the ?Delete? button of the control is clicked, error messages relating to the mixed- case columns are displayed. The form becomes unresponsive and must be dismissed by the ?Stop? button in the IDE. This does not happen when using a MySql table with mixed-case column names; in this case the chosen row is deleted as expected. See attachment. 4. ?New? button seems inoperative. This one I m sure is due to my lack of understanding, but I can't work it out. Explanation: - If the DataBrowser control ?Editable? property is ?False?, clicking the ?New? button does not open a new row to edit. - If the DataBrowser control ?Editable? property is ?True?, a new row is always available to edit and clicking the ?New? button does not change this. I expected the behaviour would be to toggle between presenting a new row and not presenting a new row. I have attached everything I believe is needed to reproduce the problems, except for the larger PostgreSQL table which contains live personal data. The project tar is on my Google Drive at https://drive.google.com/open?id=1qwmukGeA VEQK73BsmFmx7L9tIRkU11FJ as it was too big to get by the mailecop. I am not sure at which point I should be raising bug reports, but the informa tion on http://gambaswiki.org/wiki/doc/report says "If you cannot solve your problem, first try to ask on the mailing list. Maybe someone could help you, who knows ?", so here I am. As always, any help would be appreciated. Kind regards, Doug ------------------------------------------ ----------------------------- [System] Gambas=3.10.90 ce6d6e7e9 (master) O peratingSystem=Linux Kernel=4.14.13-300.fc27.x86_64 Architecture=x86_64 Di stribution=redhat Fedora release 27 (Twenty Seven) Desktop=GNOME Theme=Gt k Language=en_AU.UTF-8 Memory=15860M [Libraries] Cairo=libcairo.so.2.11510. 0 DBus=libdbus-1.so.3.19.3 GStreamer=libgstreamer-1.0.so.0.1204.0 GTK+2=li bgtk-x11-2.0.so.0.2400.31 OpenGL=libGL.so.1.0.0 SQLite=libsqlite3.so.0.8. 6 [Environment] BASH_FUNC_module%%=() { eval `/usr/bin/modulecmd bash $*` } BASH_FUNC_scl%%=() { if [ "$1" = "load" -o "$1" = "unload" ]; then eval "module $@"; else /usr/bin/scl "$@"; fi } COLORTERM=truecolor CVS_RS H=ssh DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DESKTOP_SESSI ON=gnome-xorg DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=gnome-xorg GDM_LANG=en_AU .UTF-8 GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESK TOP_SESSION_ID=this-is-deprecated HISTCONTROL=ignoredups HISTSIZE=1000 HOM E= HOSTNAME= IMSETTINGS_INTEGRATE_DESKTOP=yes IMSETTINGS_M ODULE=none JOURNAL_STREAM=9:44770 KDEDIRS=/usr LANG=en_AU.UTF-8 LESSOPEN=|| /usr/bin/lesspipe.sh %s LOADEDMODULES=python-sphinx/python3-sphinx LOGNAM E= LS_COLORS=rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38; 5;13:do= 38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5; 9:mi=01; 05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38; 5;226:tw =48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5; 40:*.tar =38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.l ha=38;5; 9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38 ;5;9:*.t zo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz= 38;5;9:* .gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*. zst=38;5 ;9:*.tzst=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=3 8;5;9:*. tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:* .ear=38; 5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=3 8;5;9:*. cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.wim=38;5;9:* .swm=38; 5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mj pg=38;5; 13:*.mjpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*. pgm=38;5 ;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.t if=38;5; 13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*. mng=38;5 ;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*. m2v=38;5 ;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*. m4v=38;5 ;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.w mv=38;5; 13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.av i=38;5;1 3:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=3 8;5;13:* .xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38 ;5;13:*. ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38; 5;45:*.m id=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38; 5;45:*.o gg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.oga=38;5;45:*.opus=38;5 ;45:*.sp x=38;5;45:*.xspf=38;5;45: MAIL=/var/spool/mail/ MODULEPATH= /etc/scl/modulefiles:/etc/scl/modulefiles:/usr/share/Modules /modulefile s:/etc/modulefiles:/usr/share/modulefiles MODULESHOME=/usr/share/Modules OLDPWD=/Downloads/MySql PATH=/usr/libexec/python3- sphinx:/usr/lib64/qt- 3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/loca l/sbin:/usr/bin:/usr/ sbin:/.local/bin:/bin PWD=/Downlo ads/Gambas/gambasdevel QTDIR=/usr/lib64/qt-3.3 QTINC=/usr/lib64/qt- 3.3/include QTLIB=/usr/lib64/qt-3.3/lib QT_IM_MODULE=xim SESSION_MANAGER=l ocal/unix:@/tmp/.ICE-unix/7782,unix/unix:/tmp/.ICE- unix/7782 SHELL=/bin/ bash SHLVL=2 SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass SSH_AUTH_S OCK=/run/user/1000/keyring/ssh S_COLORS=auto TERM=xterm-256color TZ=:/etc/ localtime USER= USERNAME= VTE_VERSION=5002 WINDOWID=79691782 WIN DOWPATH=2 XAUTHORITY=/run/user/1000/gdm/Xauthority XDG_CURRENT_DESKTOP=GN OME XDG_DATA_DIRS=/.local/share/flatpak/exports/share/:/var/lib/fl atp ak/exports/share/:/usr/local/share/:/usr/share/ XDG_MENU_PREFIX=gnome - XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_DESKTOP=gnome- xorg XDG_SESSION_ID=2 XDG_SESSION_TYPE=x11 XDG_VTNR=2 XMODIFIERS=@im=none _= /usr/bin/gambas3 _LMFILES_=/usr/share/modulefiles/python-sphinx/python3- sphinx -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas editable DataBrowser showing error messages from larger PostgreSQL table.png Type: image/png Size: 19763 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas when trying to delete PostgreSQL record from DataBrowser.png Type: image/png Size: 68370 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tblParameters.sql Type: application/sql Size: 13617 bytes Desc: not available URL: From patrik at trixon.se Sun Jan 14 07:14:01 2018 From: patrik at trixon.se (Patrik Karlsson) Date: Sun, 14 Jan 2018 07:14:01 +0100 Subject: [Gambas-user] Configuration problems In-Reply-To: <1515896401.8449.57.camel@gmail.com> References: <1515889405.8449.25.camel@gmail.com> <1515896401.8449.57.camel@gmail.com> Message-ID: I recently had a similar/same? problem with SDL2. https://lists.gambas-basic.org/pipermail/user/2018-January/062547.html It was due to changes in SDL and the solution for me was to edit the gambas source before building it. In gb.sdl2/src/audio/main.c, replace FLUIDSYNTH with MID like so: https://git.archlinux.org/svntogit/community.git/tree/trunk/sdl2_mixer.diff?h=packages/gambas3 2018-01-14 3:20 GMT+01:00 Doug Hutcheson : > > > On Sun, 2018-01-14 at 03:37 +0200, Jussi Lahtinen wrote: > > They aren't mandatory components. You can compile Gambas wihtout them. > However if you want to use jit or sdl you need to resolve those issues. > Anyone to be able to help further you need to tell us what is your system > exactly. > > > Jussi > > On Sun, Jan 14, 2018 at 2:23 AM, Doug Hutcheson > wrote: > > Hi everyone. > > I have been trying to get my configuration correct. Everything works, > but at the end of ./configure -C I see this: > > || THESE COMPONENTS ARE DISABLED: > || - gb.jit > || - gb.sdl2 > || - gb.sdl2.audio > > I read the wiki at http://gambaswiki.org/wiki/install#t6 and changed my > configure command to 'env LLVM-CONFIG=llvm-config-3.5 ./configure -C', > but the problem is still there. > > The wiki page suggests looking in the INSTALL file for more > configuration suggestions, but the INSTALL file just says to refer to > the wiki. > > Should I try to resolve these issues and, if so, how? > > Thanks for any help, > Doug > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > > > -------------------------------------------------- > > This is the Gambas Mailing Listhttps://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > > > Thanks Jussi. Here is my system info: > > [System] > Gambas=3.10.90 ce6d6e7e9 (master) > OperatingSystem=Linux > Kernel=4.14.13-300.fc27.x86_64 > Architecture=x86_64 > Distribution=redhat Fedora release 27 (Twenty Seven) > Desktop=GNOME > Theme=Gtk > Language=en_AU.UTF-8 > Memory=15860M > > [Libraries] > Cairo=libcairo.so.2.11510.0 > DBus=libdbus-1.so.3.19.3 > GStreamer=libgstreamer-1.0.so.0.1204.0 > GTK+2=libgtk-x11-2.0.so.0.2400.31 > OpenGL=libGL.so.1.0.0 > SQLite=libsqlite3.so.0.8.6 > > [Environment] > BASH_FUNC_module%%=() { eval `/usr/bin/modulecmd bash $*` > } > BASH_FUNC_scl%%=() { if [ "$1" = "load" -o "$1" = "unload" ]; then > eval "module $@"; > else > /usr/bin/scl "$@"; > fi > } > COLORTERM=truecolor > CVS_RSH=ssh > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > DESKTOP_SESSION=gnome-xorg > DISPLAY=:0 > GB_GUI=gb.qt4 > GDMSESSION=gnome-xorg > GDM_LANG=en_AU.UTF-8 > GJS_DEBUG_OUTPUT=stderr > GJS_DEBUG_TOPICS=JS ERROR;JS LOG > GNOME_DESKTOP_SESSION_ID=this-is-deprecated > HISTCONTROL=ignoredups > HISTSIZE=1000 > HOME= > HOSTNAME= > IMSETTINGS_INTEGRATE_DESKTOP=yes > IMSETTINGS_MODULE=none > JOURNAL_STREAM=9:44770 > KDEDIRS=/usr > LANG=en_AU.UTF-8 > LESSOPEN=||/usr/bin/lesspipe.sh %s > LOADEDMODULES=python-sphinx/python3-sphinx > LOGNAME= > LS_COLORS=rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11: > so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5; > 3:or=48;5;232;38;5;9:mi=01;05;37;41:su=48;5;196;38;5;15:sg= > 48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16: > ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;40:*.tar=38;5; > 9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha= > 38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5; > 9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z= > 38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz= > 38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=38;5;9:* > .bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38; > 5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*. > ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38; > 5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*. > cab=38;5;9:*.wim=38;5;9:*.swm=38;5;9:*.dwm=38;5;9:*.esd=38; > 5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5;13:*.mjpeg=38; > 5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5; > 13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5; > 13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5; > 13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5; > 13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5; > 13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5; > 13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13: > *.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*. > flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*. > gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv= > 38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38;5;13:*.ogx= > 38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38; > 5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5; > 45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45: > *.oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45: > MAIL=/var/spool/mail/ > MODULEPATH=/etc/scl/modulefiles:/etc/scl/modulefiles:/usr/share/ > Modules/modulefiles:/etc/modulefiles:/usr/share/modulefiles > MODULESHOME=/usr/share/Modules > OLDPWD=/Downloads/MySql > PATH=/usr/libexec/python3-sphinx:/usr/lib64/qt-3.3/bin:/ > usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/ > usr/sbin:/.local/bin:/bin > PWD=/Downloads/Gambas/gambasdevel > QTDIR=/usr/lib64/qt-3.3 > QTINC=/usr/lib64/qt-3.3/include > QTLIB=/usr/lib64/qt-3.3/lib > QT_IM_MODULE=xim > SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/7782,unix/unix:/ > tmp/.ICE-unix/7782 > SHELL=/bin/bash > SHLVL=2 > SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > S_COLORS=auto > TERM=xterm-256color > TZ=:/etc/localtime > USER= > USERNAME= > VTE_VERSION=5002 > WINDOWID=79691782 > WINDOWPATH=2 > XAUTHORITY=/run/user/1000/gdm/Xauthority > XDG_CURRENT_DESKTOP=GNOME > XDG_DATA_DIRS=/.local/share/flatpak/exports/share/:/ > var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/ > XDG_MENU_PREFIX=gnome- > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SESSION_DESKTOP=gnome-xorg > XDG_SESSION_ID=2 > XDG_SESSION_TYPE=x11 > XDG_VTNR=2 > XMODIFIERS=@im=none > _=/usr/bin/gambas3 > _LMFILES_=/usr/share/modulefiles/python-sphinx/python3-sphinx > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From owlbrudder at gmail.com Sun Jan 14 07:24:07 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Sun, 14 Jan 2018 16:24:07 +1000 Subject: [Gambas-user] Configuration problems In-Reply-To: References: <1515889405.8449.25.camel@gmail.com> <1515896401.8449.57.camel@gmail.com> Message-ID: <1515911047.8449.63.camel@gmail.com> Thanks Patrik - I will give it a try, Cheers, Doug On Sun, 2018-01-14 at 07:14 +0100, Patrik Karlsson wrote: > I recently had a similar/same? problem with SDL2.https://lists.gambas > -basic.org/pipermail/user/2018-January/062547.html > It was due to changes in SDL and the solution for me was to edit the > gambas source before building it. > In gb.sdl2/src/audio/main.c, replace FLUIDSYNTH with MID like so: > https://git.archlinux.org/svntogit/community.git/tree/trunk/sdl2_mixe > r.diff?h=packages/gambas3 > > > > 2018-01-14 3:20 GMT+01:00 Doug Hutcheson : > > On Sun, 2018-01-14 at 03:37 +0200, Jussi Lahtinen wrote: > > > They aren't mandatory components. You can compile Gambas wihtout > > > them. However if you want to use jit or sdl you need to resolve > > > those issues. Anyone to be able to help further you need to tell > > > us what is your system exactly. > > > > > > > > > Jussi > > > > > > On Sun, Jan 14, 2018 at 2:23 AM, Doug Hutcheson > > .com> wrote: > > > > Hi everyone. > > > > > > > > > > > > > > > > I have been trying to get my configuration correct. Everything > > > > works, > > > > > > > > but at the end of ./configure -C I see this: > > > > > > > > > > > > > > > > || THESE COMPONENTS ARE DISABLED: > > > > > > > > || - gb.jit > > > > > > > > || - gb.sdl2 > > > > > > > > || - gb.sdl2.audio > > > > > > > > > > > > > > > > I read the wiki at http://gambaswiki.org/wiki/install#t6 and > > > > changed my > > > > > > > > configure command to 'env LLVM-CONFIG=llvm-config-3.5 > > > > ./configure -C', > > > > > > > > but the problem is still there. > > > > > > > > > > > > > > > > The wiki page suggests looking in the INSTALL file for more > > > > > > > > configuration suggestions, but the INSTALL file just says to > > > > refer to > > > > > > > > the wiki. > > > > > > > > > > > > > > > > Should I try to resolve these issues and, if so, how? > > > > > > > > > > > > > > > > Thanks for any help, > > > > > > > > Doug > > > > > > > > > > > > > > > > -------------------------------------------------- > > > > > > > > > > > > > > > > This is the Gambas Mailing List > > > > > > > > https://lists.gambas-basic.org/listinfo/user > > > > > > > > > > > > > > > > Hosted by https://www.hostsharing.net > > > > > > > > > > -------------------------------------------------- > > > > > > This is the Gambas Mailing List > > > https://lists.gambas-basic.org/listinfo/user > > > > > > Hosted by https://www.hostsharing.net > > > > Thanks Jussi. Here is my system info: > > > > [System] > > Gambas=3.10.90 ce6d6e7e9 (master) > > OperatingSystem=Linux > > Kernel=4.14.13-300.fc27.x86_64 > > Architecture=x86_64 > > Distribution=redhat Fedora release 27 (Twenty Seven) > > Desktop=GNOME > > Theme=Gtk > > Language=en_AU.UTF-8 > > Memory=15860M > > > > [Libraries] > > Cairo=libcairo.so.2.11510.0 > > DBus=libdbus-1.so.3.19.3 > > GStreamer=libgstreamer-1.0.so.0.1204.0 > > GTK+2=libgtk-x11-2.0.so.0.2400.31 > > OpenGL=libGL.so.1.0.0 > > SQLite=libsqlite3.so.0.8.6 > > > > [Environment] > > BASH_FUNC_module%%=() { eval `/usr/bin/modulecmd bash $*` > > } > > BASH_FUNC_scl%%=() { if [ "$1" = "load" -o "$1" = "unload" ]; then > > eval "module $@"; > > else > > /usr/bin/scl "$@"; > > fi > > } > > COLORTERM=truecolor > > CVS_RSH=ssh > > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > > DESKTOP_SESSION=gnome-xorg > > DISPLAY=:0 > > GB_GUI=gb.qt4 > > GDMSESSION=gnome-xorg > > GDM_LANG=en_AU.UTF-8 > > GJS_DEBUG_OUTPUT=stderr > > GJS_DEBUG_TOPICS=JS ERROR;JS LOG > > GNOME_DESKTOP_SESSION_ID=this-is-deprecated > > HISTCONTROL=ignoredups > > HISTSIZE=1000 > > HOME= > > HOSTNAME= > > IMSETTINGS_INTEGRATE_DESKTOP=yes > > IMSETTINGS_MODULE=none > > JOURNAL_STREAM=9:44770 > > KDEDIRS=/usr > > LANG=en_AU.UTF-8 > > LESSOPEN=||/usr/bin/lesspipe.sh %s > > LOADEDMODULES=python-sphinx/python3-sphinx > > LOGNAME= > > LS_COLORS=rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38;5;13 > > :do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5; > > 9:mi=01;05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196 > > ;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15: > > ex=38;5;40:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.ta > > z=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz > > =38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38; > > 5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.l > > zo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=38;5;9:*.bz2=38;5;9:*.bz= > > 38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38 > > ;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5 > > ;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9 > > :*.rz=38;5;9:*.cab=38;5;9:*.wim=38;5;9:*.swm=38;5;9:*.dwm=38;5;9:*. > > esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5;13:*.mjpeg=38;5 > > ;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=3 > > 8;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.ti > > ff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13 > > :*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38; > > 5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v > > =38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*. > > wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13 > > :*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;1 > > 3:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38; > > 5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac= > > 38;5;45:*.m4a=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*. > > mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45: > > *.oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45: > > MAIL=/var/spool/mail/ > > MODULEPATH=/etc/scl/modulefiles:/etc/scl/modulefiles:/usr/share/Mod > > ules/modulefiles:/etc/modulefiles:/usr/share/modulefiles > > MODULESHOME=/usr/share/Modules > > OLDPWD=/Downloads/MySql > > PATH=/usr/libexec/python3-sphinx:/usr/lib64/qt- > > 3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/ > > usr/sbin:/.local/bin:/bin > > PWD=/Downloads/Gambas/gambasdevel > > QTDIR=/usr/lib64/qt-3.3 > > QTINC=/usr/lib64/qt-3.3/include > > QTLIB=/usr/lib64/qt-3.3/lib > > QT_IM_MODULE=xim > > SESSION_MANAGER=local/unix:@/tmp/.ICE- > > unix/7782,unix/unix:/tmp/.ICE-unix/7782 > > SHELL=/bin/bash > > SHLVL=2 > > SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass > > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > > S_COLORS=auto > > TERM=xterm-256color > > TZ=:/etc/localtime > > USER= > > USERNAME= > > VTE_VERSION=5002 > > WINDOWID=79691782 > > WINDOWPATH=2 > > XAUTHORITY=/run/user/1000/gdm/Xauthority > > XDG_CURRENT_DESKTOP=GNOME > > XDG_DATA_DIRS=/.local/share/flatpak/exports/share/:/var/lib/f > > latpak/exports/share/:/usr/local/share/:/usr/share/ > > XDG_MENU_PREFIX=gnome- > > XDG_RUNTIME_DIR=/run/user/1000 > > XDG_SEAT=seat0 > > XDG_SESSION_DESKTOP=gnome-xorg > > XDG_SESSION_ID=2 > > XDG_SESSION_TYPE=x11 > > XDG_VTNR=2 > > XMODIFIERS=@im=none > > _=/usr/bin/gambas3 > > _LMFILES_=/usr/share/modulefiles/python-sphinx/python3-sphinx > > > > > > -------------------------------------------------- > > > > > > > > This is the Gambas Mailing List > > > > https://lists.gambas-basic.org/listinfo/user > > > > > > > > Hosted by https://www.hostsharing.net > > > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sun Jan 14 16:36:07 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 14 Jan 2018 17:36:07 +0200 Subject: [Gambas-user] Configuration problems In-Reply-To: References: <1515889405.8449.25.camel@gmail.com> <1515896401.8449.57.camel@gmail.com> Message-ID: This is different problem. Doug's problem is with configuration. Probably some dev package is missing or configuration does not find it for some reason. Doug, can you confirm/recheck that all the SDL related dev packages are installed? Jussi On Sun, Jan 14, 2018 at 8:14 AM, Patrik Karlsson wrote: > I recently had a similar/same? problem with SDL2. > https://lists.gambas-basic.org/pipermail/user/2018-January/062547.html > It was due to changes in SDL and the solution for me was to edit the > gambas source before building it. > In gb.sdl2/src/audio/main.c, replace FLUIDSYNTH with MID like so: > https://git.archlinux.org/svntogit/community.git/tree/ > trunk/sdl2_mixer.diff?h=packages/gambas3 > > > 2018-01-14 3:20 GMT+01:00 Doug Hutcheson : > >> >> >> On Sun, 2018-01-14 at 03:37 +0200, Jussi Lahtinen wrote: >> >> They aren't mandatory components. You can compile Gambas wihtout them. >> However if you want to use jit or sdl you need to resolve those issues. >> Anyone to be able to help further you need to tell us what is your system >> exactly. >> >> >> Jussi >> >> On Sun, Jan 14, 2018 at 2:23 AM, Doug Hutcheson >> wrote: >> >> Hi everyone. >> >> I have been trying to get my configuration correct. Everything works, >> but at the end of ./configure -C I see this: >> >> || THESE COMPONENTS ARE DISABLED: >> || - gb.jit >> || - gb.sdl2 >> || - gb.sdl2.audio >> >> I read the wiki at http://gambaswiki.org/wiki/install#t6 and changed my >> configure command to 'env LLVM-CONFIG=llvm-config-3.5 ./configure -C', >> but the problem is still there. >> >> The wiki page suggests looking in the INSTALL file for more >> configuration suggestions, but the INSTALL file just says to refer to >> the wiki. >> >> Should I try to resolve these issues and, if so, how? >> >> Thanks for any help, >> Doug >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List >> https://lists.gambas-basic.org/listinfo/user >> >> Hosted by https://www.hostsharing.net >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing Listhttps://lists.gambas-basic.org/listinfo/user >> >> Hosted by https://www.hostsharing.net >> >> >> Thanks Jussi. Here is my system info: >> >> [System] >> Gambas=3.10.90 ce6d6e7e9 (master) >> OperatingSystem=Linux >> Kernel=4.14.13-300.fc27.x86_64 >> Architecture=x86_64 >> Distribution=redhat Fedora release 27 (Twenty Seven) >> Desktop=GNOME >> Theme=Gtk >> Language=en_AU.UTF-8 >> Memory=15860M >> >> [Libraries] >> Cairo=libcairo.so.2.11510.0 >> DBus=libdbus-1.so.3.19.3 >> GStreamer=libgstreamer-1.0.so.0.1204.0 >> GTK+2=libgtk-x11-2.0.so.0.2400.31 >> OpenGL=libGL.so.1.0.0 >> SQLite=libsqlite3.so.0.8.6 >> >> [Environment] >> BASH_FUNC_module%%=() { eval `/usr/bin/modulecmd bash $*` >> } >> BASH_FUNC_scl%%=() { if [ "$1" = "load" -o "$1" = "unload" ]; then >> eval "module $@"; >> else >> /usr/bin/scl "$@"; >> fi >> } >> COLORTERM=truecolor >> CVS_RSH=ssh >> DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus >> DESKTOP_SESSION=gnome-xorg >> DISPLAY=:0 >> GB_GUI=gb.qt4 >> GDMSESSION=gnome-xorg >> GDM_LANG=en_AU.UTF-8 >> GJS_DEBUG_OUTPUT=stderr >> GJS_DEBUG_TOPICS=JS ERROR;JS LOG >> GNOME_DESKTOP_SESSION_ID=this-is-deprecated >> HISTCONTROL=ignoredups >> HISTSIZE=1000 >> HOME= >> HOSTNAME= >> IMSETTINGS_INTEGRATE_DESKTOP=yes >> IMSETTINGS_MODULE=none >> JOURNAL_STREAM=9:44770 >> KDEDIRS=/usr >> LANG=en_AU.UTF-8 >> LESSOPEN=||/usr/bin/lesspipe.sh %s >> LOADEDMODULES=python-sphinx/python3-sphinx >> LOGNAME= >> LS_COLORS=rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so= >> 38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or= >> 48;5;232;38;5;9:mi=01;05;37;41:su=48;5;196;38;5;15:sg=48; >> 5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48; >> 5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;40:*.tar=38;5;9:*. >> tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38; >> 5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*. >> txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5; >> 9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5; >> 9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=38;5;9:*. >> bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5; >> 9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear= >> 38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9: >> *.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab= >> 38;5;9:*.wim=38;5;9:*.swm=38;5;9:*.dwm=38;5;9:*.esd=38;5;9: >> *.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5;13:*.mjpeg=38;5;13: >> *.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*. >> ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*. >> tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*. >> svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*. >> mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*. >> webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*. >> mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*. >> wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc= >> 38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38; >> 5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5; >> 13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38;5;13:*.ogx=38;5; >> 13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38;5;45:* >> .mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*. >> mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*. >> oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45: >> MAIL=/var/spool/mail/ >> MODULEPATH=/etc/scl/modulefiles:/etc/scl/modulefiles:/usr/ >> share/Modules/modulefiles:/etc/modulefiles:/usr/share/modulefiles >> MODULESHOME=/usr/share/Modules >> OLDPWD=/Downloads/MySql >> PATH=/usr/libexec/python3-sphinx:/usr/lib64/qt-3.3/bin:/usr/ >> lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/ >> sbin:/.local/bin:/bin >> PWD=/Downloads/Gambas/gambasdevel >> QTDIR=/usr/lib64/qt-3.3 >> QTINC=/usr/lib64/qt-3.3/include >> QTLIB=/usr/lib64/qt-3.3/lib >> QT_IM_MODULE=xim >> SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/7782,unix/unix:/t >> mp/.ICE-unix/7782 >> SHELL=/bin/bash >> SHLVL=2 >> SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass >> SSH_AUTH_SOCK=/run/user/1000/keyring/ssh >> S_COLORS=auto >> TERM=xterm-256color >> TZ=:/etc/localtime >> USER= >> USERNAME= >> VTE_VERSION=5002 >> WINDOWID=79691782 >> WINDOWPATH=2 >> XAUTHORITY=/run/user/1000/gdm/Xauthority >> XDG_CURRENT_DESKTOP=GNOME >> XDG_DATA_DIRS=/.local/share/flatpak/exports/share/:/va >> r/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/ >> XDG_MENU_PREFIX=gnome- >> XDG_RUNTIME_DIR=/run/user/1000 >> XDG_SEAT=seat0 >> XDG_SESSION_DESKTOP=gnome-xorg >> XDG_SESSION_ID=2 >> XDG_SESSION_TYPE=x11 >> XDG_VTNR=2 >> XMODIFIERS=@im=none >> _=/usr/bin/gambas3 >> _LMFILES_=/usr/share/modulefiles/python-sphinx/python3-sphinx >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List >> https://lists.gambas-basic.org/listinfo/user >> >> Hosted by https://www.hostsharing.net >> >> > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Sun Jan 14 17:47:59 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 14 Jan 2018 11:47:59 -0500 Subject: [Gambas-user] Behaviour of built-in buttons of DataBrowser In-Reply-To: <1515898001.8449.62.camel@gmail.com> References: <1515898001.8449.62.camel@gmail.com> Message-ID: <1d981f1a-8d56-e537-a22f-87779bbefadf@gmail.com> May have nothing to do with the data issues, but, are you compiling against Qt3 ? -- Lee On 01/13/2018 09:46 PM, Doug Hutcheson wrote: > PATH=...:/usr/lib64/qt-3.3/bin:... > QTDIR=/usr/lib64/qt-3.3 > QTINC=/usr/lib64/qt-3.3/include > QTLIB=/usr/lib64/qt-3.3/lib From t.lee.davidson at gmail.com Sun Jan 14 18:50:50 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 14 Jan 2018 12:50:50 -0500 Subject: [Gambas-user] Behaviour of built-in buttons of DataBrowser In-Reply-To: <1515898001.8449.62.camel@gmail.com> References: <1515898001.8449.62.camel@gmail.com> Message-ID: On 01/13/2018 09:46 PM, Doug Hutcheson wrote: > At present I am having issues with the DataBrowser as follows: > > 1. Form freezes when ?Enter? is pressed in last row of data. Confirmed. On a MySQL table, I get an "Out of bounds" error. > 2. 'Editable? DataBrowser reports numerous null objects when opening a larger PostgreSQL table. Cannot confirm. Works fine on a MySQL table. > 3. Attempt to delete from non-editable DataBrowser using a PostgreSQL table throws errors and locks form. Works on a MySQL table, to my surprise. I incorrectly assumed that setting Editable=False would prevent any modification of the table. Not so. Setting Editable=True has the effect of allowing rows to be edited in-line. > 4. ?New? button seems inoperative. > This one I m sure is due to my lack of understanding, but I can't work it out. > Explanation: > - If the DataBrowser control ?Editable? property is ?False?, clicking the ?New? button does not open a new row to edit. > > - If the DataBrowser control ?Editable? property is ?True?, a new row is always available to edit and clicking the ?New? button does > not change this. > > I expected the behaviour would be to toggle between presenting a new row and not presenting a new row. I would expect the same behaviour as you, but I get the very behaviour you describe. Clicking the New button does have the effect of navigating to the new row but does not highlight it to indicate it as the active row. -- Lee From bugtracker at gambaswiki.org Sun Jan 14 20:59:54 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 14 Jan 2018 19:59:54 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1223: BUG Temporary directory created by Gambas during TASK. Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1223&from=L21haW4- Olivier CRUILLES reported a new bug. Summary ------- BUG Temporary directory created by Gambas during TASK. Type : Bug Priority : Low Gambas version : Master Product : Language Description ----------- Hello, For one of my project I use massively Task creation and destruction (executed as root) and so after a certain time the directory /tmp/gambas.0/ is full of all directories created by each Task but not deleted after they destruction. In another part of my project use constantly the hard drive and the fact that there is more than ~32000 files in /tmp/gambas.0/ is a real bottleneck for me. I have tried to delete each directory in /tmp/gambas.0, one by one, just after the Task linked on is destroyed but it does not work and in the end my main process is killed and quit. Could it be possible that Gambas clean up itself each directory created by a Task after this one is destroyed ? Thank you Olivier System information ------------------ [System] Gambas=3.10.90 ce6d6e7e9 (master) OperatingSystem=Linux Kernel=4.14.11-200.fc26.x86_64 Architecture=x86_64 Distribution=redhat Fedora release 26 (Twenty Six) Desktop=MATE Theme=Breeze Language=fr_FR.utf8 Memory=3942M [Libraries] Cairo=libcairo.so.2.11400.10 DBus=libdbus-1.so.3.19.0 GStreamer=libgstreamer-1.0.so.0.1203.0 GTK+2=libgtk-x11-2.0.so.0.2400.31 OpenGL=libGL.so.1.0.0 SQLite=libsqlite3.so.0.8.6 [Environment] CAPP_BUILD=/Packages/Starter/Build DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=mate GDM_LANG=fr_FR.utf8 GNOME_KEYRING_CONTROL=/.cache/keyring-I0WGCZ GTK_OVERLAY_SCROLLING=0 HISTCONTROL=ignoredups HISTSIZE=1000 HISTTIMEFORMAT=%F %T HOME= HOSTNAME= IMSETTINGS_INTEGRATE_DESKTOP=yes IMSETTINGS_MODULE=none KDEDIRS=/usr LANG=fr_FR.utf8 LESSOPEN=||/usr/bin/lesspipe.sh %s LOGNAME= MAIL=/var/spool/mail/ MATE_DESKTOP_SESSION_ID=this-is-deprecated PAGER=most PATH=/narwhal/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/bin:/usr/local/xaralx/bin PWD= QT_IM_MODULE=xim SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/1456,unix/unix:/tmp/.ICE-unix/1456 SHELL=/bin/bash SHLVL=1 SSH_AGENT_PID=1571 SSH_AUTH_SOCK=/.cache/keyring-I0WGCZ/ssh TERM=dumb TZ=:/etc/localtime USER= XAUTHORITY=/var/run/lightdm//xauthority XDG_CURRENT_DESKTOP=MATE XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=1 XMODIFIERS=@im=none _=/usr/bin/mate-session From bugtracker at gambaswiki.org Sun Jan 14 21:12:57 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 14 Jan 2018 20:12:57 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1224: Add IPC shared memory between Main process and these forks (TASK) Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1224&from=L21haW4- Olivier CRUILLES reported a new bug. Summary ------- Add IPC shared memory between Main process and these forks (TASK) Type : Request Priority : Medium Gambas version : Master Product : Language Description ----------- Hello, I would communicate between the Main Process and all these TASK (Forks) in the both ways in Gambas. I know and I use since long time communication serialized between Task and the Main Process through Events and it works very fine. I found on internet a example of this king of bilateral communication here that could be interesting: http://www.csl.mtu.edu/cs4411.ck/www/NOTES/process/shm/example-1.html Do you think that is possible to implement it in Gambas TASK please ? Thank you Olivier System information ------------------ [System] Gambas=3.10.90 ce6d6e7e9 (master) OperatingSystem=Linux Kernel=4.14.11-200.fc26.x86_64 Architecture=x86_64 Distribution=redhat Fedora release 26 (Twenty Six) Desktop=MATE Theme=Breeze Language=fr_FR.utf8 Memory=3942M [Libraries] Cairo=libcairo.so.2.11400.10 DBus=libdbus-1.so.3.19.0 GStreamer=libgstreamer-1.0.so.0.1203.0 GTK+2=libgtk-x11-2.0.so.0.2400.31 OpenGL=libGL.so.1.0.0 SQLite=libsqlite3.so.0.8.6 [Environment] CAPP_BUILD=/Packages/Starter/Build DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=mate GDM_LANG=fr_FR.utf8 GNOME_KEYRING_CONTROL=/.cache/keyring-I0WGCZ GTK_OVERLAY_SCROLLING=0 HISTCONTROL=ignoredups HISTSIZE=1000 HISTTIMEFORMAT=%F %T HOME= HOSTNAME= IMSETTINGS_INTEGRATE_DESKTOP=yes IMSETTINGS_MODULE=none KDEDIRS=/usr LANG=fr_FR.utf8 LESSOPEN=||/usr/bin/lesspipe.sh %s LOGNAME= MAIL=/var/spool/mail/ MATE_DESKTOP_SESSION_ID=this-is-deprecated PAGER=most PATH=/narwhal/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/bin:/usr/local/xaralx/bin PWD= QT_IM_MODULE=xim SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/1456,unix/unix:/tmp/.ICE-unix/1456 SHELL=/bin/bash SHLVL=1 SSH_AGENT_PID=1571 SSH_AUTH_SOCK=/.cache/keyring-I0WGCZ/ssh TERM=dumb TZ=:/etc/localtime USER= XAUTHORITY=/var/run/lightdm//xauthority XDG_CURRENT_DESKTOP=MATE XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=1 XMODIFIERS=@im=none _=/usr/bin/mate-session From bugtracker at gambaswiki.org Sun Jan 14 22:09:15 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 14 Jan 2018 21:09:15 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1223: BUG Temporary directory created by Gambas during TASK. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1223&from=L21haW4- Comment #1 by Beno?t MINISINI: Strange. Normally the temporary directory of the Gambas process ('/tmp/gambas./') is removed when the task process terminates... Is the task temporary directory empty when your task terminates? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From g4mba5 at gmail.com Sun Jan 14 23:18:18 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 14 Jan 2018 23:18:18 +0100 Subject: [Gambas-user] Behaviour of built-in buttons of DataBrowser In-Reply-To: <1515898001.8449.62.camel@gmail.com> References: <1515898001.8449.62.camel@gmail.com> Message-ID: Le 14/01/2018 ? 03:46, Doug Hutcheson a ?crit?: > Hi everyone. > > I'm on Fedora 27 using the latest gambas3 from the git > repository - > full system details at the end of this email > > As I plan to > use Gambas for data-oriented applications, it is important > to me to > understand how all the data-aware controls work. > > At present I am having > issues with the DataBrowser as follows: > > ... I need: - Your full project source. - A full dump of your database (metadata and data). Thanks. -- Beno?t Minisini From bugtracker at gambaswiki.org Sun Jan 14 23:21:21 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 14 Jan 2018 22:21:21 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1223: BUG Temporary directory created by Gambas during TASK. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1223&from=L21haW4- Comment #2 by Olivier CRUILLES: Hi, Yes, It seems to be all empty but as there is too many tasks created by seconde (more than 100 by sec) so it's difficult to be sure. What I'm sure is ('/tmp/gambas./') grow to around ~32000 and stay with this number of file and it is not cleared if I stop my processes. Olivier CRUILLES changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Sun Jan 14 23:22:35 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 14 Jan 2018 22:22:35 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1223: BUG Temporary directory created by Gambas during TASK. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1223&from=L21haW4- Comment #3 by Beno?t MINISINI: Do you have some little test example that reproduces that behaviour? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From owlbrudder at gmail.com Sun Jan 14 23:47:25 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Mon, 15 Jan 2018 08:47:25 +1000 Subject: [Gambas-user] Behaviour of built-in buttons of DataBrowser In-Reply-To: <1d981f1a-8d56-e537-a22f-87779bbefadf@gmail.com> References: <1515898001.8449.62.camel@gmail.com> <1d981f1a-8d56-e537-a22f-87779bbefadf@gmail.com> Message-ID: <1515970045.8449.98.camel@gmail.com> On Sun, 2018-01-14 at 11:47 -0500, T Lee Davidson wrote: > May have nothing to do with the data issues, but, are you compiling against Qt3 ? > Hi Lee. The system information shows my compiler is using the Gtk theme, so I don't think Qt3 is involved. I am happy to be corrected though - more than willing to learn! Cheers, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From owlbrudder at gmail.com Sun Jan 14 23:49:23 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Mon, 15 Jan 2018 08:49:23 +1000 Subject: [Gambas-user] Behaviour of built-in buttons of DataBrowser In-Reply-To: References: <1515898001.8449.62.camel@gmail.com> Message-ID: <1515970163.8449.100.camel@gmail.com> On Sun, 2018-01-14 at 12:50 -0500, T Lee Davidson wrote: > On 01/13/2018 09:46 PM, Doug Hutcheson wrote: > > At present I am having issues with the DataBrowser as follows: > > > > 1. Form freezes when ?Enter? is pressed in last row of data. > > Confirmed. On a MySQL table, I get an "Out of bounds" error. > > > > 2. 'Editable? DataBrowser reports numerous null objects when > > opening a larger PostgreSQL table. > > Cannot confirm. Works fine on a MySQL table. > > > > 3. Attempt to delete from non-editable DataBrowser using a > > PostgreSQL table throws errors and locks form. > > Works on a MySQL table, to my surprise. I incorrectly assumed that > setting Editable=False would prevent any modification of the > table. Not so. Setting Editable=True has the effect of allowing rows > to be edited in-line. > > > > 4. ?New? button seems inoperative. > > This one I m sure is due to my lack of understanding, but I can't > > work it out. > > Explanation: > > - If the DataBrowser control ?Editable? property is ?False?, > > clicking the ?New? button does not open a new row to edit. > > > > - If the DataBrowser control ?Editable? property is ?True?, a new > > row is always available to edit and clicking the ?New? button does > > not change this. > > > > I expected the behaviour would be to toggle between presenting a > > new row and not presenting a new row. > > I would expect the same behaviour as you, but I get the very > behaviour you describe. Clicking the New button does have the > effect of navigating to the new row but does not highlight it to > indicate it as the active row. > Hi Lee. Thanks very much for checking my work. I am glad to know it is not just me. "8-) Cheers, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Mon Jan 15 00:20:04 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 14 Jan 2018 23:20:04 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1223: BUG Temporary directory created by Gambas during TASK. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1223&from=L21haW4- Comment #4 by Olivier CRUILLES: It should be possible, let me see. Olivier CRUILLES changed the state of the bug to: Accepted. From owlbrudder at gmail.com Mon Jan 15 00:59:24 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Mon, 15 Jan 2018 09:59:24 +1000 Subject: [Gambas-user] Behaviour of built-in buttons of DataBrowser In-Reply-To: References: <1515898001.8449.62.camel@gmail.com> Message-ID: <1515974364.8449.108.camel@gmail.com> On Sun, 2018-01-14 at 23:18 +0100, Beno?t Minisini wrote: > Le 14/01/2018 ? 03:46, Doug Hutcheson a ?crit : > > Hi everyone. > > > > I'm on Fedora 27 using the latest gambas3 from the git > > repository - > > full system details at the end of this email > > > > As I plan to > > use Gambas for data-oriented applications, it is important > > to me to > > understand how all the data-aware controls work. > > > > At present I am having > > issues with the DataBrowser as follows: > > > > > ... > > I need: > > - Your full project source. > - A full dump of your database (metadata and data). > > Thanks. > Hi Beno?t. I have put both tar.gz files on my Google drive, because there is a 512K limit on emails to the list.. The project source was created using Project/Make/Source Archive and can be accessed at https://drive.google.com/open?id=12jQn6CPoc0PKyvOBUN r-xMvXpTN9EOs0 The database was dumped using pg_dumpall -v --quote-all-identifiers -U doug > PostgreSQL_pg_dumpall.sql and then tar -zcvf PostgreSQL_pg_dumpall.sql.tar.gz PostgreSQL_pg_dumpall.sql. It can be accessed at https://drive.google.com/open?id=1qwmukGeAVEQK73BsmFmx7L9tI RkU11FJ Let me know if I need to do anything differently. Kind regards, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From owlbrudder at gmail.com Mon Jan 15 01:06:40 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Mon, 15 Jan 2018 10:06:40 +1000 Subject: [Gambas-user] Configuration problems In-Reply-To: References: <1515889405.8449.25.camel@gmail.com> <1515896401.8449.57.camel@gmail.com> Message-ID: <1515974800.8449.110.camel@gmail.com> Hi Jussi. According to dnf, I have all the development packages: --------------------------------------------------------------------- ------------ [root at womble PostgreSQL_test]# dnf install SDL*devel* Failed to synchronize cache for repo 'region51-chrome-gnome-shell', disabling. Failed to synchronize cache for repo 'graphviz-stable', disabling. Last metadata expiration check: 1:16:21 ago on Mon 15 Jan 2018 08:47:44 AEST. Package SDL-devel-1.2.15-29.fc27.x86_64 is already installed, skipping. Package SDL2-devel-2.0.7-2.fc27.x86_64 is already installed, skipping. Package SDL2_gfx-devel-1.0.3-1.fc27.x86_64 is already installed, skipping. Package SDL2_image-devel-2.0.2-2.fc27.x86_64 is already installed, skipping. Package SDL2_mixer-devel-2.0.2-1.fc27.x86_64 is already installed, skipping. Package SDL2_net-devel-2.0.1-5.fc27.x86_64 is already installed, skipping. Package SDL2_ttf-devel-2.0.14-5.fc27.x86_64 is already installed, skipping. Package SDL_Pango-devel-0.1.2-25.fc27.x86_64 is already installed, skipping. Package SDL_gfx-devel-2.0.25-7.fc27.x86_64 is already installed, skipping. Package SDL_image-devel-1.2.12-17.fc27.x86_64 is already installed, skipping. Package SDL_mixer-devel-1.2.12-14.fc27.x86_64 is already installed, skipping. Package SDL_mng-devel-0.2.7-5.fc27.x86_64 is already installed, skipping. Package SDL_net-devel-1.2.8-11.fc27.x86_64 is already installed, skipping. Package SDL_sound-devel-1.0.3-19.fc27.x86_64 is already installed, skipping. Package SDL_ttf-devel-2.0.11-11.fc27.x86_64 is already installed, skipping. Dependencies resolved. Nothing to do. Complete! --------------------------------------------------------------------- ------------ Is there anything missing from the above listing? Kind regards, Doug On Sun, 2018-01-14 at 17:36 +0200, Jussi Lahtinen wrote: > This is different problem. Doug's problem is with configuration. > Probably some dev package is missing or configuration does not find > it for some reason. > > Doug, can you confirm/recheck that all the SDL related dev packages > are installed? > > > Jussi > > On Sun, Jan 14, 2018 at 8:14 AM, Patrik Karlsson > wrote: > > I recently had a similar/same? problem with SDL2.https://lists.gamb > > as-basic.org/pipermail/user/2018-January/062547.html > > It was due to changes in SDL and the solution for me was to edit > > the gambas source before building it. > > In gb.sdl2/src/audio/main.c, replace FLUIDSYNTH with MID like so: > > https://git.archlinux.org/svntogit/community.git/tree/trunk/sdl2_mi > > xer.diff?h=packages/gambas3 > > > > > > 2018-01-14 3:20 GMT+01:00 Doug Hutcheson : > > > On Sun, 2018-01-14 at 03:37 +0200, Jussi Lahtinen wrote: > > > > They aren't mandatory components. You can compile Gambas > > > > wihtout them. However if you want to use jit or sdl you need to > > > > resolve those issues. Anyone to be able to help further you > > > > need to tell us what is your system exactly. > > > > > > > > > > > > Jussi > > > > > > > > On Sun, Jan 14, 2018 at 2:23 AM, Doug Hutcheson > > > il.com> wrote: > > > > > Hi everyone. > > > > > > > > > > > > > > > > > > > > I have been trying to get my configuration correct. > > > > > Everything works, > > > > > > > > > > but at the end of ./configure -C I see this: > > > > > > > > > > > > > > > > > > > > || THESE COMPONENTS ARE DISABLED: > > > > > > > > > > || - gb.jit > > > > > > > > > > || - gb.sdl2 > > > > > > > > > > || - gb.sdl2.audio > > > > > > > > > > > > > > > > > > > > I read the wiki at http://gambaswiki.org/wiki/install#t6 and > > > > > changed my > > > > > > > > > > configure command to 'env LLVM-CONFIG=llvm-config-3.5 > > > > > ./configure -C', > > > > > > > > > > but the problem is still there. > > > > > > > > > > > > > > > > > > > > The wiki page suggests looking in the INSTALL file for more > > > > > > > > > > configuration suggestions, but the INSTALL file just says to > > > > > refer to > > > > > > > > > > the wiki. > > > > > > > > > > > > > > > > > > > > Should I try to resolve these issues and, if so, how? > > > > > > > > > > > > > > > > > > > > Thanks for any help, > > > > > > > > > > Doug > > > > > > > > > > > > > > > > > > > > -------------------------------------------------- > > > > > > > > > > > > > > > > > > > > This is the Gambas Mailing List > > > > > > > > > > https://lists.gambas-basic.org/listinfo/user > > > > > > > > > > > > > > > > > > > > Hosted by https://www.hostsharing.net > > > > > > > > > > > > > -------------------------------------------------- > > > > > > > > This is the Gambas Mailing List > > > > https://lists.gambas-basic.org/listinfo/user > > > > > > > > Hosted by https://www.hostsharing.net > > > > > > Thanks Jussi. Here is my system info: > > > > > > [System] > > > Gambas=3.10.90 ce6d6e7e9 (master) > > > OperatingSystem=Linux > > > Kernel=4.14.13-300.fc27.x86_64 > > > Architecture=x86_64 > > > Distribution=redhat Fedora release 27 (Twenty Seven) > > > Desktop=GNOME > > > Theme=Gtk > > > Language=en_AU.UTF-8 > > > Memory=15860M > > > > > > [Libraries] > > > Cairo=libcairo.so.2.11510.0 > > > DBus=libdbus-1.so.3.19.3 > > > GStreamer=libgstreamer-1.0.so.0.1204.0 > > > GTK+2=libgtk-x11-2.0.so.0.2400.31 > > > OpenGL=libGL.so.1.0.0 > > > SQLite=libsqlite3.so.0.8.6 > > > > > > [Environment] > > > BASH_FUNC_module%%=() { eval `/usr/bin/modulecmd bash $*` > > > } > > > BASH_FUNC_scl%%=() { if [ "$1" = "load" -o "$1" = "unload" ]; > > > then > > > eval "module $@"; > > > else > > > /usr/bin/scl "$@"; > > > fi > > > } > > > COLORTERM=truecolor > > > CVS_RSH=ssh > > > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > > > DESKTOP_SESSION=gnome-xorg > > > DISPLAY=:0 > > > GB_GUI=gb.qt4 > > > GDMSESSION=gnome-xorg > > > GDM_LANG=en_AU.UTF-8 > > > GJS_DEBUG_OUTPUT=stderr > > > GJS_DEBUG_TOPICS=JS ERROR;JS LOG > > > GNOME_DESKTOP_SESSION_ID=this-is-deprecated > > > HISTCONTROL=ignoredups > > > HISTSIZE=1000 > > > HOME= > > > HOSTNAME= > > > IMSETTINGS_INTEGRATE_DESKTOP=yes > > > IMSETTINGS_MODULE=none > > > JOURNAL_STREAM=9:44770 > > > KDEDIRS=/usr > > > LANG=en_AU.UTF-8 > > > LESSOPEN=||/usr/bin/lesspipe.sh %s > > > LOADEDMODULES=python-sphinx/python3-sphinx > > > LOGNAME= > > > LS_COLORS=rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38;5; > > > 13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;3 > > > 8;5;9:mi=01;05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48 > > > ;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21; > > > 38;5;15:ex=38;5;40:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=3 > > > 8;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma= > > > 38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip= > > > 38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9 > > > :*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=38;5;9: > > > *.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:* > > > .deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:* > > > .sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:* > > > .cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.wim=38;5;9:*. > > > swm=38;5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13 > > > :*.mjpg=38;5;13:*.mjpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm > > > =38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13: > > > *.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38 > > > ;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*. > > > mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38; > > > 5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.v > > > ob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13 > > > :*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38 > > > ;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd > > > =38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38;5;13: > > > *.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38; > > > 5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.m > > > pc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.oga=38;5;45 > > > :*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45: > > > MAIL=/var/spool/mail/ > > > MODULEPATH=/etc/scl/modulefiles:/etc/scl/modulefiles:/usr/share/M > > > odules/modulefiles:/etc/modulefiles:/usr/share/modulefiles > > > MODULESHOME=/usr/share/Modules > > > OLDPWD=/Downloads/MySql > > > PATH=/usr/libexec/python3-sphinx:/usr/lib64/qt- > > > 3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin > > > :/usr/sbin:/.local/bin:/bin > > > PWD=/Downloads/Gambas/gambasdevel > > > QTDIR=/usr/lib64/qt-3.3 > > > QTINC=/usr/lib64/qt-3.3/include > > > QTLIB=/usr/lib64/qt-3.3/lib > > > QT_IM_MODULE=xim > > > SESSION_MANAGER=local/unix:@/tmp/.ICE- > > > unix/7782,unix/unix:/tmp/.ICE-unix/7782 > > > SHELL=/bin/bash > > > SHLVL=2 > > > SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass > > > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > > > S_COLORS=auto > > > TERM=xterm-256color > > > TZ=:/etc/localtime > > > USER= > > > USERNAME= > > > VTE_VERSION=5002 > > > WINDOWID=79691782 > > > WINDOWPATH=2 > > > XAUTHORITY=/run/user/1000/gdm/Xauthority > > > XDG_CURRENT_DESKTOP=GNOME > > > XDG_DATA_DIRS=/.local/share/flatpak/exports/share/:/var/lib > > > /flatpak/exports/share/:/usr/local/share/:/usr/share/ > > > XDG_MENU_PREFIX=gnome- > > > XDG_RUNTIME_DIR=/run/user/1000 > > > XDG_SEAT=seat0 > > > XDG_SESSION_DESKTOP=gnome-xorg > > > XDG_SESSION_ID=2 > > > XDG_SESSION_TYPE=x11 > > > XDG_VTNR=2 > > > XMODIFIERS=@im=none > > > _=/usr/bin/gambas3 > > > _LMFILES_=/usr/share/modulefiles/python-sphinx/python3-sphinx > > > > > > > > > -------------------------------------------------- > > > > > > > > > > > > This is the Gambas Mailing List > > > > > > https://lists.gambas-basic.org/listinfo/user > > > > > > > > > > > > Hosted by https://www.hostsharing.net > > > > > > > > > > > > > > > > -------------------------------------------------- > > > > > > > > This is the Gambas Mailing List > > > > https://lists.gambas-basic.org/listinfo/user > > > > > > > > Hosted by https://www.hostsharing.net > > > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Mon Jan 15 03:01:30 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 15 Jan 2018 02:01:30 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1223: BUG Temporary directory created by Gambas during TASK. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1223&from=L21haW4- Comment #5 by Olivier CRUILLES: I joined the both projects to reproduce the bug: 1- Compile project 'gbAsConsumer' and put the gambas executable in the directory of the other project 'gbAsStatistics' 2- Create both files for logs in /tmp touch /tmp/gbAsStatistics.log touch /tmp/gbAsConsumer.log 3- Open 2 terminals to 'tail' log files: tail -f /tmp/gbAsStatistics.log tail -f /tmp/gbAsConsumer.log 4- Verify if all paths are correct in the .ini file of 'gbAsStatistics' 5- Install 'flow-tools' package to generate Netflow traffic for the project 6- Run 'gbAsStatistics' project 7- Generate Netflow traffic with this command in a terminal: while true ; do echo "Generation trame netflow..." ; flow-gen -V5 -n 500000 | flow-send -x 1000 0/127.0.0.1/9810; echo "Pause..." ; sleep 7; done - By default, 'gbAsStatistics' should listen on port 9810 UDP and start 2 instances of 'gbAsConsumer'. - 'gbAsStatisctics' catch Netflow traffic, store in memory each Flow and transmit they to each 'gbAsConsumer' periodically by socket file. - Each 'gbAsConsumer' store received Flow in memory and start a lot of Task 'CTaskFlow' to decompile the Flow. This is these Tasks that the directory in /tmp/gambas./ is not deleted after destruction. PS: I have joined the list of files still not delete after stopped 'gbAsStatistics' executable. Olivier From bugtracker at gambaswiki.org Mon Jan 15 03:01:46 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 15 Jan 2018 02:01:46 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1223: BUG Temporary directory created by Gambas during TASK. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1223&from=L21haW4- Olivier CRUILLES added an attachment: liste_fichier_tmp.txt From bugtracker at gambaswiki.org Mon Jan 15 03:02:13 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 15 Jan 2018 02:02:13 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1223: BUG Temporary directory created by Gambas during TASK. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1223&from=L21haW4- Olivier CRUILLES added an attachment: gbAsStatisticsDemo-0.2.268.tar.gz From bugtracker at gambaswiki.org Mon Jan 15 03:02:24 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 15 Jan 2018 02:02:24 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1223: BUG Temporary directory created by Gambas during TASK. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1223&from=L21haW4- Olivier CRUILLES added an attachment: gbAsConsumerDemo-0.9.310.tar.gz From brailateo at gmail.com Wed Jan 17 11:02:13 2018 From: brailateo at gmail.com (Constantin Teodorescu) Date: Wed, 17 Jan 2018 12:02:13 +0200 Subject: [Gambas-user] Any method to show better the current row in a DataView Grid? Message-ID: Hello all, I'm evaluating Gambas3 (I have compiled and run 3.10 on a Linux Mint) and I check various things! Is there any hidden property that will show the current row in a DataView Grid, more than the bold row number in the left header? I have done something ugly to that, is there any othe more elegant method to achieve the same thing? :-) Public Sub PersDV_Activate() Dim numRow As Integer Dim oldText As String numRow = PersDV.View.Row If numRow > -1 Then oldText = PersDV.View[numRow, 0].Text PersDV.View[numRow, 0].Background = Color.blue PersDV.View[numRow, 0].Foreground = Color.white PersDV.View[numRow, 0].Text = oldText PersDV.View[numRow, 0].Refresh Endif End Thanks, Teo -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed Jan 17 13:08:13 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 17 Jan 2018 13:08:13 +0100 Subject: [Gambas-user] Message title in only first message Message-ID: The Message title is only for the first message? See project attached. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: MessageTitleTest-0.0.1.tar.gz Type: application/x-gzip Size: 11624 bytes Desc: not available URL: From g4mba5 at gmail.com Wed Jan 17 13:31:36 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 17 Jan 2018 13:31:36 +0100 Subject: [Gambas-user] Message title in only first message In-Reply-To: References: Message-ID: <4d87e8c7-e18f-75d0-4cb5-f2657a832a8e@gmail.com> Le 17/01/2018 ? 13:08, Gianluigi a ?crit?: > The Message title is only for the first message? > See project attached. > > Regards > Gianluigi > Yes. You have to define this property at each new message if you need. -- Beno?t Minisini From rwe-sse at osnanet.de Wed Jan 17 15:40:37 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 17 Jan 2018 15:40:37 +0100 Subject: [Gambas-user] Any method to show better the current row in a DataView Grid? In-Reply-To: References: Message-ID: <5A5F6065.9050608@osnanet.de> Am 17.01.2018 11:02, schrieb Constantin Teodorescu: > Hello all, > > I'm evaluating Gambas3 (I have compiled and run 3.10 on a Linux Mint) > and I check various things! > > Is there any hidden property that will show the current row in a > DataView Grid, more than the bold row number in the left header? > > I have done something ugly to that, is there any othe more elegant > method to achieve the same thing? :-) > > Public Sub PersDV_Activate() > Dim numRow As Integer > Dim oldText As String > numRow = PersDV.View.Row > If numRow > -1 Then > oldText = PersDV.View[numRow, 0].Text > PersDV.View[numRow, 0].Background = Color.blue > PersDV.View[numRow, 0].Foreground = Color.white > PersDV.View[numRow, 0].Text = oldText > PersDV.View[numRow, 0].Refresh > Endif > End > > Thanks, > Teo > > There should be a property "single" or "row" for the way something can be marked by the user by clicking on one row. Set this to True and then make the last line the current line or set its "marked" property to True. I do not have the time to check for it right now, so my answer is a bit fuzzy, but this is how you might achieve it. Just from memory... Regards Rolf From t.lee.davidson at gmail.com Wed Jan 17 19:15:31 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 17 Jan 2018 13:15:31 -0500 Subject: [Gambas-user] Any method to show better the current row in a DataView Grid? In-Reply-To: <5A5F6065.9050608@osnanet.de> References: <5A5F6065.9050608@osnanet.de> Message-ID: <303b7e60-df1e-122b-bfab-80591557e4f6@gmail.com> On 01/17/2018 09:40 AM, Rolf-Werner Eilert wrote: > Am 17.01.2018 11:02, schrieb Constantin Teodorescu: >> Hello all, >> >> I'm evaluating Gambas3 (I have compiled? and run 3.10 on a Linux Mint) >> and I check various things! >> >> Is there any hidden property that will show the current row in a >> DataView Grid, more than the bold row number in the left header? >> >> I have done something ugly to that, is there any othe more elegant >> method to achieve the same thing? :-) >> >> Public Sub PersDV_Activate() >> ?? Dim numRow As Integer >> ?? Dim oldText As String >> ?? numRow = PersDV.View.Row >> ?? If numRow > -1 Then >> ???? oldText = PersDV.View[numRow, 0].Text >> ???? PersDV.View[numRow, 0].Background = Color.blue >> ???? PersDV.View[numRow, 0].Foreground = Color.white >> ???? PersDV.View[numRow, 0].Text = oldText >> ???? PersDV.View[numRow, 0].Refresh >> ?? Endif >> End >> >> Thanks, >> Teo >> >> > > There should be a property "single" or "row" for the way something can be marked by the user by clicking on one row. Set this to > True and then make the last line the current line or set its "marked" property to True. > > I do not have the time to check for it right now, so my answer is a bit fuzzy, but this is how you might achieve it. Just from > memory... > > Regards > Rolf > I think Rolf is referring to 'Mode'. It can be None, Single, or Multiple. Setting it to Single will accomplish what you seek. -- Lee From allegfede at gmail.com Wed Jan 17 19:43:41 2018 From: allegfede at gmail.com (Federico Allegretti) Date: Wed, 17 Jan 2018 19:43:41 +0100 Subject: [Gambas-user] gb.media: warning: unsupported datatype: GValueArray Message-ID: hello everybody. I'm trying to get audio levels using gambas media and gstreamer following this tutorial: http://www.gambas-it.org/smf/index.php?topic=5874.0 but i always get the error: gb.media: warning: unsupported datatype: GValueArray this is my platform info: v1p3r at v1p3rbox:~$ uname -a Linux v1p3rbox 4.10.0-42-generic #46-Ubuntu SMP Mon Dec 4 14:38:01 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux v1p3r at v1p3rbox:~$ lsb_release -a LSB Version: core-9.20160110ubuntu5-amd64:core-9.20160110ubuntu5-noarch:security-9.20160110ubuntu5-amd64:security-9.20160110ubuntu5-noarch Distributor ID: Ubuntu Description: Ubuntu 17.04 Release: 17.04 Codename: zesty v1p3r at v1p3rbox:~$ dpkg -l | grep gstreamer ii gir1.2-gstreamer-1.0 1.10.4-1 amd64 GObject introspection data for the GStreamer library ii gstreamer1.0-alsa:amd64 1.10.4-1ubuntu1 amd64 GStreamer plugin for ALSA ii gstreamer1.0-clutter-3.0 3.0.24-1 amd64 Clutter PLugin for GStreamer 1.0 ii gstreamer1.0-fluendo-mp3:amd64 0.10.32.debian-1 amd64 Fluendo mp3 decoder GStreamer 1.0 plugin ii gstreamer1.0-libav:amd64 1.10.4-1 amd64 libav plugin for GStreamer ii gstreamer1.0-plugins-bad:amd64 1.10.4-1ubuntu1 amd64 GStreamer plugins from the "bad" set ii gstreamer1.0-plugins-bad-faad:amd64 1.10.4-1ubuntu1 amd64 GStreamer faad plugin from the "bad" set ii gstreamer1.0-plugins-bad-videoparsers:amd64 1.10.4-1ubuntu1 amd64 GStreamer videoparsers plugin from the "bad" set ii gstreamer1.0-plugins-base:amd64 1.10.4-1ubuntu1 amd64 GStreamer plugins from the "base" set ii gstreamer1.0-plugins-base-apps 1.10.4-1ubuntu1 amd64 GStreamer helper programs from the "base" set ii gstreamer1.0-plugins-good:amd64 1.10.4-1ubuntu1 amd64 GStreamer plugins from the "good" set ii gstreamer1.0-plugins-ugly:amd64 1.10.4-1ubuntu1 amd64 GStreamer plugins from the "ugly" set ii gstreamer1.0-plugins-ugly-amr:amd64 1.10.4-1ubuntu1 amd64 GStreamer plugins from the "ugly" set ii gstreamer1.0-pulseaudio:amd64 1.10.4-1ubuntu1 amd64 GStreamer plugin for PulseAudio ii gstreamer1.0-tools 1.10.4-1 amd64 Tools for use with GStreamer ii gstreamer1.0-x:amd64 1.10.4-1ubuntu1 amd64 GStreamer plugins for X11 and Pango ii libgstreamer-plugins-bad1.0-0:amd64 1.10.4-1ubuntu1 amd64 GStreamer development files for libraries from the "bad" set ii libgstreamer-plugins-base1.0-0:amd64 1.10.4-1ubuntu1 amd64 GStreamer libraries from the "base" set ii libgstreamer-plugins-good1.0-0:amd64 1.10.4-1ubuntu1 amd64 GStreamer development files for libraries from the "good" set ii libgstreamer1.0-0:amd64 1.10.4-1 amd64 Core GStreamer libraries and elements ii libgstreamer1.0-dev 1.10.4-1 amd64 GStreamer core development files ii libreoffice-avmedia-backend-gstreamer 1:5.3.1-0ubuntu2 amd64 GStreamer backend for LibreOffice ii phonon-backend-gstreamer:amd64 4:4.9.0-1 amd64 Phonon GStreamer 1.0 backend ii phonon-backend-gstreamer-common:amd64 4:4.9.0-1 amd64 Phonon GStreamer 1.0.x backend icons v1p3r at v1p3rbox:~$ dpkg -l | grep gambas3 ii gambas3 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Complete visual development environment for Gambas ii gambas3-dev 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas compilation tools ii gambas3-gb-args 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas arguments parser ii gambas3-gb-cairo 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas bindings for cairo ii gambas3-gb-chart 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas charting component ii gambas3-gb-clipper 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas Clipper component ii gambas3-gb-complex 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas Complex component ii gambas3-gb-compress 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas compression component ii gambas3-gb-compress-bzlib2 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas bzlib2 component ii gambas3-gb-compress-zlib 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas zlib compression component ii gambas3-gb-crypt 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas crypt encription component ii gambas3-gb-data 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas abstract datatypes component ii gambas3-gb-db 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas database access common libraries ii gambas3-gb-db-form 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas database bound controls ii gambas3-gb-db-mysql 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 MySQL driver for the Gambas database ii gambas3-gb-db-odbc 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 ODBC driver for the Gambas database ii gambas3-gb-db-postgresql 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 PostgreSQL driver for the Gambas database ii gambas3-gb-db-sqlite3 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas sqlite3 driver database ii gambas3-gb-dbus 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas bindings for DBUS ii gambas3-gb-dbus-trayicon 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas support for KDE & Unity tray icon DBus protocols ii gambas3-gb-desktop 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas Portland project compatibility component ii gambas3-gb-desktop-gnome-keyring 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas desktop GNOME component ii gambas3-gb-desktop-x11 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas X11 component ii gambas3-gb-eval-highlight 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas syntax highlighting component ii gambas3-gb-form 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas native form component ii gambas3-gb-form-dialog 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas enhanced standard dialogs component ii gambas3-gb-form-editor 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas Text Editor component ii gambas3-gb-form-mdi 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas multiple document interface management component ii gambas3-gb-form-stock 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas form stock icons ii gambas3-gb-form-terminal 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas terminal emulator ii gambas3-gb-gmp 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas GMP component ii gambas3-gb-gsl 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas GNU Scientific Library component ii gambas3-gb-gtk 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas GTK+ component ii gambas3-gb-gtk-opengl 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas GTK+ OpenGL component ii gambas3-gb-gtk3 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas GTK+3 component ii gambas3-gb-httpd 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas HTTP server ii gambas3-gb-image 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas image effects ii gambas3-gb-image-effect 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas image effects: effects ii gambas3-gb-image-imlib 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas image effects: IMLIB bindings ii gambas3-gb-image-io 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas image effects: I/O ii gambas3-gb-inotify 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas inotify component ii gambas3-gb-libxml 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas libxml component ii gambas3-gb-logging 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas logging system component ii gambas3-gb-map 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas online map viewer ii gambas3-gb-markdown 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas markup syntax ii gambas3-gb-media 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas media component ii gambas3-gb-media-form 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas media player component ii gambas3-gb-memcached 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas memcached client ii gambas3-gb-mime 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas MIME message management ii gambas3-gb-mysql 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas MySQL component ii gambas3-gb-ncurses 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas NCurses component ii gambas3-gb-net 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas networking component ii gambas3-gb-net-curl 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas advanced networking component ii gambas3-gb-net-pop3 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas POP3 client implementation ii gambas3-gb-net-smtp 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas smtp protocol component ii gambas3-gb-openal 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas OpenAL component ii gambas3-gb-opengl 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas OpenGL component ii gambas3-gb-opengl-glsl 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas OpenGL component: GL Shading Language subcomponent ii gambas3-gb-opengl-glu 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas OpenGL utility ii gambas3-gb-opengl-sge 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas SDL Game Engine ii gambas3-gb-openssl 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas OpenSSL component ii gambas3-gb-option 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas option component ii gambas3-gb-pcre 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas regexp component ii gambas3-gb-pdf 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas PDF component ii gambas3-gb-qt4 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas Qt GUI component ii gambas3-gb-qt4-ext 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas extended Qt GUI component ii gambas3-gb-qt4-opengl 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas OpenGL component with QT toolkit ii gambas3-gb-qt4-webkit 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas WebKit component ii gambas3-gb-qt5 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas Qt5 GUI component ii gambas3-gb-qt5-ext 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas QT5 toolkit extensions ii gambas3-gb-qt5-opengl 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas OpenGL component with QT5 toolkit ii gambas3-gb-qt5-webkit 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas QT5 WebKit component ii gambas3-gb-report 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas report component ii gambas3-gb-report2 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas interpreter utility routines component. ii gambas3-gb-scanner 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas frontend to scanimage provided by the SANE toolkit. ii gambas3-gb-sdl 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas SDL component ii gambas3-gb-sdl-sound 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas SDL component ii gambas3-gb-sdl2 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas SDL2 component ii gambas3-gb-sdl2-audio 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas SDL2 component ii gambas3-gb-settings 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas utilities class ii gambas3-gb-signal 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas OS signal library ii gambas3-gb-term 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas VT-100 terminal emulator ii gambas3-gb-term-form 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas VT-102 terminal emulator ii gambas3-gb-util 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas interpreter utility routines component. ii gambas3-gb-util-web 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas interpreter utility routines component. ii gambas3-gb-v4l 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas video for Linux component ii gambas3-gb-vb 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas Visual Basic(tm) compatibility component ii gambas3-gb-web 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas CGI for web applications ii gambas3-gb-web-feed 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas web feed parser and generator ii gambas3-gb-web-form 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas Web application GUI controls ii gambas3-gb-xml 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas XML component ii gambas3-gb-xml-html 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas HTML component ii gambas3-gb-xml-rpc 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Gambas RPC component ii gambas3-gb-xml-xslt 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas XSLT component ii gambas3-ide 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 all Visual development environment for the Gambas programming language ii gambas3-runtime 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 amd64 Gambas runtime interpreter anyone had this problem before? thanks -- Open TV Architecture project: http://sourceforge.net/projects/otva/ Messagenet VOIP: 5338759 YouTube Channel: v1p3r's lab VIMEO HD videos: http://www.vimeo.com/user1912745/videos -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Wed Jan 17 20:06:39 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 17 Jan 2018 14:06:39 -0500 Subject: [Gambas-user] gb.media: warning: unsupported datatype: GValueArray In-Reply-To: References: Message-ID: On 01/17/2018 01:43 PM, Federico Allegretti wrote: > hello everybody. > > I'm trying to get audio levels using gambas media and gstreamer following this tutorial: > http://www.gambas-it.org/smf/index.php?topic=5874.0 > > but i always get the error: > gb.media: warning: unsupported datatype: GValueArray > > this is my platform info: > v1p3r at v1p3rbox:~$ uname -a > Linux v1p3rbox 4.10.0-42-generic #46-Ubuntu SMP Mon Dec 4 14:38:01 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux > I cannot help you with your media issue, but it may help you in the future to know that there is an easier way to get the appropriate system information. In the IDE go to the "?" menu option (next to Tools) and select "System Informations..." It will give you a nicely formatted report that you can append to your email message. -- Lee From patrik at trixon.se Wed Jan 17 21:27:51 2018 From: patrik at trixon.se (Patrik Karlsson) Date: Wed, 17 Jan 2018 21:27:51 +0100 Subject: [Gambas-user] Can JSON.Decode be faster? Message-ID: In this little project: https://github.com/trixon/gambas-idg (contains a json file, requires Gambas=3.10.90 c1e4b89 (master)) I'm decoding a json string around 1MB and it takes 30 seconds in Gambas. CPU: Quad core Intel Core i7-6700HQ (-MT-MCP-) cache: 6144 KB clock speeds: max: 3500 MHz 1: 800 MHz 2: 800 MHz 3: 800 MHz 4: 800 MHz 5: 800 MHz 6: 800 MHz 7: 800 MHz 8: 800 MHz When doing it in java with Google Gson it takes virtually no time at all. I intend to use this in an image viewer that consumes base64 encoded photos wrapped in a json among its exif data. Could this be done faster in Gambas? I guess I could split the base64 from the json but it would be nice to have it atomic. Sidenote 1: Should not Now() for 01/17/2018 21:47:57.73 be 01/17/2018 21:47:57.730 with a zero at the end? 01/17/2018 21:47:28.687 load json 01/17/2018 21:47:28.687 decode json 01/17/2018 21:47:57.699 getBase64 01/17/2018 21:47:57.699 loadImage 01/17/2018 21:47:57.73 done Sidenote 2: How do I get rid of that margin around the ImageView? It's very visible in fullscreen mode but it's there in normal mode too. When I shrink the window size so that the scroll bars are about to appear, the margin gets away, but then the image is too small to watch. /Patrik -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jan 18 00:42:56 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 18 Jan 2018 00:42:56 +0100 Subject: [Gambas-user] gb.media: warning: unsupported datatype: GValueArray In-Reply-To: References: Message-ID: <558baab9-be39-7c65-adbc-3eb4944ff004@gmail.com> Le 17/01/2018 ? 19:43, Federico Allegretti a ?crit?: > hello everybody. > > I'm trying to get audio levels using gambas media and gstreamer > following this tutorial: > http://www.gambas-it.org/smf/index.php?topic=5874.0 > > but i always get the error: > gb.media: warning: unsupported datatype: GValueArray > > this is my platform info: > v1p3r at v1p3rbox:~$ uname -a > Linux v1p3rbox 4.10.0-42-generic #46-Ubuntu SMP Mon Dec 4 14:38:01 UTC > 2017 x86_64 x86_64 x86_64 GNU/Linux > > v1p3r at v1p3rbox:~$ lsb_release -a > LSB Version: > core-9.20160110ubuntu5-amd64:core-9.20160110ubuntu5-noarch:security-9.20160110ubuntu5-amd64:security-9.20160110ubuntu5-noarch > Distributor ID:??? Ubuntu > Description:??? Ubuntu 17.04 > Release:??? 17.04 > Codename:??? zesty > > v1p3r at v1p3rbox:~$ dpkg -l | grep gstreamer > ii? gir1.2-gstreamer-1.0 > 1.10.4-1 > amd64??????? GObject introspection data for the GStreamer library > ii? gstreamer1.0-alsa:amd64 > 1.10.4-1ubuntu1 > amd64??????? GStreamer plugin for ALSA > ii? gstreamer1.0-clutter-3.0 > 3.0.24-1 > amd64??????? Clutter PLugin for GStreamer 1.0 > ii? gstreamer1.0-fluendo-mp3:amd64 > 0.10.32.debian-1 > amd64??????? Fluendo mp3 decoder GStreamer 1.0 plugin > ii? gstreamer1.0-libav:amd64 > 1.10.4-1 > amd64??????? libav plugin for GStreamer > ii? gstreamer1.0-plugins-bad:amd64 > 1.10.4-1ubuntu1 > amd64??????? GStreamer plugins from the "bad" set > ii? gstreamer1.0-plugins-bad-faad:amd64 > 1.10.4-1ubuntu1 > amd64??????? GStreamer faad plugin from the "bad" set > ii? gstreamer1.0-plugins-bad-videoparsers:amd64 > 1.10.4-1ubuntu1 > amd64??????? GStreamer videoparsers plugin from the "bad" set > ii? gstreamer1.0-plugins-base:amd64 > 1.10.4-1ubuntu1 > amd64??????? GStreamer plugins from the "base" set > ii? gstreamer1.0-plugins-base-apps > 1.10.4-1ubuntu1 > amd64??????? GStreamer helper programs from the "base" set > ii? gstreamer1.0-plugins-good:amd64 > 1.10.4-1ubuntu1 > amd64??????? GStreamer plugins from the "good" set > ii? gstreamer1.0-plugins-ugly:amd64 > 1.10.4-1ubuntu1 > amd64??????? GStreamer plugins from the "ugly" set > ii? gstreamer1.0-plugins-ugly-amr:amd64 > 1.10.4-1ubuntu1 > amd64??????? GStreamer plugins from the "ugly" set > ii? gstreamer1.0-pulseaudio:amd64 > 1.10.4-1ubuntu1 > amd64??????? GStreamer plugin for PulseAudio > ii? gstreamer1.0-tools > 1.10.4-1 > amd64??????? Tools for use with GStreamer > ii? gstreamer1.0-x:amd64 > 1.10.4-1ubuntu1 > amd64??????? GStreamer plugins for X11 and Pango > ii? libgstreamer-plugins-bad1.0-0:amd64 > 1.10.4-1ubuntu1 > amd64??????? GStreamer development files for libraries from the "bad" set > ii? libgstreamer-plugins-base1.0-0:amd64 > 1.10.4-1ubuntu1 > amd64??????? GStreamer libraries from the "base" set > ii? libgstreamer-plugins-good1.0-0:amd64 > 1.10.4-1ubuntu1 > amd64??????? GStreamer development files for libraries from the "good" set > ii? libgstreamer1.0-0:amd64 > 1.10.4-1 > amd64??????? Core GStreamer libraries and elements > ii? libgstreamer1.0-dev > 1.10.4-1 > amd64??????? GStreamer core development files > ii? libreoffice-avmedia-backend-gstreamer > 1:5.3.1-0ubuntu2 > amd64??????? GStreamer backend for LibreOffice > ii? phonon-backend-gstreamer:amd64 > 4:4.9.0-1 > amd64??????? Phonon GStreamer 1.0 backend > ii? phonon-backend-gstreamer-common:amd64 > 4:4.9.0-1 > amd64??????? Phonon GStreamer 1.0.x backend icons > > v1p3r at v1p3rbox:~$ dpkg -l | grep gambas3 > ii? gambas3 > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Complete visual development environment for Gambas > ii? gambas3-dev > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas compilation tools > ii? gambas3-gb-args > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas arguments parser > ii? gambas3-gb-cairo > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas bindings for cairo > ii? gambas3-gb-chart > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas charting component > ii? gambas3-gb-clipper > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas Clipper component > ii? gambas3-gb-complex > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas Complex component > ii? gambas3-gb-compress > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas compression component > ii? gambas3-gb-compress-bzlib2 > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas bzlib2 component > ii? gambas3-gb-compress-zlib > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas zlib compression component > ii? gambas3-gb-crypt > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas crypt encription component > ii? gambas3-gb-data > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas abstract datatypes component > ii? gambas3-gb-db > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas database access common libraries > ii? gambas3-gb-db-form > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas database bound controls > ii? gambas3-gb-db-mysql > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? MySQL driver for the Gambas database > ii? gambas3-gb-db-odbc > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? ODBC driver for the Gambas database > ii? gambas3-gb-db-postgresql > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? PostgreSQL driver for the Gambas database > ii? gambas3-gb-db-sqlite3 > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas sqlite3 driver database > ii? gambas3-gb-dbus > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas bindings for DBUS > ii? gambas3-gb-dbus-trayicon > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas support for KDE & Unity tray icon DBus protocols > ii? gambas3-gb-desktop > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas Portland project compatibility component > ii? gambas3-gb-desktop-gnome-keyring > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas desktop GNOME component > ii? gambas3-gb-desktop-x11 > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas X11 component > ii? gambas3-gb-eval-highlight > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas syntax highlighting component > ii? gambas3-gb-form > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas native form component > ii? gambas3-gb-form-dialog > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas enhanced standard dialogs component > ii? gambas3-gb-form-editor > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas Text Editor component > ii? gambas3-gb-form-mdi > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas multiple document interface management component > ii? gambas3-gb-form-stock > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas form stock icons > ii? gambas3-gb-form-terminal > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas terminal emulator > ii? gambas3-gb-gmp > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas GMP component > ii? gambas3-gb-gsl > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas GNU Scientific Library component > ii? gambas3-gb-gtk > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas GTK+ component > ii? gambas3-gb-gtk-opengl > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas GTK+ OpenGL component > ii? gambas3-gb-gtk3 > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas GTK+3 component > ii? gambas3-gb-httpd > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas HTTP server > ii? gambas3-gb-image > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas image effects > ii? gambas3-gb-image-effect > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas image effects: effects > ii? gambas3-gb-image-imlib > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas image effects: IMLIB bindings > ii? gambas3-gb-image-io > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas image effects: I/O > ii? gambas3-gb-inotify > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas inotify component > ii? gambas3-gb-libxml > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas libxml component > ii? gambas3-gb-logging > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas logging system component > ii? gambas3-gb-map > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas online map viewer > ii? gambas3-gb-markdown > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas markup syntax > ii? gambas3-gb-media > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas media component > ii? gambas3-gb-media-form > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas media player component > ii? gambas3-gb-memcached > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas memcached client > ii? gambas3-gb-mime > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas MIME message management > ii? gambas3-gb-mysql > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas MySQL component > ii? gambas3-gb-ncurses > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas NCurses component > ii? gambas3-gb-net > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas networking component > ii? gambas3-gb-net-curl > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas advanced networking component > ii? gambas3-gb-net-pop3 > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas POP3 client implementation > ii? gambas3-gb-net-smtp > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas smtp protocol component > ii? gambas3-gb-openal > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas OpenAL component > ii? gambas3-gb-opengl > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas OpenGL component > ii? gambas3-gb-opengl-glsl > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas OpenGL component: GL Shading Language subcomponent > ii? gambas3-gb-opengl-glu > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas OpenGL utility > ii? gambas3-gb-opengl-sge > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas SDL Game Engine > ii? gambas3-gb-openssl > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas OpenSSL component > ii? gambas3-gb-option > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas option component > ii? gambas3-gb-pcre > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas regexp component > ii? gambas3-gb-pdf > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas PDF component > ii? gambas3-gb-qt4 > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas Qt GUI component > ii? gambas3-gb-qt4-ext > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas extended Qt GUI component > ii? gambas3-gb-qt4-opengl > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas OpenGL component with QT toolkit > ii? gambas3-gb-qt4-webkit > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas WebKit component > ii? gambas3-gb-qt5 > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas Qt5 GUI component > ii? gambas3-gb-qt5-ext > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas QT5 toolkit extensions > ii? gambas3-gb-qt5-opengl > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas OpenGL component with QT5 toolkit > ii? gambas3-gb-qt5-webkit > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas QT5 WebKit component > ii? gambas3-gb-report > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas report component > ii? gambas3-gb-report2 > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas interpreter utility routines component. > ii? gambas3-gb-scanner > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas frontend to scanimage provided by the SANE toolkit. > ii? gambas3-gb-sdl > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas SDL component > ii? gambas3-gb-sdl-sound > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas SDL component > ii? gambas3-gb-sdl2 > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas SDL2 component > ii? gambas3-gb-sdl2-audio > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas SDL2 component > ii? gambas3-gb-settings > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas utilities class > ii? gambas3-gb-signal > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas OS signal library > ii? gambas3-gb-term > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas VT-100 terminal emulator > ii? gambas3-gb-term-form > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas VT-102 terminal emulator > ii? gambas3-gb-util > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas interpreter utility routines component. > ii? gambas3-gb-util-web > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas interpreter utility routines component. > ii? gambas3-gb-v4l > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas video for Linux component > ii? gambas3-gb-vb > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas Visual Basic(tm) compatibility component > ii? gambas3-gb-web > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas CGI for web applications > ii? gambas3-gb-web-feed > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas web feed parser and generator > ii? gambas3-gb-web-form > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas Web application GUI controls > ii? gambas3-gb-xml > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas XML component > ii? gambas3-gb-xml-html > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas HTML component > ii? gambas3-gb-xml-rpc > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Gambas RPC component > ii? gambas3-gb-xml-xslt > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas XSLT component > ii? gambas3-ide > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > all????????? Visual development environment for the Gambas programming > language > ii? gambas3-runtime > 3.10.0+git5950.9786d95+build1.4250560.1.fb554bc~ubuntu17.04.1 > amd64??????? Gambas runtime interpreter > > anyone had this problem before? > > thanks > > -- > Open TV Architecture project: http://sourceforge.net/projects/otva/ > > Messagenet VOIP: 5338759 > > YouTube Channel: v1p3r's lab > > VIMEO HD videos: http://www.vimeo.com/user1912745/videos > I think I get it too. I hadn't in the past... I will look at it. This message is from the internal function that transforms a glib datatype returned by GStreamer into a Gambas datatype. Of course this function cannot handle everything, and sometimes GStreamer returns a glib datatype that was not used before. -- Beno?t Minisini From g4mba5 at gmail.com Thu Jan 18 01:05:34 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 18 Jan 2018 01:05:34 +0100 Subject: [Gambas-user] Can JSON.Decode be faster? In-Reply-To: References: Message-ID: <25f50335-1c0d-e99c-6d1c-4603ea999cb9@gmail.com> Le 17/01/2018 ? 21:27, Patrik Karlsson a ?crit?: > In this little project: https://github.com/trixon/gambas-idg (contains a > json file, requires Gambas=3.10.90 c1e4b89 (master)) > > I'm decoding a json string around 1MB and it takes 30 seconds in Gambas. > CPU:? ? ? ?Quad core Intel Core i7-6700HQ (-MT-MCP-) cache: 6144 KB > ? ? ? ? ? ?clock speeds: max: 3500 MHz 1: 800 MHz 2: 800 MHz 3: 800 MHz > 4: 800 MHz 5: 800 MHz 6: 800 MHz > ? ? ? ? ? ?7: 800 MHz 8: 800 MHz > > When doing it in java with Google Gson it takes virtually no time at all. > > I intend to use this in an image viewer that consumes base64 encoded > photos wrapped in a json among its exif data. > Could this be done faster in Gambas? The JSON.Decode() is not really optimized, so I think it can be made faster. By the way, it's not a good idea to use JSON for big binary data. > > I guess I could split the base64 from the json but it would be nice to > have it atomic. > > Sidenote 1: > Should not Now() for 01/17/2018 21:47:57.73 be 01/17/2018 21:47:57.730 > with a zero at the end? This is the standard Gambas format, read the Format$() documentation about dates. > 01/17/2018 21:47:28.687 load json > 01/17/2018 21:47:28.687 decode json > 01/17/2018 21:47:57.699 getBase64 > 01/17/2018 21:47:57.699 loadImage > 01/17/2018 21:47:57.73 done > > Sidenote 2: > How do I get rid of that margin around the ImageView? > It's very visible in fullscreen mode but it's there in normal mode too. > When I shrink the window size so that the scroll bars are about to > appear, the margin gets away, but then the image is too small to watch. It comes from the ZoomFit() method. Maybe this method should takes the margin as an optional argument? > > /Patrik > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -- Beno?t Minisini From g4mba5 at gmail.com Thu Jan 18 02:05:11 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 18 Jan 2018 02:05:11 +0100 Subject: [Gambas-user] Can JSON.Decode be faster? In-Reply-To: <25f50335-1c0d-e99c-6d1c-4603ea999cb9@gmail.com> References: <25f50335-1c0d-e99c-6d1c-4603ea999cb9@gmail.com> Message-ID: <2da2bbe9-be83-27d5-5947-8f033e647597@gmail.com> Le 18/01/2018 ? 01:05, Beno?t Minisini a ?crit?: > Le 17/01/2018 ? 21:27, Patrik Karlsson a ?crit?: >> In this little project: https://github.com/trixon/gambas-idg (contains >> a json file, requires Gambas=3.10.90 c1e4b89 (master)) >> >> I'm decoding a json string around 1MB and it takes 30 seconds in Gambas. >> CPU:? ? ? ?Quad core Intel Core i7-6700HQ (-MT-MCP-) cache: 6144 KB >> ?? ? ? ? ? ?clock speeds: max: 3500 MHz 1: 800 MHz 2: 800 MHz 3: 800 >> MHz 4: 800 MHz 5: 800 MHz 6: 800 MHz >> ?? ? ? ? ? ?7: 800 MHz 8: 800 MHz >> >> When doing it in java with Google Gson it takes virtually no time at all. >> >> I intend to use this in an image viewer that consumes base64 encoded >> photos wrapped in a json among its exif data. >> Could this be done faster in Gambas? > You can test the commit https://gitlab.com/gambas/gambas/commit/4ff9f7ddef726e3957c30bf31b794b894b88d914 to check the speed up of the JSON.Decode() routine. ...and the default null margin for ImageView.ZoomFit() too. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Thu Jan 18 02:14:56 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 18 Jan 2018 02:14:56 +0100 Subject: [Gambas-user] gb.media: warning: unsupported datatype: GValueArray In-Reply-To: <558baab9-be39-7c65-adbc-3eb4944ff004@gmail.com> References: <558baab9-be39-7c65-adbc-3eb4944ff004@gmail.com> Message-ID: <0d752d3e-37d8-5bcb-8236-81cba53a57b1@gmail.com> Le 18/01/2018 ? 00:42, Beno?t Minisini a ?crit?: > > I think I get it too. I hadn't in the past... > > I will look at it. This message is from the internal function that > transforms a glib datatype returned by GStreamer into a Gambas datatype. > Of course this function cannot handle everything, and sometimes > GStreamer returns a glib datatype that was not used before. > Sorry: do you use a 3.10 version or the development version? Because normally it has already been fixed in it. -- Beno?t Minisini From vuott at yahoo.it Thu Jan 18 02:39:53 2018 From: vuott at yahoo.it (Vuott) Date: Thu, 18 Jan 2018 01:39:53 +0000 (UTC) Subject: [Gambas-user] gb.media: warning: unsupported datatype: GValueArray References: <201489494.84696.1516239593332.ref@mail.yahoo.com> Message-ID: <201489494.84696.1516239593332@mail.yahoo.com> It has already been fixed. I remember I raised the problem; then it was solved by Beno?t. Regards vuott -------------------------------------------- Gio 18/1/18, Beno?t Minisini ha scritto: Oggetto: Re: [Gambas-user] gb.media: warning: unsupported datatype: GValueArray A: "Gambas Mailing List" Data: Gioved? 18 gennaio 2018, 02:14 Le 18/01/2018 ? 00:42, Beno?t Minisini a ?crit?: > > I think I get it too. I hadn't in the past... > > I will look at it. This message is from the internal function that > transforms a glib datatype returned by GStreamer into a Gambas datatype. > Of course this function cannot handle everything, and sometimes > GStreamer returns a glib datatype that was not used before. > Sorry: do you use a 3.10 version or the development version? Because normally it has already been fixed in it. -- Beno?t Minisini -------------------------------------------------- This is the Gambas Mailing List https://lists.gambas-basic.org/listinfo/user Hosted by https://www.hostsharing.net From allegfede at gmail.com Thu Jan 18 13:42:25 2018 From: allegfede at gmail.com (Federico Allegretti) Date: Thu, 18 Jan 2018 13:42:25 +0100 Subject: [Gambas-user] User Digest, Vol 4, Issue 39 In-Reply-To: References: Message-ID: don't think ... usually i do not install the developing branch of software ... have to be quite shure system is stable :-( shall i do it by compiling by myself? On 18 January 2018 at 12:12, wrote: > Send User mailing list submissions to > user at lists.gambas-basic.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.gambas-basic.org/listinfo/user > or, via email, send a message with subject or body 'help' to > user-request at lists.gambas-basic.org > > You can reach the person managing the list at > user-owner at lists.gambas-basic.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of User digest..." > > > Today's Topics: > > 1. Re: Can JSON.Decode be faster? (Beno?t Minisini) > 2. Re: Can JSON.Decode be faster? (Beno?t Minisini) > 3. Re: gb.media: warning: unsupported datatype: GValueArray > (Beno?t Minisini) > 4. Re: gb.media: warning: unsupported datatype: GValueArray (Vuott) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 18 Jan 2018 01:05:34 +0100 > From: Beno?t Minisini > To: Gambas Mailing List > Subject: Re: [Gambas-user] Can JSON.Decode be faster? > Message-ID: <25f50335-1c0d-e99c-6d1c-4603ea999cb9 at gmail.com> > Content-Type: text/plain; charset=utf-8; format=flowed > > Le 17/01/2018 ? 21:27, Patrik Karlsson a ?crit?: > > In this little project: https://github.com/trixon/gambas-idg (contains a > > json file, requires Gambas=3.10.90 c1e4b89 (master)) > > > > I'm decoding a json string around 1MB and it takes 30 seconds in Gambas. > > CPU:? ? ? ?Quad core Intel Core i7-6700HQ (-MT-MCP-) cache: 6144 KB > > ? ? ? ? ? ?clock speeds: max: 3500 MHz 1: 800 MHz 2: 800 MHz 3: 800 MHz > > 4: 800 MHz 5: 800 MHz 6: 800 MHz > > ? ? ? ? ? ?7: 800 MHz 8: 800 MHz > > > > When doing it in java with Google Gson it takes virtually no time at all. > > > > I intend to use this in an image viewer that consumes base64 encoded > > photos wrapped in a json among its exif data. > > Could this be done faster in Gambas? > > The JSON.Decode() is not really optimized, so I think it can be made > faster. > > By the way, it's not a good idea to use JSON for big binary data. > > > > > I guess I could split the base64 from the json but it would be nice to > > have it atomic. > > > > Sidenote 1: > > Should not Now() for 01/17/2018 21:47:57.73 be 01/17/2018 21:47:57.730 > > with a zero at the end? > > This is the standard Gambas format, read the Format$() documentation > about dates. > > > 01/17/2018 21:47:28.687 load json > > 01/17/2018 21:47:28.687 decode json > > 01/17/2018 21:47:57.699 getBase64 > > 01/17/2018 21:47:57.699 loadImage > > 01/17/2018 21:47:57.73 done > > > > Sidenote 2: > > How do I get rid of that margin around the ImageView? > > It's very visible in fullscreen mode but it's there in normal mode too. > > When I shrink the window size so that the scroll bars are about to > > appear, the margin gets away, but then the image is too small to watch. > > It comes from the ZoomFit() method. Maybe this method should takes the > margin as an optional argument? > > > > > /Patrik > > > > > > > > -------------------------------------------------- > > > > This is the Gambas Mailing List > > https://lists.gambas-basic.org/listinfo/user > > > > Hosted by https://www.hostsharing.net > > > > > -- > Beno?t Minisini > > > ------------------------------ > > Message: 2 > Date: Thu, 18 Jan 2018 02:05:11 +0100 > From: Beno?t Minisini > To: Gambas Mailing List > Subject: Re: [Gambas-user] Can JSON.Decode be faster? > Message-ID: <2da2bbe9-be83-27d5-5947-8f033e647597 at gmail.com> > Content-Type: text/plain; charset=utf-8; format=flowed > > Le 18/01/2018 ? 01:05, Beno?t Minisini a ?crit?: > > Le 17/01/2018 ? 21:27, Patrik Karlsson a ?crit?: > >> In this little project: https://github.com/trixon/gambas-idg (contains > >> a json file, requires Gambas=3.10.90 c1e4b89 (master)) > >> > >> I'm decoding a json string around 1MB and it takes 30 seconds in Gambas. > >> CPU:? ? ? ?Quad core Intel Core i7-6700HQ (-MT-MCP-) cache: 6144 KB > >> ?? ? ? ? ? ?clock speeds: max: 3500 MHz 1: 800 MHz 2: 800 MHz 3: 800 > >> MHz 4: 800 MHz 5: 800 MHz 6: 800 MHz > >> ?? ? ? ? ? ?7: 800 MHz 8: 800 MHz > >> > >> When doing it in java with Google Gson it takes virtually no time at > all. > >> > >> I intend to use this in an image viewer that consumes base64 encoded > >> photos wrapped in a json among its exif data. > >> Could this be done faster in Gambas? > > > > You can test the commit > https://gitlab.com/gambas/gambas/commit/4ff9f7ddef726e3957c3 > 0bf31b794b894b88d914 > to check the speed up of the JSON.Decode() routine. > > ...and the default null margin for ImageView.ZoomFit() too. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------ > > Message: 3 > Date: Thu, 18 Jan 2018 02:14:56 +0100 > From: Beno?t Minisini > To: Gambas Mailing List > Subject: Re: [Gambas-user] gb.media: warning: unsupported datatype: > GValueArray > Message-ID: <0d752d3e-37d8-5bcb-8236-81cba53a57b1 at gmail.com> > Content-Type: text/plain; charset=utf-8; format=flowed > > Le 18/01/2018 ? 00:42, Beno?t Minisini a ?crit?: > > > > I think I get it too. I hadn't in the past... > > > > I will look at it. This message is from the internal function that > > transforms a glib datatype returned by GStreamer into a Gambas datatype. > > Of course this function cannot handle everything, and sometimes > > GStreamer returns a glib datatype that was not used before. > > > > Sorry: do you use a 3.10 version or the development version? > > Because normally it has already been fixed in it. > > -- > Beno?t Minisini > > > ------------------------------ > > Message: 4 > Date: Thu, 18 Jan 2018 01:39:53 +0000 (UTC) > From: Vuott > To: Gambas Mailing List > Subject: Re: [Gambas-user] gb.media: warning: unsupported datatype: > GValueArray > Message-ID: <201489494.84696.1516239593332 at mail.yahoo.com> > Content-Type: text/plain; charset=UTF-8 > > It has already been fixed. > I remember I raised the problem; then it was solved by Beno?t. > > Regards > vuott > > > > > -------------------------------------------- > Gio 18/1/18, Beno?t Minisini ha scritto: > > Oggetto: Re: [Gambas-user] gb.media: warning: unsupported datatype: > GValueArray > A: "Gambas Mailing List" > Data: Gioved? 18 gennaio 2018, 02:14 > > Le 18/01/2018 ? 00:42, Beno?t > Minisini a ?crit?: > > > > I think I get it too. I hadn't in the > past... > > > > I will > look at it. This message is from the internal function that > > > transforms a glib datatype returned by > GStreamer into a Gambas datatype. > > Of > course this function cannot handle everything, and sometimes > > > GStreamer returns a glib datatype that > was not used before. > > > > Sorry: do you use a 3.10 > version or the development version? > > Because normally it has already been fixed in > it. > > -- > Beno?t > Minisini > > -------------------------------------------------- > > This is the Gambas Mailing > List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > > > > ------------------------------ > > Subject: Digest Footer > > User mailing list > User at lists.gambas-basic.org > http://lists.gambas-basic.org/listinfo/user > > Mailinglist hosted by https://www.hostsharing.net > > > ------------------------------ > > End of User Digest, Vol 4, Issue 39 > *********************************** > -- Open TV Architecture project: http://sourceforge.net/projects/otva/ Messagenet VOIP: 5338759 YouTube Channel: v1p3r's lab VIMEO HD videos: http://www.vimeo.com/user1912745/videos -------------- next part -------------- An HTML attachment was scrubbed... URL: From patrik at trixon.se Thu Jan 18 18:33:06 2018 From: patrik at trixon.se (Patrik Karlsson) Date: Thu, 18 Jan 2018 18:33:06 +0100 Subject: [Gambas-user] Can JSON.Decode be faster? In-Reply-To: <2da2bbe9-be83-27d5-5947-8f033e647597@gmail.com> References: <25f50335-1c0d-e99c-6d1c-4603ea999cb9@gmail.com> <2da2bbe9-be83-27d5-5947-8f033e647597@gmail.com> Message-ID: 2018-01-18 2:05 GMT+01:00 Beno?t Minisini : > Le 18/01/2018 ? 01:05, Beno?t Minisini a ?crit : > >> Le 17/01/2018 ? 21:27, Patrik Karlsson a ?crit : >> >>> In this little project: https://github.com/trixon/gambas-idg (contains >>> a json file, requires Gambas=3.10.90 c1e4b89 (master)) >>> >>> I'm decoding a json string around 1MB and it takes 30 seconds in Gambas. >>> CPU: Quad core Intel Core i7-6700HQ (-MT-MCP-) cache: 6144 KB >>> clock speeds: max: 3500 MHz 1: 800 MHz 2: 800 MHz 3: 800 MHz >>> 4: 800 MHz 5: 800 MHz 6: 800 MHz >>> 7: 800 MHz 8: 800 MHz >>> >>> When doing it in java with Google Gson it takes virtually no time at all. >>> >>> I intend to use this in an image viewer that consumes base64 encoded >>> photos wrapped in a json among its exif data. >>> Could this be done faster in Gambas? >>> >> >> > You can test the commit https://gitlab.com/gambas/gamb > as/commit/4ff9f7ddef726e3957c30bf31b794b894b88d914 to check the speed up > of the JSON.Decode() routine. > > ...and the default null margin for ImageView.ZoomFit() too. > > Regards, > > > -- > Beno?t Minisini > > Thank you, it's blazing fast now! About 100 times faster. :) 01/18/2018 19:27:54.043 load json 01/18/2018 19:27:54.044 decode json 01/18/2018 19:27:54.367 getBase64 01/18/2018 19:27:54.367 loadImage 01/18/2018 19:27:54.397 done The null margin is much appreciated, so is the sdl2 tweak. /Patrik -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Thu Jan 18 22:09:23 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Thu, 18 Jan 2018 23:09:23 +0200 Subject: [Gambas-user] WebForm With httpd Message-ID: <20180118210923.M66280@455.co.il> Hello gambas: 3.10.0 I want to compile my WebForm And I want to run it with an "HTTPD server" NOT with "gambas embedded HTTP" The reason is that when I run with an "gambas embedded HTTP" If there are "Multiple clients" When a client first clicks a button and it enters the event and executes "SLEEP 30" It stops the all clients For example, if the WebForm displays a "CLOCK" It stops everybody's clients Is there a solution to this problem Export Public Sub WebTimer1_Timer() WebLabel1.Text = Now() End Public Sub WebButton2_Click() Sleep 20 End From bugtracker at gambaswiki.org Fri Jan 19 01:58:10 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 19 Jan 2018 00:58:10 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1223: BUG Temporary directory created by Gambas during TASK. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1223&from=L21haW4- Comment #6 by Beno?t MINISINI: Can you try commit https://gitlab.com/gambas/gambas/commit/dc9bdcfc87af4d690eebee977c3d6fa53fb4e271 ? It should fix the problem. Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Fri Jan 19 16:30:33 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 19 Jan 2018 15:30:33 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1223: BUG Temporary directory created by Gambas during TASK. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1223&from=L21haW4- Comment #7 by Olivier CRUILLES: Hi, It doesn't work sorry. Now when the main process 'gbAsConsumer' start a new TASK CTaskFlow, the main process is killed and quit. Olivier CRUILLES changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Fri Jan 19 16:35:59 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 19 Jan 2018 15:35:59 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1223: BUG Temporary directory created by Gambas during TASK. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1223&from=L21haW4- Comment #8 by Beno?t MINISINI: "is killed"? You mean it crashes? From bugtracker at gambaswiki.org Fri Jan 19 16:36:18 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 19 Jan 2018 15:36:18 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1223: BUG Temporary directory created by Gambas during TASK. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1223&from=L21haW4- Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Fri Jan 19 17:30:28 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 19 Jan 2018 16:30:28 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1223: BUG Temporary directory created by Gambas during TASK. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1223&from=L21haW4- Comment #9 by Olivier CRUILLES: In fact this is difficult to say, i guess it crashs as you say but there is no 'Segmentfault' or special error message. Olivier CRUILLES changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Fri Jan 19 18:07:40 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 19 Jan 2018 17:07:40 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1223: BUG Temporary directory created by Gambas during TASK. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1223&from=L21haW4- Comment #10 by Beno?t MINISINI: I did as you explained in comment #5. I'm currently running your projects, and everything seems to run as expected. I have about 10 gambas processes running at the same time, and nothing seems to have stopped or crashed. From bugtracker at gambaswiki.org Fri Jan 19 18:15:37 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 19 Jan 2018 17:15:37 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1223: BUG Temporary directory created by Gambas during TASK. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1223&from=L21haW4- Comment #11 by Beno?t MINISINI: When I stop the NetFlow traffic generation, after some time every task stops, and stays in the /tmp/gambas.XXXX/ directory only the 3 directories of the 'gbAsStatistics' process and its two children. There are still files inside them that should be removed (the files in the 'task' sub-directories), but besides that, everything seems to be correct for me. Did you compile the last commit correctly? With a full reconfiguration? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Fri Jan 19 19:46:01 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 19 Jan 2018 18:46:01 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1223: BUG Temporary directory created by Gambas during TASK. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1223&from=L21haW4- Comment #12 by Olivier CRUILLES: Yes I have downloaded the last commit and re-compile it but I'm not sure about the full reconfiguration. I will re-try it soon this evening (Canada timezone) and I back to you with the result. Olivier CRUILLES changed the state of the bug to: Accepted. From owlbrudder at gmail.com Sat Jan 20 07:44:51 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Sat, 20 Jan 2018 16:44:51 +1000 Subject: [Gambas-user] Behaviour of built-in buttons of DataBrowser In-Reply-To: <1515898001.8449.62.camel@gmail.com> References: <1515898001.8449.62.camel@gmail.com> Message-ID: <1516430691.3401.14.camel@gmail.com> On Sun, 2018-01-14 at 12:46 +1000, Doug Hutcheson wrote: > Hi everyone. > > I'm on Fedora 27 using the latest gambas3 from the git > repository - > full system details at the end of this email > > As I plan to > use Gambas for data-oriented applications, it is important > to me to > understand how all the data-aware controls work. > > At present I am having > issues with the DataBrowser as follows: > > 1. Form freezes when ?Enter? is > pressed in last row of data. > Explanation: During an edit or view session > on a MySql table, or a > PostgreSQL table, if I navigate to the right-most > column of the last > row of data and press Enter, the form freezes and has > to be dismissed > using the Stop button in the IDE. This does not happen > on any other row > of data. If the data in the last row were changed, the > change is > correctly transmitted to the database even though the form has > frozen. > > 2. 'Editable? DataBrowser reports numerous null objects when > opening a > larger PostgreSQL table. > Explanation: When opening a PostgreSQL > table containing many rows > (tested with 180 rows) in an ?Editable? > DataBrowser, the control > displays ?DataView.TableView_Data.420: Null > Object? for all visible > rows. Navigating toward the beginning of the > table causes normal > information to be displayed eventually. At this > point, navigating to > the end of the table again sees all data displayed > normally. This > behaviour is not seen when opening a PostgreSQL table > with few records > (eg tested with a table containing only 12 rows). See > attachment. > > 3. Attempt to delete from non-editable DataBrowser using a > PostgreSQL > table throws errors and locks form. > Setup: Create a > DataBrowser on a PostgreSQL table containing mixed-case > column names. > With the DataBrowser property ?Editable? set to False, if > the ?Delete? > button of the control is clicked, error messages relating > to the mixed- > case columns are displayed. The form becomes unresponsive > and must be > dismissed by the ?Stop? button in the IDE. This does not > happen when > using a MySql table with mixed-case column names; in this > case the > chosen row is deleted as expected. See attachment. > > 4. ?New? button seems > inoperative. > This one I m sure is due to my lack of understanding, but I > can't work > it out. > Explanation: > - If the DataBrowser control ?Editable? > property is ?False?, clicking > the ?New? button does not open a new row > to edit. > > - If the DataBrowser control ?Editable? property is ?True?, a > new row > is always available to edit and clicking the ?New? button does > not > change this. > > I expected the behaviour would be to toggle between > presenting a new > row and not presenting a new row. > > > I have attached > everything I believe is needed to reproduce the > problems, except for the > larger PostgreSQL table which contains live > personal data. The project > tar is on my Google Drive at https://drive.google.com/open?id=1qwmukGeA > VEQK73BsmFmx7L9tIRkU11FJ as it was too big to get by the mailecop. > > I am > not sure at which point I should be raising bug reports, but the > informa > tion on http://gambaswiki.org/wiki/doc/report says "If you > cannot solve > your problem, first try to ask on the mailing list. Maybe > someone could > help you, who knows ?", so here I am. > > As always, any help would be > appreciated. > > Kind regards, > Doug > > ------------------------------------------ > ----------------------------- > [System] > Gambas=3.10.90 ce6d6e7e9 (master) > O > peratingSystem=Linux > Kernel=4.14.13-300.fc27.x86_64 > Architecture=x86_64 > Di > stribution=redhat Fedora release 27 (Twenty Seven) > Desktop=GNOME > Theme=Gt > k > Language=en_AU.UTF-8 > Memory=15860M > > [Libraries] > Cairo=libcairo.so.2.11510. > 0 > DBus=libdbus-1.so.3.19.3 > GStreamer=libgstreamer-1.0.so.0.1204.0 > GTK+2=li > bgtk-x11-2.0.so.0.2400.31 > OpenGL=libGL.so.1.0.0 > SQLite=libsqlite3.so.0.8. > 6 > > [Environment] > BASH_FUNC_module%%=() { eval `/usr/bin/modulecmd bash > $*` > } > BASH_FUNC_scl%%=() { if [ "$1" = "load" -o "$1" = "unload" ]; then > > eval "module $@"; > else > /usr/bin/scl "$@"; > fi > } > COLORTERM=truecolor > CVS_RS > H=ssh > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > DESKTOP_SESSI > ON=gnome-xorg > DISPLAY=:0 > GB_GUI=gb.qt4 > GDMSESSION=gnome-xorg > GDM_LANG=en_AU > .UTF-8 > GJS_DEBUG_OUTPUT=stderr > GJS_DEBUG_TOPICS=JS ERROR;JS LOG > GNOME_DESK > TOP_SESSION_ID=this-is-deprecated > HISTCONTROL=ignoredups > HISTSIZE=1000 > HOM > E= > HOSTNAME= > IMSETTINGS_INTEGRATE_DESKTOP=yes > IMSETTINGS_M > ODULE=none > JOURNAL_STREAM=9:44770 > KDEDIRS=/usr > LANG=en_AU.UTF-8 > LESSOPEN=|| > /usr/bin/lesspipe.sh %s > LOADEDMODULES=python-sphinx/python3-sphinx > LOGNAM > E= > LS_COLORS=rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38; > 5;13:do= > 38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5; > 9:mi=01; > 05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38; > 5;226:tw > =48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5; > 40:*.tar > =38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.l > ha=38;5; > 9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38 > ;5;9:*.t > zo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz= > 38;5;9:* > .gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*. > zst=38;5 > ;9:*.tzst=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=3 > 8;5;9:*. > tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:* > .ear=38; > 5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=3 > 8;5;9:*. > cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.wim=38;5;9:* > .swm=38; > 5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mj > pg=38;5; > 13:*.mjpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*. > pgm=38;5 > ;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.t > if=38;5; > 13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*. > mng=38;5 > ;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*. > m2v=38;5 > ;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*. > m4v=38;5 > ;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.w > mv=38;5; > 13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.av > i=38;5;1 > 3:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=3 > 8;5;13:* > .xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38 > ;5;13:*. > ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38; > 5;45:*.m > id=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38; > 5;45:*.o > gg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.oga=38;5;45:*.opus=38;5 > ;45:*.sp > x=38;5;45:*.xspf=38;5;45: > MAIL=/var/spool/mail/ > MODULEPATH= > /etc/scl/modulefiles:/etc/scl/modulefiles:/usr/share/Modules > /modulefile > s:/etc/modulefiles:/usr/share/modulefiles > MODULESHOME=/usr/share/Modules > > OLDPWD=/Downloads/MySql > PATH=/usr/libexec/python3- > sphinx:/usr/lib64/qt- > 3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/loca > l/sbin:/usr/bin:/usr/ > sbin:/.local/bin:/bin > PWD=/Downlo > ads/Gambas/gambasdevel > QTDIR=/usr/lib64/qt-3.3 > QTINC=/usr/lib64/qt- > 3.3/include > QTLIB=/usr/lib64/qt-3.3/lib > QT_IM_MODULE=xim > SESSION_MANAGER=l > ocal/unix:@/tmp/.ICE-unix/7782,unix/unix:/tmp/.ICE- > unix/7782 > SHELL=/bin/ > bash > SHLVL=2 > SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass > SSH_AUTH_S > OCK=/run/user/1000/keyring/ssh > S_COLORS=auto > TERM=xterm-256color > TZ=:/etc/ > localtime > USER= > USERNAME= > VTE_VERSION=5002 > WINDOWID=79691782 > WIN > DOWPATH=2 > XAUTHORITY=/run/user/1000/gdm/Xauthority > XDG_CURRENT_DESKTOP=GN > OME > XDG_DATA_DIRS=/.local/share/flatpak/exports/share/:/var/lib/fl > atp > ak/exports/share/:/usr/local/share/:/usr/share/ > XDG_MENU_PREFIX=gnome > - > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SESSION_DESKTOP=gnome- > xorg > XDG_SESSION_ID=2 > XDG_SESSION_TYPE=x11 > XDG_VTNR=2 > XMODIFIERS=@im=none > _= > /usr/bin/gambas3 > _LMFILES_=/usr/share/modulefiles/python-sphinx/python3- > sphinx I have solved problem #2 above - the null objects - by populating the DataSource via an SQL query instead of directly opening the table. This solution is fine, but I am still curious ... This also solves problem #1 - form freezing when enter is pressed on the rightmost field of the last row. The problem as described as actually more subtle in that the data presented top the control was actually corrupted, with the same hundred or so rows repeated until the row count of the table was reached. Very curious, but no longer important. Problem #3 above still exists Problem #4 above has changed: if I click on the 'Add' button, Gambas throws an 'Out of bounds' error.. Still digging ... Kind regards, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From owlbrudder at gmail.com Sat Jan 20 08:08:10 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Sat, 20 Jan 2018 17:08:10 +1000 Subject: [Gambas-user] Behaviour of built-in buttons of DataBrowser In-Reply-To: <1516430691.3401.14.camel@gmail.com> References: <1515898001.8449.62.camel@gmail.com> <1516430691.3401.14.camel@gmail.com> Message-ID: <1516432090.3401.18.camel@gmail.com> On Sat, 2018-01-20 at 16:44 +1000, Doug Hutcheson wrote: > On Sun, 2018-01-14 at 12:46 +1000, Doug Hutcheson wrote: > > Hi everyone. > > > > I'm on Fedora 27 using the latest gambas3 from the git > > repository - > > full system details at the end of this email > > > > As I plan to > > use Gambas for data-oriented applications, it is important > > to me to > > understand how all the data-aware controls work. > > > > At present I am having > > issues with the DataBrowser as follows: > > > > 1. Form freezes when ?Enter? is > > pressed in last row of data. > > Explanation: During an edit or view session > > on a MySql table, or a > > PostgreSQL table, if I navigate to the right-most > > column of the last > > row of data and press Enter, the form freezes and has > > to be dismissed > > using the Stop button in the IDE. This does not happen > > on any other row > > of data. If the data in the last row were changed, the > > change is > > correctly transmitted to the database even though the form has > > frozen. > > > > 2. 'Editable? DataBrowser reports numerous null objects when > > opening a > > larger PostgreSQL table. > > Explanation: When opening a PostgreSQL > > table containing many rows > > (tested with 180 rows) in an ?Editable? > > DataBrowser, the control > > displays ?DataView.TableView_Data.420: Null > > Object? for all visible > > rows. Navigating toward the beginning of the > > table causes normal > > information to be displayed eventually. At this > > point, navigating to > > the end of the table again sees all data displayed > > normally. This > > behaviour is not seen when opening a PostgreSQL table > > with few records > > (eg tested with a table containing only 12 rows). See > > attachment. > > > > 3. Attempt to delete from non-editable DataBrowser using a > > PostgreSQL > > table throws errors and locks form. > > Setup: Create a > > DataBrowser on a PostgreSQL table containing mixed-case > > column names. > > With the DataBrowser property ?Editable? set to False, if > > the ?Delete? > > button of the control is clicked, error messages relating > > to the mixed- > > case columns are displayed. The form becomes unresponsive > > and must be > > dismissed by the ?Stop? button in the IDE. This does not > > happen when > > using a MySql table with mixed-case column names; in this > > case the > > chosen row is deleted as expected. See attachment. > > > > 4. ?New? button seems > > inoperative. > > This one I m sure is due to my lack of understanding, but I > > can't work > > it out. > > Explanation: > > - If the DataBrowser control ?Editable? > > property is ?False?, clicking > > the ?New? button does not open a new row > > to edit. > > > > - If the DataBrowser control ?Editable? property is ?True?, a > > new row > > is always available to edit and clicking the ?New? button does > > not > > change this. > > > > I expected the behaviour would be to toggle between > > presenting a new > > row and not presenting a new row. > > > > > > I have attached > > everything I believe is needed to reproduce the > > problems, except for the > > larger PostgreSQL table which contains live > > personal data. The project > > tar is on my Google Drive at https://drive.google.com/open?id=1qwmu > > kGeA > > VEQK73BsmFmx7L9tIRkU11FJ as it was too big to get by the mailecop. > > > > I am > > not sure at which point I should be raising bug reports, but the > > informa > > tion on http://gambaswiki.org/wiki/doc/report says "If you > > cannot solve > > your problem, first try to ask on the mailing list. Maybe > > someone could > > help you, who knows ?", so here I am. > > > > As always, any help would be > > appreciated. > > > > Kind regards, > > Doug > > > > ------------------------------------------ > > ----------------------------- > > [System] > > Gambas=3.10.90 ce6d6e7e9 (master) > > O > > peratingSystem=Linux > > Kernel=4.14.13-300.fc27.x86_64 > > Architecture=x86_64 > > Di > > stribution=redhat Fedora release 27 (Twenty Seven) > > Desktop=GNOME > > Theme=Gt > > k > > Language=en_AU.UTF-8 > > Memory=15860M > > > > [Libraries] > > Cairo=libcairo.so.2.11510. > > 0 > > DBus=libdbus-1.so.3.19.3 > > GStreamer=libgstreamer-1.0.so.0.1204.0 > > GTK+2=li > > bgtk-x11-2.0.so.0.2400.31 > > OpenGL=libGL.so.1.0.0 > > SQLite=libsqlite3.so.0.8. > > 6 > > > > [Environment] > > BASH_FUNC_module%%=() { eval `/usr/bin/modulecmd bash > > $*` > > } > > BASH_FUNC_scl%%=() { if [ "$1" = "load" -o "$1" = "unload" ]; then > > > > eval "module $@"; > > else > > /usr/bin/scl "$@"; > > fi > > } > > COLORTERM=truecolor > > CVS_RS > > H=ssh > > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > > DESKTOP_SESSI > > ON=gnome-xorg > > DISPLAY=:0 > > GB_GUI=gb.qt4 > > GDMSESSION=gnome-xorg > > GDM_LANG=en_AU > > .UTF-8 > > GJS_DEBUG_OUTPUT=stderr > > GJS_DEBUG_TOPICS=JS ERROR;JS LOG > > GNOME_DESK > > TOP_SESSION_ID=this-is-deprecated > > HISTCONTROL=ignoredups > > HISTSIZE=1000 > > HOM > > E= > > HOSTNAME= > > IMSETTINGS_INTEGRATE_DESKTOP=yes > > IMSETTINGS_M > > ODULE=none > > JOURNAL_STREAM=9:44770 > > KDEDIRS=/usr > > LANG=en_AU.UTF-8 > > LESSOPEN=|| > > /usr/bin/lesspipe.sh %s > > LOADEDMODULES=python-sphinx/python3-sphinx > > LOGNAM > > E= > > LS_COLORS=rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38; > > 5;13:do= > > 38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5; > > 9:mi=01; > > 05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38; > > 5;226:tw > > =48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5; > > 40:*.tar > > =38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.l > > ha=38;5; > > 9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38 > > ;5;9:*.t > > zo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz= > > 38;5;9:* > > .gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*. > > zst=38;5 > > ;9:*.tzst=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=3 > > 8;5;9:*. > > tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:* > > .ear=38; > > 5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=3 > > 8;5;9:*. > > cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.wim=38;5;9:* > > .swm=38; > > 5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mj > > pg=38;5; > > 13:*.mjpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*. > > pgm=38;5 > > ;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.t > > if=38;5; > > 13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*. > > mng=38;5 > > ;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*. > > m2v=38;5 > > ;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*. > > m4v=38;5 > > ;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.w > > mv=38;5; > > 13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.av > > i=38;5;1 > > 3:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=3 > > 8;5;13:* > > .xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38 > > ;5;13:*. > > ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38; > > 5;45:*.m > > id=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38; > > 5;45:*.o > > gg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.oga=38;5;45:*.opus=38;5 > > ;45:*.sp > > x=38;5;45:*.xspf=38;5;45: > > MAIL=/var/spool/mail/ > > MODULEPATH= > > /etc/scl/modulefiles:/etc/scl/modulefiles:/usr/share/Modules > > /modulefile > > s:/etc/modulefiles:/usr/share/modulefiles > > MODULESHOME=/usr/share/Modules > > > > OLDPWD=/Downloads/MySql > > PATH=/usr/libexec/python3- > > sphinx:/usr/lib64/qt- > > 3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/loca > > l/sbin:/usr/bin:/usr/ > > sbin:/.local/bin:/bin > > PWD=/Downlo > > ads/Gambas/gambasdevel > > QTDIR=/usr/lib64/qt-3.3 > > QTINC=/usr/lib64/qt- > > 3.3/include > > QTLIB=/usr/lib64/qt-3.3/lib > > QT_IM_MODULE=xim > > SESSION_MANAGER=l > > ocal/unix:@/tmp/.ICE-unix/7782,unix/unix:/tmp/.ICE- > > unix/7782 > > SHELL=/bin/ > > bash > > SHLVL=2 > > SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass > > SSH_AUTH_S > > OCK=/run/user/1000/keyring/ssh > > S_COLORS=auto > > TERM=xterm-256color > > TZ=:/etc/ > > localtime > > USER= > > USERNAME= > > VTE_VERSION=5002 > > WINDOWID=79691782 > > WIN > > DOWPATH=2 > > XAUTHORITY=/run/user/1000/gdm/Xauthority > > XDG_CURRENT_DESKTOP=GN > > OME > > XDG_DATA_DIRS=/.local/share/flatpak/exports/share/:/var/lib/f > > l > > atp > > ak/exports/share/:/usr/local/share/:/usr/share/ > > XDG_MENU_PREFIX=gnome > > - > > XDG_RUNTIME_DIR=/run/user/1000 > > XDG_SEAT=seat0 > > XDG_SESSION_DESKTOP=gnome- > > xorg > > XDG_SESSION_ID=2 > > XDG_SESSION_TYPE=x11 > > XDG_VTNR=2 > > XMODIFIERS=@im=none > > _= > > /usr/bin/gambas3 > > _LMFILES_=/usr/share/modulefiles/python-sphinx/python3- > > sphinx > > I have solved problem #2 above - the null objects - by populating the > DataSource via an SQL query instead of directly opening the table. > This solution is fine, but I am still curious ... > > This also solves problem #1 - form freezing when enter is pressed on > the rightmost field of the last row. > > The problem as described as actually more subtle in that the data > presented top the control was actually corrupted, with the same > hundred or so rows repeated until the row count of the table was > reached. Very curious, but no longer important. > > Problem #3 above still exists > > Problem #4 above has changed: if I click on the 'Add' button, Gambas > throws an 'Out of bounds' error.. > > Still digging ... > > Kind regards, > Doug I forgot to add that it would be very useful to have access to the button events in the DataBrowser, so I could write my own code for Add, Edit, Delete and Refresh. I can't see these events exposed anywhere. Cheers, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Sat Jan 20 09:51:26 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 20 Jan 2018 09:51:26 +0100 Subject: [Gambas-user] Can JSON.Decode be faster? In-Reply-To: References: <25f50335-1c0d-e99c-6d1c-4603ea999cb9@gmail.com> <2da2bbe9-be83-27d5-5947-8f033e647597@gmail.com> Message-ID: Hi, Benoit... I don't really understand why using std function call is so slower than Gosub calls :-/ 2018-01-18 18:33 GMT+01:00 Patrik Karlsson : > 2018-01-18 2:05 GMT+01:00 Beno?t Minisini : >> >> Le 18/01/2018 ? 01:05, Beno?t Minisini a ?crit : >>> >>> Le 17/01/2018 ? 21:27, Patrik Karlsson a ?crit : >>>> >>>> In this little project: https://github.com/trixon/gambas-idg (contains a >>>> json file, requires Gambas=3.10.90 c1e4b89 (master)) >>>> >>>> I'm decoding a json string around 1MB and it takes 30 seconds in Gambas. >>>> CPU: Quad core Intel Core i7-6700HQ (-MT-MCP-) cache: 6144 KB >>>> clock speeds: max: 3500 MHz 1: 800 MHz 2: 800 MHz 3: 800 MHz >>>> 4: 800 MHz 5: 800 MHz 6: 800 MHz >>>> 7: 800 MHz 8: 800 MHz >>>> >>>> When doing it in java with Google Gson it takes virtually no time at >>>> all. >>>> >>>> I intend to use this in an image viewer that consumes base64 encoded >>>> photos wrapped in a json among its exif data. >>>> Could this be done faster in Gambas? >>> >>> >> >> You can test the commit >> https://gitlab.com/gambas/gambas/commit/4ff9f7ddef726e3957c30bf31b794b894b88d914 >> to check the speed up of the JSON.Decode() routine. >> >> ...and the default null margin for ImageView.ZoomFit() too. >> >> Regards, >> >> >> -- >> Beno?t Minisini >> > > Thank you, it's blazing fast now! > About 100 times faster. :) > > 01/18/2018 19:27:54.043 load json > 01/18/2018 19:27:54.044 decode json > 01/18/2018 19:27:54.367 getBase64 > 01/18/2018 19:27:54.367 loadImage > 01/18/2018 19:27:54.397 done > > The null margin is much appreciated, so is the sdl2 tweak. > > /Patrik > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -- Fabien Bodard From criguada at gmail.com Sat Jan 20 14:20:46 2018 From: criguada at gmail.com (Cristiano Guadagnino) Date: Sat, 20 Jan 2018 14:20:46 +0100 Subject: [Gambas-user] Can JSON.Decode be faster? In-Reply-To: References: <25f50335-1c0d-e99c-6d1c-4603ea999cb9@gmail.com> <2da2bbe9-be83-27d5-5947-8f033e647597@gmail.com> Message-ID: They are completely different beasts... A gosub translates to a simple jump to another address in assembler code, there's no overhead at all. A function on the other hand has it's own private variables, so during the call you need to save the state of the calling routine and then you have to maintain the stack. These are the first things that come to mind, but there may be more. Cris On Sat, Jan 20, 2018 at 9:51 AM, Fabien Bodard wrote: > Hi, Benoit... I don't really understand why using std function call is > so slower than Gosub calls :-/ > > 2018-01-18 18:33 GMT+01:00 Patrik Karlsson : > > 2018-01-18 2:05 GMT+01:00 Beno?t Minisini : > >> > >> Le 18/01/2018 ? 01:05, Beno?t Minisini a ?crit : > >>> > >>> Le 17/01/2018 ? 21:27, Patrik Karlsson a ?crit : > >>>> > >>>> In this little project: https://github.com/trixon/gambas-idg > (contains a > >>>> json file, requires Gambas=3.10.90 c1e4b89 (master)) > >>>> > >>>> I'm decoding a json string around 1MB and it takes 30 seconds in > Gambas. > >>>> CPU: Quad core Intel Core i7-6700HQ (-MT-MCP-) cache: 6144 KB > >>>> clock speeds: max: 3500 MHz 1: 800 MHz 2: 800 MHz 3: 800 > MHz > >>>> 4: 800 MHz 5: 800 MHz 6: 800 MHz > >>>> 7: 800 MHz 8: 800 MHz > >>>> > >>>> When doing it in java with Google Gson it takes virtually no time at > >>>> all. > >>>> > >>>> I intend to use this in an image viewer that consumes base64 encoded > >>>> photos wrapped in a json among its exif data. > >>>> Could this be done faster in Gambas? > >>> > >>> > >> > >> You can test the commit > >> https://gitlab.com/gambas/gambas/commit/4ff9f7ddef726e3957c30bf31b794b > 894b88d914 > >> to check the speed up of the JSON.Decode() routine. > >> > >> ...and the default null margin for ImageView.ZoomFit() too. > >> > >> Regards, > >> > >> > >> -- > >> Beno?t Minisini > >> > > > > Thank you, it's blazing fast now! > > About 100 times faster. :) > > > > 01/18/2018 19:27:54.043 load json > > 01/18/2018 19:27:54.044 decode json > > 01/18/2018 19:27:54.367 getBase64 > > 01/18/2018 19:27:54.367 loadImage > > 01/18/2018 19:27:54.397 done > > > > The null margin is much appreciated, so is the sdl2 tweak. > > > > /Patrik > > > > > > -------------------------------------------------- > > > > This is the Gambas Mailing List > > https://lists.gambas-basic.org/listinfo/user > > > > Hosted by https://www.hostsharing.net > > > > > > -- > Fabien Bodard > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Jan 20 15:14:11 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 20 Jan 2018 15:14:11 +0100 Subject: [Gambas-user] Can JSON.Decode be faster? In-Reply-To: References: <25f50335-1c0d-e99c-6d1c-4603ea999cb9@gmail.com> <2da2bbe9-be83-27d5-5947-8f033e647597@gmail.com> Message-ID: <97d67cd1-e673-90ab-2d41-71a102151933@gmail.com> Le 20/01/2018 ? 09:51, Fabien Bodard a ?crit?: > Hi, Benoit... I don't really understand why using std function call is > so slower than Gosub calls :-/ > Because a function call must, when entering it: - Save the virtual machine registers. - Push arguments on the stack. - Convert these arguments. - Check for optional arguments. - Allocate stack for local variables. And when exiting it: - Handle ByRef arguments. - Pop the stack. - Restore the virtual machine registers. -- Beno?t Minisini From bugtracker at gambaswiki.org Sat Jan 20 16:56:06 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 20 Jan 2018 15:56:06 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1223: BUG Temporary directory created by Gambas during TASK. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1223&from=L21haW4- Comment #13 by Beno?t MINISINI: $ ./reconf-all $ ./configure -C $ make -j5 # if you have four cores From gitlab at mg.gitlab.com Sat Jan 20 16:52:59 2018 From: gitlab at mg.gitlab.com (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Sat, 20 Jan 2018 15:52:59 +0000 Subject: [Gambas-user] =?utf-8?b?W0dpdF1bZ2FtYmFzL2dhbWJhc11bbWFzdGVyXSAy?= =?utf-8?q?_commits=3A_When_a_task_terminates=2C_it_now_internally_calls_t?= =?utf-8?q?he_QUIT_instruction=2C_so_that=E2=80=A6?= Message-ID: <5a6365dd1cfae_1ee353fcc9348cb248010a3@sidekiq-asap-01.mail> Beno?t Minisini pushed to branch master at Gambas / gambas Commits: dc9bdcfc by gambas at 2018-01-19T01:56:13+01:00 When a task terminates, it now internally calls the QUIT instruction, so that everything is cleaned up. [INTERPRETER] * BUG: When a task terminates, it now internally calls the QUIT instruction, so that everything is cleaned up. - - - - - 47711694 by gambas at 2018-01-20T16:43:13+01:00 Tasks do not print memory and objects clean up warnings anymore, and their output serialization file is now automatically destroyed. [INTERPRETER] * BUG: Remove the task output serialization file when it is freed. * BUG: Tasks do not print memory and objects clean up warnings anymore. - - - - - 2 changed files: - main/gbx/gbx.c - main/gbx/gbx_c_task.c Changes: ===================================== main/gbx/gbx.c ===================================== --- a/main/gbx/gbx.c +++ b/main/gbx/gbx.c @@ -116,6 +116,8 @@ static void init(const char *file, int argc, char **argv) static void main_exit(bool silent) { + silent |= EXEC_task; + // If the stack has not been initialized because the project could not be started, do it now if (!SP) STACK_init(); @@ -466,7 +468,8 @@ int main(int argc, char *argv[]) main_exit(FALSE); - MEMORY_exit(); + if (!EXEC_task) + MEMORY_exit(); fflush(NULL); ===================================== main/gbx/gbx_c_task.c ===================================== --- a/main/gbx/gbx_c_task.c +++ b/main/gbx/gbx_c_task.c @@ -250,6 +250,12 @@ static void prepare_task(CTASK *_object) THIS->fd_err = -1; } +static void exit_child(int ret) +{ + EXEC_quit_value = ret; + EXEC_quit(); +} + static bool start_task(CTASK *_object) { const char *err = NULL; @@ -339,7 +345,7 @@ static bool start_task(CTASK *_object) close(fd_out[0]); if (dup2(fd_out[1], STDOUT_FILENO) == -1) - exit(CHILD_STDOUT); + exit_child(CHILD_STDOUT); setlinebuf(stdout); } @@ -351,7 +357,7 @@ static bool start_task(CTASK *_object) close(fd_err[0]); if (dup2(fd_err[1], STDERR_FILENO) == -1) - exit(CHILD_STDERR); + exit_child(CHILD_STDERR); setlinebuf(stderr); } @@ -377,7 +383,7 @@ static bool start_task(CTASK *_object) #if DEBUG_ME fprintf(stderr, "gb.task: serialization has failed\n"); #endif - exit(CHILD_RETURN); + exit_child(CHILD_RETURN); } } } @@ -393,12 +399,12 @@ static bool start_task(CTASK *_object) fclose(f); } - exit(CHILD_ERROR); + exit_child(CHILD_ERROR); } } END_TRY - _exit(CHILD_OK); + exit_child(CHILD_OK); } return FALSE; @@ -426,6 +432,81 @@ static void close_fd(int *pfd) } } +static bool get_return_value(CTASK *_object, bool cleanup) +{ + char path[PATH_MAX]; + GB_VALUE value; + bool fail = FALSE; + struct stat info; + char *err = NULL; + int fd; + int n; + + sprintf(path, RETURN_FILE_PATTERN, getuid(), getpid(), THIS->pid); + + if (!cleanup) + { + switch (THIS->status) + { + case CHILD_OK: + + #if DEBUG_ME + fprintf(stderr,"unserialize from: %s\n", path); + #endif + if (!THIS->got_value) + { + fail = GB_UnSerialize(path, &value); + if (!fail) + GB_StoreVariant(&value._variant, &THIS->ret); + THIS->got_value = TRUE; + } + break; + + case CHILD_ERROR: + + if (stat(path, &info)) + { + fail = TRUE; + } + else + { + err = STRING_new_temp(NULL, info.st_size); + + fd = open(path, O_RDONLY); + if (fd < 0) + { + fail = TRUE; + break; + } + else + { + for(;;) + { + n = read(fd, err, info.st_size); + if (n == info.st_size || errno != EINTR) + break; + } + close(fd); + + if (n == info.st_size) + GB_Error("Task has failed: &1", err); + else + fail = TRUE; + } + } + + if (fail) + GB_Error("Unable to get task error"); + + break; + } + } + + unlink(path); + + return fail; +} + static void cleanup_task(CTASK *_object) { //printf("cleanup task %p\n", THIS); fflush(stdout); @@ -521,6 +602,7 @@ END_METHOD BEGIN_METHOD_VOID(Task_free) + get_return_value(THIS, TRUE); GB_StoreVariant(NULL, &THIS->ret); END_METHOD @@ -573,36 +655,16 @@ END_METHOD BEGIN_PROPERTY(Task_Value) - char path[PATH_MAX]; - GB_VALUE ret; - FILE_STAT info; - char *err = NULL; - int fd; - int n; - if (!THIS->child && THIS->stopped) { - sprintf(path, RETURN_FILE_PATTERN, getuid(), getpid(), THIS->pid); - #if DEBUG_ME - fprintf(stderr,"unserialize from: %s\n", path); - #endif - if (WIFEXITED(THIS->status)) { switch (WEXITSTATUS(THIS->status)) { case CHILD_OK: - if (!THIS->got_value) - { - bool fail = GB_UnSerialize(path, &ret); - if (!fail) - GB_StoreVariant(&ret._variant, &THIS->ret); - unlink(path); - THIS->got_value = TRUE; - if (fail) - break; - } + if (get_return_value(THIS, FALSE)) + break; GB_ReturnVariant(&THIS->ret); return; @@ -623,23 +685,8 @@ BEGIN_PROPERTY(Task_Value) case CHILD_ERROR: - FILE_stat(path, &info, FALSE); - - err = STRING_new_temp(NULL, info.size); - - fd = open(path, O_RDONLY); - if (fd < 0) goto __ERROR; - - for(;;) - { - n = read(fd, err, info.size); - if (n == info.size || errno != EINTR) - break; - } - close(fd); - - GB_Error("Task has failed: &1", err); - return; + get_return_value(THIS, FALSE); + break; } } else if (WIFSIGNALED(THIS->status)) @@ -649,8 +696,6 @@ BEGIN_PROPERTY(Task_Value) } } -__ERROR: - GB_ReturnNull(); GB_ReturnConvVariant(); View it on GitLab: https://gitlab.com/gambas/gambas/compare/4ff9f7ddef726e3957c30bf31b794b894b88d914...477116942dec5d4a3e0da9956638a606c1fe0169 --- View it on GitLab: https://gitlab.com/gambas/gambas/compare/4ff9f7ddef726e3957c30bf31b794b894b88d914...477116942dec5d4a3e0da9956638a606c1fe0169 You're receiving this email because of your account on gitlab.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Jan 20 17:02:52 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 20 Jan 2018 17:02:52 +0100 Subject: [Gambas-user] WebForm With httpd In-Reply-To: <20180118210923.M66280@455.co.il> References: <20180118210923.M66280@455.co.il> Message-ID: <48eb5fff-6e23-f1cd-37e3-39f160190492@gmail.com> Le 18/01/2018 ? 22:09, Mayost Sharon a ?crit?: > Hello > > gambas: 3.10.0 > > > I want to compile my WebForm > And I want to run it with an "HTTPD server" > > NOT with "gambas embedded HTTP" > > The reason is that when I run with an "gambas embedded HTTP" > > If there are "Multiple clients" > > > When a client first clicks a button and it enters the event and executes "SLEEP 30" > It stops the all clients > > For example, if the WebForm displays a "CLOCK" > It stops everybody's clients > > Is there a solution to this problem > > > > Export > > Public Sub WebTimer1_Timer() > WebLabel1.Text = Now() > End > > Public Sub WebButton2_Click() > Sleep 20 > End > This is by design. The embedded HTTP server does that (serializing all requests) to help debugging. If you want to test your application for real, you have to install a true HTTP server on your system, and copy your project executable in the accurate place where it can act as a CGI script. Regards, -- Beno?t Minisini From taboege at gmail.com Sat Jan 20 17:07:42 2018 From: taboege at gmail.com (Tobias Boege) Date: Sat, 20 Jan 2018 17:07:42 +0100 Subject: [Gambas-user] =?utf-8?b?W0dpdF1bZ2FtYmFzL2dhbWJhc11bbWFzdGVyXSAy?= =?utf-8?q?_commits=3A_When_a_task_terminates=2C_it_now_internally_calls_t?= =?utf-8?q?he_QUIT_instruction=2C_so_that=E2=80=A6?= In-Reply-To: <5a6365dd1cfae_1ee353fcc9348cb248010a3@sidekiq-asap-01.mail> References: <5a6365dd1cfae_1ee353fcc9348cb248010a3@sidekiq-asap-01.mail> Message-ID: <20180120160742.GH931@highrise.localdomain> On Sat, 20 Jan 2018, Beno?t Minisini via User wrote: > Beno?t Minisini pushed to branch master at Gambas / gambas > > > Commits: > dc9bdcfc by gambas at 2018-01-19T01:56:13+01:00 > When a task terminates, it now internally calls the QUIT instruction, so that everything is cleaned up. > > [INTERPRETER] > * BUG: When a task terminates, it now internally calls the QUIT instruction, so that everything is cleaned up. > > - - - - - > 47711694 by gambas at 2018-01-20T16:43:13+01:00 > Tasks do not print memory and objects clean up warnings anymore, and their output serialization file is now automatically destroyed. > > [INTERPRETER] > * BUG: Remove the task output serialization file when it is freed. > * BUG: Tasks do not print memory and objects clean up warnings anymore. > > - - - - - > I've been missing this kind of message! I have no idea anymore what's happening to the Gambas sources as the RSS feeds from gitlab seldom contain the entire commit message (and I'm too lazy to fetch and read the logs). But I don't know if the full diff should be included. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From g4mba5 at gmail.com Sat Jan 20 17:12:53 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 20 Jan 2018 17:12:53 +0100 Subject: [Gambas-user] =?utf-8?b?W0dpdF1bZ2FtYmFzL2dhbWJhc11bbWFzdGVyXSAy?= =?utf-8?q?_commits=3A_When_a_task_terminates=2C_it_now_internally_calls_t?= =?utf-8?q?he_QUIT_instruction=2C_so_that=E2=80=A6?= In-Reply-To: <20180120160742.GH931@highrise.localdomain> References: <5a6365dd1cfae_1ee353fcc9348cb248010a3@sidekiq-asap-01.mail> <20180120160742.GH931@highrise.localdomain> Message-ID: <5c6b8f64-6548-cfea-bfa1-362f25236538@gmail.com> Le 20/01/2018 ? 17:07, Tobias Boege a ?crit?: > On Sat, 20 Jan 2018, Beno?t Minisini via User wrote: >> Beno?t Minisini pushed to branch master at Gambas / gambas >> >> >> Commits: >> dc9bdcfc by gambas at 2018-01-19T01:56:13+01:00 >> When a task terminates, it now internally calls the QUIT instruction, so that everything is cleaned up. >> >> [INTERPRETER] >> * BUG: When a task terminates, it now internally calls the QUIT instruction, so that everything is cleaned up. >> >> - - - - - >> 47711694 by gambas at 2018-01-20T16:43:13+01:00 >> Tasks do not print memory and objects clean up warnings anymore, and their output serialization file is now automatically destroyed. >> >> [INTERPRETER] >> * BUG: Remove the task output serialization file when it is freed. >> * BUG: Tasks do not print memory and objects clean up warnings anymore. >> >> - - - - - >> > > I've been missing this kind of message! I have no idea anymore what's > happening to the Gambas sources as the RSS feeds from gitlab seldom > contain the entire commit message (and I'm too lazy to fetch and read > the logs). But I don't know if the full diff should be included. > > Regards, > Tobi > I have just subscribe the address used by gitlab to send commit mails to the Gambas mailing-list. But I don't know why this mail has been set, as these two commits already have been sent yesterday and half an hour ago. Moreover, I don't know why this mail has "noreply at gitlab.com" in the Reply-To field. I'd like to remove it, but I don't think it is possible. And why it has "Beno?t Minisini" in the "CC" field? Weird... -- Beno?t Minisini From t.lee.davidson at gmail.com Sat Jan 20 18:25:25 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 20 Jan 2018 12:25:25 -0500 Subject: [Gambas-user] Behaviour of built-in buttons of DataBrowser In-Reply-To: <1516432090.3401.18.camel@gmail.com> References: <1515898001.8449.62.camel@gmail.com> <1516430691.3401.14.camel@gmail.com> <1516432090.3401.18.camel@gmail.com> Message-ID: <52f10266-d82d-6346-47b6-075b25f00218@gmail.com> On 01/20/2018 02:08 AM, Doug Hutcheson wrote: > Problem #4 above has changed: if I click on the 'Add' button, Gambas throws an 'Out of bounds' error.. I get that error also if the row cursor is already on the automatically added "new" row, ie. the last (virtual) row. > I forgot to add that it would be very useful to have access to the button events in the DataBrowser, so I could write my own > code for Add, Edit, Delete and Refresh. I can't see these events exposed anywhere. The DataBrowser is quick and convenient. If you need more control, use a DataView with your own, separate buttons for each operation. -- Lee From bugtracker at gambaswiki.org Sat Jan 20 20:39:12 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 20 Jan 2018 19:39:12 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1223: BUG Temporary directory created by Gambas during TASK. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1223&from=L21haW4- Comment #14 by Olivier CRUILLES: I have re-tried all the project and it works now as expected. All directories in /tmp/gambas./ related to a TASK are delete automatically now. So it's fixed. Now I don't know if it's in relation to this fix, but when a Task finish, the event ERROR of the Task raise in parent process with some 'gbx3: warning: circular references detected' like this one for example: 2018-01-20 07:38:37.380 [31305] gbAsConsumer [31305] cTaskFlow_Error() - Error: gbx3: warning: circular references detected: gbx3: 1 CTaskFlow gbx3: warning: 6 allocation(s) non freed. I have tried to fix it by removing all Arrays, Collections, Object[], etc... at the end of the Tasks but some still referenced. Do you think this is a bug in my code or in Gambas ? I can open a new Bug report for this one if you need. Thank you for the fix. Olivier From bugtracker at gambaswiki.org Sat Jan 20 20:48:27 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 20 Jan 2018 19:48:27 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1224: Add IPC shared memory between Main process and these forks (TASK) In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1224&from=L21haW4- Comment #1 by Olivier CRUILLES: Regarding this feature, I have took a look at these command on Linux: $ ipcmk $ iprm $ ipcs I will try to use it to communicate between a gambas process and a Task and see if it works. In all cases, if it could be possible to have bilateral communication with a between a main process and a Task, it will be very nice in full of projects I'm working on. It could be a cheap version of Thread in Gambas (It's my own vision) Olivier From bugtracker at gambaswiki.org Sat Jan 20 20:56:08 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 20 Jan 2018 19:56:08 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1223: BUG Temporary directory created by Gambas during TASK. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1223&from=L21haW4- Comment #15 by Beno?t MINISINI: Just pull the latest commit, and recompile. Tasks won't emit any memory warning anymore. As task is a fork of a current running Gambas process, it inherits the memory state of its parent. So you get allocated objects that you can't explicitly free. If you want the real details, look at the man page of the fork() system call. I could make Task execute the interpreter after the fork(), so that it starts in a clean state like any other Gambas process. But I prefer just make a fork(), even if it generates its own potential problems, because: - It's faster. - You can access all objects of the parent process, which allows sending arguments to the task fast. From g4mba5 at gmail.com Sat Jan 20 20:58:24 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 20 Jan 2018 20:58:24 +0100 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1224: Add IPC shared memory between Main process and these forks (TASK) In-Reply-To: <5a639d30.2992500a.c4e03.3638SMTPIN_ADDED_BROKEN@mx.google.com> References: <5a639d30.2992500a.c4e03.3638SMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: <8c5e8821-2d04-d59b-89b1-a93c228de372@gmail.com> Le 20/01/2018 ? 20:48, bugtracker at gambaswiki.org a ?crit?: > http://gambaswiki.org/bugtracker/edit?object=BUG.1224&from=L21haW4- > > Comment #1 by Olivier CRUILLES: > > Regarding this feature, I have took a look at these command on Linux: > > $ ipcmk > $ iprm > $ ipcs > > I will try to use it to communicate between a gambas process and a Task and see if it works. > > In all cases, if it could be possible to have bilateral communication with a between a main process and a Task, it will be very nice in full of projects I'm working on. It could be a cheap version of Thread in Gambas (It's my own vision) > > Olivier > Why don't you try yo use the OPEN PIPE instruction? -- Beno?t Minisini From bugtracker at gambaswiki.org Sat Jan 20 22:52:45 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 20 Jan 2018 21:52:45 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1223: BUG Temporary directory created by Gambas during TASK. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1223&from=L21haW4- Comment #16 by Olivier CRUILLES: I confirm that is fixed. No more error message raise now when the Task end. Thanks From bugtracker at gambaswiki.org Sat Jan 20 22:52:54 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 20 Jan 2018 21:52:54 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1223: BUG Temporary directory created by Gambas during TASK. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1223&from=L21haW4- Olivier CRUILLES changed the state of the bug to: Fixed. From mckaygerhard at gmail.com Sun Jan 21 03:12:10 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 20 Jan 2018 22:12:10 -0400 Subject: [Gambas-user] =?utf-8?b?W0dpdF1bZ2FtYmFzL2dhbWJhc11bbWFzdGVyXSAy?= =?utf-8?q?_commits=3A_When_a_task_terminates=2C_it_now_internally_?= =?utf-8?q?calls_the_QUIT_instruction=2C_so_that=E2=80=A6?= In-Reply-To: <20180120160742.GH931@highrise.localdomain> References: <5a6365dd1cfae_1ee353fcc9348cb248010a3@sidekiq-asap-01.mail> <20180120160742.GH931@highrise.localdomain> Message-ID: me, too ask for this king of messages.. i have many repositoryes at gitlab and use event the integration tool and works perfectly Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-01-20 12:07 GMT-04:00 Tobias Boege : > On Sat, 20 Jan 2018, Beno?t Minisini via User wrote: > > Beno?t Minisini pushed to branch master at Gambas / gambas > > > > > > Commits: > > dc9bdcfc by gambas at 2018-01-19T01:56:13+01:00 > > When a task terminates, it now internally calls the QUIT instruction, so > that everything is cleaned up. > > > > [INTERPRETER] > > * BUG: When a task terminates, it now internally calls the QUIT > instruction, so that everything is cleaned up. > > > > - - - - - > > 47711694 by gambas at 2018-01-20T16:43:13+01:00 > > Tasks do not print memory and objects clean up warnings anymore, and > their output serialization file is now automatically destroyed. > > > > [INTERPRETER] > > * BUG: Remove the task output serialization file when it is freed. > > * BUG: Tasks do not print memory and objects clean up warnings anymore. > > > > - - - - - > > > > I've been missing this kind of message! I have no idea anymore what's > happening to the Gambas sources as the RSS feeds from gitlab seldom > contain the entire commit message (and I'm too lazy to fetch and read > the logs). But I don't know if the full diff should be included. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Sun Jan 21 08:31:22 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Sun, 21 Jan 2018 09:31:22 +0200 Subject: [Gambas-user] WebTimer Event Message-ID: <20180121073122.M55622@455.co.il> Hello gambas: 3.10.0 If within the event WebTimer1_Timer() WebTimer1.Stop Or WebTimer1.Enable = False It stops the WebTimer1 But when i do again which Start It does not work Export Public Sub WebButton1_Click() WebTimer1.Start() End Public Sub WebTimer1_Timer() WebLabel1.Text = Now() WebTimer1.Stop() End Public Sub WebButton2_Click() WebTimer1.Stop() End From sharon at 455.co.il Sun Jan 21 08:31:51 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Sun, 21 Jan 2018 09:31:51 +0200 Subject: [Gambas-user] WebComboBox Clear Message-ID: <20180121073151.M10398@455.co.il> hello OS: Fedora 27 64BIT Gambas: 3.10.0 I have WebForm1 I put on the WebForm1 3 controls of WebButton1 WebComboBox1 WebLabel1 When I press the WebButton1 it fills the combo box at "1" and "2" When I select from the WebComboBox1 this should put the value within the WebLabel1 value that I selected It does work But if I click again on WebComboBox1 it does not work But if I cancel the line: "WebComboBox1.Clear" It does work This is not good because it continues to add to the combo box Thank you ' Gambas class file Export Public Sub WebButton1_Click() WebComboBox1.Clear WebComboBox1.Add("1") WebComboBox1.Add("2") End Public Sub WebComboBox1_Click() WebLabel1.Text = WebComboBox1.Text End From bkv at mailbox.org Sun Jan 21 14:14:56 2018 From: bkv at mailbox.org (bkv at mailbox.org) Date: Sun, 21 Jan 2018 14:14:56 +0100 (CET) Subject: [Gambas-user] Select statement in Table property Message-ID: <2064900339.66216.1516540497047@office.mailbox.org> Hi I tried to set the Table property of the Datasource to an SQL SELECT in my source code, but Gambas says "unknown table". According to the documentation quoted in previous post below, it must be possible to use an SQL SELECT here. What am I doing wrong? Here is my line of code that gives "Unknown table" DSPatron.Table = "SELECT p. *, k.kost_kilo From patron As p inner join krutt As k On p.krutt_id = k.krutt_id " Regards, Bj?rn > On January 8, 2018 at 2:35 AM T Lee Davidson wrote: >>> You're talking about setting that property statically from the IDE, correct? >> You may have to do it in code. >> From http://gambaswiki.org/wiki/comp/gb.db.form/datasource/table: > 'This property can take any SQL "SELECT" request actually. If the string does not begin with "SELECT ", it is taken as a table > name.' >>> -- > Lee >>> On 01/07/2018 02:40 PM, bkv at mailbox.org http://lists.gambas-basic.org/listinfo/user wrote: > > Hi > > > > I want to use a SQL SELECT instead of table name in the Table property of the Datasource object, but the property field does > > not take input from the keyboard. I may select a table name, but it won't let me type into the property field. I have done it > > on another form, though. Any ideas? > > > > Regards, > > > > Bj?rn >>> -------------------------------------------------- >> This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user >> Hosted by https://www.hostsharing.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Jan 21 16:42:55 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 21 Jan 2018 16:42:55 +0100 Subject: [Gambas-user] WebTimer Event In-Reply-To: <20180121073122.M55622@455.co.il> References: <20180121073122.M55622@455.co.il> Message-ID: <66cb830f-7949-b83f-fcc8-e8318d5772e1@gmail.com> Le 21/01/2018 ? 08:31, Mayost Sharon a ?crit?: > Hello > > gambas: 3.10.0 > > If within the event WebTimer1_Timer() > WebTimer1.Stop Or WebTimer1.Enable = False > > It stops the WebTimer1 > > But when i do again which Start > > It does not work > > Export > > Public Sub WebButton1_Click() > WebTimer1.Start() > End > > Public Sub WebTimer1_Timer() > WebLabel1.Text = Now() > WebTimer1.Stop() > End > > Public Sub WebButton2_Click() > WebTimer1.Stop() > End > Hi, It's easier for me to fix the bugs if you join a full (even if it is small) sample project that reproduces the bug. That way, I'm sure that I'm using exactly the same context as you (at least as possible). Regards, -- Beno?t Minisini From bugtracker at gambaswiki.org Sun Jan 21 20:08:01 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 21 Jan 2018 19:08:01 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1225: Use gambas programs in Omega 2 plus Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1225&from=L21haW4- Mart?n BELMONTE reported a new bug. Summary ------- Use gambas programs in Omega 2 plus Type : Request Priority : Medium Gambas version : 3.10 Product : Unknown Description ----------- Hello everyone. In the forum Gambas-es we are trying to use Gambas3 in the Omega2 + computer [1] but in the repositories of this distribution there is no OPKG package [2] of Gambas3. The Omega OS is based on LEDE [3] The applications .gambas should be console because Omega2+ lacks graphic environment. Has anyone prepared a package for this distribution? How can I install Gambas3 in Omega2+ to run programs made our language gambas? The component for scripts would be enough? Many thanks. [1] https://en.wikipedia.org/wiki/Omega2_(computer) [2] https://en.wikipedia.org/wiki/Opkg [3] https://en.wikipedia.org/wiki/LEDE From chrisml at deganius.de Sun Jan 21 21:17:26 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 21 Jan 2018 21:17:26 +0100 Subject: [Gambas-user] Can JSON.Decode be faster? In-Reply-To: <97d67cd1-e673-90ab-2d41-71a102151933@gmail.com> References: <25f50335-1c0d-e99c-6d1c-4603ea999cb9@gmail.com> <2da2bbe9-be83-27d5-5947-8f033e647597@gmail.com> <97d67cd1-e673-90ab-2d41-71a102151933@gmail.com> Message-ID: <764fc249-0b24-e110-5a27-fecace3029e6@deganius.de> Am 20.01.2018 um 15:14 schrieb Beno?t Minisini: > Because a function call must, when entering it: > > - Save the virtual machine registers. > - Push arguments on the stack. > - Convert these arguments. > - Check for optional arguments. > - Allocate stack for local variables. > > And when exiting it: > > - Handle ByRef arguments. > - Pop the stack. > - Restore the virtual machine registers. Good to know! If one needs speed, use Gosub instead of methods. One question for me remains ? just by interest: Could the interpreter be programmed to do such an optimization by itself? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From bugtracker at gambaswiki.org Mon Jan 22 06:17:41 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 22 Jan 2018 05:17:41 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1226: [21] Out of bounds. Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1226&from=L21haW4- Conor KIRKPATRICK reported a new bug. Summary ------- [21] Out of bounds. Type : Bug Priority : Low Gambas version : 3.10 Product : Development Environment Description ----------- Apologies if this isn't actually a bug, but I feel Gambas should catch this error instead of terminating. How to recreate: Create a project (tested with regular GUI application or CLI application) Add this code in some module or class: do { } until 1 = 1 I understand this is not correct syntax. Then try to compile or run. You will be met with this error: "This application has raised an unexpected error and must abort. [21] Out of bounds. Project.CompileError.2403 [OK] " Then Gambas terminates. I am running Gambas in Virtualbox r120293 with ubuntu server 16.10 with xfce 4.1.2 installed. I have not tested on any other systems. Again if this is not a valid bug report, I apologize, and if you need any more information, I will provide. System information ------------------ HOST: Windows 7 Pro (64 Bit) Intel Core i7 10GB ram nVidia Quadro FX 880M Guest: Virtualbox r120293 Ubuntu 64-bit Base Memory: 7000MB Processors: 4 Acceleration: VT-x/AMD-v, Nested Paging, KVM Paravirtualization Video Memory: 16MB Sata Port 0: uServer.vmdk (Normal, 10.00GB) No audio NIC: Intel PRO/1000 MT Desktop USB: xHCI Clipboard: host to guest Drag n Drop: host to guest From bugtracker at gambaswiki.org Mon Jan 22 06:18:47 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 22 Jan 2018 05:18:47 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1226: [21] Out of bounds. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1226&from=L21haW4- Conor KIRKPATRICK added an attachment: codeex1.png From bugtracker at gambaswiki.org Mon Jan 22 06:18:57 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 22 Jan 2018 05:18:57 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1226: [21] Out of bounds. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1226&from=L21haW4- Conor KIRKPATRICK added an attachment: Error.png From olivier.cruilles at yahoo.fr Mon Jan 22 19:41:29 2018 From: olivier.cruilles at yahoo.fr (Yahoo) Date: Mon, 22 Jan 2018 13:41:29 -0500 Subject: [Gambas-user] External C function usage error - IPC queue usage Message-ID: I think I?m becoming crazy with this little code to use an external function in the ?libc? library. I try to manipulate the 'IPC queue' over gambas using 'msgsnd(...)' function but after hours I'm not able to pass it the necessary parameters. Does anyone can help me please ? This is the Gambas code: ' Gambas module file ' Error return codes Public Enum ? IPC_OK = 0, ? IPC_ERROR = -1 Public Enum ? IPC_CREAT = 512, ? IPC_EXCL = 1024, ? IPC_NOWAIT = 2048, ? IPC_PRIVATE = 234564 ' IPC Message structure Public Struct msg_buf ? mtype As Integer ? ? ? ' Message type ? mtext As String ? ? ? ?' Message text End Struct Library "libc:6" Public Extern ftok(pathName As String, proj_id As String) As Pointer Public Extern msgget(key As Integer, msgflg As Integer) As Integer Public Extern msgsnd(msqid As Integer, MsgPointer As Msg_buf, msgsz As Integer, msgflg As Integer) As Integer ' int msgsnd (int __msqid, const void *__msgp, size_t __msgsz,int __msgflg) Public Extern msgrcv(msqid As Integer, MsgPointer As Msg_buf, msgsz As Integer, type As Long) Public MSGPERM As Integer = 0600 Public MSGTXTLEN As Integer = 40 Public MSG_NOERROR As Integer = 4096 Public msgqid As Integer Public rc As Integer Public done As Integer Public msg As New Msg_buf ' ------------------------------------------------------------------------------------------------------------------ Public Sub Main() ? Dim pMesskey As Pointer ? Print "Cleanup IPC queue IPC..." ? Shell "for i in $(ipcs -q | awk '{print $2}' | egrep -v 'msqid|Files|^$'); do ipcrm -q $i; done ; ipcs -q" Wait ? ' Creation of the IPC queue ? pMesskey = ftok(".", "m") ? msgqid = msgget(pMesskey, (MSGPERM Or IPC_CREAT)) ? If msgqid < 0 Then ? ? Print "Failed to create message queue with msgqid = " & msgqid ? ? Quit 1 ? End If ? Print "Message queue " & msgqid & " created" ? ' Fill the Structure ? msg.mtype = 1 ? msg.mtext = "A message..." ? ' Send the message to the IPC queue ? rc = send_message(msgqid, msg, 1)? ? If rc < 0 Then ? ? Print "msgsnd failed, rc=" & rc ? ? Quit 1 ? Endif End Private Function send_message(qid As Integer, msg As Msg_buf, type As Integer) As Integer ? ' Function to send a message to an IPC queue by it 'qid' ? Dim res As Integer ? Dim LenText As Integer ? Print "Sending a message to queue[" & qid & "] Lenght[" & LenText & "]" ? res = msgsnd(qid, msg, LenText, 0) ' The last param can be: 0, IPC_NOWAIT, MSG_NOERROR, or IPC_NOWAIT|MSG_NOERROR. ? If res < 0 Then ? ? Print "Error to send message. Code result: " & res ? ? Quit 1 ? Endif ? Return IPC_OK End ================================ Thank you Olivier Cruilles -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Mon Jan 22 20:00:14 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 22 Jan 2018 19:00:14 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1226: [21] Out of bounds. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1226&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From gitlab at mg.gitlab.com Mon Jan 22 20:11:15 2018 From: gitlab at mg.gitlab.com (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Mon, 22 Jan 2018 19:11:15 +0000 Subject: [Gambas-user] [Git][gambas/gambas][master] Correctly raise an error if a quoted identifier starting with '{' has no corresponding '}'. Message-ID: <5a66375517e06_135b33fe2625a64a843756@sidekiq-asap-05.mail> Beno?t Minisini pushed to branch master at Gambas / gambas Commits: df26bab7 by gambas at 2018-01-22T20:10:30+01:00 Correctly raise an error if a quoted identifier starting with '{' has no corresponding '}'. [COMPILER] * BUG: Correctly raise an error if a quoted identifier starting with '{' has no corresponding '}'. - - - - - 1 changed file: - main/gbc/gbc_read.c Changes: ===================================== main/gbc/gbc_read.c ===================================== --- a/main/gbc/gbc_read.c +++ b/main/gbc/gbc_read.c @@ -863,8 +863,10 @@ static void add_quoted_identifier(void) len++; } - if (get_char() == '}') - source_ptr++; + if (get_char() != '}') + THROW("Missing '}'"); + + source_ptr++; if (PATTERN_is(last_pattern, RS_EVENT) || PATTERN_is(last_pattern, RS_RAISE)) { View it on GitLab: https://gitlab.com/gambas/gambas/commit/df26bab7c4814fa73e7fb2b2369e20031a38db7f --- View it on GitLab: https://gitlab.com/gambas/gambas/commit/df26bab7c4814fa73e7fb2b2369e20031a38db7f You're receiving this email because of your account on gitlab.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Mon Jan 22 20:12:46 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 22 Jan 2018 19:12:46 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1226: [21] Out of bounds. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1226&from=L21haW4- Comment #1 by Beno?t MINISINI: Fixed in commit https://gitlab.com/gambas/gambas/commit/df26bab7c4814fa73e7fb2b2369e20031a38db7f Beno?t MINISINI changed the state of the bug to: Fixed. From g4mba5 at gmail.com Mon Jan 22 20:17:22 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 22 Jan 2018 20:17:22 +0100 Subject: [Gambas-user] WebTimer Event In-Reply-To: <20180121073122.M55622@455.co.il> References: <20180121073122.M55622@455.co.il> Message-ID: <22f45f73-0f6c-b9be-2c06-424930b9591d@gmail.com> Le 21/01/2018 ? 08:31, Mayost Sharon a ?crit?: > Hello > > gambas: 3.10.0 > > If within the event WebTimer1_Timer() > WebTimer1.Stop Or WebTimer1.Enable = False > > It stops the WebTimer1 > > But when i do again which Start > > It does not work > > Export > > Public Sub WebButton1_Click() > WebTimer1.Start() > End > > Public Sub WebTimer1_Timer() > WebLabel1.Text = Now() > WebTimer1.Stop() > End > > Public Sub WebButton2_Click() > WebTimer1.Stop() > End > Apparently it's fixed in the development version. -- Beno?t Minisini From t.lee.davidson at gmail.com Mon Jan 22 22:34:44 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 22 Jan 2018 16:34:44 -0500 Subject: [Gambas-user] External C function usage error - IPC queue usage In-Reply-To: References: Message-ID: "Public MSGPERM As Integer = 0600" "0600" in Gambas is the decimal number 600, not an octal number. I have searched and searched, and found no way to conveniently represent an octal number in Gambas. http://gambaswiki.org/wiki/cat/constants lists hexadecimal and binary. Try: Public MSGPERM As Integer = (8 ^ 2 * 6) + (8 ^ 1 * 0) + (8 ^ 0 * 0) Or: Public MSGPERM As Integer = &X110000000 Or: Public MSGPERM As Integer = 384 -- Lee On 01/22/2018 01:41 PM, Yahoo via User wrote: > I try to manipulate the 'IPC queue' over gambas using 'msgsnd(...)' function but after hours I'm not able to pass it the > necessary parameters. > From bugtracker at gambaswiki.org Mon Jan 22 22:36:01 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 22 Jan 2018 21:36:01 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1226: [21] Out of bounds. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1226&from=L21haW4- Comment #2 by Conor KIRKPATRICK: Thank you. From taboege at gmail.com Mon Jan 22 22:50:13 2018 From: taboege at gmail.com (Tobias Boege) Date: Mon, 22 Jan 2018 22:50:13 +0100 Subject: [Gambas-user] External C function usage error - IPC queue usage In-Reply-To: References: Message-ID: <20180122215013.GK931@highrise.localdomain> On Mon, 22 Jan 2018, T Lee Davidson wrote: > "Public MSGPERM As Integer = 0600" > > "0600" in Gambas is the decimal number 600, not an octal number. I have searched and searched, and found no way to conveniently > represent an octal number in Gambas. http://gambaswiki.org/wiki/cat/constants lists hexadecimal and binary. > > Try: > Public MSGPERM As Integer = (8 ^ 2 * 6) + (8 ^ 1 * 0) + (8 ^ 0 * 0) > Or: > Public MSGPERM As Integer = &X110000000 > Or: > Public MSGPERM As Integer = 384 > According to the source code [1], the obvious "&o" prefix is supposed to work but it doesn't compile here due to "Unexpected &". Probably a bug. Regards, Tobi [1] https://gitlab.com/gambas/gambas/blob/master/main/gbc/gbc_trans.c#L281 -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From t.lee.davidson at gmail.com Mon Jan 22 22:52:36 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 22 Jan 2018 16:52:36 -0500 Subject: [Gambas-user] External C function usage error - IPC queue usage In-Reply-To: <20180122215013.GK931@highrise.localdomain> References: <20180122215013.GK931@highrise.localdomain> Message-ID: <491ecb76-58c2-400e-d006-86bbcbfd1040@gmail.com> On 01/22/2018 04:50 PM, Tobias Boege wrote: > According to the source code [1], the obvious "&o" prefix is supposed to > work but it doesn't compile here due to "Unexpected &". Probably a bug. > > Regards, > Tobi > > [1] https://gitlab.com/gambas/gambas/blob/master/main/gbc/gbc_trans.c#L281 > > -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk Yes. I tried that. The IDE automatically reformats '&o0600' to '& o0600'. -- Lee From olivier.cruilles at yahoo.fr Mon Jan 22 22:59:19 2018 From: olivier.cruilles at yahoo.fr (Yahoo) Date: Mon, 22 Jan 2018 16:59:19 -0500 Subject: [Gambas-user] External C function usage error - IPC queue usage In-Reply-To: <491ecb76-58c2-400e-d006-86bbcbfd1040@gmail.com> References: <20180122215013.GK931@highrise.localdomain> <491ecb76-58c2-400e-d006-86bbcbfd1040@gmail.com> Message-ID: Hi all, Thank you very much to have find the issue. I confirm, it works now. I can continue the module now.. Olivier Le January 22, 2018 ? 16:53:04, T Lee Davidson (t.lee.davidson at gmail.com) a ?crit: &X110000000 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Mon Jan 22 23:57:37 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 22 Jan 2018 22:57:37 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1225: Use gambas programs in Omega 2 plus In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1225&from=L21haW4- Comment #1 by Jesus GUARDON: Omega2+ uses MiPS architecture, so only Beno?t will know if at least the runtime would be able to compile on this platform. I have not a clue in hardware architecture, but would be nice if we could run console programs in this little gadget, right? Regards From g4mba5 at gmail.com Tue Jan 23 00:33:43 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 23 Jan 2018 00:33:43 +0100 Subject: [Gambas-user] External C function usage error - IPC queue usage In-Reply-To: <491ecb76-58c2-400e-d006-86bbcbfd1040@gmail.com> References: <20180122215013.GK931@highrise.localdomain> <491ecb76-58c2-400e-d006-86bbcbfd1040@gmail.com> Message-ID: <68413f51-3b22-d7a1-8132-d280a7196ea2@gmail.com> Le 22/01/2018 ? 22:52, T Lee Davidson a ?crit?: > On 01/22/2018 04:50 PM, Tobias Boege wrote: >> According to the source code [1], the obvious "&o" prefix is supposed to >> work but it doesn't compile here due to "Unexpected &". Probably a bug. >> >> Regards, >> Tobi >> >> [1] https://gitlab.com/gambas/gambas/blob/master/main/gbc/gbc_trans.c#L281 >> >> -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > Yes. I tried that. The IDE automatically reformats '&o0600' to '& o0600'. > > It works there. There is no reformating. Do you use the development version? -- Beno?t Minisini From t.lee.davidson at gmail.com Tue Jan 23 00:48:55 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 22 Jan 2018 18:48:55 -0500 Subject: [Gambas-user] External C function usage error - IPC queue usage In-Reply-To: <68413f51-3b22-d7a1-8132-d280a7196ea2@gmail.com> References: <20180122215013.GK931@highrise.localdomain> <491ecb76-58c2-400e-d006-86bbcbfd1040@gmail.com> <68413f51-3b22-d7a1-8132-d280a7196ea2@gmail.com> Message-ID: <74f9d067-756b-5c18-f2ad-cf1325fe4a34@gmail.com> On 01/22/2018 06:33 PM, Beno?t Minisini wrote: > Le 22/01/2018 ? 22:52, T Lee Davidson a ?crit?: >> On 01/22/2018 04:50 PM, Tobias Boege wrote: >>> According to the source code [1], the obvious "&o" prefix is supposed to >>> work but it doesn't compile here due to "Unexpected &". Probably a bug. >>> >>> Regards, >>> Tobi >>> >>> [1] https://gitlab.com/gambas/gambas/blob/master/main/gbc/gbc_trans.c#L281 >>> >>> -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk >> >> Yes. I tried that. The IDE automatically reformats '&o0600' to '& o0600'. >> >> > > It works there. There is no reformating. Do you use the development version? > No, Beno?t, I am using v3.10. If I type in a number prepended with '&o' and move to another line, the ampersand gets automatically separated. I also tried modifying the src with an external editor and compiling with gbc3. It still chokes. -- Lee [System] Gambas=3.10 OperatingSystem=Linux Kernel=4.4.104-39-default Architecture=x86_64 Distribution=SuSE NAME="openSUSE Leap" VERSION="42.3" PRETTY_NAME="openSUSE Leap 42.3" Desktop=KDE5 From owlbrudder at gmail.com Tue Jan 23 00:58:25 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Tue, 23 Jan 2018 09:58:25 +1000 Subject: [Gambas-user] External C function usage error - IPC queue usage In-Reply-To: <74f9d067-756b-5c18-f2ad-cf1325fe4a34@gmail.com> References: <20180122215013.GK931@highrise.localdomain> <491ecb76-58c2-400e-d006-86bbcbfd1040@gmail.com> <68413f51-3b22-d7a1-8132-d280a7196ea2@gmail.com> <74f9d067-756b-5c18-f2ad-cf1325fe4a34@gmail.com> Message-ID: <1516665505.18690.1.camel@gmail.com> On Mon, 2018-01-22 at 18:48 -0500, T Lee Davidson wrote: > On 01/22/2018 06:33 PM, Beno?t Minisini wrote: > > Le 22/01/2018 ? 22:52, T Lee Davidson a ?crit : > > > On 01/22/2018 04:50 PM, Tobias Boege wrote: > > > > According to the source code [1], the obvious "&o" prefix is > > > > supposed to > > > > work but it doesn't compile here due to "Unexpected &". > > > > Probably a bug. > > > > > > > > Regards, > > > > Tobi > > > > > > > > [1] https://gitlab.com/gambas/gambas/blob/master/main/gbc/gbc_t > > > > rans.c#L281 > > > > > > > > -- "There's an old saying: Don't change anything... ever!" -- > > > > Mr. Monk > > > > > > Yes. I tried that. The IDE automatically reformats '&o0600' to '& > > > o0600'. > > > > > > > > > > It works there. There is no reformating. Do you use the development > > version? > > > > No, Beno?t, I am using v3.10. > > If I type in a number prepended with '&o' and move to another line, > the ampersand gets automatically separated. I also tried > modifying the src with an external editor and compiling with gbc3. It > still chokes. > > Hi Lee. Would it not be "&0" (ampersand zero) not "&o" ? Just a hunch. Cheers, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Tue Jan 23 01:05:13 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 22 Jan 2018 19:05:13 -0500 Subject: [Gambas-user] External C function usage error - IPC queue usage In-Reply-To: <1516665505.18690.1.camel@gmail.com> References: <20180122215013.GK931@highrise.localdomain> <491ecb76-58c2-400e-d006-86bbcbfd1040@gmail.com> <68413f51-3b22-d7a1-8132-d280a7196ea2@gmail.com> <74f9d067-756b-5c18-f2ad-cf1325fe4a34@gmail.com> <1516665505.18690.1.camel@gmail.com> Message-ID: On 01/22/2018 06:58 PM, Doug Hutcheson wrote: >> No, Beno?t, I am using v3.10. >> >> If I type in a number prepended with '&o' and move to another line, the ampersand gets automatically separated. I also tried >> modifying the src with an external editor and compiling with gbc3. It still chokes. >> >> > Hi Lee. Would it not be "&0" (ampersand zero) not "&o" ? > Just a hunch. > Cheers, > Doug According to http://gambaswiki.org/wiki/cat/constants, "&0" would be a hexadecimal representation. I tried '&0600'. Result in decimal: 1536. -- Lee From bugtracker at gambaswiki.org Tue Jan 23 13:02:22 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 23 Jan 2018 12:02:22 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1227: Unable to add a custom library in proyect Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1227&from=L21haW4- Daniel BLANCH BATALLER reported a new bug. Summary ------- Unable to add a custom library in proyect Type : Bug Priority : High Gambas version : 3.10 Product : Unknown Description ----------- Hi, Whenever I try to add a custom component in gambas (version 7.10.90) the dialog doesn't find anything, 'neither responds to adding runtime library search path' This is what the dialog says (unknown) configurator 0.0 /usr/lib/gambas3/(unknown)/configurator/configurator:0.0.gambas ?ADVERTENCIA! LIBRERIA NO ENCONTRADA P.S the library is in the application path. From bugtracker at gambaswiki.org Tue Jan 23 13:03:31 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 23 Jan 2018 12:03:31 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1227: Unable to add a custom library in proyect In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1227&from=L21haW4- Daniel BLANCH BATALLER added an attachment: IMG_4014.JPG From bugtracker at gambaswiki.org Tue Jan 23 13:45:36 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 23 Jan 2018 12:45:36 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1227: Unable to add a custom library in proyect In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1227&from=L21haW4- Comment #1 by Gianluigi GRADASCHI: You should enter the System.Information that you can get from the help menu?> SystemInformation ... copy and past to a text file that you can attach here. As for to attach a screen image, you can use the Print button or the Shift + Print combination to cut the image of a portion of the screen. Regards From bugtracker at gambaswiki.org Tue Jan 23 14:03:41 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 23 Jan 2018 13:03:41 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1227: Unable to add a custom library in proyect In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1227&from=L21haW4- Comment #2 by Gianluigi GRADASCHI: I apologize for the lack of precision: - Menu? you get from the IDE of Gambas - Print or Shift + Print from the keyboard From bugtracker at gambaswiki.org Tue Jan 23 14:40:33 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 23 Jan 2018 13:40:33 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1227: Unable to add a custom library in proyect In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1227&from=L21haW4- Comment #3 by Daniel BLANCH BATALLER: Thanks! :) Here you have. [System] Gambas=3.10.90 ce6d6e7 (master) OperatingSystem=Linux Kernel=3.16.0-4-amd64 Architecture=x86_64 Distribution= 8.10 Desktop=LXDE Theme=Windows Language=es_ES.UTF-8 Memory=2010M [Libraries] Cairo=libcairo.so.2.11400.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.8.14 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.404.0 GTK+2=libgtk-x11-2.0.so.0.2400.25 GTK+3=libgtk-3.so.0.1400.5 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.46.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.3.2 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-bMZ4ALIQ04,guid=a5f45dcd4b7239fa30382cc95a672644 DESKTOP_SESSION=LXDE DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=default GDM_LANG=es_ES.UTF-8 HOME= LANG=es_ES.UTF-8 LOGNAME= PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/.rvm/bin PWD= SAL_USE_VCLPLUGIN=gtk SHELL=/bin/bash SSH_AGENT_PID=1196 SSH_AUTH_SOCK=/tmp/ssh-3AHqKcaGUVjN/agent.1120 TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=7 XAUTHORITY=/var/run/gdm3/auth-for--CmSPOy/database XDG_CONFIG_DIRS=/etc/xdg XDG_CONFIG_HOME=/.config XDG_CURRENT_DESKTOP=LXDE XDG_DATA_DIRS=/usr/local/share:/usr/share:/usr/share/gdm:/var/lib/menu-xdg:/usr/local/share/:/usr/share/:/usr/share/gdm/:/var/lib/menu-xdg/ XDG_MENU_PREFIX=lxde- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_DESKTOP=default XDG_SESSION_ID=1 XDG_VTNR=7 _LXSESSION_PID=1120 From gambas.fr at gmail.com Tue Jan 23 17:40:13 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Tue, 23 Jan 2018 17:40:13 +0100 Subject: [Gambas-user] External C function usage error - IPC queue usage In-Reply-To: References: <20180122215013.GK931@highrise.localdomain> <491ecb76-58c2-400e-d006-86bbcbfd1040@gmail.com> <68413f51-3b22-d7a1-8132-d280a7196ea2@gmail.com> <74f9d067-756b-5c18-f2ad-cf1325fe4a34@gmail.com> <1516665505.18690.1.camel@gmail.com> Message-ID: 2018-01-23 1:05 GMT+01:00 T Lee Davidson : > On 01/22/2018 06:58 PM, Doug Hutcheson wrote: > >> No, Beno?t, I am using v3.10. > >> > >> If I type in a number prepended with '&o' and move to another line, the > ampersand gets automatically separated. I also tried > >> modifying the src with an external editor and compiling with gbc3. It > still chokes. > >> > >> > > Hi Lee. Would it not be "&0" (ampersand zero) not "&o" ? > > Just a hunch. > > Cheers, > > Doug > > According to http://gambaswiki.org/wiki/cat/constants, "&0" would be a > hexadecimal representation. > > I tried '&0600'. Result in decimal: 1536. > Hexadecimal short signed integers. &H1F5, &HFFFF, &H0000FFFF, &FFFF Hexadecimal signed integers. &H10BF332E, &10BF332E Hexadecimal unsigned integers. &H8000&, &HFFFF& Binary integers. &X1010010101, %101001011 Where did you read that, Lee ? http://gambaswiki.org/wiki/cat/constants There is a lack between doc and gb source code ... -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Tue Jan 23 20:42:39 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 23 Jan 2018 14:42:39 -0500 Subject: [Gambas-user] External C function usage error - IPC queue usage In-Reply-To: References: <20180122215013.GK931@highrise.localdomain> <491ecb76-58c2-400e-d006-86bbcbfd1040@gmail.com> <68413f51-3b22-d7a1-8132-d280a7196ea2@gmail.com> <74f9d067-756b-5c18-f2ad-cf1325fe4a34@gmail.com> <1516665505.18690.1.camel@gmail.com> Message-ID: On 01/23/2018 11:40 AM, Fabien Bodard wrote: > 2018-01-23 1:05 GMT+01:00 T Lee Davidson >: > > On 01/22/2018 06:58 PM, Doug Hutcheson wrote: > >> > > Hi Lee. Would it not be "&0" (ampersand zero) not "&o" ? > > Just a hunch. > > Cheers, > > Doug > > According to http://gambaswiki.org/wiki/cat/constants , "&0" would be a > hexadecimal representation. > > I tried '&0600'. Result in decimal: 1536. > > > Hexadecimal short signed integers.&H1F5, &HFFFF, &H0000FFFF, &FFFF > Hexadecimal signed integers.? ? ? ? ? ? ? ? &H10BF332E, &10BF332E > Hexadecimal unsigned integers.? ? ? ? &H8000&, &HFFFF& > Binary integers.? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? &X1010010101, %101001011 > > Where did you read that,? Lee ? > > ?http://gambaswiki.org/wiki/cat/constants > > There is a lack between doc and gb source code ... > > -- > Fabien Bodard > Where did I read, what, Fabien? That "&0" would be a hexadecimal representation? >From the first two lines you posted from the referenced doc page. Take a look at the last example on each of those lines. "&FFFF": Ampersand followed by a hexadecimal number. "0" is a hexadecimal number. "&10BF332E": Again, ampersand followed by a hexadecimal number. Or, maybe that's not what you were referring to about what I read. And yes, as Tobi pointed out, the doc doesn't quite reflect the state of the source code. -- Lee From olivier.cruilles at yahoo.fr Tue Jan 23 21:28:13 2018 From: olivier.cruilles at yahoo.fr (Yahoo) Date: Tue, 23 Jan 2018 15:28:13 -0500 Subject: [Gambas-user] External C function usage error - IPC queue usage In-Reply-To: References: <20180122215013.GK931@highrise.localdomain> <491ecb76-58c2-400e-d006-86bbcbfd1040@gmail.com> <68413f51-3b22-d7a1-8132-d280a7196ea2@gmail.com> <74f9d067-756b-5c18-f2ad-cf1325fe4a34@gmail.com> <1516665505.18690.1.camel@gmail.com> Message-ID: Hello, This is my workaround about the issue of how to convert to octal: ' Gambas module file Library "libc:6" ' Library? Private Extern strtoul(mode As Pointer, dechet As Pointer, base As Integer) As Integer Public Sub Main() ??Print "Example, mode '0660' = " & convert_octal_mode("0660") End Private Function convert_octal_mode(mode As String) As Short ? ' Fonction to convert an Unix mode text to an integer ? Dim ResultPerm As Short ? Dim sMode As String ? Dim sDechet As Pointer ? If mode = "" Or Len(mode) <> 4 Then ? ? Print "Unix string perms not valid ! [" & mode & "] ?Example: 0644" ? ? Return IPC_ERROR ? Endif ? sMode = mode ? ResultPerm = CShort(strtoul(VarPtr(sMode), sDechet, 8)) ? If ResultPerm = 0 Then ? ? Print "Unix string perms not valid ! [" & sMode & "]" ? ? Return IPC_ERROR ? Endif ? Return ResultPerm End Olivier Le January 23, 2018 ? 14:43:03, T Lee Davidson (t.lee.davidson at gmail.com) a ?crit: On 01/23/2018 11:40 AM, Fabien Bodard wrote: > 2018-01-23 1:05 GMT+01:00 T Lee Davidson >: > > On 01/22/2018 06:58 PM, Doug Hutcheson wrote: > >> > > Hi Lee. Would it not be "&0" (ampersand zero) not "&o" ? > > Just a hunch. > > Cheers, > > Doug > > According to http://gambaswiki.org/wiki/cat/constants , "&0" would be a > hexadecimal representation. > > I tried '&0600'. Result in decimal: 1536. > > > Hexadecimal short signed integers.&H1F5, &HFFFF, &H0000FFFF, &FFFF > Hexadecimal signed integers.? ? ? ? ? ? ? ? &H10BF332E, &10BF332E > Hexadecimal unsigned integers.? ? ? ? &H8000&, &HFFFF& > Binary integers.? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? &X1010010101, %101001011 > > Where did you read that,? Lee ? > > ?http://gambaswiki.org/wiki/cat/constants > > There is a lack between doc and gb source code ... > > -- > Fabien Bodard > Where did I read, what, Fabien? That "&0" would be a hexadecimal representation? From the first two lines you posted from the referenced doc page. Take a look at the last example on each of those lines. "&FFFF": Ampersand followed by a hexadecimal number. "0" is a hexadecimal number. "&10BF332E": Again, ampersand followed by a hexadecimal number. Or, maybe that's not what you were referring to about what I read. And yes, as Tobi pointed out, the doc doesn't quite reflect the state of the source code. -- Lee -------------------------------------------------- This is the Gambas Mailing List https://lists.gambas-basic.org/listinfo/user Hosted by https://www.hostsharing.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From owlbrudder at gmail.com Tue Jan 23 23:57:45 2018 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Wed, 24 Jan 2018 08:57:45 +1000 Subject: [Gambas-user] External C function usage error - IPC queue usage In-Reply-To: References: <20180122215013.GK931@highrise.localdomain> <491ecb76-58c2-400e-d006-86bbcbfd1040@gmail.com> <68413f51-3b22-d7a1-8132-d280a7196ea2@gmail.com> <74f9d067-756b-5c18-f2ad-cf1325fe4a34@gmail.com> <1516665505.18690.1.camel@gmail.com> Message-ID: <1516748265.18690.31.camel@gmail.com> On Tue, 2018-01-23 at 14:42 -0500, T Lee Davidson wrote: > On 01/23/2018 11:40 AM, Fabien Bodard wrote: > > 2018-01-23 1:05 GMT+01:00 T Lee Davidson > >: > > > > On 01/22/2018 06:58 PM, Doug Hutcheson wrote: > > >> > > > Hi Lee. Would it not be "&0" (ampersand zero) not "&o" ? > > > Just a hunch. > > > Cheers, > > > Doug > > > > According to http://gambaswiki.org/wiki/cat/constants > > , "&0" would be a > > hexadecimal representation. > > > > I tried '&0600'. Result in decimal: 1536. > > > > > > Hexadecimal short signed integers.&H1F5, &HFFFF, &H0000FFFF, &FFFF > > Hexadecimal signed integers. &H10BF332E, &10BF332E > > Hexadecimal unsigned integers. &H8000&, &HFFFF& > > Binary integers. &X1010010101, > > %101001011 > > > > Where did you read that, Lee ? > > > > http://gambaswiki.org/wiki/cat/constants > > > > There is a lack between doc and gb source code ... > > > > -- > > Fabien Bodard > > > > Where did I read, what, Fabien? That "&0" would be a hexadecimal > representation? > > From the first two lines you posted from the referenced doc page. > Take a look at the last example on each of those lines. > > "&FFFF": Ampersand followed by a hexadecimal number. "0" is a > hexadecimal number. > "&10BF332E": Again, ampersand followed by a hexadecimal number. > > Or, maybe that's not what you were referring to about what I read. > > And yes, as Tobi pointed out, the doc doesn't quite reflect the state > of the source code. > > Yes, I was quite wrong to suggest &0. Stupid mistake. I was dimly thinking of the C/C++ representation 0x for hex and %x for octal, but I didn't even get those right. (Crawls back under rock, mumbling). -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Wed Jan 24 11:55:08 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 24 Jan 2018 10:55:08 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1228: create tree of objects in a separate window Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1228&from=L21haW4- V?ctor PEREZ reported a new bug. Summary ------- create tree of objects in a separate window Type : Request Priority : High Gambas version : Unknown Product : Development Environment Description ----------- As a project grows it becomes more difficult to find routines within the project for that reason I think that Ide Gambas could use an object explorer in a separate window showing things as follows: First: modulo class form etc. second: subrutinas event etc. third: (text) c?digo de: subrutinas event etc. System information ------------------ Gambas=3.9.2 OperatingSystem=Linux Kernel=3.19.0-32-generic Architecture=x86 Distribution=Linux Mint 17.3 Rosa Desktop=MATE Theme=Gtk Language=es_UY.UTF-8 Memory=1950M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+2=libgtk-x11-2.0.so.0.2400.23 GTK+3=libgtk-3.so.0.1000.8 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.2.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 From olivier.cruilles at yahoo.fr Wed Jan 24 14:01:24 2018 From: olivier.cruilles at yahoo.fr (Linus) Date: Wed, 24 Jan 2018 08:01:24 -0500 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1224: Add IPC shared memory between Main process and these forks (TASK) In-Reply-To: <8c5e8821-2d04-d59b-89b1-a93c228de372@gmail.com> References: <5a639d30.2992500a.c4e03.3638SMTPIN_ADDED_BROKEN@mx.google.com> <8c5e8821-2d04-d59b-89b1-a93c228de372@gmail.com> Message-ID: <0E22DDCA-2539-4B58-AD04-0C9E0CF0DE58@yahoo.fr> Hi Benoit, May be it?s a good idea but I don?t know how to do it. Can you provide me a little example of the usage of an OPEN PIPE between a process and it TASK please ? Thank you Olivier > Le 20 janv. 2018 ? 14:58, Beno?t Minisini a ?crit : > > Le 20/01/2018 ? 20:48, bugtracker at gambaswiki.org a ?crit : >> http://gambaswiki.org/bugtracker/edit?object=BUG.1224&from=L21haW4- >> Comment #1 by Olivier CRUILLES: >> Regarding this feature, I have took a look at these command on Linux: >> $ ipcmk >> $ iprm >> $ ipcs >> I will try to use it to communicate between a gambas process and a Task and see if it works. >> In all cases, if it could be possible to have bilateral communication with a between a main process and a Task, it will be very nice in full of projects I'm working on. It could be a cheap version of Thread in Gambas (It's my own vision) >> Olivier > > Why don't you try yo use the OPEN PIPE instruction? > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net From bugtracker at gambaswiki.org Wed Jan 24 18:36:06 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 24 Jan 2018 17:36:06 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1229: Gambas 3 IDE Install Issue Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1229&from=L21haW4- Gary HEDQUIST reported a new bug. Summary ------- Gambas 3 IDE Install Issue Type : Bug Priority : Medium Gambas version : Unknown Product : Unknown Description ----------- Just Upgraded Linux Mint Cinnamon x64 to 4.13.0-26 Kernel Then tried to Install the Gambas 3 IDE package from Software Manager. It did NOT complete. No error messages. Fell back to 4.10.0-42 Kernel & Gambas 3 IDE Install worked ok. From bugtracker at gambaswiki.org Wed Jan 24 19:27:41 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 24 Jan 2018 18:27:41 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1229: Gambas 3 IDE Install Issue In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1229&from=L21haW4- Comment #1 by ADMINISTRATOR: This is apparently a bug in Linux Mint, not in Gambas. ADMINISTRATOR changed the state of the bug to: Rejected. From t.lee.davidson at gmail.com Thu Jan 25 01:51:45 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 24 Jan 2018 19:51:45 -0500 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1224: Add IPC shared memory between Main process and these forks (TASK) In-Reply-To: <0E22DDCA-2539-4B58-AD04-0C9E0CF0DE58@yahoo.fr> References: <5a639d30.2992500a.c4e03.3638SMTPIN_ADDED_BROKEN@mx.google.com> <8c5e8821-2d04-d59b-89b1-a93c228de372@gmail.com> <0E22DDCA-2539-4B58-AD04-0C9E0CF0DE58@yahoo.fr> Message-ID: It might not be directly applicable to your needs, but the attached might help you get started. -- Lee On 01/24/2018 08:01 AM, Linus via User wrote: > Hi Benoit, > > May be it?s a good idea but I don?t know how to do it. Can you provide me a little example of the usage of an OPEN PIPE between a process and it TASK please ? > > Thank you > > Olivier -------------- next part -------------- A non-text attachment was scrubbed... Name: taskpipe-0.0.2.tar.gz Type: application/gzip Size: 12935 bytes Desc: not available URL: From olivier.cruilles at yahoo.fr Thu Jan 25 03:17:17 2018 From: olivier.cruilles at yahoo.fr (Linus) Date: Wed, 24 Jan 2018 21:17:17 -0500 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1224: Add IPC shared memory between Main process and these forks (TASK) In-Reply-To: References: <5a639d30.2992500a.c4e03.3638SMTPIN_ADDED_BROKEN@mx.google.com> <8c5e8821-2d04-d59b-89b1-a93c228de372@gmail.com> <0E22DDCA-2539-4B58-AD04-0C9E0CF0DE58@yahoo.fr> Message-ID: <42133246-0A40-4289-952E-5F13D34EC2B5@yahoo.fr> Hello lee, Thank you for the little code, it help me many. In fact this is easier than what I was thinking. Olivier > Le 24 janv. 2018 ? 19:51, T Lee Davidson a ?crit : > > It might not be directly applicable to your needs, but the attached might help you get started. > > > -- > Lee > > > On 01/24/2018 08:01 AM, Linus via User wrote: >> Hi Benoit, >> >> May be it?s a good idea but I don?t know how to do it. Can you provide me a little example of the usage of an OPEN PIPE between a process and it TASK please ? >> >> Thank you >> >> Olivier -------------- next part -------------- A non-text attachment was scrubbed... Name: taskpipe-0.0.2.tar.gz Type: application/gzip Size: 12935 bytes Desc: not available URL: -------------- next part -------------- > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net From gitlab at mg.gitlab.com Thu Jan 25 11:03:12 2018 From: gitlab at mg.gitlab.com (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Thu, 25 Jan 2018 10:03:12 +0000 Subject: [Gambas-user] =?utf-8?b?W0dpdF1bZ2FtYmFzL2dhbWJhc11bbWFzdGVyXSBS?= =?utf-8?q?eally_disable_filter_in_project_creation_dialog_and_make_the_te?= =?utf-8?q?rminal_tab_of=E2=80=A6?= Message-ID: <5a69ab60a548b_15d2c3fe945d64fac121165d4@sidekiq-asap-03.mail> Beno?t Minisini pushed to branch master at Gambas / gambas Commits: c1c52f05 by gambas at 2018-01-25T11:01:45+01:00 Really disable filter in project creation dialog and make the terminal tab of the project version control dialog start in the current project directory. [DEVELOPMENT ENVIRONMENT] * BUG: Really disable filter in project creation dialog. * BUG: The terminal tab of the project version control dialog now correctly starts in the current project directory. - - - - - 5 changed files: - app/src/gambas3/.project - app/src/gambas3/.src/Project.module - app/src/gambas3/.src/Project/CProjectList.class - app/src/gambas3/.src/Project/FCreateProject.form - app/src/gambas3/.src/VersionControl/FVersionControl.class Changes: ===================================== app/src/gambas3/.project ===================================== --- a/app/src/gambas3/.project +++ b/app/src/gambas3/.project @@ -33,6 +33,7 @@ Description="Integrated Development Environment for Gambas" Authors="Beno?t Minisini\nFabien Bodard\nCharlie Reinl\nJos? Luis Redrejo\nRobert Rowe\nTobias Boege" Arguments=[["-t","~/gambas/git/master/app/src/gambas3"]] CurrentArgument=0 +Environment="GB_GUI=gb.qt5" TabSize=2 Translate=1 Language=en ===================================== app/src/gambas3/.src/Project.module ===================================== --- a/app/src/gambas3/.src/Project.module +++ b/app/src/gambas3/.src/Project.module @@ -316,6 +316,7 @@ Public Sub Main() Application.Theme = Settings["/Theme"] DESKTOP_FONT = Application.Font.ToString() + Try Application.Font = Font[Settings["/Font"]] 'Print Application.Theme ===================================== app/src/gambas3/.src/Project/CProjectList.class ===================================== --- a/app/src/gambas3/.src/Project/CProjectList.class +++ b/app/src/gambas3/.src/Project/CProjectList.class @@ -22,6 +22,7 @@ Private $sLastURL As String Private $hHelp As WebView Private $hCurrent As ProjectBox Private $iCount As Integer +Private $bNoFilter As Boolean Public Sub _new(hList As ScrollView, hFilter As ButtonBox, iType As Integer, Optional iArrange As Integer = Arrange.Row) @@ -30,6 +31,8 @@ Public Sub _new(hList As ScrollView, hFilter As ButtonBox, iType As Integer, Opt $iType = iType $iArrange = iArrange + $bNoFilter = Not $hFilter.Enabled + $hObserver = New Observer($hFilter) As "Filter" $hObsList = New Observer(hList) As "ScrollView" @@ -444,7 +447,7 @@ Public Sub ApplyFilter(sFilter As String) $hList.Arrangement = Arrange.None - If Not sFilter Then + If $bNoFilter Or If Not sFilter Then sFilter = "*" Else sFilter = "*" & String.LCase(sFilter) & "*" ===================================== app/src/gambas3/.src/Project/FCreateProject.form ===================================== --- a/app/src/gambas3/.src/Project/FCreateProject.form +++ b/app/src/gambas3/.src/Project/FCreateProject.form @@ -33,6 +33,7 @@ Border = Border.Plain { txtFilter ButtonBox MoveScaled(1,0,24,4) + Enabled = False Foreground = Color.LightForeground Picture = Picture["icon:/small/clear"] Border = False ===================================== app/src/gambas3/.src/VersionControl/FVersionControl.class ===================================== --- a/app/src/gambas3/.src/VersionControl/FVersionControl.class +++ b/app/src/gambas3/.src/VersionControl/FVersionControl.class @@ -98,7 +98,7 @@ Public Sub tabVersionControl_Click() Case 1 edtDiff.SetFocus Case 2 - Try trmShell.Exec(["bash"]) + Try trmShell.Exec(["bash"], ["PWD=" & Project.Dir]) trmShell.SetFocus End Select View it on GitLab: https://gitlab.com/gambas/gambas/commit/c1c52f05e78622a3586dd15f64aba0a33188bc00 --- View it on GitLab: https://gitlab.com/gambas/gambas/commit/c1c52f05e78622a3586dd15f64aba0a33188bc00 You're receiving this email because of your account on gitlab.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Thu Jan 25 13:29:26 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 25 Jan 2018 12:29:26 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1230: Reports that fail on AMD processors and work well on Intel processors Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1230&from=L21haW4- Francisco SENARIS reported a new bug. Summary ------- Reports that fail on AMD processors and work well on Intel processors Type : Bug Priority : Medium Gambas version : Unknown Product : Unknown Description ----------- I refer a simple project that works well on computers with an Intel processor and fail on AMD processors, on other computers. They fail when they are going to do report.preview. A memory corruption occurs. It happens even with the examples that can be downloaded from the software farm. System information ------------------ [System] Gambas=3.8.4 OperatingSystem=Linux Kernel=4.4.0-109-generic Architecture=x86_64 Distribution=Ubuntu 16.04.3 LTS Desktop=XFCE Theme=Gtk Language=es_ES.UTF-8 Memory=5956M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-1.0.so.0.803.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 [Environment] CLUTTER_BACKEND=x11 CLUTTER_IM_MODULE= DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-xPp7l3SMZt DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path DESKTOP_SESSION=xubuntu DISPLAY=:0.0 GB_GUI=gb.qt5 GDMSESSION=xubuntu GDM_LANG=es_ES GLADE_CATALOG_PATH=: GLADE_MODULE_PATH=: GLADE_PIXMAP_PATH=: GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/.gnupg/S.gpg-agent:0:1 GTK_IM_MODULE= GTK_OVERLAY_SCROLLING=0 HOME= IM_CONFIG_PHASE=1 INSTANCE= JOB=dbus LANG=es_ES.UTF-8 LANGUAGE=es_ES LOGNAME= MANDATORY_PATH=/usr/share/gconf/xubuntu.mandatory.path PATH=/bin:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD= QT4_IM_MODULE= QT_ACCESSIBILITY=1 QT_IM_MODULE=compose QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_STYLE_OVERRIDE=gtk SESSION=xubuntu SESSIONTYPE= SESSION_MANAGER=local/:@/tmp/.ICE-unix/1689,unix/:/tmp/.ICE-unix/1689 SHELL=/bin/bash SHLVL=0 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UPSTART_EVENTS=started xsession UPSTART_INSTANCE= UPSTART_JOB=startxfce4 UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1426 USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/usr/share/upstart/xdg:/etc/xdg:/etc/xdg XDG_CURRENT_DESKTOP=XFCE XDG_DATA_DIRS=/usr/share/xubuntu:/usr/share/xfce4:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/var/lib/snapd/desktop:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_MENU_PREFIX=xfce- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=xubuntu XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS= From t.lee.davidson at gmail.com Thu Jan 25 17:08:58 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 25 Jan 2018 11:08:58 -0500 Subject: [Gambas-user] Octal to Integer Conversion Message-ID: While we're waiting for the Octal number representation issue to be resolved, I've coded up a little function that will convert an octal number, represented as a string, to its correct integer representation. [code] Function OctStrToInt(Value As String, Optional Pow As Integer = 0) As Integer Dim char As String If Len(Value) = 1 Then char = Value Value = "" Else char = Right(Value, 1) Value = Left(Value, -1) Endif If char < "0" Or "7" < char Then Error.Raise("Invalid octal character '" & char & "'") If Value Then Return CInt(char) * 8 ^ Pow + OctStrToInt(Value, Pow + 1) Else Return CInt(char) * 8 ^ Pow Endif End [/code] Use it like: OctInt = OctStrToInt("644") ' yields 420 -- Lee From g4mba5 at gmail.com Thu Jan 25 17:25:24 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 25 Jan 2018 17:25:24 +0100 Subject: [Gambas-user] Octal to Integer Conversion In-Reply-To: References: Message-ID: <42b649d1-9cff-347c-d1c6-edcf012933fe@gmail.com> Le 25/01/2018 ? 17:08, T Lee Davidson a ?crit?: > While we're waiting for the Octal number representation issue to be resolved, For me it works on the development version. Is there something I didn't see? -- Beno?t Minisini From bugtracker at gambaswiki.org Thu Jan 25 20:40:12 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 25 Jan 2018 19:40:12 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1225: Use gambas programs in Omega 2 plus In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1225&from=L21haW4- Comment #2 by Olivier CRUILLES: Hello, I don't know if it could help but this is the page relating the cross-compilation of C program to Omega2+ https://onion.io/2bt-cross-compiling-programs/ Olivier From olivier.cruilles at yahoo.fr Thu Jan 25 21:12:41 2018 From: olivier.cruilles at yahoo.fr (Yahoo) Date: Thu, 25 Jan 2018 15:12:41 -0500 Subject: [Gambas-user] Octal to Integer Conversion In-Reply-To: References: Message-ID: Thank you Lee, now less dependency of C Library. Tested and it works fine. Olivier Le January 25, 2018 ? 11:10:04, T Lee Davidson (t.lee.davidson at gmail.com) a ?crit: While we're waiting for the Octal number representation issue to be resolved, I've coded up a little function that will convert an octal number, represented as a string, to its correct integer representation. [code] Function OctStrToInt(Value As String, Optional Pow As Integer = 0) As Integer Dim char As String If Len(Value) = 1 Then char = Value Value = "" Else char = Right(Value, 1) Value = Left(Value, -1) Endif If char < "0" Or "7" < char Then Error.Raise("Invalid octal character '" & char & "'") If Value Then Return CInt(char) * 8 ^ Pow + OctStrToInt(Value, Pow + 1) Else Return CInt(char) * 8 ^ Pow Endif End [/code] Use it like: OctInt = OctStrToInt("644") ' yields 420 -- Lee -------------------------------------------------- This is the Gambas Mailing List https://lists.gambas-basic.org/listinfo/user Hosted by https://www.hostsharing.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu Jan 25 23:55:44 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 26 Jan 2018 00:55:44 +0200 Subject: [Gambas-user] Crash with development version Message-ID: Hi! I'm trying to isolate offending code from my big project and I run into strange problem while doing that. I cannot even make dummy version of the problem class. The IDE gives me error message "the special method _new cannot be static", while this same code compiles fine in my other project (which causes crash when running it). So, is there something I don't see here or is this bug? See attached project. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BugHunting-0.0.1.tar.gz Type: application/x-gzip Size: 11775 bytes Desc: not available URL: From t.lee.davidson at gmail.com Fri Jan 26 01:22:41 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 25 Jan 2018 19:22:41 -0500 Subject: [Gambas-user] Octal to Integer Conversion In-Reply-To: <42b649d1-9cff-347c-d1c6-edcf012933fe@gmail.com> References: <42b649d1-9cff-347c-d1c6-edcf012933fe@gmail.com> Message-ID: <5d36e781-111e-87f8-915d-e5e5abf8c32d@gmail.com> On 01/25/2018 11:25 AM, Beno?t Minisini wrote: > Le 25/01/2018 ? 17:08, T Lee Davidson a ?crit?: >> While we're waiting for the Octal number representation issue to be resolved, > > For me it works on the development version. Is there something I didn't see? Well I am unsure since I am now a bit confused. When you last asked me what version I was using, I thought you were reporting that you did not have the issue with the IDE auto-reformatting the text "&o". When I responded with my version number, I also reported that I could not even compile an externally-edited source with gbc3. There was no response. Tobi, also, reported that he was unable to compile due to "Unexpected '&'". I do not know what version he is using. -- Lee From t.lee.davidson at gmail.com Fri Jan 26 01:49:08 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 25 Jan 2018 19:49:08 -0500 Subject: [Gambas-user] Crash with development version In-Reply-To: References: Message-ID: It seems to work if cBG is defined as a Class instead of as a Module. -- Lee On 01/25/2018 05:55 PM, Jussi Lahtinen wrote: > Hi! > I'm trying to isolate offending code from my big project and I run into strange problem while doing that. I cannot even make > dummy version of the problem class. The IDE gives me error message "the special method _new cannot be static", while this same > code compiles fine in my other project (which causes crash when running it). > > So, is there something I don't see here or is this bug? > See attached project. > > > Jussi > From jussi.lahtinen at gmail.com Fri Jan 26 01:59:55 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 26 Jan 2018 02:59:55 +0200 Subject: [Gambas-user] Crash with development version In-Reply-To: References: Message-ID: Thanks! I knew I didn't see something obvious. I must have clicked wrong item from the new menu. Jussi On Fri, Jan 26, 2018 at 2:49 AM, T Lee Davidson wrote: > It seems to work if cBG is defined as a Class instead of as a Module. > > > -- > Lee > > > On 01/25/2018 05:55 PM, Jussi Lahtinen wrote: > > Hi! > > I'm trying to isolate offending code from my big project and I run into > strange problem while doing that. I cannot even make > > dummy version of the problem class. The IDE gives me error message "the > special method _new cannot be static", while this same > > code compiles fine in my other project (which causes crash when running > it). > > > > So, is there something I don't see here or is this bug? > > See attached project. > > > > > > Jussi > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Fri Jan 26 02:32:37 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 26 Jan 2018 01:32:37 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1230: Reports that fail on AMD processors and work well on Intel processors In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1230&from=L21haW4- Comment #1 by Jussi LAHTINEN: Is the system information from the failing system? What is the Gambas version on working system? How are they installed? From bugtracker at gambaswiki.org Fri Jan 26 02:35:55 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 26 Jan 2018 01:35:55 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1231: Crash with Task Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1231&from=L21haW4- Jussi LAHTINEN reported a new bug. Summary ------- Crash with Task Type : Bug Priority : Medium Gambas version : Master Product : Unknown Description ----------- Please run the attached project. Just click on the button and it will crash. Also this get printed to console: [xcb] Unknown sequence number while processing queue [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [xcb] Aborting, sorry about that. gbx3: ../../src/xcb_io.c:274: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed. System information ------------------ [System] Gambas=3.10.90 c1c52f0 (master) OperatingSystem=Linux Kernel=4.4.0-109-generic Architecture=x86_64 Distribution=Linux Mint 17.3 Rosa Desktop=CINNAMON Theme=Gtk Language=en_US.UTF-8 Memory=7983M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+2=libgtk-x11-2.0.so.0.2400.23 GTK+3=libgtk-3.so.0.1000.8 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.2.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_BACKEND=x11 CLUTTER_IM_MODULE=xim DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-1yEDEIXQfA,guid=8d1f40372cf6acf0780812e65a69e1ef DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_SESSION=cinnamon DISPLAY=:0.0 GB_GUI=gb.qt4 GB_PROFILE_MAX=1000 GDMSESSION=cinnamon GDM_XSERVER_LOCATION=local GIO_LAUNCHED_DESKTOP_FILE=/Desktop/Gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=13853 GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_KEYRING_CONTROL=/run/user/1000/keyring-v4QcJj GPG_AGENT_INFO=/run/user/1000/keyring-v4QcJj/gpg:0:1 GTK_IM_MODULE=xim HOME= INSIDE_NEMO_PYTHON= LANG=en_US.UTF-8 LC_ADDRESS=fi_FI.UTF-8 LC_IDENTIFICATION=fi_FI.UTF-8 LC_MEASUREMENT=fi_FI.UTF-8 LC_MONETARY=fi_FI.UTF-8 LC_NAME=fi_FI.UTF-8 LC_NUMERIC=fi_FI.UTF-8 LC_PAPER=fi_FI.UTF-8 LC_TELEPHONE=fi_FI.UTF-8 LC_TIME=en_US.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path MDMSESSION=cinnamon MDM_LANG=en_US.UTF-8 MDM_XSERVER_LOCATION=local PAPERSIZE=letter PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT4_IM_MODULE=xim QT_STYLE_OVERRIDE=gtk SESSION_MANAGER=local/:@/tmp/.ICE-unix/1627,unix/:/tmp/.ICE-unix/1627 SHELL=/bin/bash SSH_AGENT_PID=1694 SSH_AUTH_SOCK=/run/user/1000/keyring-v4QcJj/ssh TEXTDOMAIN=im-config TEXTDOMAINDIR=/usr/share/locale/ TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=8 XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg XDG_CURRENT_DESKTOP=X-Cinnamon XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/usr/local/share/:/usr/share/:/usr/share/mdm/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_COOKIE=5a45fa29109f0ee2389b1b0355283726-1516888558.974501-1035549799 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c1 XDG_VTNR=8 XMODIFIERS=@im=none From bugtracker at gambaswiki.org Fri Jan 26 02:36:04 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 26 Jan 2018 01:36:04 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1231: Crash with Task In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1231&from=L21haW4- Jussi LAHTINEN added an attachment: BugHunting-2.tar.gz From bugtracker at gambaswiki.org Fri Jan 26 03:09:42 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 26 Jan 2018 02:09:42 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1230: Reports that fail on AMD processors and work well on Intel processors In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1230&from=L21haW4- Jussi LAHTINEN changed the state of the bug to: NeedsInfo. From bagonergi at gmail.com Fri Jan 26 12:24:50 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 26 Jan 2018 12:24:50 +0100 Subject: [Gambas-user] Short-circuit evaluation question Message-ID: See the attached project Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OrIfTest-0.0.1.tar.gz Type: application/x-gzip Size: 11476 bytes Desc: not available URL: From bugtracker at gambaswiki.org Fri Jan 26 13:10:56 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 26 Jan 2018 12:10:56 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1232: gb.Map Circle radius/diameter error Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1232&from=L21haW4- Carlo PANARA reported a new bug. Summary ------- gb.Map Circle radius/diameter error Type : Bug Priority : Low Gambas version : Master Product : GUI components Description ----------- In gb.Map Circle Shape, the radius value is drawn as a diameter! From bagonergi at gmail.com Fri Jan 26 13:24:56 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 26 Jan 2018 13:24:56 +0100 Subject: [Gambas-user] Short-circuit evaluation question In-Reply-To: References: Message-ID: Sorry, too many useless things. ;-D Dim ss as String[] Because this works: If IsNull(ss) Or If ss.Count = 0 Then Return Because this does not work: If Not IsNull(ss) Or If ss.Count > 0 Then '... Endif Regards Gianluigi 2018-01-26 12:24 GMT+01:00 Gianluigi : > See the attached project > > Regards > Gianluigi > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Fri Jan 26 13:55:41 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Fri, 26 Jan 2018 14:55:41 +0200 Subject: [Gambas-user] Controls WebForm Ignore Events Message-ID: <20180126125541.M26129@455.co.il> Hello gambas: 3.10.0 Hello Is there a possibility to cancel EVENT of a control I need this for the controls of WebForm In my example I do it But it's complicated I want not to run the WebTextBox1 event when I press WebButton1 If there was such a possibility WebTextBox.IgnoreEvent = True This will cause a WebTextBox events disable or should give an event filter WebTextBox.IgnoreEvent = "Change;Clear" Only Disable Events "Change" and "Clear" Thanks ' Gambas class file Export Private ignore_event As Boolean Public Sub WebTextBox1_Change() If ignore_event = False Then WebLabel1.Text = WebTextBox1.Text Endif End Public Sub WebButton1_Click() ignore_event = True WebTextBox1.Text = "sharon" ignore_event = False End From g4mba5 at gmail.com Fri Jan 26 14:01:35 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 26 Jan 2018 14:01:35 +0100 Subject: [Gambas-user] Controls WebForm Ignore Events In-Reply-To: <20180126125541.M26129@455.co.il> References: <20180126125541.M26129@455.co.il> Message-ID: Le 26/01/2018 ? 13:55, Mayost Sharon a ?crit?: > Hello > > gambas: 3.10.0 > > > Hello > > Is there a possibility to cancel EVENT of a control > I need this for the controls of WebForm > > In my example I do it > But it's complicated > I want not to run the WebTextBox1 event when I press WebButton1 > > If there was such a possibility > WebTextBox.IgnoreEvent = True > This will cause a WebTextBox > events disable > > or should give an event filter > WebTextBox.IgnoreEvent = "Change;Clear" > Only Disable Events "Change" and "Clear" > > > Thanks > > ' Gambas class file > > Export > Private ignore_event As Boolean > > Public Sub WebTextBox1_Change() > If ignore_event = False Then > WebLabel1.Text = WebTextBox1.Text > Endif > End > > Public Sub WebButton1_Click() > ignore_event = True > WebTextBox1.Text = "sharon" > ignore_event = False > End > You can prevent a Gambas object from raising events by using Object.Lock() / Object.Unlock(). Beware : that way you can't ignore events raised from the browser (in that example, when the user changes the text of the WebTextBox1 control). Only those that are raised immediately from your code on the server side. Regards, -- Beno?t Minisini From sharon at 455.co.il Fri Jan 26 14:43:12 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Fri, 26 Jan 2018 15:43:12 +0200 Subject: [Gambas-user] Controls WebForm Ignore Events In-Reply-To: References: <20180126125541.M26129@455.co.il> Message-ID: <20180126134150.M36365@455.co.il> ---------- Original Message ----------- From: Beno?t Minisini To: Gambas Mailing List , Mayost Sharon Sent: Fri, 26 Jan 2018 14:01:35 +0100 Subject: Re: [Gambas-user] Controls WebForm Ignore Events > Le 26/01/2018 ? 13:55, Mayost Sharon a ?crit?: > > Hello > > > > gambas: 3.10.0 > > > > > > Hello > > > > Is there a possibility to cancel EVENT of a control > > I need this for the controls of WebForm > > > > In my example I do it > > But it's complicated > > I want not to run the WebTextBox1 event when I press WebButton1 > > > > If there was such a possibility > > WebTextBox.IgnoreEvent = True > > This will cause a WebTextBox > > events disable > > > > or should give an event filter > > WebTextBox.IgnoreEvent = "Change;Clear" > > Only Disable Events "Change" and "Clear" > > > > > > Thanks > > > > ' Gambas class file > > > > Export > > Private ignore_event As Boolean > > > > Public Sub WebTextBox1_Change() > > If ignore_event = False Then > > WebLabel1.Text = WebTextBox1.Text > > Endif > > End > > > > Public Sub WebButton1_Click() > > ignore_event = True > > WebTextBox1.Text = "sharon" > > ignore_event = False > > End > > > > You can prevent a Gambas object from raising events by using > Object.Lock() / Object.Unlock(). > > Beware : that way you can't ignore events raised from the browser (in > that example, when the user changes the text of the WebTextBox1 > control). Only those that are raised immediately from your code on the > server side. > > Regards, > > -- > Beno?t Minisini ------- End of Original Message ------- Thank you But I see that this lock talks about files and not about events Link to your documentation http://gambaswiki.org/wiki/lang/lock From g4mba5 at gmail.com Fri Jan 26 14:53:53 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 26 Jan 2018 14:53:53 +0100 Subject: [Gambas-user] Controls WebForm Ignore Events In-Reply-To: <20180126134150.M36365@455.co.il> References: <20180126125541.M26129@455.co.il> <20180126134150.M36365@455.co.il> Message-ID: <632dae95-d5a2-1236-96e1-a8825312eaee@gmail.com> Le 26/01/2018 ? 14:43, Mayost Sharon a ?crit?: >> >> You can prevent a Gambas object from raising events by using >> Object.Lock() / Object.Unlock(). >> >> Beware : that way you can't ignore events raised from the browser (in >> that example, when the user changes the text of the WebTextBox1 >> control). Only those that are raised immediately from your code on the >> server side. >> >> Regards, >> >> -- >> Beno?t Minisini > ------- End of Original Message ------- > > Thank you > But I see that this lock talks about files and not about events > > Link to your documentation > http://gambaswiki.org/wiki/lang/lock > You didn't read what I wrote: I talked about Object.Lock(). http://gambaswiki.org/wiki/comp/gb/object/lock -- Beno?t Minisini From hans at gambas-buch.de Fri Jan 26 16:26:44 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Fri, 26 Jan 2018 16:26:44 +0100 Subject: [Gambas-user] DBus - How are signal data converted to Gambas data? Message-ID: Hello, in a project for the Gambas book on 'D-Bus with gb.dbus' I have the problem to read the arguments of a particular signal. In the text of the XML document (Inspection) I found the number of expected arguments, their names and the signatures. Through the output of the console program, I knew all the values of the three arguments. Cutout Introspection-XML-Document: ---------------------------------------------------- ... ?? ?? ?? ... Output of 'dbus-monitor' after inserting the USB stick with label '2_GB_P': ------------------------------------------------------------------------------------------------------ ... signal sender=:1.10 -> dest=(null destination) serial=173 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=VolumeAdded ?? string "org.gtk.Private.UDisks2VolumeMonitor" ?? string "0x1449bd0" ?? struct { ????? string "0x1449bd0" ????? string "2_GB_P" ????? string ". GThemedIcon drive-removable-media-usb drive-removable-media drive-removable drive" ????? string ". GThemedIcon drive-removable-media-usb-symbolic ... drive-symbolic drive-removable-media-usb drive-removable-media drive-removable drive" ????? string "" ????? string "" ????? boolean true ????? boolean true ????? string "0x14af500" ????? string "" ????? array [ ???????? dict entry( ??????????? string "class" ??????????? string "device" ???????? ) ???????? dict entry( ??????????? string "unix-device" ??????????? string "/dev/sdd1" ???????? ) ???????? dict entry( ??????????? string "label" ??????????? string "2_GB_P" ???????? ) ???????? dict entry( ??????????? string "uuid" ??????????? string "38ea6e0b-a161-401d-a673-11c06cf1229e" ???????? ) ????? ] ????? string "gvfs.time_detected_usec.1516884992931147" ????? array [ ????? ] ?? } ... With the following source code I can read the arguments 0 and 1, since they have simple data types. From argument 2, I can only read the values with simple data types. *Therefore, my question: Which way do I have to go - certainly about the class DBusValues, whose documentation I do not understand - in order to read out the values of all arguments safely and to map them to Gambas types?* Gambas-Code-Cutout ------------------ Public Sub theDBusSignal_Signal(Signal As String, Arguments As Variant[]) ? Dim vElement As Variant ? Dim i As Integer ? Dim aDBusArray As New BusValue ? If Signal = "VolumeAdded" Or Signal = "VolumeRemoved" Then ???? txaResults.Insert("Number of Arguments from 'Arguments' = " & Arguments.Count & gb.NewLine) ???? txaResults.Insert("Arguments[0] = " & Arguments[0] & gb.NewLine) ???? txaResults.Insert("Arguments[1] = " & Arguments[1] & gb.NewLine) txaResults.Insert("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" & gb.NewLine) ???? For i = 0 To Arguments[2].Max ???? '?? txaResults.Insert("[2][" & Str(i) & "]" & " -> " & Arguments[2][i] & gb.NewLine) ???????? txaResults.Insert(TypeOf(Arguments[2][i]) & gb.NewLine) ???? Next ???? Print "Number of Arguments from 'Arguments' = "; Arguments.Count ???? Print "Argument[0] = "; Arguments[0] ???? Print "Arguments[1] = "; Arguments[1]; " | Typ = "; TypeOf(Arguments[1]) ???? Print "Arguments[2] = "; Arguments[2]; " | Typ = "; TypeOf(Arguments[2]) ???? For Each vElement In Arguments ?????? Print vElement ???? Next ???? For i = 0 To Arguments[2].Max ?????? Print "[2]["; i; "]"; " -> "; Arguments[2][i] ???? Next ? Endif End Cutout Console: --------------------- Number of Arguments from 'Arguments' = 3 --------------------------------------------------------- Argument[0] = org.gtk.Private.UDisks2VolumeMonitor Arguments[1] = 0x1449bd0 | Typ = 9 Arguments[2] = (Variant[] 0x16ac228) | Typ = 16 --------------------------------------------------------- org.gtk.Private.UDisks2VolumeMonitor 0x1449bd0 (Variant[] 0x16ac228) --------------------------------------------------------- [2][0] -> 0x1449bd0 [2][1] -> 2_GB_P [2][2] -> . GThemedIcon drive-removable-media-usb ... drive-removable drive [2][3] -> . GThemedIcon drive-removable-media-usb-symbolic ...drive-removable-media-usb [2][4] -> [2][5] -> [2][6] -> True [2][7] -> True [2][8] -> [2][9] -> [2][10] -> (Collection 0x16ac048) [2][11] -> gvfs.time_detected_usec.1516884992931147 [2][12] -> (Collection 0x16ac188) With kind regards Hans From charlie at cogier.com Fri Jan 26 16:10:43 2018 From: charlie at cogier.com (Charlie Ogier) Date: Fri, 26 Jan 2018 15:10:43 +0000 Subject: [Gambas-user] Short-circuit evaluation question In-Reply-To: References: Message-ID: <019641bc-0fd9-acb4-f168-6235e7c3c1a6@cogier.com> Hi Gianluigi, You need to add the 'New' word, twice. Regards, Charlie *Public Sub Main()** ** **? Dim ss As New String[]? ''Requires 'New'** **? ss = test()** **? If IsNull(ss) Then** **??? Print "FOO"** **? Endif** **** **? If IsNull(ss) Or If ss.Count = 0 Then Print "ss.Count = 0 is True"** **? If Not IsNull(ss) Or If ss.Count > 0 Then Print "Not IsNull(ss) is True"** ** **End** **'________________________________________ **Private Function test() As String[]** ** **? Dim ss As New String[]? ''Requires 'New'** **? Return ss** ** **End* On 26/01/18 12:24, Gianluigi wrote: > Sorry, too many useless things. ;-D > ? Dim ss as String[] > Because this works: > ? If IsNull(ss) Or If ss.Count = 0 Then Return > Because this does not work: > ? If Not IsNull(ss) Or If ss.Count > 0 Then > ??? '... > ? Endif > > Regards > Gianluigi > > 2018-01-26 12:24 GMT+01:00 Gianluigi >: > > See the attached project > > Regards > Gianluigi > > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Jan 26 16:57:59 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 26 Jan 2018 16:57:59 +0100 Subject: [Gambas-user] Short-circuit evaluation question In-Reply-To: <019641bc-0fd9-acb4-f168-6235e7c3c1a6@cogier.com> References: <019641bc-0fd9-acb4-f168-6235e7c3c1a6@cogier.com> Message-ID: Hi Charlie, apologize me for the project and the question, all very confusing. The question was on the short circuit. The NULL array is intended to demonstrate that short cirquitation does not work in the second IF block. I think it's due to the fact that the second IF starts with NOT. See the new attached project Thank you very much for your reply Greetings Gianluigi 2018-01-26 16:10 GMT+01:00 Charlie Ogier : > Hi Gianluigi, > > You need to add the 'New' word, twice. > > Regards, > > Charlie > > *Public Sub Main()* > > * Dim ss As New String[] ''Requires 'New'* > * ss = test()* > * If IsNull(ss) Then* > * Print "FOO"* > * Endif* > > * If IsNull(ss) Or If ss.Count = 0 Then Print "ss.Count = 0 is True"* > * If Not IsNull(ss) Or If ss.Count > 0 Then Print "Not IsNull(ss) is > True"* > > *End* > > > *'________________________________________ **Private Function test() As > String[]* > > * Dim ss As New String[] ''Requires 'New'* > * Return ss* > > *End* > > > On 26/01/18 12:24, Gianluigi wrote: > > Sorry, too many useless things. ;-D > Dim ss as String[] > Because this works: > If IsNull(ss) Or If ss.Count = 0 Then Return > Because this does not work: > If Not IsNull(ss) Or If ss.Count > 0 Then > '... > Endif > > Regards > Gianluigi > > 2018-01-26 12:24 GMT+01:00 Gianluigi : > >> See the attached project >> >> Regards >> Gianluigi >> > > > > -------------------------------------------------- > > This is the Gambas Mailing Listhttps://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ShotCirquit-0.0.1.tar.gz Type: application/x-gzip Size: 11174 bytes Desc: not available URL: From taboege at gmail.com Fri Jan 26 17:15:46 2018 From: taboege at gmail.com (Tobias Boege) Date: Fri, 26 Jan 2018 17:15:46 +0100 Subject: [Gambas-user] Octal to Integer Conversion In-Reply-To: <5d36e781-111e-87f8-915d-e5e5abf8c32d@gmail.com> References: <42b649d1-9cff-347c-d1c6-edcf012933fe@gmail.com> <5d36e781-111e-87f8-915d-e5e5abf8c32d@gmail.com> Message-ID: <20180126161546.GQ931@highrise.localdomain> On Thu, 25 Jan 2018, T Lee Davidson wrote: > On 01/25/2018 11:25 AM, Beno?t Minisini wrote: > > Le 25/01/2018 ? 17:08, T Lee Davidson a ?crit?: > >> While we're waiting for the Octal number representation issue to be resolved, > > > > For me it works on the development version. Is there something I didn't see? > > Well I am unsure since I am now a bit confused. When you last asked me what version I was using, I thought you were reporting > that you did not have the issue with the IDE auto-reformatting the text "&o". When I responded with my version number, I also > reported that I could not even compile an externally-edited source with gbc3. There was no response. > > Tobi, also, reported that he was unable to compile due to "Unexpected '&'". I do not know what version he is using. > I updated to the latest development version (gbx3 -V => 3.10.90 c1c52f05e), lo and behold: $ gbx3 -e '&o77' 63 This didn't work with whatever version I had before (some older 3.10.0). I never tested formatting in the IDE. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at gmail.com Fri Jan 26 17:18:50 2018 From: taboege at gmail.com (Tobias Boege) Date: Fri, 26 Jan 2018 17:18:50 +0100 Subject: [Gambas-user] Short-circuit evaluation question In-Reply-To: References: <019641bc-0fd9-acb4-f168-6235e7c3c1a6@cogier.com> Message-ID: <20180126161850.GR931@highrise.localdomain> On Fri, 26 Jan 2018, Gianluigi wrote: > Hi Charlie, > apologize me for the project and the question, all very confusing. > > The question was on the short circuit. > The NULL array is intended to demonstrate that short cirquitation does not > work in the second IF block. > I think it's due to the fact that the second IF starts with NOT. > See the new attached project > Thank you very much for your reply > Short circuit evaluation works, but your code in the second case Dim ss As String[] If Not IsNull(ss) Or If ss.Count > 0 Then requires a long circuit. ss *is* Null here, so "Not IsNull(ss)" will be false, requiring the second condition to be evaluated, which gives you an error. As a general rule, whenever If Condition1 Or If Condition2 takes a short-circuit, If Not Condition1 Or If Condition3 will require a long one. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From t.lee.davidson at gmail.com Fri Jan 26 17:31:45 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 26 Jan 2018 11:31:45 -0500 Subject: [Gambas-user] Octal to Integer Conversion In-Reply-To: <20180126161546.GQ931@highrise.localdomain> References: <42b649d1-9cff-347c-d1c6-edcf012933fe@gmail.com> <5d36e781-111e-87f8-915d-e5e5abf8c32d@gmail.com> <20180126161546.GQ931@highrise.localdomain> Message-ID: On 01/26/2018 11:15 AM, Tobias Boege wrote: > On Thu, 25 Jan 2018, T Lee Davidson wrote: >> On 01/25/2018 11:25 AM, Beno?t Minisini wrote: >>> Le 25/01/2018 ? 17:08, T Lee Davidson a ?crit?: >>>> While we're waiting for the Octal number representation issue to be resolved, >>> >>> For me it works on the development version. Is there something I didn't see? >> >> Well I am unsure since I am now a bit confused. When you last asked me what version I was using, I thought you were reporting >> that you did not have the issue with the IDE auto-reformatting the text "&o". When I responded with my version number, I also >> reported that I could not even compile an externally-edited source with gbc3. There was no response. >> >> Tobi, also, reported that he was unable to compile due to "Unexpected '&'". I do not know what version he is using. >> > > I updated to the latest development version (gbx3 -V => 3.10.90 c1c52f05e), > lo and behold: > > $ gbx3 -e '&o77' > 63 > > This didn't work with whatever version I had before (some older 3.10.0). > I never tested formatting in the IDE. > > Regards, > Tobi > Thank you for that report, Tobi. That clears up my confusion where I was thinking that Beno?t was talking only about the IDE issue working in the development version. Now I understand that he meant both the IDE _and_ the compiler, in the development version, are working correctly regarding octals. So, we just need to manually compile from master, or wait for the new version to be rolled out to our respective distro repositories. -- Lee From bagonergi at gmail.com Fri Jan 26 18:01:39 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 26 Jan 2018 18:01:39 +0100 Subject: [Gambas-user] Short-circuit evaluation question In-Reply-To: <20180126161850.GR931@highrise.localdomain> References: <019641bc-0fd9-acb4-f168-6235e7c3c1a6@cogier.com> <20180126161850.GR931@highrise.localdomain> Message-ID: Hi Tobias, kind and accurate in explanations, as always :-) Thank you very much Regards Gianluigi 2018-01-26 17:18 GMT+01:00 Tobias Boege : > On Fri, 26 Jan 2018, Gianluigi wrote: > > Hi Charlie, > > apologize me for the project and the question, all very confusing. > > > > The question was on the short circuit. > > The NULL array is intended to demonstrate that short cirquitation does > not > > work in the second IF block. > > I think it's due to the fact that the second IF starts with NOT. > > See the new attached project > > Thank you very much for your reply > > > > Short circuit evaluation works, but your code in the second case > > Dim ss As String[] > If Not IsNull(ss) Or If ss.Count > 0 Then > > requires a long circuit. ss *is* Null here, so "Not IsNull(ss)" will > be false, requiring the second condition to be evaluated, which gives > you an error. > > As a general rule, whenever > > If Condition1 Or If Condition2 > > takes a short-circuit, > > If Not Condition1 Or If Condition3 > > will require a long one. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From patrik at trixon.se Sat Jan 27 08:19:17 2018 From: patrik at trixon.se (Patrik Karlsson) Date: Sat, 27 Jan 2018 08:19:17 +0100 Subject: [Gambas-user] Socket Timeout Message-ID: I'm using Socket for the first time in Gambas and started out by looking at the ClientSocket example. https://gitlab.com/gambas/gambas/blob/master/app/examples/Networking/ClientSocket/.src/FrmMain.class Do one have to use a Timer like that since Socket has its own Timeout property and Error event? http://gambaswiki.org/wiki/comp/gb.net/socket/timeout?nh http://gambaswiki.org/wiki/comp/gb.net/socket/.error?nh /Patrik -------------- next part -------------- An HTML attachment was scrubbed... URL: From patrik at trixon.se Sat Jan 27 10:44:50 2018 From: patrik at trixon.se (Patrik Karlsson) Date: Sat, 27 Jan 2018 10:44:50 +0100 Subject: [Gambas-user] Logger $(callLocation) always returns ComplexLogger.Log.60 Message-ID: Using 3.10.90 c1c52f0 (master), given the code below, I get the output: [01/27/2018 11:38:19.285] [INFO] [ComplexLogger.Log.60] Hello world But I would expect something like [01/27/2018 11:38:19.285] [INFO] [Main.Main.7] Hello world Am I doing something wrong here? ' Gambas module file Public Sub Main() Dim hLog As New Logger(Logger.Info, "[$(now)] [$(levelname)] [$(callLocation)] $(message)", Logger.Stdout) hLog.Begin() hLog.Log("Hello world", Logger.Info) End /Patrik -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Sat Jan 27 12:53:52 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 27 Jan 2018 11:53:52 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1231: Crash with Task In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1231&from=L21haW4- Comment #1 by Beno?t MINISINI: A Task object is a fork of the main process, and GUI components do not like being forked, and often crash... From t.lee.davidson at gmail.com Sat Jan 27 19:19:28 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 27 Jan 2018 13:19:28 -0500 Subject: [Gambas-user] Socket Timeout In-Reply-To: References: Message-ID: The Timer in the example is to set a timeout for establishing a connection. As far as I understand it, the Timeout property is not a connection timeout but a send/receive timeout. This would mean that it would trigger Net.CannotRead/Net.CannotWrite errors but not connection timeout errors. -- Lee On 01/27/2018 02:19 AM, Patrik Karlsson wrote: > I'm using Socket for the first time in Gambas and started out by looking at the ClientSocket example. > https://gitlab.com/gambas/gambas/blob/master/app/examples/Networking/ClientSocket/.src/FrmMain.class > > Do one have to use a Timer like that since Socket has its own Timeout property and Error event? > > http://gambaswiki.org/wiki/comp/gb.net/socket/timeout?nh > http://gambaswiki.org/wiki/comp/gb.net/socket/.error?nh > > /Patrik > From bugtracker at gambaswiki.org Sat Jan 27 19:42:05 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 27 Jan 2018 18:42:05 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1231: Crash with Task In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1231&from=L21haW4- Comment #2 by Jussi LAHTINEN: That code used to work, and in fact nothing seem to work with Task anymore. Even the example code "Fractal" crashes with the latest revision. From t.lee.davidson at gmail.com Sat Jan 27 20:46:57 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 27 Jan 2018 14:46:57 -0500 Subject: [Gambas-user] DBus - How are signal data converted to Gambas data? In-Reply-To: References: Message-ID: <347862a2-a46a-8fec-9872-8460bb904b8d@gmail.com> I couldn't fine the book, 'D-Bus with gb.dbus', you referred to, but the output of 'dbus-monitor' (whatever that is exactly) indicates that Arguments[2] is of type 'struct'. Have you considered using a Structure? PUBLIC STRUCT theVariant String1 AS String String2 AS String String3 AS String String4 AS String String5 AS String String6 AS String Boolean1 AS Boolean Boolean2 AS Boolean String7 AS String String8 AS String Collection1 AS Collection String9 AS String Collection2 AS Collection END STRUCT See: http://gambaswiki.org/wiki/lang/structdecl -- Lee On 01/26/2018 10:26 AM, Hans Lehmann wrote: > Hello, > > in a project for the Gambas book on 'D-Bus with gb.dbus' I have the problem to read the arguments of a particular signal. In the > text of the XML document (Inspection) I found the number of expected arguments, their names and the signatures. Through the > output of the console program, I knew all the values of the three arguments. > > Cutout Introspection-XML-Document: > ---------------------------------------------------- > > ... > > ?? > ?? > ?? > > ... > > Output of 'dbus-monitor' after inserting the USB stick with label '2_GB_P': > ------------------------------------------------------------------------------------------------------ > > ... > signal sender=:1.10 -> dest=(null destination) serial=173 path=/org/gtk/Private/RemoteVolumeMonitor; > interface=org.gtk.Private.RemoteVolumeMonitor; member=VolumeAdded > ?? string "org.gtk.Private.UDisks2VolumeMonitor" > ?? string "0x1449bd0" > ?? struct { > ????? string "0x1449bd0" > ????? string "2_GB_P" > ????? string ". GThemedIcon drive-removable-media-usb drive-removable-media drive-removable drive" > ????? string ". GThemedIcon drive-removable-media-usb-symbolic ... drive-symbolic drive-removable-media-usb > drive-removable-media drive-removable drive" > ????? string "" > ????? string "" > ????? boolean true > ????? boolean true > ????? string "0x14af500" > ????? string "" > ????? array [ > ???????? dict entry( > ??????????? string "class" > ??????????? string "device" > ???????? ) > ???????? dict entry( > ??????????? string "unix-device" > ??????????? string "/dev/sdd1" > ???????? ) > ???????? dict entry( > ??????????? string "label" > ??????????? string "2_GB_P" > ???????? ) > ???????? dict entry( > ??????????? string "uuid" > ??????????? string "38ea6e0b-a161-401d-a673-11c06cf1229e" > ???????? ) > ????? ] > ????? string "gvfs.time_detected_usec.1516884992931147" > ????? array [ > ????? ] > ?? } > ... > > With the following source code I can read the arguments 0 and 1, since they have simple data types. From argument 2, I can only > read the values with simple data types. > > *Therefore, my question: Which way do I have to go - certainly about the class DBusValues, whose documentation I do not > understand - in order to read out the values of all arguments safely and to map them to Gambas types?* > > Gambas-Code-Cutout > ------------------ > > Public Sub theDBusSignal_Signal(Signal As String, Arguments As Variant[]) > > ? Dim vElement As Variant > ? Dim i As Integer > ? Dim aDBusArray As New BusValue > > ? If Signal = "VolumeAdded" Or Signal = "VolumeRemoved" Then > > ???? txaResults.Insert("Number of Arguments from 'Arguments' = " & Arguments.Count & gb.NewLine) > ???? txaResults.Insert("Arguments[0] = " & Arguments[0] & gb.NewLine) > ???? txaResults.Insert("Arguments[1] = " & Arguments[1] & gb.NewLine) > txaResults.Insert("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" & gb.NewLine) > > ???? For i = 0 To Arguments[2].Max > ???? '?? txaResults.Insert("[2][" & Str(i) & "]" & " -> " & Arguments[2][i] & gb.NewLine) > ???????? txaResults.Insert(TypeOf(Arguments[2][i]) & gb.NewLine) > ???? Next > > ???? Print "Number of Arguments from 'Arguments' = "; Arguments.Count > > ???? Print "Argument[0] = "; Arguments[0] > ???? Print "Arguments[1] = "; Arguments[1]; " | Typ = "; TypeOf(Arguments[1]) > ???? Print "Arguments[2] = "; Arguments[2]; " | Typ = "; TypeOf(Arguments[2]) > > ???? For Each vElement In Arguments > ?????? Print vElement > ???? Next > > ???? For i = 0 To Arguments[2].Max > ?????? Print "[2]["; i; "]"; " -> "; Arguments[2][i] > ???? Next > > ? Endif > > End > > Cutout Console: > --------------------- > > Number of Arguments from 'Arguments' = 3 > --------------------------------------------------------- > Argument[0] = org.gtk.Private.UDisks2VolumeMonitor > Arguments[1] = 0x1449bd0 | Typ = 9 > Arguments[2] = (Variant[] 0x16ac228) | Typ = 16 > --------------------------------------------------------- > org.gtk.Private.UDisks2VolumeMonitor > 0x1449bd0 > (Variant[] 0x16ac228) > --------------------------------------------------------- > [2][0] -> 0x1449bd0 > [2][1] -> 2_GB_P > [2][2] -> . GThemedIcon drive-removable-media-usb ... drive-removable drive > [2][3] -> . GThemedIcon drive-removable-media-usb-symbolic ...drive-removable-media-usb > [2][4] -> > [2][5] -> > [2][6] -> True > [2][7] -> True > [2][8] -> > [2][9] -> > [2][10] -> (Collection 0x16ac048) > [2][11] -> gvfs.time_detected_usec.1516884992931147 > [2][12] -> (Collection 0x16ac188) > > With kind regards > > Hans > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net From chrisml at deganius.de Sat Jan 27 22:36:04 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 27 Jan 2018 22:36:04 +0100 Subject: [Gambas-user] DBus - How are signal data converted to Gambas data? In-Reply-To: <347862a2-a46a-8fec-9872-8460bb904b8d@gmail.com> References: <347862a2-a46a-8fec-9872-8460bb904b8d@gmail.com> Message-ID: <95b77d84-3d5a-0ccf-7a28-8c4bafd047f5@deganius.de> Am 27.01.2018 um 20:46 schrieb T Lee Davidson: > I couldn't fine the book, 'D-Bus with gb.dbus', you referred to Hans wrote about the german website https://gambas-buch.de. It's an online book about Gambas and he is the author of that website. He is currently working on a chapter about gb.dbus and seems to have problems to understand the component due to lack of documentation. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From bugtracker at gambaswiki.org Sun Jan 28 16:17:39 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 28 Jan 2018 15:17:39 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1233: Scanner.Class error Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1233&from=L21haW4- Charlie OGIER reported a new bug. Summary ------- Scanner.Class error Type : Bug Priority : Low Gambas version : 3.10 Product : Unknown Description ----------- Error: Using an Epson XP-235 as a scanner the Scanner.Class errors at line 164 'Wanted Float got String'. The value of a[1] is "255,..." Code used: For Each sName In hScanner Print sName & " = " & hScanner[sName].Value Next Problem: >From scanimage -A in a Terminal the text below is included in the output. You can see that '255' is followed by extra characters. --auto-area-segmentation[=(yes|no)] [inactive] Enables different dithering modes in image and text areas --red-gamma-table 0..255,... Gamma-correction table for the red band. --green-gamma-table 0..255,... Gamma-correction table for the green band. --blue-gamma-table 0..255,... A possible solution: In Scanner.Class add a line at 160 'a[1] = CleanUp(a[1])' and add a the Function CleanUp() Private Function CleanUp(sString As String) As String Dim siCount As Short Dim sOutPut As String For siCount = 1 To Len(sString) If IsNumber(Mid(sString, siCount, 1)) Then sOutPut &= Mid(sString, siCount, 1) Next sOutPut = Replace(sOutPut, ".", "") Return sOutPut End System information ------------------ [System] Gambas=3.10 OperatingSystem=Linux Kernel=4.8.0-53-generic Architecture=x86_64 Distribution=Linux Mint 18.3 Sylvia Desktop=CINNAMON Theme=Gtk Language=en_GB.UTF-8 Memory=7854M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.803.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CINNAMON_VERSION=3.6.6 DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-VvXAA4plHn,guid=9e09f35cedfdaf07d99e2bf65a6dc054 DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=cinnamon GDM_LANG=en_GB GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESKTOP_SESSION_ID=this-is-deprecated GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME=/home/ LANG=en_GB.UTF-8 LANGUAGE=en_GB LC_ADDRESS=en_GB.UTF-8 LC_IDENTIFICATION=en_GB.UTF-8 LC_MEASUREMENT=en_GB.UTF-8 LC_MONETARY=en_GB.UTF-8 LC_NAME=en_GB.UTF-8 LC_NUMERIC=en_GB.UTF-8 LC_PAPER=en_GB.UTF-8 LC_TELEPHONE=en_GB.UTF-8 LC_TIME=en_GB.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path PAPERSIZE=letter PATH=/home//bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD=/home/ QT_ACCESSIBILITY=1 QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=qgnomeplatform QT_STYLE_OVERRIDE=gtk SESSION_MANAGER=local/:@/tmp/.ICE-unix/1249,unix/:/tmp/.ICE-unix/1249 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1306 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/home//.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg XDG_CURRENT_DESKTOP=X-Cinnamon XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/home//.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 From bugtracker at gambaswiki.org Sun Jan 28 17:25:44 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 28 Jan 2018 16:25:44 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1234: Gambas Terminal display issue Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1234&from=L21haW4- Charlie OGIER reported a new bug. Summary ------- Gambas Terminal display issue Type : Bug Priority : Low Gambas version : 3.10 Product : Unknown Description ----------- Problem: The Gambas Terminal does not display correctly. Using the 'sl' (Yes 'sl') command, you may need to install this. Then run 'sl-h' (no space) in a Gambas Terminal and in a system Terminal. The difference will be noticeable. To see this I have put up a video here http://www.cogier.com/gambas/terminal/ I have attached the Gambas program I used. System information ------------------ [System] Gambas=3.10 OperatingSystem=Linux Kernel=4.8.0-53-generic Architecture=x86_64 Distribution=Linux Mint 18.3 Sylvia Desktop=CINNAMON Theme=Gtk Language=en_GB.UTF-8 Memory=7854M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.803.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CINNAMON_VERSION=3.6.6 DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-VvXAA4plHn,guid=9e09f35cedfdaf07d99e2bf65a6dc054 DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=cinnamon GDM_LANG=en_GB GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESKTOP_SESSION_ID=this-is-deprecated GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME=/home/ LANG=en_GB.UTF-8 LANGUAGE=en_GB LC_ADDRESS=en_GB.UTF-8 LC_IDENTIFICATION=en_GB.UTF-8 LC_MEASUREMENT=en_GB.UTF-8 LC_MONETARY=en_GB.UTF-8 LC_NAME=en_GB.UTF-8 LC_NUMERIC=en_GB.UTF-8 LC_PAPER=en_GB.UTF-8 LC_TELEPHONE=en_GB.UTF-8 LC_TIME=en_GB.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path PAPERSIZE=letter PATH=/home//bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD=/home/ QT_ACCESSIBILITY=1 QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=qgnomeplatform QT_STYLE_OVERRIDE=gtk SESSION_MANAGER=local/:@/tmp/.ICE-unix/1249,unix/:/tmp/.ICE-unix/1249 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1306 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/home//.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg XDG_CURRENT_DESKTOP=X-Cinnamon XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/home//.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 From bugtracker at gambaswiki.org Sun Jan 28 17:25:55 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 28 Jan 2018 16:25:55 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1234: Gambas Terminal display issue In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1234&from=L21haW4- Charlie OGIER added an attachment: Terminal.tar From gitlab at mg.gitlab.com Sun Jan 28 17:58:11 2018 From: gitlab at mg.gitlab.com (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Sun, 28 Jan 2018 16:58:11 +0000 Subject: [Gambas-user] =?utf-8?b?W0dpdF1bZ2FtYmFzL2dhbWJhc11bbWFzdGVyXSBE?= =?utf-8?q?on=27t_call_QUIT_when_terminating_a_task=2C_it_crashes=2E_Just_?= =?utf-8?q?clean_up_the_temporary=E2=80=A6?= Message-ID: <5a6e0123f1879_1cbe73fb040d95dc030080cf@sidekiq-asap-04.mail> Beno?t Minisini pushed to branch master at Gambas / gambas Commits: 17834b13 by gambas at 2018-01-28T17:57:13+01:00 Don't call QUIT when terminating a task, it crashes. Just clean up the temporary directory and exit. [INTERPRETER] * BUG: Don't call QUIT when terminating a task, it crashes. Just clean up the temporary directory and exit. - - - - - 3 changed files: - main/gbx/Makefile.am - main/gbx/gbx.c - main/gbx/gbx_c_task.c Changes: ===================================== main/gbx/Makefile.am ===================================== --- a/main/gbx/Makefile.am +++ b/main/gbx/Makefile.am @@ -7,9 +7,9 @@ gblib_LTLIBRARIES = gb.la libgbx_a_CFLAGS = -DGAMBAS_PATH="\"$(bindir)\"" $(AM_CFLAGS_OPT) -gbx3_LDADD = @C_LIB@ @GBX_THREAD_LIB@ libgbx.a @MATH_LIB@ @INTL_LIB@ @CONV_LIB@ @GETTEXT_LIB@ @DL_LIB@ @FFI_LIB@ @RT_LIB@ +gbx3_LDADD = @C_LIB@ @GBX_THREAD_LIB@ libgbx.a @MATH_LIB@ @INTL_LIB@ @CONV_LIB@ @GETTEXT_LIB@ @DL_LIB@ @FFI_LIB@ @RT_LIB@ gbx3_LDFLAGS = @LD_FLAGS@ @GBX_THREAD_LDFLAGS@ @INTL_LDFLAGS@ @CONV_LDFLAGS@ @GETTEXT_LDFLAGS@ @FFI_LDFLAGS@ @RT_LDFLAGS@ -gbx3_CFLAGS = -DGAMBAS_PATH="\"$(bindir)\"" $(AM_CFLAGS) +gbx3_CFLAGS = -DGAMBAS_PATH="\"$(bindir)\"" $(AM_CFLAGS) -flto gb_la_LIBADD = @C_LIB@ @GBX_THREAD_LIB@ @MATH_LIB@ @INTL_LIB@ @CONV_LIB@ @GETTEXT_LIB@ @DL_LIB@ @FFI_LIB@ @RT_LIB@ gb_la_LDFLAGS = -module @LD_FLAGS@ @INTL_LDFLAGS@ @CONV_LDFLAGS@ @GETTEXT_LDFLAGS@ @FFI_LDFLAGS@ @RT_LDFLAGS@ ===================================== main/gbx/gbx.c ===================================== --- a/main/gbx/gbx.c +++ b/main/gbx/gbx.c @@ -472,7 +472,7 @@ int main(int argc, char *argv[]) MEMORY_exit(); fflush(NULL); - + return ret; } ===================================== main/gbx/gbx_c_task.c ===================================== --- a/main/gbx/gbx_c_task.c +++ b/main/gbx/gbx_c_task.c @@ -252,8 +252,8 @@ static void prepare_task(CTASK *_object) static void exit_child(int ret) { - EXEC_quit_value = ret; - EXEC_quit(); + FILE_exit(); + _exit(ret); } static bool start_task(CTASK *_object) View it on GitLab: https://gitlab.com/gambas/gambas/commit/17834b13a6b0699c999c898e57df9e0fd49e496c --- View it on GitLab: https://gitlab.com/gambas/gambas/commit/17834b13a6b0699c999c898e57df9e0fd49e496c You're receiving this email because of your account on gitlab.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Sun Jan 28 17:59:23 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 28 Jan 2018 16:59:23 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1231: Crash with Task In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1231&from=L21haW4- Comment #3 by Beno?t MINISINI: It should work again with commit https://gitlab.com/gambas/gambas/commit/17834b13a6b0699c999c898e57df9e0fd49e496c Beno?t MINISINI changed the state of the bug to: Fixed. From g4mba5 at gmail.com Sun Jan 28 19:53:13 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 28 Jan 2018 19:53:13 +0100 Subject: [Gambas-user] DBus - How are signal data converted to Gambas data? In-Reply-To: References: Message-ID: <33f961dc-e6f3-3b8c-44ac-e320118c8259@gmail.com> Le 26/01/2018 ? 16:26, Hans Lehmann a ?crit?: > Hello, > > in a project for the Gambas book on 'D-Bus with gb.dbus' I have the > problem to read the arguments of a particular signal. In the text of the > XML document (Inspection) I found the number of expected arguments, > their names and the signatures. Through the output of the console > program, I knew all the values of the three arguments. > > Cutout Introspection-XML-Document: > ---------------------------------------------------- > > ... > > ?? > ?? > ?? > > ... > > Output of 'dbus-monitor' after inserting the USB stick with label '2_GB_P': > ------------------------------------------------------------------------------------------------------ > > > ... > signal sender=:1.10 -> dest=(null destination) serial=173 > path=/org/gtk/Private/RemoteVolumeMonitor; > interface=org.gtk.Private.RemoteVolumeMonitor; member=VolumeAdded > ?? string "org.gtk.Private.UDisks2VolumeMonitor" > ?? string "0x1449bd0" > ?? struct { > ????? string "0x1449bd0" > ????? string "2_GB_P" > ????? string ". GThemedIcon drive-removable-media-usb > drive-removable-media drive-removable drive" > ????? string ". GThemedIcon drive-removable-media-usb-symbolic ... > drive-symbolic drive-removable-media-usb drive-removable-media > drive-removable drive" > ????? string "" > ????? string "" > ????? boolean true > ????? boolean true > ????? string "0x14af500" > ????? string "" > ????? array [ > ???????? dict entry( > ??????????? string "class" > ??????????? string "device" > ???????? ) > ???????? dict entry( > ??????????? string "unix-device" > ??????????? string "/dev/sdd1" > ???????? ) > ???????? dict entry( > ??????????? string "label" > ??????????? string "2_GB_P" > ???????? ) > ???????? dict entry( > ??????????? string "uuid" > ??????????? string "38ea6e0b-a161-401d-a673-11c06cf1229e" > ???????? ) > ????? ] > ????? string "gvfs.time_detected_usec.1516884992931147" > ????? array [ > ????? ] > ?? } > ... > > With the following source code I can read the arguments 0 and 1, since > they have simple data types. From argument 2, I can only read the values > with simple data types. > > *Therefore, my question: Which way do I have to go - certainly about the > class DBusValues, whose documentation I do not understand - in order to > read out the values of all arguments safely and to map them to Gambas > types?* > > Gambas-Code-Cutout > ------------------ > > Public Sub theDBusSignal_Signal(Signal As String, Arguments As Variant[]) > > ? Dim vElement As Variant > ? Dim i As Integer > ? Dim aDBusArray As New BusValue > > ? If Signal = "VolumeAdded" Or Signal = "VolumeRemoved" Then > > ???? txaResults.Insert("Number of Arguments from 'Arguments' = " & > Arguments.Count & gb.NewLine) > ???? txaResults.Insert("Arguments[0] = " & Arguments[0] & gb.NewLine) > ???? txaResults.Insert("Arguments[1] = " & Arguments[1] & gb.NewLine) > txaResults.Insert("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" > & gb.NewLine) > > ???? For i = 0 To Arguments[2].Max > ???? '?? txaResults.Insert("[2][" & Str(i) & "]" & " -> " & > Arguments[2][i] & gb.NewLine) > ???????? txaResults.Insert(TypeOf(Arguments[2][i]) & gb.NewLine) > ???? Next > > ???? Print "Number of Arguments from 'Arguments' = "; Arguments.Count > > ???? Print "Argument[0] = "; Arguments[0] > ???? Print "Arguments[1] = "; Arguments[1]; " | Typ = "; > TypeOf(Arguments[1]) > ???? Print "Arguments[2] = "; Arguments[2]; " | Typ = "; > TypeOf(Arguments[2]) > > ???? For Each vElement In Arguments > ?????? Print vElement > ???? Next > > ???? For i = 0 To Arguments[2].Max > ?????? Print "[2]["; i; "]"; " -> "; Arguments[2][i] > ???? Next > > ? Endif > > End > > Cutout Console: > --------------------- > > Number of Arguments from 'Arguments' = 3 > --------------------------------------------------------- > Argument[0] = org.gtk.Private.UDisks2VolumeMonitor > Arguments[1] = 0x1449bd0 | Typ = 9 > Arguments[2] = (Variant[] 0x16ac228) | Typ = 16 > --------------------------------------------------------- > org.gtk.Private.UDisks2VolumeMonitor > 0x1449bd0 > (Variant[] 0x16ac228) > --------------------------------------------------------- > [2][0] -> 0x1449bd0 > [2][1] -> 2_GB_P > [2][2] -> . GThemedIcon drive-removable-media-usb ... drive-removable drive > [2][3] -> . GThemedIcon drive-removable-media-usb-symbolic > ...drive-removable-media-usb > [2][4] -> > [2][5] -> > [2][6] -> True > [2][7] -> True > [2][8] -> > [2][9] -> > [2][10] -> (Collection 0x16ac048) > [2][11] -> gvfs.time_detected_usec.1516884992931147 > [2][12] -> (Collection 0x16ac188) > > With kind regards > > Hans > I have update the DBus documentation page at http://gambaswiki.org/wiki/doc/dbus#t10 with the datatype mapping between Gambas and DBus. It should help you. Regards, -- Beno?t Minisini From t.lee.davidson at gmail.com Sun Jan 28 21:14:42 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 28 Jan 2018 15:14:42 -0500 Subject: [Gambas-user] DBus - How are signal data converted to Gambas data? In-Reply-To: <33f961dc-e6f3-3b8c-44ac-e320118c8259@gmail.com> References: <33f961dc-e6f3-3b8c-44ac-e320118c8259@gmail.com> Message-ID: <0b383db5-1ba5-e655-3163-15a97b8193b5@gmail.com> On 01/28/2018 01:53 PM, Beno?t Minisini wrote: > Le 26/01/2018 ? 16:26, Hans Lehmann a ?crit?: [snip] >> >> *Therefore, my question: Which way do I have to go - certainly about the class DBusValues, whose documentation I do not >> understand - in order to read out the values of all arguments safely and to map them to Gambas types?* >> [snip] >> > > I have update the DBus documentation page at http://gambaswiki.org/wiki/doc/dbus#t10 with the datatype mapping between Gambas > and DBus. > > It should help you. > DBus Explorer, from the Software farm Examples, gives a good example of how DBus datatypes can be mapped to descriptive strings. After reading and re-reading the documenation, I also am having difficulty understanding what specific use cases there might be for DBusValues or even a possible implementation of a class inheriting DBusValues. In the case of Hans' returned Argument[2], for example, why not just map it into a STRUCT and then extract values further from that? Is DBusValues _only_ for the case in which one needs to implement a class to work with DBus instead of a procedural implementation? -- Lee From gambas.fr at gmail.com Mon Jan 29 08:29:37 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 29 Jan 2018 08:29:37 +0100 Subject: [Gambas-user] DBus - How are signal data converted to Gambas data? In-Reply-To: <0b383db5-1ba5-e655-3163-15a97b8193b5@gmail.com> References: <33f961dc-e6f3-3b8c-44ac-e320118c8259@gmail.com> <0b383db5-1ba5-e655-3163-15a97b8193b5@gmail.com> Message-ID: The best example is gb.dbus.trayicon... It show really how to use DBusVariant and structures. 2018-01-28 21:14 GMT+01:00 T Lee Davidson : > On 01/28/2018 01:53 PM, Beno?t Minisini wrote: > > Le 26/01/2018 ? 16:26, Hans Lehmann a ?crit : > [snip] > >> > >> *Therefore, my question: Which way do I have to go - certainly about > the class DBusValues, whose documentation I do not > >> understand - in order to read out the values of all arguments safely > and to map them to Gambas types?* > >> > [snip] > >> > > > > I have update the DBus documentation page at http://gambaswiki.org/wiki/ > doc/dbus#t10 with the datatype mapping between Gambas > > and DBus. > > > > It should help you. > > > > DBus Explorer, from the Software farm Examples, gives a good example of > how DBus datatypes can be mapped to descriptive strings. > > After reading and re-reading the documenation, I also am having difficulty > understanding what specific use cases there might be > for DBusValues or even a possible implementation of a class inheriting > DBusValues. > > In the case of Hans' returned Argument[2], for example, why not just map > it into a STRUCT and then extract values further from > that? Is DBusValues _only_ for the case in which one needs to implement a > class to work with DBus instead of a procedural > implementation? > > > -- > Lee > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From phandamily at yahoo.com Mon Jan 29 09:16:27 2018 From: phandamily at yahoo.com (Phan Damily) Date: Mon, 29 Jan 2018 08:16:27 +0000 (UTC) Subject: [Gambas-user] Class array - Null Object [SOLVED] References: <160993279.940346.1517213787315.ref@mail.yahoo.com> Message-ID: <160993279.940346.1517213787315@mail.yahoo.com> Hello everyone. I'm new to Gambas and new to this mailing list. I earlier subscribed and posted to the depreciated mailing list, not knowing it was depreciated. Thanks to Beno?t Minisini for pointing out my mistake and directing me to the correct list. And thanks to nando_f for solving my problem, even though it was on the depreciated list. I'm posting the solution here to help others. [begin original post] Hello everyone. I'm new to Gambas and new to the mailing list. I'm using v3.10.0 on Linux.I programmed extensively with VB6 back in the day. So Gambas is pretty straight-forward and I'm excited about switching over from Xamarin's C#. But I've ran into a situation with Gambas I can't resolve. I've been testing code ideas, trying to create a working one-dimensional class array. But keep getting "Null object" errors when trying to assign values to fields. ' Class1.class ??? Public I As Integer ??? Public S As String ' FMain.class ??? Public TheArray As New Class1[] Public Sub cmdTest_Click() ??? Dim TheCounter As Integer ??? TheArray = New Class1[] ??? TheArray.Resize(100) ??? For TheCounter = 0 To 100 ? ??????? TheArray[TheCounter].I = TheCounter??????????? <---- Null object in FMain ??????? TheArray[TheCounter].S = CStr(TheCounter) ??? Next ??? For TheCounter = 0 To 100 ??????? Print TheArray[TheCounter].I, TheArray[TheCounter].S ??? Next End I'm sure the solution is pretty simple. But I haven't been able to find an answer or a working code example for this particular situation. Thanks for reading. [end original post] Again, thanks to guidance from nando_f, I've posted the solution to my problem below. Plus, I've included a workaround solution to the incorrect Resize in my original code, where TheCounter would give an error once it reached 100. This workaround method "TheArray.Resize(TheArray.Count + 1)" should suffice in situations where the required array size can't be known. Dim TheCounter As Integer? TheArray = New Class1[] ?For TheCounter = 0 To 100 ??? TheArray.Resize(TheArray.Count + 1) ??? TheArray[TheCounter] = New Class1 ??? TheArray[TheCounter].I = TheCounter ??? TheArray[TheCounter].S = CString(TheCounter) ?Next ? For TheCounter = 0 To 100 ??? Print TheArray[TheCounter].I, TheArray[TheCounter].S ? Next I hope this is helpful to someone. Thanks for reading. -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Mon Jan 29 09:45:33 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 29 Jan 2018 03:45:33 -0500 Subject: [Gambas-user] DBus - How are signal data converted to Gambas data? In-Reply-To: References: <33f961dc-e6f3-3b8c-44ac-e320118c8259@gmail.com> <0b383db5-1ba5-e655-3163-15a97b8193b5@gmail.com> Message-ID: Thanks, Fabien. I was really eager to dive in to that example, except ... I can't find it. I looked at All software on the Farm, not just Examples. I even looked on the Wiki thinking it might be there. It might be, but I don't see it. Will you give me a clue? -- Lee On 01/29/2018 02:29 AM, Fabien Bodard wrote: > The best example is gb.dbus.trayicon... It show really how to use DBusVariant and structures. > > 2018-01-28 21:14 GMT+01:00 T Lee Davidson >: > > On 01/28/2018 01:53 PM, Beno?t Minisini wrote: > > Le 26/01/2018 ? 16:26, Hans Lehmann a ?crit?: > [snip] > >> > >> *Therefore, my question: Which way do I have to go - certainly about the class DBusValues, whose documentation I do not > >> understand - in order to read out the values of all arguments safely and to map them to Gambas types?* > >> > [snip] > >> > > > > I have update the DBus documentation page at http://gambaswiki.org/wiki/doc/dbus#t10 with the datatype mapping between Gambas > > and DBus. > > > > It should help you. > > > > DBus Explorer, from the Software farm Examples, gives a good example of how DBus datatypes can be mapped to descriptive strings. > > After reading and re-reading the documenation, I also am having difficulty understanding what specific use cases there might be > for DBusValues or even a possible implementation of a class inheriting DBusValues. > > In the case of Hans' returned Argument[2], for example, why not just map it into a STRUCT and then extract values further from > that? Is DBusValues _only_ for the case in which one needs to implement a class to work with DBus instead of a procedural > implementation? > > > -- > Lee > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > > > > > -- > Fabien Bodard > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > From karl.reinl at fen-net.de Mon Jan 29 10:23:49 2018 From: karl.reinl at fen-net.de (Karl Reinl) Date: Mon, 29 Jan 2018 10:23:49 +0100 Subject: [Gambas-user] DBus - How are signal data converted to Gambas data? In-Reply-To: References: <33f961dc-e6f3-3b8c-44ac-e320118c8259@gmail.com> <0b383db5-1ba5-e655-3163-15a97b8193b5@gmail.com> Message-ID: <1517217829.16460.8.camel@Scenic.local> Am Montag, den 29.01.2018, 03:45 -0500 schrieb T Lee Davidson: > Thanks, Fabien. I was really eager to dive in to that example, except ... I can't find it. > > I looked at All software on the Farm, not just Examples. I even looked on the Wiki thinking it might be there. It might be, but > I don't see it. > > Will you give me a clue? > > Salut Lee, that's from gambas3 source code, you find it at /comp/src. Most of gb.*.* is from there. -- Amicalement Charlie From tercoide at hotmail.com Mon Jan 29 12:28:40 2018 From: tercoide at hotmail.com (Martin Cristia) Date: Mon, 29 Jan 2018 11:28:40 +0000 Subject: [Gambas-user] Onion Omega2+ Message-ID: Hi, does anyone tried to run gambas3 in it as to write an "How to"? https://onion.io/store/omega2p/ Thanks -- Saludos Ing. Martin P Cristia From antonio.j.teixeira at gmail.com Mon Jan 29 13:26:45 2018 From: antonio.j.teixeira at gmail.com (Antonio Teixeira) Date: Mon, 29 Jan 2018 12:26:45 +0000 Subject: [Gambas-user] Gridview UnselectAll Message-ID: Hi, We are using Gambas 3.9.1 and we found something wierd on gridview. The grid has just 1 column, several rows (dont mater how many) and is with single line selection activated. Clicking in a row a modal form open. We have a button that is used to unselect the selected line. Using the unselectall method he just work once. After starting the program, we select a line and the modal form opens. Then we press the button and the line become unselected. If we select another line (or the same), the form opens, and we close her. Then we press the button but nothing happens. The line remains selected. Any help? ?Thanks in advance. Ant?nio Teixeira ?*Ths is the main form code (Just a gridview and a button):* Public Sub Form_Open() GridView1.x = 217 GridView1.y = 70 GridView1.w = 364 GridView1.h = 469 GridView1.Rows.count = 100 GridView1.Rows.h = 30 GridView1.Columns.count = 1 GridView1.Mode = Select.Single End Public Sub Button2_Click() GridView1.UnSelectAll End Public Sub GridView1_Click() Form1.ShowModal End? *The modal form (Just a button)* Public Sub Button1_Click() Me.close End -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Jan 29 13:46:44 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 29 Jan 2018 13:46:44 +0100 Subject: [Gambas-user] Gridview UnselectAll In-Reply-To: References: Message-ID: If you open a modal form you can only use that one. If you want to use the mainform when Form1 is open, you must open Form1 with Show. Regards Gianluigi 2018-01-29 13:26 GMT+01:00 Antonio Teixeira : > Hi, > > We are using Gambas 3.9.1 and we found something wierd on gridview. > > The grid has just 1 column, several rows (dont mater how many) and is with > single line selection activated. > Clicking in a row a modal form open. > We have a button that is used to unselect the selected line. > > Using the unselectall method he just work once. > > After starting the program, we select a line and the modal form opens. > Then we press the button and the line become unselected. > If we select another line (or the same), the form opens, and we close her. > Then we press the button but nothing happens. The line remains selected. > > Any help? > > ?Thanks in advance. > > > Ant?nio Teixeira > > ?*Ths is the main form code (Just a gridview and a button):* > > > Public Sub Form_Open() > GridView1.x = 217 > GridView1.y = 70 > GridView1.w = 364 > GridView1.h = 469 > GridView1.Rows.count = 100 > GridView1.Rows.h = 30 > GridView1.Columns.count = 1 > GridView1.Mode = Select.Single > End > > Public Sub Button2_Click() > GridView1.UnSelectAll > End > > Public Sub GridView1_Click() > Form1.ShowModal > End? > > > *The modal form (Just a button)* > > Public Sub Button1_Click() > Me.close > End > > > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier.cruilles at yahoo.fr Mon Jan 29 16:31:19 2018 From: olivier.cruilles at yahoo.fr (Yahoo) Date: Mon, 29 Jan 2018 10:31:19 -0500 Subject: [Gambas-user] Onion Omega2+ In-Reply-To: References: Message-ID: Hello Martin, In fact this not so simple to cross-compile Gambas3 for Omega2+. First it?s necessary to cross-compile all libraries that Gambas3 depends. I think not all libraries are necessary because as there is not GUI or Desktop on Omega2+, only components none graphical are possible. We can let down all GTK, QT4/5 components, etc? for examples. So once the necessaries libraries are cross-compiled, may be Gambas could be cross-compiled but only Benoit can answer on this point. The cross-compilation is made on every Linux distribution that can run docker container. The docker container with all necessary to cross-compile to Omega2+ is available at this URL: https://onion.io/2bt-cross-compiling-c-programs-part-1/ Olivier Cruilles Le January 29, 2018 ? 06:29:04, Martin Cristia (tercoide at hotmail.com) a ?crit: Hi, does anyone tried to run gambas3 in it as to write an "How to"? https://onion.io/store/omega2p/ Thanks -- Saludos Ing. Martin P Cristia -------------------------------------------------- This is the Gambas Mailing List https://lists.gambas-basic.org/listinfo/user Hosted by https://www.hostsharing.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From antonio.j.teixeira at gmail.com Mon Jan 29 17:00:03 2018 From: antonio.j.teixeira at gmail.com (Antonio Teixeira) Date: Mon, 29 Jan 2018 16:00:03 +0000 Subject: [Gambas-user] Gridview UnselectAll Message-ID: ?Hi, Thank you Gianluigi for your answer. The problem is I dont wan to to use the main form with form1 open. The problem apears after I close form1. I just want to click on the grid when I just have main form open and form1 closed. How to I reply to a message on forum? You replied but how can I continue the thread? Thank you? ?Regards Ant?nio Teixeira -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Jan 29 17:26:48 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 29 Jan 2018 17:26:48 +0100 Subject: [Gambas-user] Gridview UnselectAll In-Reply-To: References: Message-ID: You must reply as you normally do with emails (see attached picture) About the malfunction of your code I do not know what to say, it works for me using QT Regards Gianluigi 2018-01-29 17:00 GMT+01:00 Antonio Teixeira : > > ?Hi, > > Thank you Gianluigi for your answer. > The problem is I dont wan to to use the main form with form1 open. The > problem apears after I close form1. I just want to click on the grid when I > just have main form open and form1 closed. > > How to I reply to a message on forum? You replied but how can I continue > the thread? Thank you? > > ?Regards > > > Ant?nio Teixeira > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Antonio.png Type: image/png Size: 23772 bytes Desc: not available URL: From rwe-sse at osnanet.de Mon Jan 29 17:48:24 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 29 Jan 2018 17:48:24 +0100 Subject: [Gambas-user] Gridview UnselectAll In-Reply-To: References: Message-ID: <5A6F5058.3060004@osnanet.de> Am 29.01.2018 13:26, schrieb Antonio Teixeira: > Hi, > > We are using Gambas 3.9.1 and we found something wierd on gridview. > > The grid has just 1 column, several rows (dont mater how many) and is > with single line selection activated. > Clicking in a row a modal form open. > We have a button that is used to unselect the selected line. > > Using the unselectall method he just work once. > > After starting the program, we select a line and the modal form opens. > Then we press the button and the line become unselected. > If we select another line (or the same), the form opens, and we close her. > Then we press the button but nothing happens. The line remains selected. > > Any help? > > ?Thanks in advance. > > > Ant?nio Teixeira > > ?*Ths is the main form code (Just a gridview and a button):* > * > * > * > * > Public Sub Form_Open() > GridView1.x = 217 > GridView1.y = 70 > GridView1.w = 364 > GridView1.h = 469 > GridView1.Rows.count = 100 > GridView1.Rows.h = 30 > GridView1.Columns.count = 1 > GridView1.Mode = Select.Single > End > > Public Sub Button2_Click() > GridView1.UnSelectAll > End > > Public Sub GridView1_Click() > Form1.ShowModal > End? > > > *The modal form (Just a button)* > > Public Sub Button1_Click() > Me.close > End > > Ok, you want to keep the form with Button1 to stay open all the time, and you want to be able to access the Main form at the same time? Then you should use Show instead of ShowModal. ShowModal is for opening forms which must have the user's attention and a "Close" or "Cancel" button to close them PRIOR TO be able to access the calling form again. It will pass a Value to the Close event, so the calling form can read what happened in the meantime. (Personally, I prefer to use a number of public variables for this, but it's a matter of taste...) Regards Rolf From rwe-sse at osnanet.de Mon Jan 29 17:58:03 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 29 Jan 2018 17:58:03 +0100 Subject: [Gambas-user] Gridview UnselectAll In-Reply-To: References: Message-ID: <5A6F529B.8060206@osnanet.de> Am 29.01.2018 17:00, schrieb Antonio Teixeira: > > ?Hi, > > Thank you Gianluigi for your answer. > The problem is I dont wan to to use the main form with form1 open. The > problem apears after I close form1. I just want to click on the grid > when I just have main form open and form1 closed. > > How to I reply to a message on forum? You replied but how can I continue > the thread? Thank you? > > ?Regards > > > Ant?nio Teixeira > > > Ahh, ok... You want to click on the grid, and form1 shall close automatically? So Form1 closes EITHER when you click on its Close button OR if you click on the grid? Let me make a guess: Still you have to open form1 with Show, not ShowModal, and then, from the Grid1, in the Click event, close form1... Difficult! You have to check if Form1 is already open or has to be openend. Or did I get you wrong here? As to the mailing list, in my mailing program (Thunderbird), usually there are two Answer buttons when I read mails from the list. Either there is "Answer" and "Answer to List" (which is correct) or there is "Answer" and "Answer to All" (which is caused by the mailing program of the other guy). So if I can click on "Answer to List", everything is fine. Otherwise, I have to use "Answer to All" and then delete the personal address of the other guy to prevent a copy is sent to his personal address as well. Regards Rolf From charlie at cogier.com Mon Jan 29 17:36:00 2018 From: charlie at cogier.com (Charlie Ogier) Date: Mon, 29 Jan 2018 16:36:00 +0000 Subject: [Gambas-user] Gridview UnselectAll In-Reply-To: References: Message-ID: Hi Ant?nio, It works for me as well. Have a look at the attached program. Hope it helps. Charlie On 29/01/18 16:26, Gianluigi wrote: > You must reply as you normally do with emails (see attached picture) > > About the malfunction of your code I do not know what to say, it works > for me using QT > > Regards > Gianluigi > > 2018-01-29 17:00 GMT+01:00 Antonio Teixeira > >: > > > ?Hi, > > Thank you Gianluigi for your answer. > The problem is I dont wan to to use the main form with form1 open. > The problem apears after I close form1. I just want to click on > the grid when I just have main form open and form1 closed. > > How to I reply to a message on forum? You replied but how can I > continue the thread? Thank you? > > ?Regards > > > Ant?nio Teixeira > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > > Hosted by https://www.hostsharing.net > > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GUITest.tar Type: application/x-tar Size: 60416 bytes Desc: not available URL: From bagonergi at gmail.com Mon Jan 29 18:11:11 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 29 Jan 2018 18:11:11 +0100 Subject: [Gambas-user] Gridview UnselectAll In-Reply-To: References: Message-ID: Hi Antonio, I forgot to report (if you don't yet know them) that there is a forum in Spanish [0] and, also in Spanish, the Jsbsan's site [1] Regards Gianluigi [0] https://www.gambas-es.org/index.php?sid=8c1c33da35bade6544d726e2825cc0aa [1] http://jsbsan.blogspot.it/ 2018-01-29 17:36 GMT+01:00 Charlie Ogier : > Hi Ant?nio, > > It works for me as well. Have a look at the attached program. > > Hope it helps. > > Charlie > > On 29/01/18 16:26, Gianluigi wrote: > > You must reply as you normally do with emails (see attached picture) > > About the malfunction of your code I do not know what to say, it works for > me using QT > > Regards > Gianluigi > > 2018-01-29 17:00 GMT+01:00 Antonio Teixeira > : > >> >> ?Hi, >> >> Thank you Gianluigi for your answer. >> The problem is I dont wan to to use the main form with form1 open. The >> problem apears after I close form1. I just want to click on the grid when I >> just have main form open and form1 closed. >> >> How to I reply to a message on forum? You replied but how can I continue >> the thread? Thank you? >> >> ?Regards >> >> >> Ant?nio Teixeira >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List >> https://lists.gambas-basic.org/listinfo/user >> >> Hosted by https://www.hostsharing.net >> >> > > > -------------------------------------------------- > > This is the Gambas Mailing Listhttps://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From antonio.j.teixeira at gmail.com Mon Jan 29 19:12:12 2018 From: antonio.j.teixeira at gmail.com (Antonio Teixeira) Date: Mon, 29 Jan 2018 18:12:12 +0000 Subject: [Gambas-user] User Digest, Vol 4, Issue 65 In-Reply-To: References: Message-ID: Gianluigi, I am sending a project I made just to check the problem. The procedure to see the problem occurs is: Select a line (a form opens) close form1 click unselect select another line (the form opens again) close the form click the unselectall check it the second time you can unselect the line. Thank you Best regards Atentamente Ant?nio Teixeira 2018-01-29 16:27 GMT+00:00 : > Send User mailing list submissions to > user at lists.gambas-basic.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.gambas-basic.org/listinfo/user > or, via email, send a message with subject or body 'help' to > user-request at lists.gambas-basic.org > > You can reach the person managing the list at > user-owner at lists.gambas-basic.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of User digest..." > > > Today's Topics: > > 1. Gridview UnselectAll (Antonio Teixeira) > 2. Re: Gridview UnselectAll (Gianluigi) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 29 Jan 2018 16:00:03 +0000 > From: Antonio Teixeira > To: user at lists.gambas-basic.org > Subject: [Gambas-user] Gridview UnselectAll > Message-ID: > mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > ?Hi, > > Thank you Gianluigi for your answer. > The problem is I dont wan to to use the main form with form1 open. The > problem apears after I close form1. I just want to click on the grid when I > just have main form open and form1 closed. > > How to I reply to a message on forum? You replied but how can I continue > the thread? Thank you? > > ?Regards > > > Ant?nio Teixeira > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: attachments/20180129/2bddc5fb/attachment-0001.html> > > ------------------------------ > > Message: 2 > Date: Mon, 29 Jan 2018 17:26:48 +0100 > From: Gianluigi > To: Gambas Mailing List > Subject: Re: [Gambas-user] Gridview UnselectAll > Message-ID: > A at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > You must reply as you normally do with emails (see attached picture) > > About the malfunction of your code I do not know what to say, it works for > me using QT > > Regards > Gianluigi > > 2018-01-29 17:00 GMT+01:00 Antonio Teixeira > : > > > > > ?Hi, > > > > Thank you Gianluigi for your answer. > > The problem is I dont wan to to use the main form with form1 open. The > > problem apears after I close form1. I just want to click on the grid > when I > > just have main form open and form1 closed. > > > > How to I reply to a message on forum? You replied but how can I continue > > the thread? Thank you? > > > > ?Regards > > > > > > Ant?nio Teixeira > > > > > > -------------------------------------------------- > > > > This is the Gambas Mailing List > > https://lists.gambas-basic.org/listinfo/user > > > > Hosted by https://www.hostsharing.net > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: attachments/20180129/a64cdfab/attachment.html> > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: Antonio.png > Type: image/png > Size: 23772 bytes > Desc: not available > URL: attachments/20180129/a64cdfab/attachment.png> > > ------------------------------ > > Subject: Digest Footer > > User mailing list > User at lists.gambas-basic.org > http://lists.gambas-basic.org/listinfo/user > > Mailinglist hosted by https://www.hostsharing.net > > > ------------------------------ > > End of User Digest, Vol 4, Issue 65 > *********************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test_selectedlines.tgz Type: application/x-gzip Size: 12709 bytes Desc: not available URL: From bagonergi at gmail.com Mon Jan 29 20:08:14 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 29 Jan 2018 20:08:14 +0100 Subject: [Gambas-user] Gridview UnselectAll In-Reply-To: References: Message-ID: Antonio, the your last email is read from my gmail as spam without attach. Regards Gianluigi 2018-01-29 18:11 GMT+01:00 Gianluigi : > Hi Antonio, > I forgot to report (if you don't yet know them) that there is a forum in > Spanish [0] and, also in Spanish, the Jsbsan's site [1] > Regards > Gianluigi > [0] https://www.gambas-es.org/index.php?sid=8c1c33da35bade6544d726e2825cc0 > aa > [1] http://jsbsan.blogspot.it/ > > > 2018-01-29 17:36 GMT+01:00 Charlie Ogier : > >> Hi Ant?nio, >> >> It works for me as well. Have a look at the attached program. >> >> Hope it helps. >> >> Charlie >> >> On 29/01/18 16:26, Gianluigi wrote: >> >> You must reply as you normally do with emails (see attached picture) >> >> About the malfunction of your code I do not know what to say, it works >> for me using QT >> >> Regards >> Gianluigi >> >> 2018-01-29 17:00 GMT+01:00 Antonio Teixeira > >: >> >>> >>> ?Hi, >>> >>> Thank you Gianluigi for your answer. >>> The problem is I dont wan to to use the main form with form1 open. The >>> problem apears after I close form1. I just want to click on the grid when I >>> just have main form open and form1 closed. >>> >>> How to I reply to a message on forum? You replied but how can I continue >>> the thread? Thank you? >>> >>> ?Regards >>> >>> >>> Ant?nio Teixeira >>> >>> >>> -------------------------------------------------- >>> >>> This is the Gambas Mailing List >>> https://lists.gambas-basic.org/listinfo/user >>> >>> Hosted by https://www.hostsharing.net >>> >>> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing Listhttps://lists.gambas-basic.org/listinfo/user >> >> Hosted by https://www.hostsharing.net >> >> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List >> https://lists.gambas-basic.org/listinfo/user >> >> Hosted by https://www.hostsharing.net >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Tue Jan 30 00:06:05 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 29 Jan 2018 23:06:05 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1234: Gambas Terminal display issue In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1234&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From t.lee.davidson at gmail.com Tue Jan 30 00:54:52 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 29 Jan 2018 18:54:52 -0500 Subject: [Gambas-user] DBus - How are signal data converted to Gambas data? In-Reply-To: <1517217829.16460.8.camel@Scenic.local> References: <33f961dc-e6f3-3b8c-44ac-e320118c8259@gmail.com> <0b383db5-1ba5-e655-3163-15a97b8193b5@gmail.com> <1517217829.16460.8.camel@Scenic.local> Message-ID: On 01/29/2018 04:23 AM, Karl Reinl wrote: > Am Montag, den 29.01.2018, 03:45 -0500 schrieb T Lee Davidson: >> Thanks, Fabien. I was really eager to dive in to that example, except ... I can't find it. >> >> I looked at All software on the Farm, not just Examples. I even looked on the Wiki thinking it might be there. It might be, but >> I don't see it. >> >> Will you give me a clue? >> >> > > Salut Lee, > > that's from gambas3 source code, you find it at /comp/src. > Most of gb.*.* is from there. > Thanks Charlie. I don't keep a local copy of the source, but I found it on GitLab. Unfortunately, I still can't seem to wrap my head around the DBusValues and DBusVariant concepts. They both appear to be stupid data containers that can be inherited and customized to make them smart. But, I see no difference between them and, hence, am unable to determine when one should be preferred over the other. This confusion is enhanced by gb.dbus.trayicon seeming to use them interchangeably and DBusValues.class being defined as [code] ' Gambas class file Export Inherits DBusVariant [/code] which adds nothing to DBusVariant. At this point if working on my own project, I would revert to a strictly procedural implementation instead of engaging in further head-banging. -- Lee From g4mba5 at gmail.com Tue Jan 30 03:10:30 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 30 Jan 2018 03:10:30 +0100 Subject: [Gambas-user] DBus - How are signal data converted to Gambas data? In-Reply-To: References: <33f961dc-e6f3-3b8c-44ac-e320118c8259@gmail.com> <0b383db5-1ba5-e655-3163-15a97b8193b5@gmail.com> <1517217829.16460.8.camel@Scenic.local> Message-ID: <33c0be8a-826e-b466-53cb-60afa54f763d@gmail.com> Le 30/01/2018 ? 00:54, T Lee Davidson a ?crit?: > On 01/29/2018 04:23 AM, Karl Reinl wrote: >> Am Montag, den 29.01.2018, 03:45 -0500 schrieb T Lee Davidson: >>> Thanks, Fabien. I was really eager to dive in to that example, except ... I can't find it. >>> >>> I looked at All software on the Farm, not just Examples. I even looked on the Wiki thinking it might be there. It might be, but >>> I don't see it. >>> >>> Will you give me a clue? >>> >>> >> >> Salut Lee, >> >> that's from gambas3 source code, you find it at /comp/src. >> Most of gb.*.* is from there. >> > > Thanks Charlie. > > I don't keep a local copy of the source, but I found it on GitLab. > > Unfortunately, I still can't seem to wrap my head around the DBusValues and DBusVariant concepts. > > They both appear to be stupid data containers that can be inherited and customized to make them smart. But, I see no difference > between them and, hence, am unable to determine when one should be preferred over the other. > > This confusion is enhanced by gb.dbus.trayicon seeming to use them interchangeably and DBusValues.class being defined as > > [code] > ' Gambas class file > > Export > Inherits DBusVariant > [/code] > > which adds nothing to DBusVariant. > > > At this point if working on my own project, I would revert to a strictly procedural implementation instead of engaging in > further head-banging. > > As explained in the wiki, DBusValue must be used when you have to implement a DBus method that returns several values. Which is possible in DBus, but not in Gambas. DBusVariant is the datatype used to implement your own datatype conversion between a DBus value and a Gambas value. You should not have any use of that just for catching signals, shouldn't you? -- Beno?t Minisini From antonio.j.teixeira at gmail.com Tue Jan 30 13:00:13 2018 From: antonio.j.teixeira at gmail.com (Antonio Teixeira) Date: Tue, 30 Jan 2018 12:00:13 +0000 Subject: [Gambas-user] User Digest, Vol 4, Issue 68 In-Reply-To: References: Message-ID: Thank you Gialuigi for the project you sent. The difference between my code and the code you sent is that I open the form1 as modal. If you open with showmodal you will get the problem as I do. Your code works fine here but mine dont. ?regards Ant?nio Teixeira 2018-01-30 11:12 GMT+00:00 : > Send User mailing list submissions to > user at lists.gambas-basic.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.gambas-basic.org/listinfo/user > or, via email, send a message with subject or body 'help' to > user-request at lists.gambas-basic.org > > You can reach the person managing the list at > user-owner at lists.gambas-basic.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of User digest..." > > > Today's Topics: > > 1. Re: Gridview UnselectAll (Gianluigi) > 2. [Gambas Bug Tracker] Bug #1234: Gambas Terminal display issue > (bugtracker at gambaswiki.org) > 3. Re: DBus - How are signal data converted to Gambas data? > (T Lee Davidson) > 4. Re: DBus - How are signal data converted to Gambas data? > (Beno?t Minisini) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 29 Jan 2018 20:08:14 +0100 > From: Gianluigi > To: Gambas Mailing List > Subject: Re: [Gambas-user] Gridview UnselectAll > Message-ID: > gmail.com> > Content-Type: text/plain; charset="utf-8" > > Antonio, > the your last email is read from my gmail as spam without attach. > > Regards > Gianluigi > > 2018-01-29 18:11 GMT+01:00 Gianluigi : > > > Hi Antonio, > > I forgot to report (if you don't yet know them) that there is a forum in > > Spanish [0] and, also in Spanish, the Jsbsan's site [1] > > Regards > > Gianluigi > > [0] https://www.gambas-es.org/index.php?sid= > 8c1c33da35bade6544d726e2825cc0 > > aa > > [1] http://jsbsan.blogspot.it/ > > > > > > 2018-01-29 17:36 GMT+01:00 Charlie Ogier : > > > >> Hi Ant?nio, > >> > >> It works for me as well. Have a look at the attached program. > >> > >> Hope it helps. > >> > >> Charlie > >> > >> On 29/01/18 16:26, Gianluigi wrote: > >> > >> You must reply as you normally do with emails (see attached picture) > >> > >> About the malfunction of your code I do not know what to say, it works > >> for me using QT > >> > >> Regards > >> Gianluigi > >> > >> 2018-01-29 17:00 GMT+01:00 Antonio Teixeira < > antonio.j.teixeira at gmail.com > >> >: > >> > >>> > >>> ?Hi, > >>> > >>> Thank you Gianluigi for your answer. > >>> The problem is I dont wan to to use the main form with form1 open. The > >>> problem apears after I close form1. I just want to click on the grid > when I > >>> just have main form open and form1 closed. > >>> > >>> How to I reply to a message on forum? You replied but how can I > continue > >>> the thread? Thank you? > >>> > >>> ?Regards > >>> > >>> > >>> Ant?nio Teixeira > >>> > >>> > >>> -------------------------------------------------- > >>> > >>> This is the Gambas Mailing List > >>> https://lists.gambas-basic.org/listinfo/user > >>> > >>> Hosted by https://www.hostsharing.net > >>> > >>> > >> > >> > >> -------------------------------------------------- > >> > >> This is the Gambas Mailing Listhttps://lists.gambas- > basic.org/listinfo/user > >> > >> Hosted by https://www.hostsharing.net > >> > >> > >> > >> > >> -------------------------------------------------- > >> > >> This is the Gambas Mailing List > >> https://lists.gambas-basic.org/listinfo/user > >> > >> Hosted by https://www.hostsharing.net > >> > >> > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: attachments/20180129/86825518/attachment-0001.html> > > ------------------------------ > > Message: 2 > Date: Mon, 29 Jan 2018 23:06:05 GMT > From: > To: charlie at cogier.com,user at lists.gambas-basic.org > Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1234: Gambas Terminal > display issue > Message-ID: > Content-Type: text/plain;charset=utf-8; charset="utf-8" > > http://gambaswiki.org/bugtracker/edit?object=BUG.1234&from=L21haW4- > > Beno?t MINISINI changed the state of the bug to: Accepted. > > > > > > ------------------------------ > > Message: 3 > Date: Mon, 29 Jan 2018 18:54:52 -0500 > From: T Lee Davidson > To: user at lists.gambas-basic.org > Subject: Re: [Gambas-user] DBus - How are signal data converted to > Gambas data? > Message-ID: > Content-Type: text/plain; charset=utf-8 > > On 01/29/2018 04:23 AM, Karl Reinl wrote: > > Am Montag, den 29.01.2018, 03:45 -0500 schrieb T Lee Davidson: > >> Thanks, Fabien. I was really eager to dive in to that example, except > ... I can't find it. > >> > >> I looked at All software on the Farm, not just Examples. I even looked > on the Wiki thinking it might be there. It might be, but > >> I don't see it. > >> > >> Will you give me a clue? > >> > >> > > > > Salut Lee, > > > > that's from gambas3 source code, you find it at /comp/src. > > Most of gb.*.* is from there. > > > > Thanks Charlie. > > I don't keep a local copy of the source, but I found it on GitLab. > > Unfortunately, I still can't seem to wrap my head around the DBusValues > and DBusVariant concepts. > > They both appear to be stupid data containers that can be inherited and > customized to make them smart. But, I see no difference > between them and, hence, am unable to determine when one should be > preferred over the other. > > This confusion is enhanced by gb.dbus.trayicon seeming to use them > interchangeably and DBusValues.class being defined as > > [code] > ' Gambas class file > > Export > Inherits DBusVariant > [/code] > > which adds nothing to DBusVariant. > > > At this point if working on my own project, I would revert to a strictly > procedural implementation instead of engaging in > further head-banging. > > > -- > Lee > > > ------------------------------ > > Message: 4 > Date: Tue, 30 Jan 2018 03:10:30 +0100 > From: Beno?t Minisini > To: Gambas Mailing List , T Lee Davidson > > Subject: Re: [Gambas-user] DBus - How are signal data converted to > Gambas data? > Message-ID: <33c0be8a-826e-b466-53cb-60afa54f763d at gmail.com> > Content-Type: text/plain; charset=utf-8; format=flowed > > Le 30/01/2018 ? 00:54, T Lee Davidson a ?crit?: > > On 01/29/2018 04:23 AM, Karl Reinl wrote: > >> Am Montag, den 29.01.2018, 03:45 -0500 schrieb T Lee Davidson: > >>> Thanks, Fabien. I was really eager to dive in to that example, except > ... I can't find it. > >>> > >>> I looked at All software on the Farm, not just Examples. I even looked > on the Wiki thinking it might be there. It might be, but > >>> I don't see it. > >>> > >>> Will you give me a clue? > >>> > >>> > >> > >> Salut Lee, > >> > >> that's from gambas3 source code, you find it at /comp/src. > >> Most of gb.*.* is from there. > >> > > > > Thanks Charlie. > > > > I don't keep a local copy of the source, but I found it on GitLab. > > > > Unfortunately, I still can't seem to wrap my head around the DBusValues > and DBusVariant concepts. > > > > They both appear to be stupid data containers that can be inherited and > customized to make them smart. But, I see no difference > > between them and, hence, am unable to determine when one should be > preferred over the other. > > > > This confusion is enhanced by gb.dbus.trayicon seeming to use them > interchangeably and DBusValues.class being defined as > > > > [code] > > ' Gambas class file > > > > Export > > Inherits DBusVariant > > [/code] > > > > which adds nothing to DBusVariant. > > > > > > At this point if working on my own project, I would revert to a strictly > procedural implementation instead of engaging in > > further head-banging. > > > > > > As explained in the wiki, DBusValue must be used when you have to > implement a DBus method that returns several values. Which is possible > in DBus, but not in Gambas. > > DBusVariant is the datatype used to implement your own datatype > conversion between a DBus value and a Gambas value. > > You should not have any use of that just for catching signals, shouldn't > you? > > -- > Beno?t Minisini > > > ------------------------------ > > Subject: Digest Footer > > User mailing list > User at lists.gambas-basic.org > http://lists.gambas-basic.org/listinfo/user > > Mailinglist hosted by https://www.hostsharing.net > > > ------------------------------ > > End of User Digest, Vol 4, Issue 68 > *********************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue Jan 30 13:23:17 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 30 Jan 2018 13:23:17 +0100 Subject: [Gambas-user] User Digest, Vol 4, Issue 68 In-Reply-To: References: Message-ID: Antonio, I apologize for the mistake but here Show or ShowModal is indifferent, it works anyway. I also tried it with 3.10.0 (I have the trunk). I attach the project with which I tried. Greetings Gianluigi 2018-01-30 13:00 GMT+01:00 Antonio Teixeira : > Thank you Gialuigi for the project you sent. > > The difference between my code and the code you sent is that I open the > form1 as modal. > If you open with showmodal you will get the problem as I do. Your code > works fine here but mine dont. > > ?regards > > > Ant?nio Teixeira > > 2018-01-30 11:12 GMT+00:00 : > >> Send User mailing list submissions to >> user at lists.gambas-basic.org >> >> To subscribe or unsubscribe via the World Wide Web, visit >> http://lists.gambas-basic.org/listinfo/user >> or, via email, send a message with subject or body 'help' to >> user-request at lists.gambas-basic.org >> >> You can reach the person managing the list at >> user-owner at lists.gambas-basic.org >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of User digest..." >> >> >> Today's Topics: >> >> 1. Re: Gridview UnselectAll (Gianluigi) >> 2. [Gambas Bug Tracker] Bug #1234: Gambas Terminal display issue >> (bugtracker at gambaswiki.org) >> 3. Re: DBus - How are signal data converted to Gambas data? >> (T Lee Davidson) >> 4. Re: DBus - How are signal data converted to Gambas data? >> (Beno?t Minisini) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Mon, 29 Jan 2018 20:08:14 +0100 >> From: Gianluigi >> To: Gambas Mailing List >> Subject: Re: [Gambas-user] Gridview UnselectAll >> Message-ID: >> > ail.com> >> Content-Type: text/plain; charset="utf-8" >> >> Antonio, >> the your last email is read from my gmail as spam without attach. >> >> Regards >> Gianluigi >> >> 2018-01-29 18:11 GMT+01:00 Gianluigi : >> >> > Hi Antonio, >> > I forgot to report (if you don't yet know them) that there is a forum in >> > Spanish [0] and, also in Spanish, the Jsbsan's site [1] >> > Regards >> > Gianluigi >> > [0] https://www.gambas-es.org/index.php?sid=8c1c33da35bade6544d7 >> 26e2825cc0 >> > aa >> > [1] http://jsbsan.blogspot.it/ >> > >> > >> > 2018-01-29 17:36 GMT+01:00 Charlie Ogier : >> > >> >> Hi Ant?nio, >> >> >> >> It works for me as well. Have a look at the attached program. >> >> >> >> Hope it helps. >> >> >> >> Charlie >> >> >> >> On 29/01/18 16:26, Gianluigi wrote: >> >> >> >> You must reply as you normally do with emails (see attached picture) >> >> >> >> About the malfunction of your code I do not know what to say, it works >> >> for me using QT >> >> >> >> Regards >> >> Gianluigi >> >> >> >> 2018-01-29 17:00 GMT+01:00 Antonio Teixeira < >> antonio.j.teixeira at gmail.com >> >> >: >> >> >> >>> >> >>> ?Hi, >> >>> >> >>> Thank you Gianluigi for your answer. >> >>> The problem is I dont wan to to use the main form with form1 open. The >> >>> problem apears after I close form1. I just want to click on the grid >> when I >> >>> just have main form open and form1 closed. >> >>> >> >>> How to I reply to a message on forum? You replied but how can I >> continue >> >>> the thread? Thank you? >> >>> >> >>> ?Regards >> >>> >> >>> >> >>> Ant?nio Teixeira >> >>> >> >>> >> >>> -------------------------------------------------- >> >>> >> >>> This is the Gambas Mailing List >> >>> https://lists.gambas-basic.org/listinfo/user >> >>> >> >>> Hosted by https://www.hostsharing.net >> >>> >> >>> >> >> >> >> >> >> -------------------------------------------------- >> >> >> >> This is the Gambas Mailing Listhttps://lists.gambas-basic >> .org/listinfo/user >> >> >> >> Hosted by https://www.hostsharing.net >> >> >> >> >> >> >> >> >> >> -------------------------------------------------- >> >> >> >> This is the Gambas Mailing List >> >> https://lists.gambas-basic.org/listinfo/user >> >> >> >> Hosted by https://www.hostsharing.net >> >> >> >> >> > >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: > 20180129/86825518/attachment-0001.html> >> >> ------------------------------ >> >> Message: 2 >> Date: Mon, 29 Jan 2018 23:06:05 GMT >> From: >> To: charlie at cogier.com,user at lists.gambas-basic.org >> Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1234: Gambas Terminal >> display issue >> Message-ID: >> Content-Type: text/plain;charset=utf-8; charset="utf-8" >> >> http://gambaswiki.org/bugtracker/edit?object=BUG.1234&from=L21haW4- >> >> Beno?t MINISINI changed the state of the bug to: Accepted. >> >> >> >> >> >> ------------------------------ >> >> Message: 3 >> Date: Mon, 29 Jan 2018 18:54:52 -0500 >> From: T Lee Davidson >> To: user at lists.gambas-basic.org >> Subject: Re: [Gambas-user] DBus - How are signal data converted to >> Gambas data? >> Message-ID: >> Content-Type: text/plain; charset=utf-8 >> >> On 01/29/2018 04:23 AM, Karl Reinl wrote: >> > Am Montag, den 29.01.2018, 03:45 -0500 schrieb T Lee Davidson: >> >> Thanks, Fabien. I was really eager to dive in to that example, except >> ... I can't find it. >> >> >> >> I looked at All software on the Farm, not just Examples. I even looked >> on the Wiki thinking it might be there. It might be, but >> >> I don't see it. >> >> >> >> Will you give me a clue? >> >> >> >> >> > >> > Salut Lee, >> > >> > that's from gambas3 source code, you find it at /comp/src. >> > Most of gb.*.* is from there. >> > >> >> Thanks Charlie. >> >> I don't keep a local copy of the source, but I found it on GitLab. >> >> Unfortunately, I still can't seem to wrap my head around the DBusValues >> and DBusVariant concepts. >> >> They both appear to be stupid data containers that can be inherited and >> customized to make them smart. But, I see no difference >> between them and, hence, am unable to determine when one should be >> preferred over the other. >> >> This confusion is enhanced by gb.dbus.trayicon seeming to use them >> interchangeably and DBusValues.class being defined as >> >> [code] >> ' Gambas class file >> >> Export >> Inherits DBusVariant >> [/code] >> >> which adds nothing to DBusVariant. >> >> >> At this point if working on my own project, I would revert to a strictly >> procedural implementation instead of engaging in >> further head-banging. >> >> >> -- >> Lee >> >> >> ------------------------------ >> >> Message: 4 >> Date: Tue, 30 Jan 2018 03:10:30 +0100 >> From: Beno?t Minisini >> To: Gambas Mailing List , T Lee Davidson >> >> Subject: Re: [Gambas-user] DBus - How are signal data converted to >> Gambas data? >> Message-ID: <33c0be8a-826e-b466-53cb-60afa54f763d at gmail.com> >> Content-Type: text/plain; charset=utf-8; format=flowed >> >> Le 30/01/2018 ? 00:54, T Lee Davidson a ?crit?: >> > On 01/29/2018 04:23 AM, Karl Reinl wrote: >> >> Am Montag, den 29.01.2018, 03:45 -0500 schrieb T Lee Davidson: >> >>> Thanks, Fabien. I was really eager to dive in to that example, except >> ... I can't find it. >> >>> >> >>> I looked at All software on the Farm, not just Examples. I even >> looked on the Wiki thinking it might be there. It might be, but >> >>> I don't see it. >> >>> >> >>> Will you give me a clue? >> >>> >> >>> >> >> >> >> Salut Lee, >> >> >> >> that's from gambas3 source code, you find it at /comp/src. >> >> Most of gb.*.* is from there. >> >> >> > >> > Thanks Charlie. >> > >> > I don't keep a local copy of the source, but I found it on GitLab. >> > >> > Unfortunately, I still can't seem to wrap my head around the DBusValues >> and DBusVariant concepts. >> > >> > They both appear to be stupid data containers that can be inherited and >> customized to make them smart. But, I see no difference >> > between them and, hence, am unable to determine when one should be >> preferred over the other. >> > >> > This confusion is enhanced by gb.dbus.trayicon seeming to use them >> interchangeably and DBusValues.class being defined as >> > >> > [code] >> > ' Gambas class file >> > >> > Export >> > Inherits DBusVariant >> > [/code] >> > >> > which adds nothing to DBusVariant. >> > >> > >> > At this point if working on my own project, I would revert to a >> strictly procedural implementation instead of engaging in >> > further head-banging. >> > >> > >> >> As explained in the wiki, DBusValue must be used when you have to >> implement a DBus method that returns several values. Which is possible >> in DBus, but not in Gambas. >> >> DBusVariant is the datatype used to implement your own datatype >> conversion between a DBus value and a Gambas value. >> >> You should not have any use of that just for catching signals, shouldn't >> you? >> >> -- >> Beno?t Minisini >> >> >> ------------------------------ >> >> Subject: Digest Footer >> >> User mailing list >> User at lists.gambas-basic.org >> http://lists.gambas-basic.org/listinfo/user >> >> Mailinglist hosted by https://www.hostsharing.net >> >> >> ------------------------------ >> >> End of User Digest, Vol 4, Issue 68 >> *********************************** >> > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: AntonioTest-0.0.1.tar.gz Type: application/x-gzip Size: 11908 bytes Desc: not available URL: From bagonergi at gmail.com Tue Jan 30 13:36:33 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 30 Jan 2018 13:36:33 +0100 Subject: [Gambas-user] User Digest, Vol 4, Issue 68 In-Reply-To: References: Message-ID: Charlie's project works well here too :-) Regards Gianluigi 2018-01-30 13:23 GMT+01:00 Gianluigi : > Antonio, > I apologize for the mistake but here Show or ShowModal is indifferent, it > works anyway. > I also tried it with 3.10.0 (I have the trunk). > I attach the project with which I tried. > > Greetings > Gianluigi > > 2018-01-30 13:00 GMT+01:00 Antonio Teixeira > : > >> Thank you Gialuigi for the project you sent. >> >> The difference between my code and the code you sent is that I open the >> form1 as modal. >> If you open with showmodal you will get the problem as I do. Your code >> works fine here but mine dont. >> >> ?regards >> >> >> Ant?nio Teixeira >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Jan 30 14:47:16 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 30 Jan 2018 14:47:16 +0100 Subject: [Gambas-user] DBus - How are signal data converted to Gambas data? In-Reply-To: <5f9a1b12-0dae-6b72-ebcc-f872cfb628ad@gambas-buch.de> References: <33f961dc-e6f3-3b8c-44ac-e320118c8259@gmail.com> <0b383db5-1ba5-e655-3163-15a97b8193b5@gmail.com> <1517217829.16460.8.camel@Scenic.local> <33c0be8a-826e-b466-53cb-60afa54f763d@gmail.com> <5f9a1b12-0dae-6b72-ebcc-f872cfb628ad@gambas-buch.de> Message-ID: <3ed0f92d-c963-105d-ab7c-814fa1abc4e6@gmail.com> Le 30/01/2018 ? 09:56, Hans Lehmann a ?crit?: > Hello, Beno?t, Hi, Please answer to the mailing-list! > > Am 30.01.2018 um 03:10 schrieb Beno?t Minisini: >> As explained in the wiki, DBusValue must be used when you have to >> implement a DBus method that returns several values. Which is possible >> in DBus, but not in Gambas. > That's understandable. >> >> DBusVariant is the datatype used to implement your own datatype >> conversion between a DBus value and a Gambas value. > But just in this case a small code section would be very helpful. > As far as I remember, it was created to implement the DBus tray icon protocol. For example, if you have a DBus method whose return value signature is "ii" (two integers) : You create a new class named, for example, "MyDBusReturnValue" that inherits "DBusValues", whose Signature constant returns "ii". You define the Gambas implementation of your method as returning a "MyDBusReturnValue". And inside, you create a new object of that type, assign to its Value property an array of integers, and return that object. The internal marshalling routine will detect that MyDBusReturnValue inherits DBusValues, and so will know what you want to do: it will convert the Gambas array to the DBus values corresponding to the "ii" signature. You have an example of that, with a more complex signature, with the "_DbusMenuItemLayout" class in the 'gb.dbus.trayicon' component project source code. Regards, -- Beno?t Minisini From hans at gambas-buch.de Tue Jan 30 14:58:11 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Tue, 30 Jan 2018 14:58:11 +0100 Subject: [Gambas-user] DBus - How are signal data converted to Gambas data? In-Reply-To: <3ed0f92d-c963-105d-ab7c-814fa1abc4e6@gmail.com> References: <33f961dc-e6f3-3b8c-44ac-e320118c8259@gmail.com> <0b383db5-1ba5-e655-3163-15a97b8193b5@gmail.com> <1517217829.16460.8.camel@Scenic.local> <33c0be8a-826e-b466-53cb-60afa54f763d@gmail.com> <5f9a1b12-0dae-6b72-ebcc-f872cfb628ad@gambas-buch.de> <3ed0f92d-c963-105d-ab7c-814fa1abc4e6@gmail.com> Message-ID: <66cd3a38-f738-6c54-11ec-b3374b356d50@gambas-buch.de> Am 30.01.2018 um 14:47 schrieb Beno?t Minisini: > As far as I remember, it was created to implement the DBus tray icon > protocol. > For example, if you have a DBus method whose return value signature is > "ii" (two integers) : > You create a new class named, for example, "MyDBusReturnValue" that > inherits "DBusValues", whose Signature constant returns "ii". > You define the Gambas implementation of your method as returning a > "MyDBusReturnValue". And inside, you create a new object of that type, > assign to its Value property an array of integers, and return that > object. > The internal marshalling routine will detect that MyDBusReturnValue > inherits DBusValues, and so will know what you want to do: it will > convert the Gambas array to the DBus values corresponding to the "ii" > signature. > You have an example of that, with a more complex signature, with the > "_DbusMenuItemLayout" class in the 'gb.dbus.trayicon' component > project source code. Hello, Beno?t, Thank you very much for the information and the solution approach with the new class inherited by "DBusValues". With kind regards Hans From bagonergi at gmail.com Tue Jan 30 20:00:43 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 30 Jan 2018 20:00:43 +0100 Subject: [Gambas-user] User Digest, Vol 4, Issue 68 In-Reply-To: References: Message-ID: Finally I managed to download your project and confirm that it works well. Maybe you should update your Gambas. A suggestion to attach a project, you must from the IDE menu click on Project> Create> Source package (Ctrl+Alt+A) Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From tovagliolifranco at gmail.com Wed Jan 31 11:37:32 2018 From: tovagliolifranco at gmail.com (Franco) Date: Wed, 31 Jan 2018 11:37:32 +0100 Subject: [Gambas-user] SmtpClient Vs GMail Message-ID: <63480361-a6cb-1f31-f811-1996f0b026f4@gmail.com> Hi everyone, I encountered a problem with GMail using SmtpClient of the gb.net.smtp class, probably due to the authentication requested by Google (OAuth2). in fact if I try to send an e-mail to the GMail server, it is refused on time. How can I solve the problem? I ask you why alone I am not able. Momentarily, they tamp "my problem" using SendMail of the Desktop class. Use Gambas 3.10 on Linux Mint 18.3 Excuse me for my bad English thank you for your attention vigiot From tercoide at hotmail.com Wed Jan 31 12:41:52 2018 From: tercoide at hotmail.com (Martin Cristia) Date: Wed, 31 Jan 2018 11:41:52 +0000 Subject: [Gambas-user] Onion Omega2+ In-Reply-To: References: Message-ID: Thank you Olivier El 29/01/18 a las 12:32, user-request at lists.gambas-basic.org escribi?: > Olivier Cruilles -- Saludos Ing. Martin P Cristia From t.lee.davidson at gmail.com Wed Jan 31 18:59:30 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 31 Jan 2018 12:59:30 -0500 Subject: [Gambas-user] SmtpClient Vs GMail In-Reply-To: <63480361-a6cb-1f31-f811-1996f0b026f4@gmail.com> References: <63480361-a6cb-1f31-f811-1996f0b026f4@gmail.com> Message-ID: <65d231b5-a638-6c4a-1db3-cce70b4e1b17@gmail.com> You will likely have to set your Gmail account to allow less secure applications. See: https://support.google.com/a/answer/6260879 https://security.stackexchange.com/questions/66025/what-are-the-dangers-of-allowing-less-secure-apps-to-access-my-google-account Try setting SmtpClient.Debug = True so you can see the exchange with the SMTP server as it happens. I am unsure what you mean by, 'Momentarily, they tamp "my problem" using SendMail of the Desktop class.' But, if you mean that sending mail through the Desktop class works, that's probably because Gmail considers your default email client to not be "less secure." -- Lee On 01/31/2018 05:37 AM, Franco wrote: > Hi everyone, I encountered a problem with GMail using SmtpClient of the gb.net.smtp class, probably due to the authentication > requested by Google (OAuth2). > in fact if I try to send an e-mail to the GMail server, it is refused on time. > How can I solve the problem? > I ask you why alone I am not able. > Momentarily, they tamp "my problem" using SendMail of the Desktop class. > Use Gambas 3.10 on Linux Mint 18.3 > Excuse me for my bad English thank you for your attention > > vigiot From gitlab at mg.gitlab.com Wed Jan 31 19:46:11 2018 From: gitlab at mg.gitlab.com (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Wed, 31 Jan 2018 18:46:11 +0000 Subject: [Gambas-user] [Git][gambas/gambas][master] Enhance automatic string close behaviour. Message-ID: <5a720ef43a9a2_19ee33fe48c16ca64928094@sidekiq-asap-03.mail> Beno?t Minisini pushed to branch master at Gambas / gambas Commits: b520218c by gambas at 2018-01-31T19:45:09+01:00 Enhance automatic string close behaviour. [GB.FORM.EDITOR] * NEW: Enhance automatic string close behaviour. - - - - - 2 changed files: - comp/src/gb.form.editor/.src/TextEditorMode.class - comp/src/gb.form.editor/.src/TextEditorMode_Gambas.class Changes: ===================================== comp/src/gb.form.editor/.src/TextEditorMode.class ===================================== --- a/comp/src/gb.form.editor/.src/TextEditorMode.class +++ b/comp/src/gb.form.editor/.src/TextEditorMode.class @@ -9,6 +9,8 @@ Static Public Const BETWEEN_BRACES_LEFT As String = "([{" Static Public Const BETWEEN_BRACES_RIGHT As String = ")]}" Public CloseBraces As Boolean +Public InsideStringEscape As Boolean +Public InsideStringDelim As String 'Private $bCanCloseBraces As Boolean 'Private $bCanCloseBracesComputed As Boolean @@ -41,6 +43,9 @@ Public Sub InsideString(hEditor As TextEditor) As Boolean iLen = hEditor.Current.Length sDelim = Me.STRING_DELIM + InsideStringEscape = False + InsideStringDelim = False + For I = 1 To hEditor.Column sCar = String.Mid$(sLine, I, 1) If sCar = sInside Then @@ -48,10 +53,14 @@ Public Sub InsideString(hEditor As TextEditor) As Boolean Else If InStr(sDelim, sCar) Then If Not sInside Then sInside = sCar Else If sCar = "\\" Then - If sInside Then Inc I + If sInside Then + Inc I + InsideStringEscape = I > hEditor.Column + Endif Endif Next + InsideStringDelim = sInside Return sInside End @@ -95,6 +104,8 @@ Public Sub OnKeyPress(hEditor As TextEditor) As Boolean Dim iPos As Integer + InsideStringEscape = False + iPos = InStr(Me.BRACES_OPEN, Key.Text) If iPos And If CanCloseBraces(hEditor) Then @@ -111,11 +122,24 @@ Public Sub OnKeyPress(hEditor As TextEditor) As Boolean If iPos Then - If String.Mid$(hEditor.Current.Text, hEditor.Column + 1, 1) = Key.Text Then + If Not InsideStringEscape And If String.Mid$(hEditor.Current.Text, hEditor.Column + 1, 1) = Key.Text Then hEditor.Goto(hEditor.Column + 1, hEditor.Line) Return True Endif + If InStr(Me.STRING_DELIM, Key.Text) And If hEditor.Column < hEditor.Current.Length Then + If InsideStringEscape Then Return + If InsideStringDelim = Key.Text Then + hEditor.SaveCursor() + hEditor.Insert(Key.Text) + hEditor.Insert(Mid$(Me.BRACES_OPEN, iPos, 1)) + hEditor.RestoreCursor() + hEditor.Goto(hEditor.Column + 1, hEditor.Line) + '$bCanCloseBracesComputed = False + Return True + Endif + Endif + Endif '$bCanCloseBracesComputed = False ===================================== comp/src/gb.form.editor/.src/TextEditorMode_Gambas.class ===================================== --- a/comp/src/gb.form.editor/.src/TextEditorMode_Gambas.class +++ b/comp/src/gb.form.editor/.src/TextEditorMode_Gambas.class @@ -60,6 +60,9 @@ Public Sub InsideString(hEditor As TextEditor) As Boolean sLine = hEditor.Current.Text iLen = hEditor.Current.Length + Me.InsideStringEscape = False + Me.InsideStringDelim = "" + For I = 1 To hEditor.Column sCar = String.Mid$(sLine, I, 1) If sCar = sInside Then @@ -70,10 +73,14 @@ Public Sub InsideString(hEditor As TextEditor) As Boolean If sCar = "'" Then Return True Endif Else If sCar = "\\" Then - If sInside Then Inc I + If sInside Then + Inc I + Me.InsideStringEscape = I > hEditor.Column + Endif Endif Next + Me.InsideStringDelim = sInside Return sInside End View it on GitLab: https://gitlab.com/gambas/gambas/commit/b520218ce45881c9bf09af3d3ad9740d209619eb --- View it on GitLab: https://gitlab.com/gambas/gambas/commit/b520218ce45881c9bf09af3d3ad9740d209619eb You're receiving this email because of your account on gitlab.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tovagliolifranco at gmail.com Wed Jan 31 21:10:14 2018 From: tovagliolifranco at gmail.com (Franco) Date: Wed, 31 Jan 2018 21:10:14 +0100 Subject: [Gambas-user] SmtpClient Vs GMail In-Reply-To: <65d231b5-a638-6c4a-1db3-cce70b4e1b17@gmail.com> References: <63480361-a6cb-1f31-f811-1996f0b026f4@gmail.com> <65d231b5-a638-6c4a-1db3-cce70b4e1b17@gmail.com> Message-ID: <50f5c95d-43a6-d777-8a42-cf38f11323a8@gmail.com> Il 31/01/2018 18:59, T Lee Davidson ha scritto: > Try setting SmtpClient.Debug = True so you can see the exchange with the SMTP server as it happens. Thanks Lee for the time you dedicated to me. I was already aware of Google's restrictions on its mail server. obviously the SendMail component calls the default mail client, in my case Thunderbird, which already has the right settings for GMail. On the other hand, SmtpClient works well with another account that does not use OAuth2 as authentication. The only difference is graphic, with SmtpClient you can create an interface is more streamlined and simpler, as well as faster, Thunderbird intervenes with its GUI, a little more "cumbersome". But I do not find it right that Google indicates as less secure app all those not "Brand", perhaps to discourage ...? Please note that I am using an "automatic" Google translator to respond, so I hope there are no involuntary "nonsense". Thanks again, a dear greeting to you. vigiot From g4mba5 at gmail.com Wed Jan 31 21:17:56 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 31 Jan 2018 21:17:56 +0100 Subject: [Gambas-user] SmtpClient Vs GMail In-Reply-To: <50f5c95d-43a6-d777-8a42-cf38f11323a8@gmail.com> References: <63480361-a6cb-1f31-f811-1996f0b026f4@gmail.com> <65d231b5-a638-6c4a-1db3-cce70b4e1b17@gmail.com> <50f5c95d-43a6-d777-8a42-cf38f11323a8@gmail.com> Message-ID: Le 31/01/2018 ? 21:10, Franco a ?crit?: > > > Il 31/01/2018 18:59, T Lee Davidson ha scritto: >> Try setting SmtpClient.Debug = True so you can see the exchange with >> the SMTP server as it happens. > Thanks Lee for the time you dedicated to me. > I was already aware of Google's restrictions on its mail server. > obviously the SendMail component calls the default mail client, in my > case Thunderbird, which already has the right settings for GMail. > On the other hand, SmtpClient works well with another account that does > not use OAuth2 as authentication. > The only difference is graphic, with SmtpClient you can create an > interface is more streamlined and simpler, as well as faster, > Thunderbird intervenes with its GUI, a little more "cumbersome". > But I do not find it right that Google indicates as less secure app all > those not "Brand", perhaps to discourage ...? > Please note that I am using an "automatic" Google translator to respond, > so I hope there are no involuntary "nonsense". > Thanks again, a dear greeting to you. > vigiot > I have already sent mails through Google SMTP server, and it worked the last time I tried: Dim hMsg As New SmtpClient hMsg.Debug = True hMsg.To.Add(...) hMsg.Subject = "Test mail" hMsg.Add("Something\n") hMsg.From = "benoit.minisini at gmail.com" hMsg.Host = "smtp.gmail.com" hMsg.Encrypt = Net.TLS hMsg.User = "benoit.minisini at gmail.com" hMsg.Password = "*****" hMsg.Send() -- Beno?t Minisini From tovagliolifranco at gmail.com Wed Jan 31 21:32:26 2018 From: tovagliolifranco at gmail.com (Franco) Date: Wed, 31 Jan 2018 21:32:26 +0100 Subject: [Gambas-user] SmtpClient Vs GMail In-Reply-To: References: <63480361-a6cb-1f31-f811-1996f0b026f4@gmail.com> <65d231b5-a638-6c4a-1db3-cce70b4e1b17@gmail.com> <50f5c95d-43a6-d777-8a42-cf38f11323a8@gmail.com> Message-ID: <2e27e7cd-a125-0ce0-5bd4-d202f1b9cfff@gmail.com> Il 31/01/2018 21:17, Beno?t Minisini ha scritto: > .Encrypt = Net.TLS thank you so much! I discovered my mistake. .Encrypt = Net.TLS works. while .Encrypt = Net.SSL no! ... I confirm I was stupid .... sorry everyone sometimes it happens, rather no, 99 times 100 times the mistake is between the chair and the keyboard ... precisely! "We are all ignorant, but fortunately we do not ignore the same thing" Albert Einstein Thanks again, Beno?t Minisini vigiot -------------- next part -------------- An HTML attachment was scrubbed... URL: