[Gambas-user] Memory leak 2

2014-01-13 Thread Wolfgang
Hello Benoît, I found another strange behaviour: snip Dim i As Long Dim s As String s = "1234567890abcdefghij1234567890abcdefghij1234567890abcdefghij1234567890abcdefghij1234567890abcdefghi" ' s has 99 Bytes plus the "\n", so we have 100Bytes for each line For i = 1 To 1000 TextAre

Re: [Gambas-user] Memory leak...

2014-01-09 Thread Wolfgang
Hello Benoît! With using the Gambas3.5.2-1precise1 the leak is gone! Thank you very much! Now the sun is beaming again!!! Wolfgang Am 08.01.2014 06:26, schrieb Wolfgang: >> >> Hi, >> >> The memory leak has been fixed in revision #6071. >> >> I will merge it with the 3.5.2 coming soon. >> >> Re

Re: [Gambas-user] Memory leak...

2014-01-07 Thread Wolfgang
Am 08.01.2014 01:06, schrieb Benoît Minisini: > Le 07/01/2014 19:39, Wolfgang a écrit : >> Am 07.01.2014 13:13, schrieb Benoît Minisini: >>> Le 07/01/2014 12:15, Wolfgang a écrit : >>> Sure, here it is. Just want to save memory space (again ;-) >>> Please send the contents of the system inform

Re: [Gambas-user] Memory leak...

2014-01-07 Thread Benoît Minisini
Le 07/01/2014 19:39, Wolfgang a écrit : > Am 07.01.2014 13:13, schrieb Benoît Minisini: >> Le 07/01/2014 12:15, Wolfgang a écrit : >> >>> Sure, here it is. Just want to save memory space (again ;-) >> >> Please send the contents of the system information dialog of the IDE. >> > As i am not sure if

Re: [Gambas-user] Memory leak...

