[Gambas-user] [Gambas Bug Tracker] Bug #1107: project components unselectable if not qt4 libs complety installed

2017-05-24 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1107=L21haW4-

Comment #7 by PICCORO LENZ MCKAY:

that its a better response for those guys just begin in the gambas world, so 
that problem happened to me and other before, but send a report or ask in mail 
list its very tedious.. not like a forum or a google search with lot of 
solutions...

mark the problem as upstream and not possible to solved from gambas, due relies 
in the qt style selected!

PICCORO LENZ MCKAY changed the state of the bug to: Upstream.



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] when i used collections on my code, gambas get hangs!

2017-05-24 Thread PICCORO McKAY Lenz
there are the piece of code and here there's no secret:

Public Function getItems() As Collection

  Dim $items As New Collection
  Dim itema, itemb as String = "something"

  $items.Add($itema, "item1")
  $items.Add($itemb, "item2")
  $items.Add(2, "cuantos")

  Return $items

End

here the previous code "bad programed" and when i swicht to collection
gambas ide get slower after some time, the code was:

Public Function getItems() As String[]

  Dim $items As New String[]
  Dim itema, itemb as String = "something"

  $items.Add($itema)
  $items.Add($itemb)

  Return $items

End

the gambas ide and the OS was not shutdown during 40 days, also the gambas
ide was not quit in this period, and in that period i run the huge data
code of the 3 odbc bug with 10 registers, after change the code to
collection  (each change are little before test) thje ide gambas get slow
and does not run well..

this happened to my other partners in the job... i test also in debian
jeesie and happened same!

i noted that when alone user said something its like "nothigs its happened,
its just bad programer"

will need other to reports, but these other do not have time to make a
little project and report that..

sqlite was severi broken until gambas 3.6 and must be rewrite for gambas 3.8

now in gamba 3.9 ther's some doc-online problems with cache and some memory
manage problems..

but for not specialized programmers its very difficult to debug, find and
report LIKE THE QT problem..



Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

2017-05-24 17:01 GMT-04:30 Jussi Lahtinen :

> Impossible to say anything without seeing the code, which causes the
> problem.
>
>
> Jussi
>
> On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz <
> mckaygerh...@gmail.com
> > wrote:
>
> > i change the odbc code for huge data to transport only two objects with a
> > string, and i noted that gambas before hangs sometimes... so i discovered
> > that when i used collections the memory management are very bad..
> >
> > should i send a bug or where i start to see why this happened or its only
> > happened only to me!
> >
> >
> > Lenz McKAY Gerardo (PICCORO)
> > http://qgqlochekone.blogspot.com
> > 
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] ​ Re: Keyboard locked -- insisting one more time

2017-05-24 Thread Fernando Cabral
2017-05-24 20:31 GMT-03:00 Jussi Lahtinen :

> Please post the replies to the list, so that Benoit will see them. I don't
> know enough about the topic.
>
Sorry. I thought I had.

>
>
> Jussi
>
> On Thu, May 25, 2017 at 1:46 AM, Fernando Cabral <
> fernandojosecab...@gmail.com> wrote:
>
>> 2017-05-24 18:54 GMT-03:00 Jussi Lahtinen :
>>
>>> Do you have ~/.xinputrc ?
>>> I think you can just change "run_im xim" to "run_im scim", or create the
>>> file with latter line, if it doesn't exist. Then you need to log out and
>>> log in.
>>> I suggest to try this with virtual machine first or with different user.
>>> So that it is easy to change things back, if something goes wrong.
>>>
>> Did that. So, here are the results:
>> 1) Virtual machine. No ~/.xinputrc -- Gambas works fine
>> 2) Real machine. No ~/.xinputrc -- Gambas does not work, even as root
>> 3) Real machine. With ~/.xinputrc original (run_im xim) -- Gambas does
>> not work with a regular user, but runs as root
>> 4) Real machine. With ~/.xinputrc modified to run_im scim -- Gambas does
>> not work even as root. The Brazilian keyboard stopped generating diacritics.
>>
>> Regards
>>
>> - fernando
>>
>>>
>>>
>>>
>>> Jussi
>>>
>>> On Wed, May 24, 2017 at 7:13 PM, Fernando Cabral <
>>> fernandojosecab...@gmail.com> wrote:
>>>
 Glaucio wrote:
 >I don't know, but, since it works in other systems than Xubuntu/Mint, I
 >guess that may be some environment variable missing.

 Could be an environment variable issue. But which variable? As far as I
 know, I did not change anything. So, if anything changed, it was changed
 stealthily by an unknown program.

 >With Benoit's script, for example, the TextEditor didn't worked here,
 but
 >the same component did work just fine running in Gambas' design time
 >test. Again, the difference, I guess, is pretty much just the execution
 >environment, or not?

 Only worked here on the virtual machine; not on the real machine.


 2017-05-24 7:50 GMT-03:00 Glaucio Araujo :

 > I don't know, but, since it works in other systems than Xubuntu/Mint,
 I
 > guess that may be some environment variable missing.
 >
 > With Benoit's script, for exemple, the TextEditor didin't worked
 here, but
 > the same component did worked just fine running in Gambas' design time
 > test. Again, the difference, I guess, is pretty much just the
 execution
 > environment, or not?
 >
 >
 >
 >
 > ---
 >
 > Gláucio de Araujo
 >
 > Mail : glaucio.de.ara...@gmail.com
 > TIM  : (11) 95900-7801 (WhatsApp / Telegram)
 >
 > 2017-05-24 7:25 GMT-03:00 Benoît Minisini <
 gam...@users.sourceforge.net>:
 >
 > > Le 24/05/2017 à 08:44, Fabien Bodard a écrit :
 > > > We need to wait for Benoit as it's a misstake on the rev 8132.
 > > >
 > >
 > > I'm not sure it's a mistake in rev 8132. Fernando must check with an
 > > older revision to see if the problem comes from it.
 > >
 > > Moreover, Glaucio says he has the problem with an older version of
 > > Gambas, so...
 > >
 > > I think it's a problem related to QT and the Xim input method. So I
 > > suggest people to change their input method to see if something
 changes.
 > >
 > > --
 > > Benoît Minisini
 > >
 > > 
 > > --
 > > Check out the vibrant tech community on one of the world's most
 > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
 > > ___
 > > Gambas-user mailing list
 > > Gambas-user@lists.sourceforge.net
 > > https://lists.sourceforge.net/lists/listinfo/gambas-user
 > >
 > 
 > --
 > Check out the vibrant tech community on one of the world's most
 > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
 > ___
 > Gambas-user mailing list
 > Gambas-user@lists.sourceforge.net
 > https://lists.sourceforge.net/lists/listinfo/gambas-user
 >



 --
 Fernando Cabral
 Blogue: http://fernandocabral.org
 Twitter: http://twitter.com/fjcabral
 e-mail :
 fernandojosecab...@gmail.com
 Facebook: f...@fcabral.com.br
 Telegram: +55 (37) 99988-8868
 Wickr ID: fernandocabral
 WhatsApp: +55 (37) 99988-8868
 Skype:  fernandojosecabral
 Telefone fixo: +55 (37) 3521-2183
 Telefone celular: +55 (37) 99988-8868

 Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
 nenhum político ou cientista poderá se gabar de nada.
 

Re: [Gambas-user] ​ Re: Keyboard locked -- insisting one more time

2017-05-24 Thread Jussi Lahtinen
Please post the replies to the list, so that Benoit will see them. I don't
know enough about the topic.


Jussi

On Thu, May 25, 2017 at 1:46 AM, Fernando Cabral <
fernandojosecab...@gmail.com> wrote:

