Hi,
In working with the GDPicuture library on a large project, I have run into some issues with memory creep over time. Granted, this comes from bad code logic not closing out images after the logic is done with them, but a useful feature for the GDPicture library would be a Flush method that would release any image handles still open.
As it is, at this point I am just about to create a helper method for the CreateNewImage and CreateImageFromFile methods that will place the returned image handle in a collection and a second method that will pop each collection entry, calling CloseImage to ensure proper memory management. Having this functionality subsumed into GDPicture its self would be beneficial.
Thanks,
-Ross
Image memory flush
Re: Image memory flush
Hi Ross,
This feature should be available into the next major release.
With best regards,
Loïc
This feature should be available into the next major release.
With best regards,
Loïc
Who is online
Users browsing this forum: No registered users and 1 guest