Thanks Paulo - that's exactly what this smells like.
-----Original Message-----
From: Paulo Soares [mailto:
psoares@...]
Sent: Tuesday, June 23, 2009 11:44 AM
To: Post all your questions about iTextSharp here
Subject: Re: [itextsharp-questions] Stack overflow using PdfWriter
It's probably a bug caused by a lousy tree implementation. There's another
problem in all this in that the tree is only needed when altering docs in
append mode but it's used in all the cases even when 99% of the time a
simple ArrayList would do. I'll try to find a better tree for .NET 1.1.
Paulo
> -----Original Message-----
> From: Gylfi Ingvason [mailto:
Gylfi.Ingvason@...]
> Sent: Tuesday, June 23, 2009 4:25 PM
> To: 'Post all your questions about iTextSharp here'
> Subject: Re: [itextsharp-questions] Stack overflow using PdfWriter
>
> Thank you guys.
>
> The job runs to completion with 8 MB of stack using PdfSmarCopy. It
> still dies with 16 MB using PdfWriter. I've now increased the stack to
> 80 MB and the job is still cooking.
>
> I was aware of the need to bump the stack for large operations, but
> when you go beyond 20 MB of stack space when processing 200 MB of
> data, then, in my opinion, something is not right. Keeping a tree
> balanced should not require that much stack. For my job, we're talking
> roughly 35,000 pages, which is quite a bit, but not astronomical by
> any standards.
> I may experiment with increasing the branch size from 10 to a 100 and
> see if that makes a difference, but to me, this sounds like a bug, and
> if fixed, it will likely also increase processing speed dramatically
> for large files.
>
> Gylfi
>
> ________________________________
>
> From: Adrian Rotaru [mailto:
adrian.rotaru@...]
> Sent: Tuesday, June 23, 2009 3:47 AM
> To: Post all your questions about iTextSharp here
> Subject: Re: [itextsharp-questions] Stack overflow using PdfWriter
>
>
> I also had to increase the stack size to make it work..
>
> Adrian
>
>
>
>
> ----- Original Message -----
> From: Fabrizio Accatino <mailto:
fhtino@...>
> To:
Gylfi.Ingvason@... ; Post all your questions
about
6a90804080219u3c60cf17k8ab46345950764f6> @mail.gmail.com&forum_name=itex
6a90804080219u3c60cf17k8ab46345950764f6> tsharp-questions
bunch of
> files using
> PdfWriter. This occurs in Tree.cs
> (/trunk/src/coreSystem/util/Collections)
> where the private Insert member appears to get into a state
where it
> calls
> itself recursively until an exception occurs.
>
>
> ........
Aviso Legal:
Esta mensagem i destinada exclusivamente ao destinatario. Pode conter
informagco confidencial ou legalmente protegida. A incorrecta transmissco
desta mensagem nco significa a perca de confidencialidade. Se esta mensagem
for recebida por engano, por favor envie-a de volta para o remetente e
apague-a do seu sistema de imediato. I proibido a qualquer pessoa que nco o
destinatario de usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may
contain confidential or legally protected information. The incorrect
transmission of this message does not mean the loss of its confidentiality.
If this message is received by mistake, please send it back to the sender
and delete it from your system immediately. It is forbidden to any person
who is not the intended receiver to use, distribute or copy any part of this
message.
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions