Clear all Memory used by GDPicture?

General discussions about GdPicture.NET.
Post Reply
ITSWAJ
Posts: 4
Joined: Tue Dec 21, 2010 2:30 pm

Clear all Memory used by GDPicture?

Post by ITSWAJ » Thu Jan 17, 2013 6:24 pm

Is there any other method I might be missing to clear all memory used by GDPicture other than ".ClearGdPicture()" since that one doesn't seem to work most of the time.
especially if used in conjunction with the pdf class and/or ThumbnailEx and GDViewer.
and more importantly memory should be cleared if the Class that used it is desposed/destroyed. - doesn't seem to work reliably in 9.2 and is even worse in 9.3 (tested till 9.3.15 as of yet)

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

Re: Clear all Memory used by GDPicture?

Post by Loïc » Fri Jan 18, 2013 2:39 pm

Hello,

The .ClearGdPicture() is intended to release all GdPicture Image allocated in memory. In other words it not clear "all memory" used by the SDK.

To correctly liberate memory allocated by GdPicture objects just call the finalizer or the Dispose() method of each of them.
Also you should consider to see how the garbage collector works in .NET and try to use GC.Collect() to reclaim unused memory.

To check memory leak in your application you can also use memory profiler software such as memprofiler. See: http://memprofiler.com

Hope this brings some lights.

Kind regards,

Loïc

ITSWAJ
Posts: 4
Joined: Tue Dec 21, 2010 2:30 pm

Re: Clear all Memory used by GDPicture?

Post by ITSWAJ » Fri Jan 18, 2013 5:42 pm

hmm, I created a simple app using some of our code to clarify the issue and created a support ticket.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest