haplokuon / netDxf

.net dxf Reader-Writer
MIT License
966 stars 392 forks source link

A 32-bit program throws an exception of System.OutOfMemoryException #427

Open Ersoga opened 1 year ago

Ersoga commented 1 year ago

In the EncodingType class, an OutOfMemoryException is raised when a large FileStream is read. throw by the line: image

I made the following modifications: add function: image Modify the GetType function: image

haplokuon commented 1 year ago

I see why that method might fail in a 32 bit system with very big files, what I do not understand is why is giving you problems since that is old code not used anymore, I should have deleted it.