Cannot load a specific DWG file

1/31/2019 12:49 PM

When using DwgReader.Read to load the attached DWG file I get the following error.

Unhandled Exception: System.IO.EndOfStreamException: Attempted to read past the end of the stream.
at ?.?(Int32 ?, Byte[] ?)
at ?.?(Int32 ??)
at ?.?()
at ?.?(? ?, DxfAttributeBase ?)
at ?.?()
at ?.?(ProgressEventHandler ?)
at WW.Cad.IO.DwgReader.?()
at WW.Cad.IO.DwgReader.Read(DxfModel model)
at WW.Cad.IO.DwgReader.Read()
at WW.Cad.IO.DwgReader.Read(String filename, ProgressEventHandler progressEventHandler)
at WW.Cad.IO.DwgReader.Read(String filename)

I'm using Cadlib The file loads fine in Autocad (2018).

Best regards
Tomas Emilsson

1/31/2019 2:48 PM

Hi Tomas,

The bug has been fixed, please download the latest version from Your resources in your profile.

I also had to rework the text layout bug fix of a few days ago by the way.

Thank you for the report!

- Wout

1/31/2019 3:31 PM

Thanks Wout! :D