<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: .Net 2.0  errors with ADT2006 in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/net-2-0-errors-with-adt2006/m-p/1579010#M82411</link>
    <description>I'm using ADT06 also I just tried it does both&lt;BR /&gt;
ways with no problem, although I did get the&lt;BR /&gt;
error the first time I tried. Don't know what I&lt;BR /&gt;
did to fix it.&lt;BR /&gt;
&lt;BR /&gt;
Here is the class&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
gl - Paul&lt;BR /&gt;
&lt;JIMMIE fulton=""&gt; wrote in message news:5109873@discussion.autodesk.com...&lt;BR /&gt;
I was getting the crash only because I wasn't catching the exception. &lt;BR /&gt;
Double back slashes?  Weird.  Seems that the exact same code that works with &lt;BR /&gt;
VS2003 should work with VS2005.  I tried the double back slashed but that &lt;BR /&gt;
did not work, both with and without the preceding @.  Are you using ADT, or &lt;BR /&gt;
a different product?&lt;BR /&gt;
&lt;BR /&gt;
My suspicion is that there are ADT Managed parts compiled in .Net 1.1 that &lt;BR /&gt;
don't like being executed in conjunction with .Net 2.0 components.&lt;/JIMMIE&gt;</description>
    <pubDate>Tue, 14 Mar 2006 00:49:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-03-14T00:49:14Z</dc:date>
    <item>
      <title>.Net 2.0  errors with ADT2006</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-2-0-errors-with-adt2006/m-p/1579006#M82407</link>
      <description>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.&lt;BR /&gt;
&lt;BR /&gt;
[CommandMethod("test")]&lt;BR /&gt;
public static void test()&lt;BR /&gt;
{&lt;BR /&gt;
    using (Database database = new Database(false, true))&lt;BR /&gt;
    {&lt;BR /&gt;
        database.ReadDwgFile(@"C:\tests\15.dwg", FileShare.Read, false, "");&lt;BR /&gt;
    }&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
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.)&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Mon, 13 Mar 2006 06:13:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-2-0-errors-with-adt2006/m-p/1579006#M82407</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-13T06:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: .Net 2.0  errors with ADT2006</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-2-0-errors-with-adt2006/m-p/1579007#M82408</link>
      <description>Further info on this:&lt;BR /&gt;
Catching the exception from this gives a message of&lt;BR /&gt;
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."&lt;BR /&gt;
&lt;BR /&gt;
I get this whether the method is static or not, and whether the CommandFlags.Session is set or not.&lt;BR /&gt;
&lt;BR /&gt;
Anyone else using VS2005 with ADT2006?</description>
      <pubDate>Mon, 13 Mar 2006 22:39:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-2-0-errors-with-adt2006/m-p/1579007#M82408</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-13T22:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: .Net 2.0  errors with ADT2006</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-2-0-errors-with-adt2006/m-p/1579008#M82409</link>
      <description>I got the same error, but no crash.&lt;BR /&gt;
&lt;BR /&gt;
Changing the path to double backslashes fixed&lt;BR /&gt;
the problem.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
gl - Paul&lt;BR /&gt;
&lt;JIMMIE fulton=""&gt; wrote in message news:5109783@discussion.autodesk.com...&lt;BR /&gt;
Further info on this:&lt;BR /&gt;
Catching the exception from this gives a message of&lt;BR /&gt;
"Attempted to read or write protected memory. This is often an indication &lt;BR /&gt;
that other memory is corrupt."&lt;BR /&gt;
&lt;BR /&gt;
I get this whether the method is static or not, and whether the &lt;BR /&gt;
CommandFlags.Session is set or not.&lt;BR /&gt;
&lt;BR /&gt;
Anyone else using VS2005 with ADT2006?&lt;/JIMMIE&gt;</description>
      <pubDate>Mon, 13 Mar 2006 23:32:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-2-0-errors-with-adt2006/m-p/1579008#M82409</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-13T23:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: .Net 2.0  errors with ADT2006</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-2-0-errors-with-adt2006/m-p/1579009#M82410</link>
      <description>I was getting the crash only because I wasn't catching the exception.  Double back slashes?  Weird.  Seems that the exact same code that works with VS2003 should work with VS2005.  I tried the double back slashed but that did not work, both with and without the preceding @.  Are you using ADT, or a different product?&lt;BR /&gt;
&lt;BR /&gt;
My suspicion is that there are ADT Managed parts compiled in .Net 1.1 that don't like being executed in conjunction with .Net 2.0 components.</description>
      <pubDate>Tue, 14 Mar 2006 00:30:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-2-0-errors-with-adt2006/m-p/1579009#M82410</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-14T00:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: .Net 2.0  errors with ADT2006</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-2-0-errors-with-adt2006/m-p/1579010#M82411</link>
      <description>I'm using ADT06 also I just tried it does both&lt;BR /&gt;
