| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2008.02.02 21:09 "Re: Problem with large tiff images", by Bob FriesenhahnOn 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/ |
|||||||