> 2017-05-24 18:54 GMT-03:00 Jussi Lahtinen :
>
>> Do you have ~/.xinputrc ?
>> I think you can just change "run_im xim" to "run_im scim", or create the
>> file with latter line, if it doesn't exist. Then you need to log out and
>> log in.
>> I suggest to try this with virtual machine first or with different user.
>> So that it is easy to change things back, if something goes wrong.
>>
> Did that. So, here are the results:
> 1) Virtual machine. No ~/.xinputrc -- Gambas works fine
> 2) Real machine. No ~/.xinputrc -- Gambas does not work, even as root
> 3) Real machine. With ~/.xinputrc original (run_im xim) -- Gambas does not
> work with a regular user, but runs as root
> 4) Real machine. With ~/.xinputrc modified to run_im scim -- Gambas does
> not work even as root. The Brazilian keyboard stopped generating diacritics.
>
> Regards
>
> - fernando
>
>>
>>
>>
>> Jussi
>>
>> On Wed, May 24, 2017 at 7:13 PM, Fernando Cabral <
>> fernandojosecab...@gmail.com> wrote:
>>
>>> Glaucio wrote:
>>> >I don't know, but, since it works in other systems than Xubuntu/Mint, I
>>> >guess that may be some environment variable missing.
>>>
>>> Could be an environment variable issue. But which variable? As far as I
>>> know, I did not change anything. So, if anything changed, it was changed
>>> stealthily by an unknown program.
>>>
>>> >With Benoit's script, for example, the TextEditor didn't worked here,
>>> but
>>> >the same component did work just fine running in Gambas' design time
>>> >test. Again, the difference, I guess, is pretty much just the execution
>>> >environment, or not?
>>>
>>> Only worked here on the virtual machine; not on the real machine.
>>>
>>>
>>> 2017-05-24 7:50 GMT-03:00 Glaucio Araujo :
>>>
>>> > I don't know, but, since it works in other systems than Xubuntu/Mint, I
>>> > guess that may be some environment variable missing.
>>> >
>>> > With Benoit's script, for exemple, the TextEditor didin't worked here,
>>> but
>>> > the same component did worked just fine running in Gambas' design time
>>> > test. Again, the difference, I guess, is pretty much just the execution
>>> > environment, or not?
>>> >
>>> >
>>> >
>>> >
>>> > ---
>>> >
>>> > Gláucio de Araujo
>>> >
>>> > Mail : glaucio.de.ara...@gmail.com
>>> > TIM  : (11) 95900-7801 (WhatsApp / Telegram)
>>> >
>>> > 2017-05-24 7:25 GMT-03:00 Benoît Minisini <
>>> gam...@users.sourceforge.net>:
>>> >
>>> > > Le 24/05/2017 à 08:44, Fabien Bodard a écrit :
>>> > > > We need to wait for Benoit as it's a misstake on the rev 8132.
>>> > > >
>>> > >
>>> > > I'm not sure it's a mistake in rev 8132. Fernando must check with an
>>> > > older revision to see if the problem comes from it.
>>> > >
>>> > > Moreover, Glaucio says he has the problem with an older version of
>>> > > Gambas, so...
>>> > >
>>> > > I think it's a problem related to QT and the Xim input method. So I
>>> > > suggest people to change their input method to see if something
>>> changes.
>>> > >
>>> > > --
>>> > > Benoît Minisini
>>> > >
>>> > > 
>>> > > --
>>> > > Check out the vibrant tech community on one of the world's most
>>> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>> > > ___
>>> > > Gambas-user mailing list
>>> > > Gambas-user@lists.sourceforge.net
>>> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
>>> > >
>>> > 
>>> > --
>>> > Check out the vibrant tech community on one of the world's most
>>> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>> > ___
>>> > Gambas-user mailing list
>>> > Gambas-user@lists.sourceforge.net
>>> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>>> >
>>>
>>>
>>>
>>> --
>>> Fernando Cabral
>>> Blogue: http://fernandocabral.org
>>> Twitter: http://twitter.com/fjcabral
>>> e-mail : fernandojosecab...@gmail.com
>>> Facebook: f...@fcabral.com.br
>>> Telegram: +55 (37) 99988-8868
>>> Wickr ID: fernandocabral
>>> WhatsApp: +55 (37) 99988-8868
>>> Skype:  fernandojosecabral
>>> Telefone fixo: +55 (37) 3521-2183
>>> Telefone celular: +55 (37) 99988-8868
>>>
>>> Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
>>> nenhum político ou cientista poderá se gabar de nada.
>>> 
>>> --
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>> ___
>>> Gambas-user mailing list
>>> 

Re: [Gambas-user] ​ Re: Keyboard locked -- insisting one more time

2017-05-24 Thread Jussi Lahtinen
Do you have ~/.xinputrc ?
I think you can just change "run_im xim" to "run_im scim", or create the
file with latter line, if it doesn't exist. Then you need to log out and
log in.
I suggest to try this with virtual machine first or with different user. So
that it is easy to change things back, if something goes wrong.


Jussi

On Wed, May 24, 2017 at 7:13 PM, Fernando Cabral <
fernandojosecab...@gmail.com> wrote:

> Glaucio wrote:
> >I don't know, but, since it works in other systems than Xubuntu/Mint, I
> >guess that may be some environment variable missing.
>
> Could be an environment variable issue. But which variable? As far as I
> know, I did not change anything. So, if anything changed, it was changed
> stealthily by an unknown program.
>
> >With Benoit's script, for example, the TextEditor didn't worked here, but
> >the same component did work just fine running in Gambas' design time
> >test. Again, the difference, I guess, is pretty much just the execution
> >environment, or not?
>
> Only worked here on the virtual machine; not on the real machine.
>
>
> 2017-05-24 7:50 GMT-03:00 Glaucio Araujo :
>
> > I don't know, but, since it works in other systems than Xubuntu/Mint, I
> > guess that may be some environment variable missing.
> >
> > With Benoit's script, for exemple, the TextEditor didin't worked here,
> but
> > the same component did worked just fine running in Gambas' design time
> > test. Again, the difference, I guess, is pretty much just the execution
> > environment, or not?
> >
> >
> >
> >
> > ---
> >
> > Gláucio de Araujo
> >
> > Mail : glaucio.de.ara...@gmail.com
> > TIM  : (11) 95900-7801 (WhatsApp / Telegram)
> >
> > 2017-05-24 7:25 GMT-03:00 Benoît Minisini 
> :
> >
> > > Le 24/05/2017 à 08:44, Fabien Bodard a écrit :
> > > > We need to wait for Benoit as it's a misstake on the rev 8132.
> > > >
> > >
> > > I'm not sure it's a mistake in rev 8132. Fernando must check with an
> > > older revision to see if the problem comes from it.
> > >
> > > Moreover, Glaucio says he has the problem with an older version of
> > > Gambas, so...
> > >
> > > I think it's a problem related to QT and the Xim input method. So I
> > > suggest people to change their input method to see if something
> changes.
> > >
> > > --
> > > Benoît Minisini
> > >
> > > 
> > > --
> > > Check out the vibrant tech community on one of the world's most
> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > ___
> > > Gambas-user mailing list
> > > Gambas-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> > 
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
>
>
>
> --
> Fernando Cabral
> Blogue: http://fernandocabral.org
> Twitter: http://twitter.com/fjcabral
> e-mail: fernandojosecab...@gmail.com
> Facebook: f...@fcabral.com.br
> Telegram: +55 (37) 99988-8868
> Wickr ID: fernandocabral
> WhatsApp: +55 (37) 99988-8868
> Skype:  fernandojosecabral
> Telefone fixo: +55 (37) 3521-2183
> Telefone celular: +55 (37) 99988-8868
>
> Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
> nenhum político ou cientista poderá se gabar de nada.
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1106: XmlElement.GetChildrenByTagName does get parent too if tag is the same

2017-05-24 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1106=L21haW4-

Comment #3 by Daniel BLANCH BATALLER:

Oh sorry. thanks!



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1106: XmlElement.GetChildrenByTagName does get parent too if tag is the same

2017-05-24 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1106=L21haW4-

Comment #2 by Benoît MINISINI:

Because the bug was created twice (see bug #1107)



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1106: XmlElement.GetChildrenByTagName does get parent too if tag is the same

2017-05-24 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1106=L21haW4-

Comment #1 by Daniel BLANCH BATALLER:

Invalid. Why?

Thanks,

Daniel



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] when i used collections on my code, gambas get hangs!

2017-05-24 Thread Benoît Minisini
Le 24/05/2017 à 23:11, PICCORO McKAY Lenz a écrit :
> i change the odbc code for huge data to transport only two objects with a
> string, and i noted that gambas before hangs sometimes... so i discovered
> that when i used collections the memory management are very bad..
> 
> should i send a bug or where i start to see why this happened or its only
> happened only to me!
> 
> 
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com

No idea, we are not inside your head.

Anyway, programming badly is not considered as a bug in the language. :-)

-- 
Benoît Minisini

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] when i used collections on my code, gambas get hangs!

2017-05-24 Thread Jussi Lahtinen
Impossible to say anything without seeing the code, which causes the
problem.


Jussi

On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz  wrote:

> i change the odbc code for huge data to transport only two objects with a
> string, and i noted that gambas before hangs sometimes... so i discovered
> that when i used collections the memory management are very bad..
>
> should i send a bug or where i start to see why this happened or its only
> happened only to me!
>
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1106: XmlElement.GetChildrenByTagName does get parent too if tag is the same

2017-05-24 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1106=L21haW4-

Benoît MINISINI changed the state of the bug to: Invalid.




--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] when i used collections on my code, gambas get hangs!

2017-05-24 Thread PICCORO McKAY Lenz
i change the odbc code for huge data to transport only two objects with a
string, and i noted that gambas before hangs sometimes... so i discovered
that when i used collections the memory management are very bad..

should i send a bug or where i start to see why this happened or its only
happened only to me!


Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1107: project components unselectable if not qt4 libs complety installed

2017-05-24 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1107=L21haW4-

Comment #6 by Benoît MINISINI:

It's a bug in the widget style in use. Change the widget theme of QT4 (or QT5, 
depending on the library installed on your system).



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1091: MYSQL_OPT_RECONNECT option

2017-05-24 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1091=L21haW4-

Comment #6 by Benoît MINISINI:

I still do not understand your English. Try to find a friend that can help you 
for that

Anyway, the MYSQL_OPT_RECONNECT option is automatically set when you use the 
gb.db.mysql database driver. No idea why people are talking about ODBC...

And you have a Timeout property in the Connection object to define the MySQL 
connection timemout.



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gb.debug: Unable to open fifo

