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

2017-05-25 Thread PICCORO McKAY Lenz
hi jussi, i'll will send to you the code by private mail, in some hours to get more clarelly the problem.. and appreciate your help Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-25 15:34 GMT-04:30 Jussi Lahtinen : > The code you sent is not

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

2017-05-25 Thread Jussi Lahtinen
The code you sent is not runnable. So there is obviously something more. Why you cannot debug it? Just run the project in the IDE and when things go slow hit pause and see what is inside of the collection. Jussi On Thu, May 25, 2017 at 10:56 PM, PICCORO McKAY Lenz

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

2017-05-25 Thread PICCORO McKAY Lenz
as code i send, only contanis two connection objects, one for odbc and other for sqlite but i cannot see or debug it, due the interface does not show nothing ... Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-25 15:31 GMT-04:00 Jussi Lahtinen :

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

2017-05-25 Thread Jussi Lahtinen
Have you checked what the collection contains, when the system slows down? Maybe the containing strings are longer than what you expect? Or maybe there are more elements than you expect? How much the running program takes memory, when things get slow? Jussi On Thu, May 25, 2017 at 8:21 PM,

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

2017-05-25 Thread PICCORO McKAY Lenz
hi Jussi, the Mem are 4G , the machine are Dell vostro 210 with i7 intel well complete history its that many days before i run several times gambas without close it, but in none moment used collections.. today only with project where i used collections gambas get slower after some hours... Lenz

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

2017-05-25 Thread Jussi Lahtinen
Collection requires more memory than string array, so maybe your box is just swapping, because of low memory? Jussi On Thu, May 25, 2017 at 6:00 AM, PICCORO McKAY Lenz wrote: > there are the piece of code and here there's no secret: > > Public Function getItems() As

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

2017-05-25 Thread Unaise EK
Sir one more help, Public Sub Save_button_Click() Dim InsertDb As String 'Dim Dx As Date 'Format(Dx, "dd/mm/") InsertDb = "INSERT INTO name_tbl (adm, name, place, date_ad) VALUES ('" & (TextBox1.Text) & "','" & (TextBox2.Text) & "', '" & (TextBox3.Text) & "', '" & DateBox1.Value & "' )"

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

2017-05-25 Thread Unaise EK
Sir one more help, Public Sub Save_button_Click() Dim InsertDb As String 'Dim Dx As Date 'Format(Dx, "dd/mm/") InsertDb = "INSERT INTO name_tbl (adm, name, place, date_ad) VALUES ('" & (TextBox1.Text) & "','" & (TextBox2.Text) & "', '" & (TextBox3.Text) & "', '" & DateBox1.Value & "' )"

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

2017-05-25 Thread Unaise EK
Thanks, it is working On 25 May 2017 3:11 p.m., "Jorge Carrión" wrote: > Try > > Public Procedure AddList() > Dim ListQurey As String > Dim Lresult As Result > > ListQurey = "SELECT name FROM name_tbl" > Lresult = MODMain.MyConn.Exec(ListQurey) > 'If Lresult.Count >

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

2017-05-25 Thread Jorge Carrión
Try Public Procedure AddList() Dim ListQurey As String Dim Lresult As Result ListQurey = "SELECT name FROM name_tbl" Lresult = MODMain.MyConn.Exec(ListQurey) 'If Lresult.Count > 0 Then '* Do While Not Eof(Lresult)* while Lresult.available ListBox1.Add(Lresult!"name")

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

2017-05-25 Thread Unaise EK
this is my code for displaying data in listbox, but it did not working, pls help Public Procedure AddList() Dim ListQurey As String Dim Lresult As Result ListQurey = "SELECT name FROM name_tbl" Lresult = MODMain.MyConn.Exec(ListQurey) If Lresult.Count > 0 Then * Do While Not

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

2017-05-25 Thread Unaise EK
can you give example for DO WHILE NOT database EOF Loop Sent with Mailtrack On Thu, May 25, 2017 at 8:30 AM, PICCORO McKAY Lenz wrote: > there are the piece of code

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

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

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

[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