[Gambas-devel] Gambas Memory leak ... (?!)
Gareth Bult
gareth at ...560...
Wed Jan 21 03:49:20 CET 2009
Oh dear (!)
I'm afraid it looks like you've broken something .. when I try to load a project I get a Division by zero in Project.GetFileIcon.675 .. I'm also seeing lots of;
QImage::convertDepth: Image is a null image
QImage::convertDepth: Image is a null image
...
No projects will open ... I'm sort of guessing you'll know roughly where the problem is ??
Gareth.
----- Original Message -----
From: "Benoit Minisini" <gambas at ...1...>
To: gambas-devel at lists.sourceforge.net
Sent: Wednesday, 21 January, 2009 1:27:58 AM GMT +00:00 GMT Britain, Ireland, Portugal
Subject: Re: [Gambas-devel] Gambas Memory leak ... (?!)
On mercredi 21 janvier 2009, Benoit Minisini wrote:
> On mercredi 21 janvier 2009, Gareth Bult wrote:
> > Ok,
> >
> > I can tell you with 100% accuracy now where the problem is ..
> > GB.ReturnObject(IMAGE.Create(THIS->w,THIS->h,GB_IMAGE_BGR,THIS->frame));
> >
> > I replaced the Gambas with;
> >
> > 'pic.Picture = $device.Image.Picture
> > img = $device.Image
> >
> > To remove the picture conversion - no change.
> >
> > Then I replaced;
> >
> > GB.ReturnNull();
> > //GB.ReturnObject(IMAGE.Create(THIS->w,THIS->h,GB_IMAGE_BGR,THIS->frame)
> >);
> >
> > Memory usage is now 100% stable.
> >
> > :)
> >
> > Gareth.
>
> I have identified where the memory is leaked in gb.image. Now I must fix
> it....
OK, the memory leaks are fixed in revision #1806 (there were two memory
leaks!)
--
Benoit Minisini
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Gambas-devel mailing list
Gambas-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-devel
--
Managing Director, Encryptec Limited
Tel: 0845 5082719, Mob: 0785 3305393
Email: gareth at ...560...
Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request.
More information about the Devel
mailing list