How to free memory (using VB6)

Discussions about image processing and document imaging.
Post Reply
TriloBase
Posts: 1
Joined: Thu May 31, 2007 3:02 pm
Location: Belgium
Contact:

How to free memory (using VB6)

Post by TriloBase » Thu May 31, 2007 3:10 pm

Hello all,

I have a VB6 application that uses GDPicture Pro to show/view/zoom images.
After 10 or more big images, the applications begins slow down and and finally hangs. It seems that the memory is eaten (memory leak ???).

My question is : what is the best way to free memory ?

thank in advance.
Danny.

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

Post by Loïc » Thu May 31, 2007 3:36 pm

Hi,


The best way to free memory used by the gdpicture pro component is to release each image handle who are not used.
To release an image handle with the cGdPicture class you can use the CloseImage() method. https://www.gdpicture.com/references/gdp ... Image.html

Regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests