[Gambas-devel] Gambas Memory leak ... (?!)
Gareth Bult
gareth at ...560...
Wed Jan 21 00:30:10 CET 2009
Hi,
My Webcam demo is looking good, it runs <x> V4L[1|2] cameras in tandem .. indeed I left two cameras running earlier and have just returned to find gbx3 has run out of memory at 1.8Gb. Having traced through the code, nothing I'm doing inside that loop is allocating memory .. directly .. :(
Indeed I can only see two possible leaks;
a. In Gambas on the line;
pic.Picture = $device.Image.Picture
(which is the line the code errored on ..)
b. In CWebcam.c on the line;
GB.ReturnObject(IMAGE.Create(THIS->w,THIS->h,GB_IMAGE_BGR,THIS->frame));
Does anything spring to mind ???
... just double-double checked .. I can't see any other possibilities .. ???
Gareth.
--
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20090120/988e044b/attachment.html>
More information about the Devel
mailing list