Cannot load a specific DWG file

1
Emilsson
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 4.0.38.141. The file loads fine in Autocad (2018).

Best regards
Tomas Emilsson

Wout
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

Emilsson
1/31/2019 3:31 PM

Thanks Wout! :D

1