Products
CadLib
CadLib 4.0
Overview
Features
Editions
Pricing
Version history
Testimonials
CadLib 3.5
Overview
Features
Editions
Pricing
Version history
Testimonials
CadLib 2.0
Overview
Features
Editions
Pricing
Version history
Testimonials
CadLib 1.1
Overview
DXF Sharp Viewer
WW.Math
WW.Math 2.0
Overview
Features
Editions
Pricing
Version history
WW.Math 3.5
Overview
Features
Editions
Pricing
Version history
WW.GL
WW.GL 2.0
Overview
Features
Editions
Pricing
Version history
WW.GL 3.5
Overview
Features
Editions
Pricing
Version history
Links
Contact
Forum
Jobs
September 07, 2010, 08:32:41 am
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
Wout Ware
>
CadLib
>
Bugs & issues
>
EndOfStreamException reading dwg file
Pages: [
1
]
« previous
next »
Print
Author
Topic: EndOfStreamException reading dwg file (Read 257 times)
morque
Member
Posts: 5
EndOfStreamException reading dwg file
«
on:
March 10, 2010, 10:21:51 pm »
I updated the library a few days ago. We have several dwg files that always have worked perfectly except one (sended you by email).
The exception is an EndOfStreamException on line 3.
1 DxfModel md;
2 if (string.Compare(Path.GetExtension(_file), ".dwg", true) == 0){
3 md = DwgReader.Read(_file);
4 }else {
5 //wrong file type error
6 }
This dwg always worked in the previous version, With the rest of my dwg files the new version works fine.
Also I notice a strange behavior with text objects, we use the language Espaņol(Mexico), but with the new version, some letters change into japanise or text styles change. And wen I try to save a document into PDF format, sometimes the process just freeze, apparently in an infinite loop
This behavior only is present in the new version (3.5.6), the older works ok
Logged
morque
Member
Posts: 5
Re: EndOfStreamException reading dwg file
«
Reply #1 on:
March 24, 2010, 04:59:00 pm »
This is the error, hope this help
************** Exception Text **************
System.IO.EndOfStreamException: Attempted to read past the end of the stream.
at ..(Int32 length)
at ..()
at ..()
at ..()
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)
cheers
morque
Logged
wout
Administrator
Member
Posts: 828
Re: EndOfStreamException reading dwg file
«
Reply #2 on:
March 25, 2010, 02:19:13 pm »
Hi Morque,
Loading/display of the file you e-mailed me looked ok in CadLib 3.5.6.4, which version are you using?
Thanks!
Wout
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
CadLib
-----------------------------
=> Announcements
=> Questions and general support
=> Bugs & issues
=> Feature requests
-----------------------------
WW.GL
-----------------------------
=> Announcements
=> Questions and general support
=> Bugs & issues
=> Feature requests
-----------------------------
WW.Math
-----------------------------
=> Announcements
=> Questions and general support
=> Bugs & issues
=> Feature requests
-----------------------------
DXF Sharp Viewer
-----------------------------
=> Announcements
=> Questions and general support
=> Bugs & issues
=> Feature requests
Loading...