2017-05-24 Thread Benoît Minisini
Le 24/05/2017 à 22:43, T Lee Davidson a écrit :
> On 05/23/2017 06:07 PM, Tobias Boege wrote:
>> On Tue, 23 May 2017, T Lee Davidson wrote:
>>> Hello folks,
>>>
>>> I am trying to see if gb.debug will help me diagnose why HttpClient does 
>>> not properly expose redirect response codes on my
>>> system (and reportedly Tobi's system) while it does so correctly on 
>>> Benoît's system.
>>>
>>> However, the documentation for gb.debug is so sparse that I am having to 
>>> experiment and, of course, having a problem.
>>>
>>> With the following command-line application code (using the gb.debug 
>>> component):
>>> ' Gambas module file
>>>
>>> Public Sub Main()
>>>
>>>  Dim sName As String
>>>
>>>  sName = Debug.Begin()
>>>  Print sName
>>>  Debug.Start ' Unable to open fifo
>>>  Debug.Write("Hello world")
>>>  Debug.Stop
>>>  Debug.End
>>>
>>> End
>>>
>>> Public Sub Debug_Read(Data As String)
>>>
>>>  Print Data
>>>
>>> End
>>> ' End Gambas module file
>>>
>>> Debug.Start causes an exception: "Unable to open fifo". By looking in 
>>> /tmp/gambas.1000/, I can see that the process id input and
>>> output pipes are successfully created with the correct file mode 
>>> permissions (600) for my user as owner. But, the Start
>>> procedure apparently cannot open the output fifo (ref.
>>> https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/trunk/main/lib/debug/CDebug.c).
>>>
>>> Am I attempting to use this component incorrectly?
>>>
>>
>> I think you're attempting to use the wrong component. gb.debug is meant for
>> the Gambas IDE to debug a Gambas project. You can look at the source code of
>> the IDE to try to figure out how to use it. I don't understand its protocol
>> at all. My wild guess is that your error comes from not having started the
>> application in debug mode (gbx3 -g)?
>>
>> In any case, I doubt debugging your *Gambas* code will give you any insight
>> into the gb.net.curl issue, as gb.net.curl and curl itself are not written
>> in Gambas.
>>
>> Regards,
>> Tobi
>>
> 
> Thank you for your response, Tobi.
> 
> I was actually running the application from within the IDE. Making an 
> executable and then executing that with "gbx3 -g" resulted in:
> Welcome to the Gambas debugger.
> *[15488]?
> 
> followed by the greater-than symbol () which is obviously an input 
> prompt. "OK, now what?" (Since I find no documentation
> for gbx3.)
> 
> Typing "help" at the prompt gave, "W   Unknown command: help". Hmmm ... 
> maybe "step"? Ooo, that does something:
> 
>  step
> *[15488]Main.Main.7 sName   S: s:
>  step
> *[15488]Main.Main.8 sName   S: s:
> 
>  step
> 15488
> 
> *[15488]Main.Main.9 sName   S: s:
> 
>  step
> *[15488]Unable to open fifo Main.Main.9 sName   S: s:
> 
> And I discovered that there is a "quit" command that works too.
> 
> Given that Debug.Begin creates pipe files named according to the current 
> process' ID (PID) and that the IDE and the executable
> would always have different PIDs, I cannot fathom how the two could "talk". 
> Nor do I, at this point, have any clue whatsoever
> how the gb.debug component is intended to be used.
> 
> I was hoping it might give me access to the running properties of the 
> HttpClient object. But, I am not going to spend any more
> time on this groping in the dark. I'll just have to look in a different 
> direction, or wait until the issue somehow magically
> fixes itself.
> 
> 

You have no need of the internal debugger interface, as everything you 
can do with it, you can do the same from the IDE.

You don't have access to the internal of the HttpClient object, unless 
you debug the interpreter with gdb (it's written in C). But you can set 
the Debug property of the object to get the debugging messages of the 
libcurl library, HttpClient being just a thin wrapper on libcurl.

Regards,

-- 
Benoît Minisini

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gb.debug: Unable to open fifo

2017-05-24 Thread T Lee Davidson
On 05/23/2017 06:07 PM, Tobias Boege wrote:
> On Tue, 23 May 2017, T Lee Davidson wrote:
>> Hello folks,
>>
>> I am trying to see if gb.debug will help me diagnose why HttpClient does not 
>> properly expose redirect response codes on my
>> system (and reportedly Tobi's system) while it does so correctly on Benoît's 
>> system.
>>
>> However, the documentation for gb.debug is so sparse that I am having to 
>> experiment and, of course, having a problem.
>>
>> With the following command-line application code (using the gb.debug 
>> component):
>> ' Gambas module file
>>
>> Public Sub Main()
>>
>> Dim sName As String
>>
>> sName = Debug.Begin()
>> Print sName
>> Debug.Start ' Unable to open fifo
>> Debug.Write("Hello world")
>> Debug.Stop
>> Debug.End
>>
>> End
>>
>> Public Sub Debug_Read(Data As String)
>>
>> Print Data
>>
>> End
>> ' End Gambas module file
>>
>> Debug.Start causes an exception: "Unable to open fifo". By looking in 
>> /tmp/gambas.1000/, I can see that the process id input and
>> output pipes are successfully created with the correct file mode permissions 
>> (600) for my user as owner. But, the Start
>> procedure apparently cannot open the output fifo (ref.
>> https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/trunk/main/lib/debug/CDebug.c).
>>
>> Am I attempting to use this component incorrectly?
>>
> 
> I think you're attempting to use the wrong component. gb.debug is meant for
> the Gambas IDE to debug a Gambas project. You can look at the source code of
> the IDE to try to figure out how to use it. I don't understand its protocol
> at all. My wild guess is that your error comes from not having started the
> application in debug mode (gbx3 -g)?
> 
> In any case, I doubt debugging your *Gambas* code will give you any insight
> into the gb.net.curl issue, as gb.net.curl and curl itself are not written
> in Gambas.
> 
> Regards,
> Tobi
> 

Thank you for your response, Tobi.

I was actually running the application from within the IDE. Making an 
executable and then executing that with "gbx3 -g" resulted in:
Welcome to the Gambas debugger.
*[15488]?

followed by the greater-than symbol () which is obviously an input prompt. 
"OK, now what?" (Since I find no documentation 
for gbx3.)

Typing "help" at the prompt gave, "W   Unknown command: help". Hmmm ... 
maybe "step"? Ooo, that does something:

 step
*[15488]Main.Main.7 sName   S: s:
 step
*[15488]Main.Main.8 sName   S: s: 

 step
15488 

*[15488]Main.Main.9 sName   S: s: 

 step
*[15488]Unable to open fifo Main.Main.9 sName   S: s:

And I discovered that there is a "quit" command that works too.

Given that Debug.Begin creates pipe files named according to the current 
process' ID (PID) and that the IDE and the executable 
would always have different PIDs, I cannot fathom how the two could "talk". Nor 
do I, at this point, have any clue whatsoever 
how the gb.debug component is intended to be used.

I was hoping it might give me access to the running properties of the 
HttpClient object. But, I am not going to spend any more 
time on this groping in the dark. I'll just have to look in a different 
direction, or wait until the issue somehow magically 
fixes itself.


-- 
Lee

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] error in gambaswiki for connection

2017-05-24 Thread PICCORO McKAY Lenz
i have an error when consulting the docs inside the ide:

Null object at line #1:



Stack backtrace:

Wiki._PrintPage.196
Wiki.Wiki.0
WebPage.__Render.31
WebPage.Render.56
Main.Main.685
gb / connection[] / add


this happened with that code:

  Dim conexciones As New Connection[]

  conexciones.Add <--- here its the resulting broken wiki link when pupup
happened!


Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] odbc a way to know if a sql DDL was susessfully or not?

2017-05-24 Thread Benoît Minisini
Le 24/05/2017 à 20:30, PICCORO McKAY Lenz a écrit :
> 2017-05-24 14:21 GMT-04:00 Cristiano Guadagnino :
> 
>> PICCORO, the usual way to know if a sql statement succeeded or not is by
>> checking the sqlcode.
>> Negative sqlcodes indicate a problem.
>> Odbc should support returning sqlcodes to the caller.
>> Can you check if you have any sqlcodes returned to you in the results?
>>
> oh men i not cheked that.. i asumed always return -1
> 
> lest try and report feedback here!
> 
> 
>> Oh and btw... What's wrong with using a try/catch?
>>
>> Cris
>>
Failing SQL statements must raise en error that you have to catch with 
the TRY or CATCH instructions.

Regards,

-- 
Benoît Minisini

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] odbc a way to know if a sql DDL was susessfully or not?

2017-05-24 Thread PICCORO McKAY Lenz
2017-05-24 14:21 GMT-04:00 Cristiano Guadagnino :

> PICCORO, the usual way to know if a sql statement succeeded or not is by
> checking the sqlcode.
> Negative sqlcodes indicate a problem.
> Odbc should support returning sqlcodes to the caller.
> Can you check if you have any sqlcodes returned to you in the results?
>
oh men i not cheked that.. i asumed always return -1

lest try and report feedback here!


> Oh and btw... What's wrong with using a try/catch?
>
> Cris
>
>
> Il 24 mag 2017 7:35 PM, "PICCORO McKAY Lenz"  ha
> scritto:
>
> > umm any idea : how can i know if using odbc a DDL like CREATE or DROP
> TABLE
> > was executed correctly without error , BUT using the result object and
> not
> > a try/catch block!
> >
> > Lenz McKAY Gerardo (PICCORO)
> > http://qgqlochekone.blogspot.com
> >
> > 2017-05-24 10:07 GMT-04:00 PICCORO McKAY Lenz :
> >
> > > please pardom me, i explain me better:
> > >
> > > i mean: how can i know if a DDL like CREATE or DROP TABLE was executed
> > > correctly without error , using the result object and not a try/catch
> > block!
> > >
> > > Lenz McKAY Gerardo (PICCORO)
> > > http://qgqlochekone.blogspot.com
> > >
> > > 2017-05-24 9:58 GMT-04:00 Benoît Minisini <
> gam...@users.sourceforge.net>
> > :
> > >
> > >> Le 24/05/2017 à 15:47, PICCORO McKAY Lenz a écrit :
> > >>
> > >>> due the odbc does not provide a record count like mysql does (cos
> > >>> provider
> > >>> may o nor offer) on every sql query..
> > >>>
> > >>> how we can know if a DDL sql (i mean a select, a dropt table, or a
> > create
> > >>> table) was excecuted using the result object and without a try catch
> > >>> method?
> > >>>
> > >>>
> > >>> Lenz McKAY Gerardo (PICCORO)
> > >>> http://qgqlochekone.blogspot.com
> > >>>
> > >>
> > >> The record count is only for Result objects. So you should not get it
> > for
> > >> a CREATE or a DROP TABLE statement.
> > >>
> > >> A record count of -1 means that you have to use the MoveNext() method
> > >> until the Available property is False to get each record. Once done,
> > then
> > >> you know how many records you get.
> > >>
> > >> I think the reason is that the underlying ODBC driver sends the result
> > >> line by line, whereas the others (MySQL, PostgreSQL and SQLite
> drivers)
> > >> send all the lines by default.
> > >>
> > >> Maybe the ODBC driver should store the entire query result in memory
> to
> > >> simulate a standard Result object when it is internally "move forward"
> > only?
> > >>
> > >> --
> > >> Benoît Minisini
> > >>
> > >
> > >
> > 
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] odbc a way to know if a sql DDL was susessfully or not?

