Message 1 of 11
.Net 2.0 errors with ADT2006

Not applicable
03-12-2006
10:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm unable to read in a drawing file using .Net Framework 2.0. I must be missing something really simple. The following code works fine with VS2003, but AutoCAD crashes with a FATAL ERROR when using VS2005.
[CommandMethod("test")]
public static void test()
{
using (Database database = new Database(false, true))
{
database.ReadDwgFile(@"C:\tests\15.dwg", FileShare.Read, false, "");
}
}
Ummmm, should be simple, right? Should this be working right out of the box, or is there something I need to do? (BTW, I've recommented the Framework version in acad.exe.config to allow use of the framework that comes with VS2005.)
Thanks!
[CommandMethod("test")]
public static void test()
{
using (Database database = new Database(false, true))
{
database.ReadDwgFile(@"C:\tests\15.dwg", FileShare.Read, false, "");
}
}
Ummmm, should be simple, right? Should this be working right out of the box, or is there something I need to do? (BTW, I've recommented the Framework version in acad.exe.config to allow use of the framework that comes with VS2005.)
Thanks!