You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, wiz0u. sometimes I get errors while downloading file, now it's like 1/10 downloads ends with error. (on production server)
Could you please check this part of code, that works with memory streem?
The exception describes itself like: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.\\n at System.IO.MemoryStream.set_Capacity(Int32 value)\\n at System.IO.MemoryStream.EnsureCapacity(Int32 value)\\n at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)\\n at System.IO.MemoryStream.WriteAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)\\n--- End of stack trace from previous location ---\\n at WTelegram.Client.<>c__DisplayClass144_0.<<DownloadFileAsync>g__LoadPart|0>d.MoveNext()\\n--- End of stack trace from previous location ---\\n at WTelegram.Client.DownloadFileAsync(InputFileLocationBase fileLocation, Stream outputStream, Int32 dc_id, Int64 fileSize, ProgressCallback progress)\\n at WTelegram.Client.DownloadFileAsync(Document document, Stream outputStream, PhotoSizeBase thumbSize, ProgressCallback progress)...
The text was updated successfully, but these errors were encountered:
Hello, wiz0u. sometimes I get errors while downloading file, now it's like 1/10 downloads ends with error. (on production server)
Could you please check this part of code, that works with memory streem?
The exception describes itself like:
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.\\n at System.IO.MemoryStream.set_Capacity(Int32 value)\\n at System.IO.MemoryStream.EnsureCapacity(Int32 value)\\n at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)\\n at System.IO.MemoryStream.WriteAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)\\n--- End of stack trace from previous location ---\\n at WTelegram.Client.<>c__DisplayClass144_0.<<DownloadFileAsync>g__LoadPart|0>d.MoveNext()\\n--- End of stack trace from previous location ---\\n at WTelegram.Client.DownloadFileAsync(InputFileLocationBase fileLocation, Stream outputStream, Int32 dc_id, Int64 fileSize, ProgressCallback progress)\\n at WTelegram.Client.DownloadFileAsync(Document document, Stream outputStream, PhotoSizeBase thumbSize, ProgressCallback progress)...
The text was updated successfully, but these errors were encountered: