Message 1 of 21
CreateAutoCADOffScreenDevice/GetSnapshot Changes in 2009 ???
Not applicable
02-12-2010
09:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a function (based largely on an ADN example 'Play2') that fails
in certain conditions on 2007/2008 but seems to work fine on 2009+. It
takes a block name and resolution parameters and returns a system bitmap.
The error is:
--------------------------------------------------
Runtime Error!
Program: C:\Program Files\AutoCAD 2008\acad.exe
R6025
- pure virtual function call
--------------------------------------------------
When you open a drawing and call this function (even numerous times)
everything works fine. However if you close and reopen the same drawing
(on 2007/2008) the error occurs immediately on the first call. Is there
possibly something being disposed that shouldn't be, etc. The fact that
it appears to work continuously on 2009+ leads me to suspect something
may have been fixed in AutoCAD?
The code attached is the exact function used, it should be usable and
standalone fairly well with one exception, substitute reasonable
coordinates for "AcdVue.ZoomExtents".
Thanks in advance,
Terry
in certain conditions on 2007/2008 but seems to work fine on 2009+. It
takes a block name and resolution parameters and returns a system bitmap.
The error is:
--------------------------------------------------
Runtime Error!
Program: C:\Program Files\AutoCAD 2008\acad.exe
R6025
- pure virtual function call
--------------------------------------------------
When you open a drawing and call this function (even numerous times)
everything works fine. However if you close and reopen the same drawing
(on 2007/2008) the error occurs immediately on the first call. Is there
possibly something being disposed that shouldn't be, etc. The fact that
it appears to work continuously on 2009+ leads me to suspect something
may have been fixed in AutoCAD?
The code attached is the exact function used, it should be usable and
standalone fairly well with one exception, substitute reasonable
coordinates for "AcdVue.ZoomExtents".
Thanks in advance,
Terry