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
February 2008

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

2008.02.02 18:50 "Problem with large tiff images", by Jean-michel Frecinat
2008.02.02 21:09 "Re: Problem with large tiff images", by Bob Friesenhahn
2008.02.03 11:07 "Re: Problem with large tiff images", by Joris Van Damme

2008.02.02 21:09 "Re: Problem with large tiff images", by Bob Friesenhahn

On Sat, 2 Feb 2008, Jean-Michel FRECINAT wrote:

>
> Hi,
>  I am a developer in c# and c++ and i am working on tiff images. But i am
>  a problem when i try to save image (22000x9000 pixels and 30000x10000
>  pixels) i have an error "No space to output buffer".
> How to save a large tiff file with libtiff?

Since you use C# perhaps you are a .net user.  It is important to keep 
in mind that .net uses two heaps.  There is a heap used for memory 
managed by .net and a heap used for traditional C/C++ malloc/new. 
These two heaps compete with each other so .net programs which use 
some traditional C (like libtiff) have less memory available to use 
than pure .net or pure C/malloc() type programs. Also keep in mind 
that .net uses garbage collection and sometimes the garbage collector 
needs some assistance with knowing when/what should be freed.  It may 
take .net some time to destroy and object and the garbage collection 
is not triggered by "unsafe" C/C++ memory allocation.

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/