2014-01-07 Thread Wolfgang
Am 07.01.2014 13:13, schrieb Benoît Minisini: > Le 07/01/2014 12:15, Wolfgang a écrit : > >> Sure, here it is. Just want to save memory space (again ;-) > > Please send the contents of the system information dialog of the IDE. > As i am not sure if my last post came through I send it again : [Syst

Re: [Gambas-user] Memory leak...

2014-01-07 Thread Wolfgang
Hello Benoît, I have sent it, but it says: "Your mail to 'Gambas-user' with the subject Re: [Gambas-user] Memory leak... Is being held until the list moderator can review it for approval." Wolfgang --

Re: [Gambas-user] Memory leak...

2014-01-07 Thread Benoît Minisini
Le 07/01/2014 11:45, Wolfgang a écrit : > Hello all, > > I am using Gambas 3.5.1 on a Ubuntu 12.04.3 LTS system with 2Gb of RAM. > > I made a short example to show my problem. Not a very useful code, but > it shows my problem! > > In the form I habe a Button called "ButtonStart" and a Picturebox1.

[Gambas-user] Memory leak...

2014-01-07 Thread Wolfgang
Hello all, I am using Gambas 3.5.1 on a Ubuntu 12.04.3 LTS system with 2Gb of RAM. I made a short example to show my problem. Not a very useful code, but it shows my problem! In the form I habe a Button called "ButtonStart" and a Picturebox1. Here is the code: Public Img As New Image Public

Re: [Gambas-user] Memory problems with Gambas3

2012-02-27 Thread Jussi Lahtinen
> If you see the gbx3 process memory becoming huge (in the KDE task > manager for example), then the problem is in Gambas. > > If the problem is in the nvidia driver, you should see the xorg process > becoming huge. > Yeah, logs shows that Xorg was closed due it hogging over 6 GB of memory. Juss

Re: [Gambas-user] Memory problems with Gambas3

2012-02-26 Thread Benoît Minisini
Le 26/02/2012 22:49, Jussi Lahtinen a écrit : > I reverted week back in revision, but I cannot reproduce the bug anymore. > Maybe this has something to do with nvidia drivers, they don't seem to be > very stable. > > Jussi > If you see the gbx3 process memory becoming huge (in the KDE task manage

Re: [Gambas-user] Memory problems with Gambas3

2012-02-26 Thread Jussi Lahtinen
I reverted week back in revision, but I cannot reproduce the bug anymore. Maybe this has something to do with nvidia drivers, they don't seem to be very stable. Jussi On Sun, Feb 26, 2012 at 21:39, Jussi Lahtinen wrote: > Qt4, but I think it happened also with GTK+. > > I tried to repeat the b

Re: [Gambas-user] Memory

2012-02-26 Thread Fabien Bodard
Le 26 février 2012 21:28, Benoît Minisini a écrit : > Le 26/02/2012 21:14, Benoît Minisini a écrit : >> Le 26/02/2012 15:24, Fabien Bodard a écrit : >>> Why in these example the memory seem to be not freed ? >>> >> >> I have looked that for two hours, and my conclusion is that Gambas frees >> the

Re: [Gambas-user] Memory

2012-02-26 Thread Benoît Minisini
Le 26/02/2012 21:14, Benoît Minisini a écrit : > Le 26/02/2012 15:24, Fabien Bodard a écrit : >> Why in these example the memory seem to be not freed ? >> > > I have looked that for two hours, and my conclusion is that Gambas frees > the memory by telling the glibc to do so, but the glibc actually

Re: [Gambas-user] Memory

2012-02-26 Thread Fabien Bodard
Le 26 février 2012 21:14, Benoît Minisini a écrit : > Le 26/02/2012 15:24, Fabien Bodard a écrit : >> Why in these example the memory seem to be not freed ? >> > > I have looked that for two hours, and my conclusion is that Gambas frees > the memory by telling the glibc to do so, but the glibc act

Re: [Gambas-user] Memory

2012-02-26 Thread Benoît Minisini
Le 26/02/2012 15:24, Fabien Bodard a écrit : > Why in these example the memory seem to be not freed ? > I have looked that for two hours, and my conclusion is that Gambas frees the memory by telling the glibc to do so, but the glibc actually does not free it! So the leak does not come from Gamb

Re: [Gambas-user] Memory problems with Gambas3

2012-02-26 Thread Jussi Lahtinen
Qt4, but I think it happened also with GTK+. I tried to repeat the bug with GTK+ to make sure, but when I removed the workaround, nothing happened. And now nothing happens also with Qt4!?!? I don't know what has changed. System update... something with new Gambas revision...? No idea. Right now

Re: [Gambas-user] Memory problems with Gambas3

2012-02-26 Thread Benoît Minisini
Le 25/02/2012 23:06, Jussi Lahtinen a écrit : > I can't manage to isolate the problem and I can't send the source. > > Right now I'm using following workaround; > > Draw.Begin(tmpPic) > Draw.Image(imgKoko, 0, 0) > Draw.Image(imgKarVe, 0, 0) > Draw.Picture(picKohdistin, I.KarX - 12, I.KarY - 12) > D

[Gambas-user] Memory

2012-02-26 Thread Fabien Bodard
Why in these example the memory seem to be not freed ? -- Fabien Bodard Leak-0.0.1.tar.gz Description: GNU Zip compressed data -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of

Re: [Gambas-user] Memory problems with Gambas3

2012-02-25 Thread Jussi Lahtinen
I can't manage to isolate the problem and I can't send the source. Right now I'm using following workaround; Draw.Begin(tmpPic) Draw.Image(imgKoko, 0, 0) Draw.Image(imgKarVe, 0, 0) Draw.Picture(picKohdistin, I.KarX - 12, I.KarY - 12) Draw.End() Draw.Picture(tmpPic, 0, 0) So, using temporary

Re: [Gambas-user] Memory problems with Gambas3

2012-02-19 Thread Rolf-Werner Eilert
Am 19.02.2012 23:15, schrieb Benoît Minisini: > Le 19/02/2012 22:52, Jussi Lahtinen a écrit : >> Unfortunately I can't send the project. But I keep on trying to isolate the >> problem. >> I'm pretty sure leak is from Gambas as it is fixed by commenting out the >> three lines. >> >> Jussi >> >> > >

Re: [Gambas-user] Memory problems with Gambas3

2012-02-19 Thread Benoît Minisini
Le 19/02/2012 22:52, Jussi Lahtinen a écrit : > Unfortunately I can't send the project. But I keep on trying to isolate the > problem. > I'm pretty sure leak is from Gambas as it is fixed by commenting out the > three lines. > > Jussi > > I can't do anything without seeing the source of your proje

Re: [Gambas-user] Memory problems with Gambas3

2012-02-19 Thread Benoît Minisini
Le 19/02/2012 23:04, M. Cs. a écrit : > I have similar issue: > I have a module and private subs in it. I'm using string arrays > declared inside that SUB. The SUB is invoked when I scan some > folders/files. The memory consumption rises during this scan by around > 30 MB, which is quite normal, si

Re: [Gambas-user] Memory problems with Gambas3

2012-02-19 Thread M. Cs.
I have similar issue: I have a module and private subs in it. I'm using string arrays declared inside that SUB. The SUB is invoked when I scan some folders/files. The memory consumption rises during this scan by around 30 MB, which is quite normal, since I'm feeding memory with huge amount of data.

Re: [Gambas-user] Memory problems with Gambas3

2012-02-19 Thread Jussi Lahtinen
ld pictures > and was a brain teaser. > -Fernando > > > -- Original Message --- > From: Benoît Minisini > To: mailing list for gambas users > Sent: Sun, 19 Feb 2012 19:30:31 +0100 > Subject: Re: [Gambas-user] Memory problems with Gambas3 > > > Le

Re: [Gambas-user] Memory problems with Gambas3

2012-02-19 Thread Jussi Lahtinen
Unfortunately I can't send the project. But I keep on trying to isolate the problem. I'm pretty sure leak is from Gambas as it is fixed by commenting out the three lines. Jussi 2012/2/19 Benoît Minisini > Le 19/02/2012 19:12, Jussi Lahtinen a écrit : > > Hi! > > I was debugging huge project

Re: [Gambas-user] Memory problems with Gambas3

2012-02-19 Thread Benoît Minisini
Le 19/02/2012 22:08, nando a écrit : > I had a similar huge problem with pictures. > I found it to be this: > When I made a new picture, even if using an existing control, > the old picture still consumed the memory - it wasn't freed. > I solved it by doing (recalling from memory so I may have synt

Re: [Gambas-user] Memory problems with Gambas3

2012-02-19 Thread nando
d the memory then making the new picture. It chewed up all the memory keeping the old pictures and was a brain teaser. -Fernando -- Original Message --- From: Benoît Minisini To: mailing list for gambas users Sent: Sun, 19 Feb 2012 19:30:31 +0100 Subject: Re: [Gambas-user] M

Re: [Gambas-user] Memory problems with Gambas3

2012-02-19 Thread Benoît Minisini
Le 19/02/2012 19:12, Jussi Lahtinen a écrit : > Hi! > I was debugging huge project to find out why it's execution is slowed down > to unusable, when suddenly screen went blank and I was logged out. > Reason found from logs: Killed process 1264 (Xorg) total-vm:6406864kB, > anon-rss:2751124kB, file-r

[Gambas-user] Memory problems with Gambas3

2012-02-19 Thread Jussi Lahtinen
Hi! I was debugging huge project to find out why it's execution is slowed down to unusable, when suddenly screen went blank and I was logged out. Reason found from logs: Killed process 1264 (Xorg) total-vm:6406864kB, anon-rss:2751124kB, file-rss:784kB So I ran out of memory. This shouldn't happen,

Re: [Gambas-user] Memory Stream Help

2011-11-25 Thread Randall Morgan
Thanks Benoit, This should help. Randy 2011/11/25 Benoît Minisini > > > > Hi, > > > > In revision #4257, I have added support for extern functions that return > > a pointer to a C structure. > > > > ... > > Note that passing or receiving structures by value is not supported. > > -- > Benoît M

Re: [Gambas-user] Memory Stream Help

2011-11-25 Thread Benoît Minisini
> > Hi, > > In revision #4257, I have added support for extern functions that return > a pointer to a C structure. > > ... Note that passing or receiving structures by value is not supported. -- Benoît Minisini -- All

Re: [Gambas-user] Memory Stream Help

2011-11-25 Thread Benoît Minisini
Le 22/11/2011 18:56, Randall Morgan a écrit : > I do the C structures defined. But the functions return pointers to the > structures created by Tidy. So I have to Read the data into my local copy > using the pointer returned. Which I feel is very inefficient. I have just > started to play around wi

Re: [Gambas-user] Memory Stream Help

2011-11-22 Thread Randall Morgan
I do the C structures defined. But the functions return pointers to the structures created by Tidy. So I have to Read the data into my local copy using the pointer returned. Which I feel is very inefficient. I have just started to play around with defining offset values for each location in the str

Re: [Gambas-user] Memory Stream Help

2011-11-21 Thread Benoît Minisini
Le 20/11/2011 05:42, Randall Morgan a écrit : > Hi All, > > Can someone give me a sample of using memory streams to read and write data > to/from memory. > > I am needing to read data from a C structure allocated by the external > library (tidy) with the pointer returned to Gambas. > > I read the p

Re: [Gambas-user] Memory Stream Help

2011-11-20 Thread Randall Morgan
Thanks, I worked out my issue was I was passing a null pointer to the memory function and then calling my external function. The error I kept getting was a type mismatch and did not make sense to me as the docs led me to believe that the Memory steam was a declaration, not a function on an actual p

Re: [Gambas-user] Memory Stream Help

2011-11-20 Thread Jussi Lahtinen
Sorry, hStream = Memory pPointer For Read Jussi On Sun, Nov 20, 2011 at 16:17, Jussi Lahtinen wrote: > I don't have any simple runnable example right now, so I hope this helps: > > Dim pPointer As Pointer > Dim hStream As Stream > Dim iYourData As Integer > Dim ii As Integer > Dim iNumberOfDat

Re: [Gambas-user] Memory Stream Help

2011-11-20 Thread Jussi Lahtinen
I don't have any simple runnable example right now, so I hope this helps: Dim pPointer As Pointer Dim hStream As Stream Dim iYourData As Integer Dim ii As Integer Dim iNumberOfDataPoints As Integer = x Dim itmp As Integer pPointer = Alloc(SizeOf(gb.Integer), iNumberOfDataPoints) ExternalFunction

[Gambas-user] Memory Stream Help

2011-11-19 Thread Randall Morgan
Hi All, Can someone give me a sample of using memory streams to read and write data to/from memory. I am needing to read data from a C structure allocated by the external library (tidy) with the pointer returned to Gambas. I read the page on external libraries many times before learning the Gamb

Re: [Gambas-user] Memory management

2010-12-12 Thread Benoît Minisini
> Hi, > > i can tell that there is a missing part in Overview of > http://gambasdoc.org/help/lang > > It would be very useful a section about memory management with pointer > relative subjects such Alloc(), pointers etc > > What do you say? The section is actually "External function management"

[Gambas-user] Memory management

2010-12-01 Thread Demosthenes Koptsis
Hi, i can tell that there is a missing part in Overview of http://gambasdoc.org/help/lang It would be very useful a section about memory management with pointer relative subjects such Alloc(), pointers etc What do you say? -- Regards, Demosthenes Koptsis. --