PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Out of Memory during RenderingDocument https://forum.pdfsharp.net/viewtopic.php?f=3&t=4313 |
Page 1 of 1 |
Author: | UweGabbert [ Wed Jan 12, 2022 10:48 am ] |
Post subject: | Out of Memory during RenderingDocument |
I use Migradoc / PDFSharp for creation a invoice. On the most machines it work. On some machines I get a out of memory exception during rendering. The same document work on a other machine. I use a 64-bit System with 8 or 16 GB RAM. The result PDF is most < 2MB. |
Author: | TH-Soft [ Wed Jan 12, 2022 12:15 pm ] |
Post subject: | Re: Out of Memory during RenderingDocument |
Could not reproduce. https://xkcd.com/583/ |
Author: | UweGabbert [ Wed Jan 12, 2022 2:15 pm ] |
Post subject: | Re: Out of Memory during RenderingDocument |
Can I save the document before rendering? |
Author: | TH-Soft [ Wed Jan 12, 2022 3:51 pm ] |
Post subject: | Re: Out of Memory during RenderingDocument |
UweGabbert wrote: I use a 64-bit System with 8 or 16 GB RAM. The result PDF is most < 2MB. If your code runs in a 32-bit process it cannot access more than 2 GiB of RAM. Try running in a 64-bit process to give it more RAM.But it is still unusual to break the 2 GiB limit with just a few pages and just a few images. Saving the MigraDoc document before rendering will probably not have a significant effect on the RAM usage. The PDF file is the result of rendering anyway. Which version of PDFsharp/MigraDoc are you using? viewtopic.php?f=2&t=832 |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |