[Gambas-devel] Gambas Memory leak ... (?!)

Benoit Minisini gambas at ...1...
Wed Jan 21 01:51:02 CET 2009


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....

-- 
Benoit Minisini




More information about the Devel mailing list