<?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: Loading and Unloading .NET extensions in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/loading-and-unloading-net-extensions/m-p/1339584#M84871</link>
    <description>.NET plugins are currently unloadable. There's no way around it. The reason &lt;BR /&gt;
is fairly simple:&lt;BR /&gt;
.NET framework does not allow the unloading of individual assemblies (there &lt;BR /&gt;
are good reason for this, you can read about them here:&lt;BR /&gt;
http://blogs.msdn.com/jasonz/archive/2004/05/31/145105.aspx)&lt;BR /&gt;
&lt;BR /&gt;
There are ways arounds this: we could load plugins into their own appdomains &lt;BR /&gt;
and then when you want to unload the plugin we could destroy the appdomain &lt;BR /&gt;
effectively unloading the plugin. We are looking into making this happen in &lt;BR /&gt;
a future release.&lt;BR /&gt;
&lt;BR /&gt;
Albert&lt;BR /&gt;
&lt;BR /&gt;
&lt;TANGFERRY&gt; wrote in message news:4859656@discussion.autodesk.com...&lt;BR /&gt;
It is a wasting time stopping and re-starting AutoCAD just to make simple &lt;BR /&gt;
code changes or when debugging their plugins.&lt;BR /&gt;
Can someone solve this problem?&lt;BR /&gt;
There is a post about this topic in &lt;BR /&gt;
http://www.cadvault.com/forums/thread15360.html&lt;/TANGFERRY&gt;</description>
    <pubDate>Sun, 29 May 2005 17:43:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-05-29T17:43:45Z</dc:date>
    <item>
      <title>Loading and Unloading .NET extensions</title>
      <link>https://forums.autodesk.com/t5/net-forum/loading-and-unloading-net-extensions/m-p/1339581#M84868</link>
      <description>It is a wasting time stopping and re-starting AutoCAD just to make simple code changes or when debugging their plugins.&lt;BR /&gt;
Can someone solve this problem?&lt;BR /&gt;
There is a post about this topic in http://www.cadvault.com/forums/thread15360.html</description>
      <pubDate>Sun, 29 May 2005 06:32:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/loading-and-unloading-net-extensions/m-p/1339581#M84868</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-29T06:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Loading and Unloading .NET extensions</title>
      <link>https://forums.autodesk.com/t5/net-forum/loading-and-unloading-net-extensions/m-p/1339582#M84869</link>
      <description>The starting and stopping really gets on my nerves. I thought to use a &lt;BR /&gt;
Windows Application and reference the current drawing from it as was &lt;BR /&gt;
possible in VB6 but I can't suss out the equivelant of the statements below &lt;BR /&gt;
to reference Autocad 2006 from vb.net.&lt;BR /&gt;
&lt;BR /&gt;
Dim CadApp As AcadApplication&lt;BR /&gt;
Dim CadDwg As AcadDocument&lt;BR /&gt;
Set CadApp = GetObject(, "AutoCAD.Application")&lt;BR /&gt;
Set CadDwg = CadApp.ActiveDocument&lt;BR /&gt;
&lt;BR /&gt;
If anyone knows the answer please post as at least you could change code &lt;BR /&gt;
then compile the thing into a class when finished.&lt;BR /&gt;
&lt;BR /&gt;
Simon&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;TANGFERRY&gt; wrote in message news:4859656@discussion.autodesk.com...&lt;BR /&gt;
It is a wasting time stopping and re-starting AutoCAD just to make simple &lt;BR /&gt;
code changes or when debugging their plugins.&lt;BR /&gt;
Can someone solve this problem?&lt;BR /&gt;
There is a post about this topic in &lt;BR /&gt;
http://www.cadvault.com/forums/thread15360.html&lt;/TANGFERRY&gt;</description>
      <pubDate>Sun, 29 May 2005 14:14:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/loading-and-unloading-net-extensions/m-p/1339582#M84869</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-29T14:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Loading and Unloading .NET extensions</title>
      <link>https://forums.autodesk.com/t5/net-forum/loading-and-unloading-net-extensions/m-p/1339583#M84870</link>
      <description>Simon wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; If anyone knows the answer please post as at least you could change&lt;BR /&gt;
&amp;gt; code then compile the thing into a class when finished.&lt;BR /&gt;
&lt;BR /&gt;
GetObject still works in VB.NET but returns a ComObject, not an &lt;BR /&gt;
AcadApplication object. Use the CType function to cast that ComObject to the &lt;BR /&gt;
appropriate type. This will address your earlier question about circles as &lt;BR /&gt;
well.</description>
      <pubDate>Sun, 29 May 2005 16:17:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/loading-and-unloading-net-extensions/m-p/1339583#M84870</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-29T16:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Loading and Unloading .NET extensions</title>
      <link>https://forums.autodesk.com/t5/net-forum/loading-and-unloading-net-extensions/m-p/1339584#M84871</link>
      <description>.NET plugins are currently unloadable. There's no way around it. The reason &lt;BR /&gt;
is fairly simple:&lt;BR /&gt;
.NET framework does not allow the unloading of individual assemblies (there &lt;BR /&gt;
are good reason for this, you can read about them here:&lt;BR /&gt;
http://blogs.msdn.com/jasonz/archive/2004/05/31/145105.aspx)&lt;BR /&gt;
&lt;BR /&gt;
There are ways arounds this: we could load plugins into their own appdomains &lt;BR /&gt;
and then when you want to unload the plugin we could destroy the appdomain &lt;BR /&gt;
effectively unloading the plugin. We are looking into making this happen in &lt;BR /&gt;
a future release.&lt;BR /&gt;
&lt;BR /&gt;
Albert&lt;BR /&gt;
&lt;BR /&gt;
&lt;TANGFERRY&gt; wrote in message news:4859656@discussion.autodesk.com...&lt;BR /&gt;
It is a wasting time stopping and re-starting AutoCAD just to make simple &lt;BR /&gt;
code changes or when debugging their plugins.&lt;BR /&gt;
Can someone solve this problem?&lt;BR /&gt;
There is a post about this topic in &lt;BR /&gt;
http://www.cadvault.com/forums/thread15360.html&lt;/TANGFERRY&gt;</description>
      <pubDate>Sun, 29 May 2005 17:43:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/loading-and-unloading-net-extensions/m-p/1339584#M84871</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-29T17:43:45Z</dc:date>
    </item>
  </channel>
</rss>

