CsvHelper.ReaderException: System.OutOfMemoryException #1519
Replies: 3 comments
-
If you have a To conserve memory you could use a |
Beta Was this translation helpful? Give feedback.
-
Dear Josh, Thanks for response, Am writing output records to a file with few modifications |
Beta Was this translation helpful? Give feedback.
-
Dear Josh, As per your suggestion , I have removed StringReader and used StreamReader, Yet I have noticed out of memory exception, below is the code
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Am reading around 200k records
It throws an exception (CsvHelper.ReaderException: An unexpected error occurred. ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Dynamic.ExpandoObject.ExpandoData.UpdateClass(ExpandoClass newClass))
at below line of code
var record = csv.GetRecord() as IDictionary<string, object>;
If am doing wrong please specify
Below is the code
Beta Was this translation helpful? Give feedback.
All reactions