Has anybody encounter this exception before?
Code: Select all
Unhandled Exception: System.Runtime.InteropServices.ExternalException: A generic
error occurred in GDI+.
at System.Drawing.Imaging.Metafile..ctor(Stream stream, IntPtr referenceHdc,
Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type, String descripti
on)
at System.Drawing.Imaging.Metafile..ctor(Stream stream, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type)
at CADImport.CADImage.ўХЎй#9830;#8252;ЎЧ#9786;ЎЧЎй(Stream , DRect )
at CADImport.CADImage.ўѕ#9668;ўТ#9830;ЎЧЎй#9787;#9668;()
at CADImport.CADImage.Draw(Graphics e, RectangleF Rect, Region visibleRegion)
at CADImport.CADImage.Draw(Graphics e, RectangleF Rect)
... (removed irrelevant stacktrace) ...
... (removed irrelevant stacktrace) ...
<ul>
<li>I turn off the visibility of certain layers in my CAD file via CADImage.SetLayerVisible,</li>
<li>Call CADImage.RotToView to rotate to certain view</li>
<li>Recalculate all the width and height via CADImage.GetExtents(); </li>
</ul>
Any ideas and solutions on this? Thanks!
Thomas
<b>Objective World Pvt. Ltd.</b>
"<i>Turning Knowledge Into Wisdom.</i>"
http://www.objectiveworld.com