Memory Usage with hDib

If one experiences that the system is running out of resources or experiences a memory leak in an application then the most likely cause of it is that the hDib is not freed up. The hDib object is used to store loaded images and the hDib object has to be freed once it is not needed. The Document Imaging SDK ActiveX control’s DropDIB or DropBitmap method should be used. Make sure that the hDib variable is not over written.

For example: hDib = hTempDib where hDib is a current image and the hTempDib is a new rotated image.