2017-05-24 Thread Cristiano Guadagnino
PICCORO, the usual way to know if a sql statement succeeded or not is by
checking the sqlcode.
Negative sqlcodes indicate a problem.
Odbc should support returning sqlcodes to the caller.
Can you check if you have any sqlcodes returned to you in the results?
Oh and btw... What's wrong with using a try/catch?

Cris


Il 24 mag 2017 7:35 PM, "PICCORO McKAY Lenz"  ha
scritto:

> umm any idea : how can i know if using odbc a DDL like CREATE or DROP TABLE
> was executed correctly without error , BUT using the result object and not
> a try/catch block!
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> 2017-05-24 10:07 GMT-04:00 PICCORO McKAY Lenz :
>
> > please pardom me, i explain me better:
> >
> > i mean: how can i know if a DDL like CREATE or DROP TABLE was executed
> > correctly without error , using the result object and not a try/catch
> block!
> >
> > Lenz McKAY Gerardo (PICCORO)
> > http://qgqlochekone.blogspot.com
> >
> > 2017-05-24 9:58 GMT-04:00 Benoît Minisini 
> :
> >
> >> Le 24/05/2017 à 15:47, PICCORO McKAY Lenz a écrit :
> >>
> >>> due the odbc does not provide a record count like mysql does (cos
> >>> provider
> >>> may o nor offer) on every sql query..
> >>>
> >>> how we can know if a DDL sql (i mean a select, a dropt table, or a
> create
> >>> table) was excecuted using the result object and without a try catch
> >>> method?
> >>>
> >>>
> >>> Lenz McKAY Gerardo (PICCORO)
> >>> http://qgqlochekone.blogspot.com
> >>>
> >>
> >> The record count is only for Result objects. So you should not get it
> for
> >> a CREATE or a DROP TABLE statement.
> >>
> >> A record count of -1 means that you have to use the MoveNext() method
> >> until the Available property is False to get each record. Once done,
> then
> >> you know how many records you get.
> >>
> >> I think the reason is that the underlying ODBC driver sends the result
> >> line by line, whereas the others (MySQL, PostgreSQL and SQLite drivers)
> >> send all the lines by default.
> >>
> >> Maybe the ODBC driver should store the entire query result in memory to
> >> simulate a standard Result object when it is internally "move forward"
> only?
> >>
> >> --
> >> Benoît Minisini
> >>
> >
> >
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1107: project components unselectable if not qt4 libs complety installed

2017-05-24 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1107=L21haW4-

Comment #5 by PICCORO LENZ MCKAY:

umm its a problem, do you said that there's nothig to do in those cases? that 
the internal behaviour its correct but not the visual behaviour?

i mean: how do i know as human visual normal guy, if the chekboxes are realy 
working if visually does not?

i think, I do not say that it is the most important thing in the world, 

.. but I think that before this report many people find themselves in a great 
contrariety and an impediment to continue programming ...



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1107: project components unselectable if not qt4 libs complety installed

2017-05-24 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1107=L21haW4-

Comment #4 by Tobias BOEGE:

>do you see the attached image? (about if i sure) and yes pretty sure are 
>unselectable.. but seems you do not see the image ...
I saw the image and the left part of it is *exactly* how it looked in my case, 
where the checkboxes did not react visually to any user input but actually 
changed their checked-unchecked state internally when you clicked on them. This 
behaviour is something that an image of the checkboxes cannot document. But if 
your cause is different, there is nothing I can add to this bug report anymore.

>its high for me that spen a precious 4 hours finding the way of the problem 
>right?
Sure it's high for you, but is it more important than all the other people's 
open medium- or low-priority bugs in the bugtracker right now?

Before you or anyone else wastes another 4 hours next time because of 
unselectable components in the IDE, remember that you can always edit the 
.project file directly with a text editor to add or remove components.



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] odbc a way to know if a sql DDL was susessfully or not?

2017-05-24 Thread PICCORO McKAY Lenz
umm any idea : how can i know if using odbc a DDL like CREATE or DROP TABLE
was executed correctly without error , BUT using the result object and not
a try/catch block!

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

2017-05-24 10:07 GMT-04:00 PICCORO McKAY Lenz :

> please pardom me, i explain me better:
>
> i mean: how can i know if a DDL like CREATE or DROP TABLE was executed
> correctly without error , using the result object and not a try/catch block!
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> 2017-05-24 9:58 GMT-04:00 Benoît Minisini :
>
>> Le 24/05/2017 à 15:47, PICCORO McKAY Lenz a écrit :
>>
>>> due the odbc does not provide a record count like mysql does (cos
>>> provider
>>> may o nor offer) on every sql query..
>>>
>>> how we can know if a DDL sql (i mean a select, a dropt table, or a create
>>> table) was excecuted using the result object and without a try catch
>>> method?
>>>
>>>
>>> Lenz McKAY Gerardo (PICCORO)
>>> http://qgqlochekone.blogspot.com
>>>
>>
>> The record count is only for Result objects. So you should not get it for
>> a CREATE or a DROP TABLE statement.
>>
>> A record count of -1 means that you have to use the MoveNext() method
>> until the Available property is False to get each record. Once done, then
>> you know how many records you get.
>>
>> I think the reason is that the underlying ODBC driver sends the result
>> line by line, whereas the others (MySQL, PostgreSQL and SQLite drivers)
>> send all the lines by default.
>>
>> Maybe the ODBC driver should store the entire query result in memory to
>> simulate a standard Result object when it is internally "move forward" only?
>>
>> --
>> Benoît Minisini
>>
>
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] ​ Re: Keyboard locked -- insisting one more time

2017-05-24 Thread Fabien Bodard
can you describe your machine ?

2017-05-24 18:13 GMT+02:00 Fernando Cabral :
> Glaucio wrote:
>>I don't know, but, since it works in other systems than Xubuntu/Mint, I
>>guess that may be some environment variable missing.
>
> Could be an environment variable issue. But which variable? As far as I
> know, I did not change anything. So, if anything changed, it was changed
> stealthily by an unknown program.
>
>>With Benoit's script, for example, the TextEditor didn't worked here, but
>>the same component did work just fine running in Gambas' design time
>>test. Again, the difference, I guess, is pretty much just the execution
>>environment, or not?
>
> Only worked here on the virtual machine; not on the real machine.
>
>
> 2017-05-24 7:50 GMT-03:00 Glaucio Araujo :
>
>> I don't know, but, since it works in other systems than Xubuntu/Mint, I
>> guess that may be some environment variable missing.
>>
>> With Benoit's script, for exemple, the TextEditor didin't worked here, but
>> the same component did worked just fine running in Gambas' design time
>> test. Again, the difference, I guess, is pretty much just the execution
>> environment, or not?
>>
>>
>>
>>
>> ---
>>
>> Gláucio de Araujo
>>
>> Mail : glaucio.de.ara...@gmail.com
>> TIM  : (11) 95900-7801 (WhatsApp / Telegram)
>>
>> 2017-05-24 7:25 GMT-03:00 Benoît Minisini :
>>
>> > Le 24/05/2017 à 08:44, Fabien Bodard a écrit :
>> > > We need to wait for Benoit as it's a misstake on the rev 8132.
>> > >
>> >
>> > I'm not sure it's a mistake in rev 8132. Fernando must check with an
>> > older revision to see if the problem comes from it.
>> >
>> > Moreover, Glaucio says he has the problem with an older version of
>> > Gambas, so...
>> >
>> > I think it's a problem related to QT and the Xim input method. So I
>> > suggest people to change their input method to see if something changes.
>> >
>> > --
>> > Benoît Minisini
>> >
>> > 
>> > --
>> > Check out the vibrant tech community on one of the world's most
>> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> > ___
>> > Gambas-user mailing list
>> > Gambas-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>> >
>> 
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
>
>
> --
> Fernando Cabral
> Blogue: http://fernandocabral.org
> Twitter: http://twitter.com/fjcabral
> e-mail: fernandojosecab...@gmail.com
> Facebook: f...@fcabral.com.br
> Telegram: +55 (37) 99988-8868
> Wickr ID: fernandocabral
> WhatsApp: +55 (37) 99988-8868
> Skype:  fernandojosecabral
> Telefone fixo: +55 (37) 3521-2183
> Telefone celular: +55 (37) 99988-8868
>
> Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
> nenhum político ou cientista poderá se gabar de nada.
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1108: sqlite path when used with name does not create db in the given path

2017-05-24 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1108=L21haW4-

Comment #3 by PICCORO LENZ MCKAY:

Thanks for the info tobias. so this bug its then invalid.. maybe a example in 
gambas wiki can iluminate the non-english users!



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1107: project components unselectable if not qt4 libs complety installed

2017-05-24 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1107=L21haW4-

Comment #3 by PICCORO LENZ MCKAY:

do you see the attached image? (about if i sure) and yes pretty sure are 
unselectable.. but seems you do not see the image ...

and as i said.. maybe will be user setting, but can be a pain if i cannot 
select the db component for release the project right? so if its high or not.. 
its high for me that spen a precious 4 hours finding the way of the problem 
right?



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] ​ Re: Keyboard locked -- insisting one more time

2017-05-24 Thread Fernando Cabral
Glaucio wrote:
>I don't know, but, since it works in other systems than Xubuntu/Mint, I
>guess that may be some environment variable missing.

Could be an environment variable issue. But which variable? As far as I
know, I did not change anything. So, if anything changed, it was changed
stealthily by an unknown program.

>With Benoit's script, for example, the TextEditor didn't worked here, but
>the same component did work just fine running in Gambas' design time
>test. Again, the difference, I guess, is pretty much just the execution
>environment, or not?

Only worked here on the virtual machine; not on the real machine.


2017-05-24 7:50 GMT-03:00 Glaucio Araujo :

> I don't know, but, since it works in other systems than Xubuntu/Mint, I
> guess that may be some environment variable missing.
>
> With Benoit's script, for exemple, the TextEditor didin't worked here, but
> the same component did worked just fine running in Gambas' design time
> test. Again, the difference, I guess, is pretty much just the execution
> environment, or not?
>
>
>
>
> ---
>
> Gláucio de Araujo
>
> Mail : glaucio.de.ara...@gmail.com
> TIM  : (11) 95900-7801 (WhatsApp / Telegram)
>
> 2017-05-24 7:25 GMT-03:00 Benoît Minisini :
>
> > Le 24/05/2017 à 08:44, Fabien Bodard a écrit :
> > > We need to wait for Benoit as it's a misstake on the rev 8132.
> > >
> >
> > I'm not sure it's a mistake in rev 8132. Fernando must check with an
> > older revision to see if the problem comes from it.
> >
> > Moreover, Glaucio says he has the problem with an older version of
> > Gambas, so...
> >
> > I think it's a problem related to QT and the Xim input method. So I
> > suggest people to change their input method to see if something changes.
> >
> > --
> > Benoît Minisini
> >
> > 
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] ​ Re: Keyboard locked -- insisting one more time

2017-05-24 Thread Fernando Cabral
Benoît says:
> I'm not sure it's a mistake in rev 8132. Fernando must check with an
> older revision to see if the problem comes from it.

When the problem appeared, I downgraded to the version I had on the Mint
repository.
I did not work. So, whatever has changed (either on the operating system or
on the gambas package), it affects present as well as previous versions.

> Moreover, Glaucio says he has the problem with an older version of
> Gambas, so...

Same here. But, using a virtual machine, both older and newest versions
work.

Besides, I am using Mint 8.1 both in the real and virtual machines. Both
are up to date.
So, the operating system version itself is not the culprit.

> I think it's a problem related to QT and the Xim input method. So I
> suggest people to change their input method to see if something changes

*.*
*I don't know peanuts about Xinput method. That's why I have no tried any
change on this*


*front as yet.*


*Regards*

*- fernando *



2017-05-24 7:25 GMT-03:00 Benoît Minisini :

> Le 24/05/2017 à 08:44, Fabien Bodard a écrit :
> > We need to wait for Benoit as it's a misstake on the rev 8132.
> >
>
> I'm not sure it's a mistake in rev 8132. Fernando must check with an
> older revision to see if the problem comes from it.
>
> Moreover, Glaucio says he has the problem with an older version of
> Gambas, so...
>
> I think it's a problem related to QT and the Xim input method. So I
> suggest people to change their input method to see if something changes.
>
> --
> Benoît Minisini
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1107: project components unselectable if not qt4 libs complety installed

2017-05-24 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1107=L21haW4-

Comment #2 by Tobias BOEGE:

Are you sure that the checkboxes are read-only? For some time I had checkboxes 
in the IDE that looked read-only but weren't. They always displayed a check 
mark whether they were turned on or off. But apart from that they were working. 
Click on some of the checkboxes in the component tab and observe if that 
changes the component listing in the project's hidden ".project" file. If it 
does, the checkboxes only look read-only and it's probably something like a 
theming problem.

(And on a side note, something I wanted to say to you for a long time: Please 
reconsider what "high priority" means. I for one have an email filter for high 
priority bugtracker mails and it's annoying that every one of your bug reports 
is caught by it. Especially here you present a problem and a solution which 
consists of the user setting an environment variable. This is not a high 
priority bug.)



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] XMLRPC-Server

2017-05-24 Thread T Lee Davidson
On 05/24/2017 04:52 AM, Hans Lehmann wrote:
> 
> Hello Lee,
>> RpcServer.Listen relies on ServerSocket which is part of the gb.net 
>> component. The documentation does not specify that gb.net is
>> required for gb.xml.rpc, but it apparently is.
> That's exactly. The missing components were added. Thanks for the hint.
> The source code for the XMLRPC client and the XMLRPC server is attached. The 
> project works - but unfortunately not as a web 
> service - only locally. Where is the error? What should I do?
> 
> Sincerely
> Hans

Hi Hans,

The commonly used term, "web service", can be a bit misleading since not all 
services accessible over the web (internet) are 
necessarily served by a _web_ server.

The gb.xml.rpc component is not designed to run 'through' a web server in the 
same manner that PHP web services do. This means 
that, in this case, the RPC service cannot be called simply by fetching a file. 
The service must _first_ be started on whatever 
machine is acting as the server. Then, a request can be made to the service, 
already listening on a specific port, by making a 
call to it in the form of http://ip_address:port.

(PHP scripts must be executed by a web server which means the server is already 
running.)

If you are wanting to be able to access an actual web service (PHP-style), then 
I believe you are using the wrong component(s). 
In that case, you should probably use gb.web for the server side and 
gb.net.curl's HttpClient for the client side.

Your client/server application does indeed work just fine (even without gb.web 
and gb.net.curl), provided the server is started 
prior to making the call.


-- 
Lee

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1108: sqlite path when used with name does not create db in the given path

2017-05-24 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1108=L21haW4-

Comment #2 by Tobias BOEGE:

You forgot to set $conexionsqli.Host = Application.Path before calling 
Databases.Add(). (Where did you expect the database to go without giving it a 
host?) Try this:

Public Function getConexion()
  ' Clear directory
  Try Kill Application.Path & "/test"

  $conexionsqli = New Connection
  $conexionsqli.Type = "sqlite3"
  ' "Connect" to the host (i.e. the directory where we create the database)
  $conexionsqli.Host = Application.Path
  ' There is no database yet, so set Name = Null
  $conexionsqli.Name = Null
  $conexionsqli.Open()
  ' Add the database and close the connection
  $conexionsqli.Databases.Add("test")
  $conexionsqli.Close()
  ' Afterwards we can select the now-existing database
  $conexionsqli.Name = "test"
  $conexionsqli.Open()
End

Tobias BOEGE changed the state of the bug to: Invalid.



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1108: sqlite path when used with name does not create db in the given path

2017-05-24 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1108=L21haW4-

Comment #1 by PICCORO LENZ MCKAY:

the piece of code its:


Private $conexionsqli As Connection

Public Function getConexion()
  
  Try Kill Application.Path & "/test"  ' clean the patch firts

  $conexionsqli = New Connection
  $conexionsqli.Type = "sqlite3"
  $conexionsqli.Name = Null  ' doc said if null given memory db will be used 
and i create a db from now
  
  Try $conexionsqli.Open
  $conexionsqli.Databases.Add("test") ' so connected to memory db create a new 
db in given path ? how can i set the path? if the db arememory db?
  
  $conexionsqli.Close ' doc say: Otherwise, Host gives the database directory, 
and the database path is the result of concatenating Host and Name.

  $conexionsqli.Host = Application.Path 
  $conexionsqli.Name = "test"
  Try $conexionsqli.Open
  
  If Error Then
$conexionsqli = Null
  Endif  
  
  'Return $conexionsqli
  
End



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1108: sqlite path when used with name does not create db in the given path

2017-05-24 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1108=L21haW4-

PICCORO LENZ MCKAY reported a new bug.

Summary
---

sqlite path when used with name does not create db in the given path

Type : Bug
Priority : High
Gambas version   : 3.9
Product  : Database component


Description
---

i attached a project example, in resumen i used as documentation said: 
"Otherwise, Host gives the database directory, and the database path is the 
result of concatenating Host and Name." in 
http://gambaswiki.org/wiki/comp/gb.db/connection

so i used host for path directory and name for sqlite name db, but when i 
command a ls to the patch the sqlite db does not exist


System information
--

[System]
Gambas=3.9.1
OperatingSystem=Linux
Kernel=2.6.38-bpo.2-686
Architecture=x86
Distribution= 6.1
Desktop=
Theme=Gtk
Language=es_VE.UTF-8
Memory=2958M

[Libraries]
Cairo=libcairo.so.2.11000.2
Curl=libcurl.so.4.2.0
DBus=libdbus-1.so.3.4.0
GStreamer=libgstreamer-0.10.so.0.27.0
GTK+2=libgtk-x11-2.0.so.0.2000.1
Poppler=libpoppler.so.5.0.0
QT4=libQtCore.so.4.7.4
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-vBmVAKTmAe,guid=ab802896e9e02a1f9130b543020a
DESKTOP_SESSION=openbox
DISPLAY=:0.0
GB_GUI=gb.qt4
GDMSESSION=openbox
GDM_LANG=es_VE.UTF-8
GDM_XSERVER_LOCATION=local
HOME=
LANG=es_VE.UTF-8
LOGNAME=
ORBIT_SOCKETDIR=/tmp/orbit-
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
PWD=
SHELL=/bin/bash
SSH_AGENT_PID=3169
SSH_AUTH_SOCK=/tmp/ssh-ufENJB3126/agent.3126
TZ=:/etc/localtime
USER=
USERNAME=
WINDOWPATH=7:7:7:7
XAUTHORITY=/.Xauthority
XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/
XDG_MENU_PREFIX=lxde-
XDG_SESSION_COOKIE=e95ad835c51ba625379e24620423-1494956351.268990-1110310328



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1108: sqlite path when used with name does not create db in the given path

2017-05-24 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1108=L21haW4-

PICCORO LENZ MCKAY added an attachment:

testforbugs-sqlitepath-notfoud-db-0.0.1.tar.gz



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1107: project components unselectable if not qt4 libs complety installed

2017-05-24 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1107=L21haW4-

Comment #1 by PICCORO LENZ MCKAY:

attached and image (umm how can i display inside embebed the attached image)

in the image we can see that if no /home//.config/Trolltech.conf file are 
present with defined valid style (and not desktop inheris style) the checkboxes 
are readonly...



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1107: project components unselectable if not qt4 libs complety installed

2017-05-24 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1107=L21haW4-

PICCORO LENZ MCKAY added an attachment:

gambaside-0-qtconfig-bug.png



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1107: project components unselectable if not qt4 libs complety installed

2017-05-24 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1107=L21haW4-

PICCORO LENZ MCKAY reported a new bug.

Summary
---

project components unselectable if not qt4 libs complety installed

Type : Bug
Priority : High
Gambas version   : 3.9
Product  : Development Environment


Description
---

installed gambas but not taking care (or packages does not) of the qt4 libs 
depends...

so when open the project properties and try to select componentes, all the 
checkboxes are selected but in readonly mode

after some debug, see that qt4 libs are triying to access so installed, but 
need configure the qt4 env USING QT4-QTCONFIG (on other may be named qtconfig): 
after that, checkboxes are displayed normally and i can select components for 
the project, 

install the packages was not enoguh.. i must setup the qt4 environment to use a 
GTK style, and then all are correct, this only happen when no mayor desktop are 
used like openbox or icewm

i installed GAMBAS 3.9 packaged by me follow and based on ppa sources.. 

NOTE: later try installed in same way, using the ppa packages and debian jesee, 
same results if no qtconfig configuration was made!

NOTE2: important qt4 style was not configured and any other qt program was ever 
started until qtconfig was

ANEXOS:

oot@sdata1:/var/www# apt-get install qt4-qtconfig
Reading package lists... Done
Building dependency tree   
Reading state information... Done
The following extra packages will be installed:
  libmng1 libphonon4 libpulse-mainloop-glib0 
Suggested packages:
  libmng-dev phonon libphonon-dev libqt4-dev qt4-qmlviewer
Recommended packages:
  libphononexperimental4 libqt4-sql-mysql libqt4-sql-odbc libqt4-sql-psql 
libqt4-sql-sqlite
  libqt4-sql-sqlite2 libqt4-sql-ibase libqt4-xmlpatterns libqt4-help 
libqt4-opengl
The following NEW packages will be installed:
  libmng1 libphonon4 libpulse-mainloop-glib0 qdbus qt4-qtconfig 
libqt4-qt3support
0 upgraded, 6 newly installed, 0 to remove and 92 not upgraded.
Need to get 15.0 MB of archives.
After this operation, 36.6 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
WARNING: The following packages cannot be authenticated!
  libmng1 libpulse-mainloop-glib0 libqtcore4 libqt4-xml qdbus libqt4-dbus 
libqtgui4 libphonon4
  libqt4-script libqt4-designer libqt4-network libqt4-sql libqt4-qt3support 
qt4-qtconfig
Authentication warning overridden.
Get:1 http://10.10.34.20/debian/venenux/ squeeze/main libmng1 i386 1.0.10-3vnz1 
[135 kB]
Get:2 http://10.10.34.20/debian/ squeeze/main libpulse-mainloop-glib0 i386 
0.9.21-3+squeeze1 [161 kB]
Get:5 http://10.10.34.20/debian/venenux/ squeeze/main qdbus i386 4:4.7.4-2vnz1 
[67.6 kB]
Get:8 http://10.10.34.20/debian/venenux/ squeeze/main libphonon4 i386 
4:4.6.0really4.5.1-1vgnzsq1 [137 kB]
Get:13 http://10.10.34.20/debian/venenux/ squeeze/main libqt4-qt3support i386 
4:4.7.4-2vnz1 [1,198 kB]
Get:14 http://10.10.34.20/debian/venenux/ squeeze/main qt4-qtconfig i386 
4:4.7.4-2vnz1 [182 kB]
Fetched 15.0 MB in 1s (9,359 kB/s) 
Selecting previously deselected package libmng1.
(Reading database ... 50813 files and directories currently installed.)
Unpacking libmng1 (from .../libmng1_1.0.10-3vnz1_i386.deb) ...
Selecting previously deselected package libpulse-mainloop-glib0.
Unpacking libpulse-mainloop-glib0 (from 
.../libpulse-mainloop-glib0_0.9.21-3+squeeze1_i386.deb) ...
Selecting previously deselected package qdbus.
Unpacking qdbus (from .../qdbus_4%3a4.7.4-2vnz1_i386.deb) ...
Selecting previously deselected package libphonon4.
Unpacking libphonon4 (from 
.../libphonon4_4%3a4.6.0really4.5.1-1vgnzsq1_i386.deb) ...
Selecting previously deselected package libqt4-qt3support.
Unpacking libqt4-qt3support (from 
.../libqt4-qt3support_4%3a4.7.4-2vnz1_i386.deb) ...
Selecting previously deselected package qt4-qtconfig.
Unpacking qt4-qtconfig (from .../qt4-qtconfig_4%3a4.7.4-2vnz1_i386.deb) ...
Processing triggers for man-db ...
Setting up libmng1 (1.0.10-3vnz1) ...
Setting up libpulse-mainloop-glib0 (0.9.21-3+squeeze1) ...
Setting up qdbus (4:4.7.4-2vnz1) ...
Setting up libqt4-dbus (4:4.7.4-2vnz1) ...
Setting up libphonon4 (4:4.6.0really4.5.1-1vgnzsq1) ...
Setting up libqt4-qt3support (4:4.7.4-2vnz1) ...
Setting up qt4-qtconfig (4:4.7.4-2vnz1) ...
update-alternatives: using /usr/bin/qtconfig-qt4 to provide /usr/bin/qtconfig 
(qtconfig) in auto mode.
root@sdata1:/var/www#


System information
--

[System]
Gambas=3.9.1
OperatingSystem=Linux
Kernel=2.6.38-bpo.2-686
Architecture=x86
Distribution= 6.1
Desktop=
Theme=Gtk
Language=es_VE.UTF-8
Memory=2958M

[Libraries]
Cairo=libcairo.so.2.11000.2
Curl=libcurl.so.4.2.0
DBus=libdbus-1.so.3.4.0
GStreamer=libgstreamer-0.10.so.0.27.0
GTK+2=libgtk-x11-2.0.so.0.2000.1
Poppler=libpoppler.so.5.0.0
QT4=libQtCore.so.4.7.4
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-vBmVAKTmAe,guid=ab802896e9e02a1f9130b543020a

Re: [Gambas-user] odbc a way to know if a sql DDL was susessfully or not?

2017-05-24 Thread PICCORO McKAY Lenz
please pardom me, i explain me better:

i mean: how can i know if a DDL like CREATE or DROP TABLE was executed
correctly without error , using the result object and not a try/catch block!

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

2017-05-24 9:58 GMT-04:00 Benoît Minisini :

> Le 24/05/2017 à 15:47, PICCORO McKAY Lenz a écrit :
>
>> due the odbc does not provide a record count like mysql does (cos provider
>> may o nor offer) on every sql query..
>>
>> how we can know if a DDL sql (i mean a select, a dropt table, or a create
>> table) was excecuted using the result object and without a try catch
>> method?
>>
>>
>> Lenz McKAY Gerardo (PICCORO)
>> http://qgqlochekone.blogspot.com
>>
>
> The record count is only for Result objects. So you should not get it for
> a CREATE or a DROP TABLE statement.
>
> A record count of -1 means that you have to use the MoveNext() method
> until the Available property is False to get each record. Once done, then
> you know how many records you get.
>
> I think the reason is that the underlying ODBC driver sends the result
> line by line, whereas the others (MySQL, PostgreSQL and SQLite drivers)
> send all the lines by default.
>
> Maybe the ODBC driver should store the entire query result in memory to
> simulate a standard Result object when it is internally "move forward" only?
>
> --
> Benoît Minisini
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] odbc a way to know if a sql DDL was susessfully or not?

2017-05-24 Thread Benoît Minisini
Le 24/05/2017 à 15:47, PICCORO McKAY Lenz a écrit :
> due the odbc does not provide a record count like mysql does (cos provider
> may o nor offer) on every sql query..
> 
> how we can know if a DDL sql (i mean a select, a dropt table, or a create
> table) was excecuted using the result object and without a try catch method?
> 
> 
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com

The record count is only for Result objects. So you should not get it 
for a CREATE or a DROP TABLE statement.

A record count of -1 means that you have to use the MoveNext() method 
until the Available property is False to get each record. Once done, 
then you know how many records you get.

I think the reason is that the underlying ODBC driver sends the result 
line by line, whereas the others (MySQL, PostgreSQL and SQLite drivers) 
send all the lines by default.

Maybe the ODBC driver should store the entire query result in memory to 
simulate a standard Result object when it is internally "move forward" only?

-- 
Benoît Minisini

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] odbc a way to know if a sql DDL was susessfully or not?

2017-05-24 Thread PICCORO McKAY Lenz
due the odbc does not provide a record count like mysql does (cos provider
may o nor offer) on every sql query..

how we can know if a DDL sql (i mean a select, a dropt table, or a create
table) was excecuted using the result object and without a try catch method?


Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] XMLRPC-Server

2017-05-24 Thread PICCORO McKAY Lenz
2017-05-24 4:52 GMT-04:00 Hans Lehmann :

> The source code for the XMLRPC client and the XMLRPC server is attached.
> The project works - but unfortunately not as a web service - only locally.
> Where is the error? What should I do?
>
great

Excellent effort! The web services are very important for integration of
different platforms in different technologies, I will take a look to see
what I help because I need it a lot

gambas  has a great lack in this area! thanks Hans!


>
> Sincerely
> Hans
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] ​ Re: Keyboard locked -- insisting one more time

2017-05-24 Thread Fabien Bodard
maybe a problem with the desing mode.





2017-05-24 12:50 GMT+02:00 Glaucio Araujo :
> I don't know, but, since it works in other systems than Xubuntu/Mint, I
> guess that may be some environment variable missing.
>
> With Benoit's script, for exemple, the TextEditor didin't worked here, but
> the same component did worked just fine running in Gambas' design time
> test. Again, the difference, I guess, is pretty much just the execution
> environment, or not?
>
>
>
>
> ---
>
> Gláucio de Araujo
>
> Mail : glaucio.de.ara...@gmail.com
> TIM  : (11) 95900-7801 (WhatsApp / Telegram)
>
> 2017-05-24 7:25 GMT-03:00 Benoît Minisini :
>
>> Le 24/05/2017 à 08:44, Fabien Bodard a écrit :
>> > We need to wait for Benoit as it's a misstake on the rev 8132.
>> >
>>
>> I'm not sure it's a mistake in rev 8132. Fernando must check with an
>> older revision to see if the problem comes from it.
>>
>> Moreover, Glaucio says he has the problem with an older version of
>> Gambas, so...
>>
>> I think it's a problem related to QT and the Xim input method. So I
>> suggest people to change their input method to see if something changes.
>>
>> --
>> Benoît Minisini
>>
>> 
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] ​ Re: Keyboard locked -- insisting one more time

2017-05-24 Thread Glaucio Araujo
I don't know, but, since it works in other systems than Xubuntu/Mint, I
guess that may be some environment variable missing.

With Benoit's script, for exemple, the TextEditor didin't worked here, but
the same component did worked just fine running in Gambas' design time
test. Again, the difference, I guess, is pretty much just the execution
environment, or not?




---

Gláucio de Araujo

Mail : glaucio.de.ara...@gmail.com
TIM  : (11) 95900-7801 (WhatsApp / Telegram)

2017-05-24 7:25 GMT-03:00 Benoît Minisini :

> Le 24/05/2017 à 08:44, Fabien Bodard a écrit :
> > We need to wait for Benoit as it's a misstake on the rev 8132.
> >
>
> I'm not sure it's a mistake in rev 8132. Fernando must check with an
> older revision to see if the problem comes from it.
>
> Moreover, Glaucio says he has the problem with an older version of
> Gambas, so...
>
> I think it's a problem related to QT and the Xim input method. So I
> suggest people to change their input method to see if something changes.
>
> --
> Benoît Minisini
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1105: XmlElement.GetChildrenByTagName does get parent too if tag is the same

2017-05-24 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1105=L21haW4-

Daniel BLANCH BATALLER reported a new bug.

Summary
---

XmlElement.GetChildrenByTagName does get parent too if tag is the same

Type : Bug
Priority : Medium
Gambas version   : 3.7
Product  : XML components


Description
---

http://gambaswiki.org/wiki/comp/gb.xml/xmlelement/getchildrenbytagname

As the documentation states, this should get the children, but if parent shares 
the same tag name as children, parent is included in position [0] of the 
returned XmlElement[] array.

XmlElement.GetChildrenByTagName (gb.xml)

Function GetChildrenByTagName ( TagName As String [ , Mode As Integer, Depth As 
Integer ] ) As XmlElement[]

Returns all the **child elements** whose tag name matches Name.
The Mode argument defines the comparison method used. It supports GB.Binary, 
GB.IgnoreCase and GB.Like.
See Predefined Constants for further information.
The Depth argument defines where to stop the search : a negative value will 
stop only at the end of the tree (default), 1 will check only the current 
element, 2 will check **only the direct children** of the element, and so on ...

Here is some sample code to reproduce the issue.

Thank you in advance

Daniel.


' Unit test inhouse module
' TODO: Find unit test library


Private errors As Integer = 0

' Fixture, add tests here
Public Sub Main()
  xmlTest()
End


' Unit test
Sub xmlTest()

  Dim children_level_0 As XmlElement[]
  Dim children_level_1 As XmlElement[]
  
  Dim document As XmlDocument = New XmlDocument
  document.FromString(
  "" &
  "  " &
  "" &
  "" &
  "" & 
  "  " &
  "")
  
  children_level_0 = document.Root.GetChildrenByTagName("child", GB.Binary, 2) 
'2 direct children
  equals(children_level_0.Length, 1, "one child expected")
  
  children_level_1 = children_level_0[0].GetChildrenByTagName("child", 
GB.Binary, 2)
  equals(children_level_1.Length, 2, "two child expected")  'it returns three 
instead, first element is parent node
  endTests()
  
End

Sub equals(actual As Integer, expected As Integer, msg As String) 
  
  If actual = expected Then
Print "ok: " & msg
  Else
errors = errors + 1
Print "error : " & msg & " [expected =" & expected & ", actual = " & actual 
& "]"
  Endif
  
End

Sub endTests() 
  
  If errors > 0 Then 
Print "Result: Failed [" & errors & "] tests"
  Else 
Print "Result: All tests OK"
  Endif
  
End





--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] ​ Re: Keyboard locked -- insisting one more time

2017-05-24 Thread Benoît Minisini
Le 24/05/2017 à 08:44, Fabien Bodard a écrit :
> We need to wait for Benoit as it's a misstake on the rev 8132.
> 

I'm not sure it's a mistake in rev 8132. Fernando must check with an 
older revision to see if the problem comes from it.

Moreover, Glaucio says he has the problem with an older version of 
Gambas, so...

I think it's a problem related to QT and the Xim input method. So I 
suggest people to change their input method to see if something changes.

-- 
Benoît Minisini

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] ​ Re: Keyboard locked -- insisting one more time

2017-05-24 Thread Fernando Cabral
Dimitris wrote:
> Ok.. Gambas3 run as root? Not a good idea. I realize it's a much needed
> workaround but not the recommended one. I would go with what Cris
suggested.

Agreed that running gambas as root is not a good idea. It was only a test.
Since some people
thought it could be a permission issue, running as root was a way to gather
more information on
the issue. It was not a proper workaround.

>I've run Gambas3 3.9.2 on a Virtualbox VM of Ubuntu Budgie 17.04 and as a
> normal user I've never had problems with the keyboard locking.
> Is there something that might be misconfigured on your VM perhaps (I mean
> on the Virtualbox settings)?

It is the other way around: Gambas 3.9.2 runs flawlessly on the Virtual Box.
The keyboard locks in the real machine -- even when the keyboard is the
same for both machines.

Regards

- fernando


2017-05-24 1:23 GMT-03:00 Dimitris Anogiatis :

