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)
Clear all Memory used by GDPicture?
Re: Clear all Memory used by GDPicture?
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
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
Re: Clear all Memory used by GDPicture?
hmm, I created a simple app using some of our code to clarify the issue and created a support ticket.
Who is online
Users browsing this forum: No registered users and 2 guests