Image memory flush

Feature Requests for GdPicture.NET.
Post Reply
guruross
Posts: 47
Joined: Tue Jul 22, 2008 11:14 pm
Location: Redding, CA, USA
Contact:

Image memory flush

Post by guruross » Thu Jul 09, 2009 1:44 am

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

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Image memory flush

Post by Loïc » Thu Jul 16, 2009 12:57 am

Hi Ross,

This feature should be available into the next major release.

With best regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests