Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.OutOfMemoryException #455

Open
953579411 opened this issue Jul 16, 2023 · 3 comments
Open

System.OutOfMemoryException #455

953579411 opened this issue Jul 16, 2023 · 3 comments

Comments

@953579411
Copy link

System.OutOfMemoryException: 引发类型为“System.OutOfMemoryException”的异常。
在 System.IO.MemoryStream.set_Capacity(Int32 value)
在 System.IO.MemoryStream.EnsureCapacity(Int32 value)
在 System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
在 MS.Internal.IO.Zip.ZipIOCentralDirectoryFileHeader.Save(BinaryWriter writer)
在 MS.Internal.IO.Zip.ZipIOCentralDirectoryBlock.Save()
在 MS.Internal.IO.Zip.ZipIOBlockManager.SaveContainer(Boolean closingFlag)
在 MS.Internal.IO.Zip.ZipIOBlockManager.SaveStream(ZipIOLocalFileBlock blockRequestingFlush, Boolean closingFlag)
在 MS.Internal.IO.Zip.ZipIOModeEnforcingStream.Dispose(Boolean disposing)
在 System.IO.Stream.Close()
在 Xceed.Document.NET.Document.AddImage(Object o, String contentType)

@953579411
Copy link
Author

can not bigger than 2G?

@XceedBoucherS
Copy link
Collaborator

Hi,
What exactly are you doing to see this exception ?

Please send us a sample so we can reproduce it.

Thanks

@953579411
Copy link
Author

too many pics in docx.I had solved by replaced the MemoryStream with FileStream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants