AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
January 2006

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2006.01.30 06:18 "TIFFClose(var) doesnt release memory", by Pradeep Bala
2006.01.30 15:24 "Re: TIFFClose(var) doesnt release memory", by Bob Friesenhahn
2006.01.30 15:30 "Re: TIFFClose(var) doesnt release memory", by Bob Friesenhahn

2006.01.30 06:18 "TIFFClose(var) doesnt release memory", by Pradeep Bala

I ran the following code on
WinXP Pro - AMD athlon 1.1Ghz and 1 GB RAM Machine., VStudio 6.0

I dont see TIFFClose(image) release memory back to the system.
As I kept checking the RAM taken by this program it kept on increasing and
never decreased

Is it possible to make sure that the memory is released back to the system ?

According to the manual for TIFFClose() -- memory should be released but I
dont see it.., can someone point out why ?


Thanks in advance !


/**** CODE FOLLOWS *****/

 TIFF *image;

while( listof_files < totalfiles )
    {
            if((image = TIFFOpen(s.c_str(), "r")) == NULL)
            {
                // BAD TIFF IMAGE
               listof_files++;
                 continue;

            }
            else
            {
                // GOOD TIFF IMAGE
                listof_files++;
             }
              TIFFClose(image);

      }