On Thursday 28 December 2006 23:34, Aitor Tomas wrote:
> The documents are generated from fields that I get from DB. Each field
> represents one table of several rows.
> With 1250 tables I get a document of 25M without problem.
> With 2500 tables I get the OutOfMemory error.
>
> What's the problem? Am I misunderstanding setDataCacheStyle? How can I know
> if it is really using CACHE_DISK
> instead of CACHE_MEMORY? Is it bug? Is there any solution to this? I have
> read aomething about patching
> the source code.
The data cache method just sets where the different document streams, that the 
final RTF document is made up of, are stored. Each object has to be created 
in memory first and if you are generating very large objects, this will 
probably be the problem. Perhaps you could post the stack trace from where 
you get the OutOfMemory exception. Then I can determine if it is a bug in the 
caching after all.

Greetings,
Mark
-- 
Things will be bright in P.M.  A cop will shine a light in your face.

My GPG public key is available at:
http://www.edu.uni-klu.ac.at/~mhall/data/security/MarkHall.asc

Attachment: pgpZlPfmXZES0.pgp
Description: PGP signature

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to