Crash with latest library
deanev
3/26/2014 6:42 PM
|
---|
I recently upgraded from 4.0.35.51 to 4.0.35.91
Now numerous DWG files that used to open fine when I called DwgReader.Read(file), now throw an exception of either:
System.ArgumentException {"An item with the same key has already been added."}
System.NullReferenceException {"Object reference not set to an instance of an object."}
If needed I may be able to provide demo files for these errors, but since the files belong to our clients I would need clearance first.
thanks
Deane
|
deanev
3/26/2014 7:37 PM
|
---|
Stack for exceptions:
System.NullReferenceException {"Object reference not set to an instance of an object."}
at WW.Cad.Model.Objects.Annotations.DxfHatchScaleContextData..ctor(DxfHatch hatch, DxfScale scale)
at WW.Cad.Model.Entities.DxfHatch.CreateContextData(DxfScale s)
at WW.Cad.Model.Objects.Annotations.DxfAnnotationScaleObjectContextData. (DxfEntity obj)
at WW.Cad.Model.Entities.DxfHatch. ()
at . . ()
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)
System.ArgumentException {"An item with the same key has already been added."}
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at WW.Cad.Model.CloneContext.RegisterClone(IGraphCloneable sourceObject, IGraphCloneable clonedObject)
at . . ()
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)
|
Wout
3/26/2014 7:55 PM
|
---|
Hi,
Could you send one of these files to us? Looks like a bug in the annotation scale code (which is partially implemented at the moment, but almost completed).
- Wout
|
deanev
3/27/2014 6:40 PM
|
---|
I have emailed you a sample file to reproduce the issue.
|
Wout
3/28/2014 7:33 PM
|
---|
Hi,
We've fixed the issue, can you try the latest CadLib 4.0 version? (4.0.35.92).
Thank you for the report!
- Wout
|
Wout
3/28/2014 9:01 PM
|
---|
Hang on a bit, there is something more wrong. I'm doing some more fixes.
- Wout
|
Wout
3/29/2014 1:03 AM
|
---|
Ok, I've fixed the other issues that I ran into. Feel free to try the latest CadLib 4.0 version.
- Wout
|
deanev
3/31/2014 4:59 PM
|
---|
Everything works great now, thanks!
|