在從位元組開啟文件時發生錯誤 'bad allocation'
This article was translated from English: Does it need improvement?
TranslatedView the article in English
處理大型 PDF 文件對於某些企業來說可能非常重要。
使用 IronPDF 加載現有 PDF 檔案時,IronPDF 會分配一部分記憶體來儲存已加載的 PDF。 在32位元的應用程式中,每個進程的記憶體限制為2 GB。 加載超過500 MB的PDF文件可能會超出此限制,導致「bad allocation」異常。
例外訊息:
IronPdf.Exceptions.IronPdfNativeException: 'Error while opening document from bytes: 'bad allocation'.
解決方案
為了解決這個問題,請將應用程序設置為在64位上運行。