ways with no problem, although I did get the&lt;BR /&gt;
error the first time I tried. Don't know what I&lt;BR /&gt;
did to fix it.&lt;BR /&gt;
&lt;BR /&gt;
Here is the class&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
gl - Paul&lt;BR /&gt;
&lt;JIMMIE fulton=""&gt; wrote in message news:5109873@discussion.autodesk.com...&lt;BR /&gt;
I was getting the crash only because I wasn't catching the exception. &lt;BR /&gt;
Double back slashes?  Weird.  Seems that the exact same code that works with &lt;BR /&gt;
VS2003 should work with VS2005.  I tried the double back slashed but that &lt;BR /&gt;
did not work, both with and without the preceding @.  Are you using ADT, or &lt;BR /&gt;
a different product?&lt;BR /&gt;
&lt;BR /&gt;
My suspicion is that there are ADT Managed parts compiled in .Net 1.1 that &lt;BR /&gt;
don't like being executed in conjunction with .Net 2.0 components.&lt;/JIMMIE&gt;</description>
      <pubDate>Tue, 14 Mar 2006 00:49:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-2-0-errors-with-adt2006/m-p/1579010#M82411</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-14T00:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: .Net 2.0  errors with ADT2006</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-2-0-errors-with-adt2006/m-p/1579011#M82412</link>
      <description>I've figured out that this has to do with disabling Managed Debugging Assistants.  If I turn off all MDA's using the registry, I get no error messages about running code in DllMain.  But, then I get this error instead.  If I leave all MDAs as default or turn them all on, I get a bunch of complaints about running code in DllMain, but then everything works fine after that.  Who here has an MDA configuration that allows friendly debugging without causing AutoCAD to crash?</description>
      <pubDate>Thu, 16 Mar 2006 21:57:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-2-0-errors-with-adt2006/m-p/1579011#M82412</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-16T21:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: .Net 2.0  errors with ADT2006</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-2-0-errors-with-adt2006/m-p/1579012#M82413</link>
      <description>OK, here is what is required to run VS2005 with AutoCAD 2006.  In VS2005, go to the Debug-&amp;gt;Exceptions menu.  Within the Exceptions dialog expand the "Managed Debugging Assistants" node.  Look for LoaderLock and uncheck the "Thrown" column.&lt;BR /&gt;
&lt;BR /&gt;
Do not disable all MDAs by setting MDA="0" in the registry as it causes problems.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps.</description>
      <pubDate>Thu, 16 Mar 2006 22:12:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-2-0-errors-with-adt2006/m-p/1579012#M82413</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-16T22:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: .Net 2.0  errors with ADT2006</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-2-0-errors-with-adt2006/m-p/1579013#M82414</link>
      <description>Jimmy, How cool are you!&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
Thanks - Paul&lt;BR /&gt;
&lt;JIMMIE fulton=""&gt; wrote in message news:5113492@discussion.autodesk.com...&lt;BR /&gt;
OK, here is what is required to run VS2005 with AutoCAD 2006.  In VS2005, go &lt;BR /&gt;
to the Debug-&amp;gt;Exceptions menu.  Within the Exceptions dialog expand the &lt;BR /&gt;
"Managed Debugging Assistants" node.  Look for LoaderLock and uncheck the &lt;BR /&gt;
"Thrown" column.&lt;BR /&gt;
&lt;BR /&gt;
Do not disable all MDAs by setting MDA="0" in the registry as it causes &lt;BR /&gt;
problems.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps.&lt;/JIMMIE&gt;</description>
      <pubDate>Fri, 17 Mar 2006 18:02:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-2-0-errors-with-adt2006/m-p/1579013#M82414</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-17T18:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: .Net 2.0  errors with ADT2006</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-2-0-errors-with-adt2006/m-p/1579014#M82415</link>
      <description>&amp;gt;Jimmy...&lt;BR /&gt;
&lt;BR /&gt;
Sorry Jimmie...&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
gl - Paul&lt;BR /&gt;
"Paul Richardson" &lt;SPAMTHIS&gt; wrote in message &lt;BR /&gt;
news:5114322@discussion.autodesk.com...&lt;BR /&gt;
Jimmy, How cool are you!&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
Thanks - Paul&lt;BR /&gt;
&lt;JIMMIE fulton=""&gt; wrote in message news:5113492@discussion.autodesk.com...&lt;BR /&gt;
OK, here is what is required to run VS2005 with AutoCAD 2006.  In VS2005, go&lt;BR /&gt;
to the Debug-&amp;gt;Exceptions menu.  Within the Exceptions dialog expand the&lt;BR /&gt;
"Managed Debugging Assistants" node.  Look for LoaderLock and uncheck the&lt;BR /&gt;
"Thrown" column.&lt;BR /&gt;
&lt;BR /&gt;
Do not disable all MDAs by setting MDA="0" in the registry as it causes&lt;BR /&gt;
problems.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps.&lt;/JIMMIE&gt;&lt;/SPAMTHIS&gt;</description>
      <pubDate>Fri, 17 Mar 2006 18:03:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-2-0-errors-with-adt2006/m-p/1579014#M82415</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-17T18:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: .Net 2.0  errors with ADT2006</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-2-0-errors-with-adt2006/m-p/1579015#M82416</link>
      <description>I'm working with VS 2008 and AutoCAD 2006. I compile my plugin DLL using framework 2.0. I did everything discussed in this and http://discussion.autodesk.com/thread.jspa?threadID=633031 but did not solve my problem, when I call 'ReadDwgFile' an exception is thrown!!! &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
I also did anything possible with the acad.exe.config file, commented uncommented and set the different framework versions!!!&lt;BR /&gt;
&lt;BR /&gt;
I also get the error when compiling in release mode and run AutoCAD without VS.&lt;BR /&gt;
&lt;BR /&gt;
Any help is appreciated!!!&lt;BR /&gt;
&lt;BR /&gt;
Cabbi

Message was edited by: cabbi</description>
      <pubDate>Thu, 12 Jun 2008 08:01:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-2-0-errors-with-adt2006/m-p/1579015#M82416</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-06-12T08:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: .Net 2.0  errors with ADT2006</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-2-0-errors-with-adt2006/m-p/1579016#M82417</link>
      <description>Sorry, I did reply to this thread but did not see it in the forum so I opened a new thread.... now I see both! &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Cabbi</description>
      <pubDate>Thu, 12 Jun 2008 08:23:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-2-0-errors-with-adt2006/m-p/1579016#M82417</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-06-12T08:23:09Z</dc:date>
    </item>
  </channel>
</rss>

