I have just been updating some code to use the new fancy core image stuff and
it’s working really great. I’ve noticed however that there seems to be a memory
leak that happens whenever I call CIImage.renderImage. I seem to lose a
“CGLQueryRenderInfo” almost, but not every time I call to render a CIImage.
According to Instruments just doing this will leak between 10 and 14 of them,
but not 50 of them as you would expect…
dim ci as CIImageMBS
dim p as new Picture( 400, 400)
p.Graphics.fillrect( 0, 0, 30, 30)
dim i as integer
for i = 0 to 50
ci = CIImageMBS.imageWithPicture( p)
call ci.RenderPicture
next
They are small structures is looks like, 272 bytes or so, but when you’re
rendering several dozen frames a second with it they add up fairly quickly…
I’ve tested this with the latest Xojo release and the 162pr3 plugins. Am I
supposed to be doing something to clear up the structures used by that? I know
the context object has a releaseResources method, but I don’t see any such
thing in the CIImageMBS class, other than release handle which I think I
understand should only be used after I call to retain handle first ;) Indeed it
does just crash if I double free it ;)
Thanks,
James
James Sentman http://www.PlanetaryGear.org
http://MacHomeAutomation.com
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info