> Ok.. Gambas3 run as root? Not a good idea. I realize it's a much needed
> workaround but not the recommended one. I would go with what Cris
> suggested.
> I've run Gambas3 3.9.2 on a Virtualbox VM of Ubuntu Budgie 17.04 and as a
> normal user I've never had problems with the keyboard locking.
>
> Is there something that might be misconfigured on your VM perhaps (I mean
> on the Virtualbox settings)?
>
> On Mon, May 15, 2017 at 9:20 AM, Cristiano Guadagnino 
> wrote:
>
> > Fernando, did you try setting up a new user on your system and trying to
> > run gambas as the new user?
> >
> > Cris
> >
> >
> >
> >   
> >
> > Sent with Mailtrack
> >  > referral=crigu...@gmail.com=22>
> >
> >
> > On Mon, May 15, 2017 at 12:53 PM, Fernando Cabral <
> > fernandojosecab...@gmail.com> wrote:
> >
> > > Gláucio
> > >
> > > I see our systems and environment are quite similar, although not
> exactly
> > > the same. Have you installed something different that might have
> changed
> > > the IDE behavior? If I have, I have not been able to determine what it
> > > could be. What I know for sure is that one moment everything was
> working,
> > > next moment it was not anymore. What happened in-between, I can not
> > figure
> > > out.
> > >
> > > Now, after running gambas as superuser ("sudo gambas3") I have given up
> > the
> > > keyboard hypothesis (at least for now). I went back to the hypothesis
> > that
> > > it has to do with some file or directory permission. Nevertheless, I
> have
> > > not been able to determine which file or directory it could be. As to
> the
> > > project tree, I have opened it up completely (rwxrwxrwx for the
> > directories
> > > and at least rw-rw-rw- for the files. Even for the hidden ones.  It did
> > not
> > > help.
> > >
> > > I have also searched for every single file and directory related to
> > gambas.
> > > For this I used searches like "locate -i --regex .*gambas.*" and "gbr3"
> > and
> > > "gbx3", etc. Saved the results to a file and checked file and directory
> > > permissions. I could not find and thing unexpected.
> > >
> > > I have exhausted my bag of tricks so I have resorted to either of two
> > ugly
> > > workarounds:  running gambas as superuser or doing the edition in a
> > virtual
> > > machine. In the last option, I just mount the project tree as a
> directory
> > > in the virtual machine. Then I make the changes in the virtual machine
> > and
> > > test them in the real machine. Cumbersome, but has worked.
> > > I would ask you to try running "sudo gambas3". If you can edit your
> files
> > > as superuser, then it will be very likely that we have exactly the same
> > > problem.
> > >
> > > Saudações
> > >
> > > - fernando
> > >
> > > 2017-05-14 18:19 GMT-03:00 Glaucio Araujo  >:
> > >
> > > > Hi,
> > > >
> > > > I'm having exactly the same problem here in Xubuntu 17.04 with Gambas
> > > 3.9.1
> > > > and 3.9.2(PPA).
> > > >
> > > >
> > > > ​My system information:
> > > >
> > > > [System]
> > > > Gambas=3.9.2
> > > > OperatingSystem=Linux
> > > > Kernel=4.10.0-20-generic
> > > > Architecture=x86_64
> > > > Distribution=Ubuntu 17.04
> > > > Desktop=XFCE
> > > > Theme=Gtk
> > > > Language=pt_BR.UTF-8
> > > > Memory=3829M
> > > >
> > > > [Libraries]
> > > > Cairo=libcairo.so.2.11400.8
> > > > Curl=libcurl.so.4.4.0
> > > > DBus=libdbus-1.so.3.14.7
> > > > GStreamer=libgstreamer-1.0.so.0.1004.0
> > > > GTK+2=libgtk-x11-2.0.so.0.2400.31
> > > > GTK+3=libgtk-3.so.0.2200.11
> > > > OpenGL=libGL.so.1.2.0
> > > > Poppler=libpoppler.so.64.0.0
> > > > QT4=libQtCore.so.4.8.7
> > > > QT5=libQt5Core.so.5.7.1
> > > > SDL=libSDL-1.2.so.0.11.4
> > > > SQLite=libsqlite3.so.0.8.6
> > > >
> > > > [Environment]
> > > > CLUTTER_BACKEND=x11
> > > > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
> > > > DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path
> > > > DERBY_HOME=/usr/lib/jvm/java-8-oracle/db
> > > > DESKTOP_SESSION=xubuntu
> > > > DISPLAY=:0.0
> > > > GB_GUI=gb.qt4
> 

Re: [Gambas-user] XMLRPC-Server

2017-05-24 Thread Hans Lehmann


Hello Lee,

RpcServer.Listen relies on ServerSocket which is part of the gb.net component. 
The documentation does not specify that gb.net is
required for gb.xml.rpc, but it apparently is.

That's exactly. The missing components were added. Thanks for the hint.
The source code for the XMLRPC client and the XMLRPC server is attached. 
The project works - but unfortunately not as a web service - only 
locally. Where is the error? What should I do?


Sincerely
Hans


XMLRPCCA-0.0.15.tar.gz
Description: application/gzip


XMLRPCSA-0.1.1.tar.gz
Description: application/gzip
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] ​ Re: Keyboard locked -- insisting one more time

2017-05-24 Thread Fabien Bodard
We need to wait for Benoit as it's a misstake on the rev 8132.

It will be done as soon as possible, but like us he have only two
hands and many other things to do in his own life.

After the bug correcting you will have to wait a least one day to get
the update package from the daily built svn.

Regards,

Fabien Bodard

2017-05-24 6:23 GMT+02:00 Dimitris Anogiatis :
> Ok.. Gambas3 run as root? Not a good idea. I realize it's a much needed
> workaround but not the recommended one. I would go with what Cris suggested.
> I've run Gambas3 3.9.2 on a Virtualbox VM of Ubuntu Budgie 17.04 and as a
> normal user I've never had problems with the keyboard locking.
>
> Is there something that might be misconfigured on your VM perhaps (I mean
> on the Virtualbox settings)?
>
> On Mon, May 15, 2017 at 9:20 AM, Cristiano Guadagnino 
> wrote:
>
>> Fernando, did you try setting up a new user on your system and trying to
>> run gambas as the new user?
>>
>> Cris
>>
>>
>>
>>   
>>
>> Sent with Mailtrack
>> > referral=crigu...@gmail.com=22>
>>
>>
>> On Mon, May 15, 2017 at 12:53 PM, Fernando Cabral <
>> fernandojosecab...@gmail.com> wrote:
>>
>> > Gláucio
>> >
>> > I see our systems and environment are quite similar, although not exactly
>> > the same. Have you installed something different that might have changed
>> > the IDE behavior? If I have, I have not been able to determine what it
>> > could be. What I know for sure is that one moment everything was working,
>> > next moment it was not anymore. What happened in-between, I can not
>> figure
>> > out.
>> >
>> > Now, after running gambas as superuser ("sudo gambas3") I have given up
>> the
>> > keyboard hypothesis (at least for now). I went back to the hypothesis
>> that
>> > it has to do with some file or directory permission. Nevertheless, I have
>> > not been able to determine which file or directory it could be. As to the
>> > project tree, I have opened it up completely (rwxrwxrwx for the
>> directories
>> > and at least rw-rw-rw- for the files. Even for the hidden ones.  It did
>> not
>> > help.
>> >
>> > I have also searched for every single file and directory related to
>> gambas.
>> > For this I used searches like "locate -i --regex .*gambas.*" and "gbr3"
>> and
>> > "gbx3", etc. Saved the results to a file and checked file and directory
>> > permissions. I could not find and thing unexpected.
>> >
>> > I have exhausted my bag of tricks so I have resorted to either of two
>> ugly
>> > workarounds:  running gambas as superuser or doing the edition in a
>> virtual
>> > machine. In the last option, I just mount the project tree as a directory
>> > in the virtual machine. Then I make the changes in the virtual machine
>> and
>> > test them in the real machine. Cumbersome, but has worked.
>> > I would ask you to try running "sudo gambas3". If you can edit your files
>> > as superuser, then it will be very likely that we have exactly the same
>> > problem.
>> >
>> > Saudações
>> >
>> > - fernando
>> >
>> > 2017-05-14 18:19 GMT-03:00 Glaucio Araujo :
>> >
>> > > Hi,
>> > >
>> > > I'm having exactly the same problem here in Xubuntu 17.04 with Gambas
>> > 3.9.1
>> > > and 3.9.2(PPA).
>> > >
>> > >
>> > > My system information:
>> > >
>> > > [System]
>> > > Gambas=3.9.2
>> > > OperatingSystem=Linux
>> > > Kernel=4.10.0-20-generic
>> > > Architecture=x86_64
>> > > Distribution=Ubuntu 17.04
>> > > Desktop=XFCE
>> > > Theme=Gtk
>> > > Language=pt_BR.UTF-8
>> > > Memory=3829M
>> > >
>> > > [Libraries]
>> > > Cairo=libcairo.so.2.11400.8
>> > > Curl=libcurl.so.4.4.0
>> > > DBus=libdbus-1.so.3.14.7
>> > > GStreamer=libgstreamer-1.0.so.0.1004.0
>> > > GTK+2=libgtk-x11-2.0.so.0.2400.31
>> > > GTK+3=libgtk-3.so.0.2200.11
>> > > OpenGL=libGL.so.1.2.0
>> > > Poppler=libpoppler.so.64.0.0
>> > > QT4=libQtCore.so.4.8.7
>> > > QT5=libQt5Core.so.5.7.1
>> > > SDL=libSDL-1.2.so.0.11.4
>> > > SQLite=libsqlite3.so.0.8.6
>> > >
>> > > [Environment]
>> > > CLUTTER_BACKEND=x11
>> > > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
>> > > DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path
>> > > DERBY_HOME=/usr/lib/jvm/java-8-oracle/db
>> > > DESKTOP_SESSION=xubuntu
>> > > DISPLAY=:0.0
>> > > GB_GUI=gb.qt4
>> > > GDMSESSION=xubuntu
>> > > GLADE_CATALOG_PATH=:
>> > > GLADE_MODULE_PATH=:
>> > > GLADE_PIXMAP_PATH=:
>> > > GTK_MODULES=gail:atk-bridge
>> > > GTK_OVERLAY_SCROLLING=0
>> > > HOME=
>> > > J2REDIR=/usr/lib/jvm/java-8-oracle/jre
>> > > J2SDKDIR=/usr/lib/jvm/java-8-oracle
>> > > JAVA_HOME=/usr/lib/jvm/java-8-oracle
>> > > JOURNAL_STREAM=8:23426
>> > > LANG=pt_BR.UTF-8
>> > > LANGUAGE=pt_BR:pt:en
>> > > LOGNAME=
>> > > MANDATORY_PATH=/usr/share/gconf/xubuntu.mandatory.path
>> > > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/
>> > > sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/
>> > >