<?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: Autocad loading dll twice in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/autocad-loading-dll-twice/m-p/6915291#M32479</link>
    <description>&lt;P&gt;here is preview of my code, it works perfectly on windows 10, and now it doesnt want to work on windows 7 at all!!&lt;/P&gt;</description>
    <pubDate>Thu, 02 Mar 2017 12:59:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-03-02T12:59:35Z</dc:date>
    <item>
      <title>Autocad loading dll twice</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-loading-dll-twice/m-p/6915213#M32476</link>
      <description>&lt;P&gt;On my windows 10 manchine, my autocad and the rest of the autodesk products works well when I did the reference to the correct files and set copy local to false.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my previous post I did mention that I have a problem with my plugins I wrote and tried to install them on other machines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, on the windows 7 machine, I am setting all my references which applies to the autodesk products copy local to true. Now it loads, but it now loads the same plugin twice and not once.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help....&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 12:30:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-loading-dll-twice/m-p/6915213#M32476</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-02T12:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad loading dll twice</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-loading-dll-twice/m-p/6915227#M32477</link>
      <description>&lt;P&gt;Can you explain why you think that AutoCAD is loading your dll twice?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far has a I know it is impossible for AutoCAD to load a dll more than once. &amp;nbsp;It just does not make sense. &amp;nbsp;You can test this yourself by&amp;nbsp;attempting to netload your plugin more than once. &amp;nbsp;You can place a write to the command line in your plugins initialize method so you can see some text being written to the screen when it loads. &amp;nbsp;You will see this text written the first time you load but not the second as AutoCAD will not process the second netload as it is already loaded.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you imagine the havoc and chaos that would happen if dlls were allowed to be loaded more than once? &amp;nbsp;Imagine a plugin that uses 3rd Party controls such as Telerik or DevExpress. &amp;nbsp;These control dlls can be quite large. &amp;nbsp;Can you imagine the amount of memory that would be consumed if the control dlls were added several times each?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe if you describe the issue that you are having someone might be able to diagnose it.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 12:37:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-loading-dll-twice/m-p/6915227#M32477</guid>
      <dc:creator>Keith.Brown</dc:creator>
      <dc:date>2017-03-02T12:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad loading dll twice</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-loading-dll-twice/m-p/6915273#M32478</link>
      <description>&lt;P&gt;Now that I have installed and not copied the objectarx folders, now it doesnt want to do anything at all, even with the local copy set to true!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 12:54:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-loading-dll-twice/m-p/6915273#M32478</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-02T12:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad loading dll twice</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-loading-dll-twice/m-p/6915291#M32479</link>
      <description>&lt;P&gt;here is preview of my code, it works perfectly on windows 10, and now it doesnt want to work on windows 7 at all!!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 12:59:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-loading-dll-twice/m-p/6915291#M32479</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-02T12:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad loading dll twice</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-loading-dll-twice/m-p/6915311#M32480</link>
      <description>&lt;P&gt;The dll files that you are referencing are solely for use in Visual Studio while developing. &amp;nbsp;When running your plugin it will run using the dll's located in the autocad install directory. &amp;nbsp;Setting copy to local = true will disturb this process. &amp;nbsp;You can set Copy To Local = true in visual studio if you also set the working directory to the Autocad directory. &amp;nbsp;This will force your plugin to first look in the Autocad directory for its required dlls instead of the local directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have still failed to mention what is wrong with your plugin. &amp;nbsp;Saying it won't do anything does not really help. &amp;nbsp;What does it do when you try to debug it? &amp;nbsp;Have you set a breakpoint in the intitialize method (if you have one) to see what is happening? &amp;nbsp;Have you set a breakpoint in a command method to see what is happening when the code tries to run? &amp;nbsp;These are all valid and very basic questions that need to be addressed/answered.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 13:06:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-loading-dll-twice/m-p/6915311#M32480</guid>
      <dc:creator>Keith.Brown</dc:creator>
      <dc:date>2017-03-02T13:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad loading dll twice</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-loading-dll-twice/m-p/6915318#M32481</link>
      <description>It is not entering the breakpoints at all.&lt;BR /&gt;&lt;BR /&gt;It is not loading the dll's at all. I am not sure what is wrong&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Kind Regards&lt;BR /&gt;&lt;BR /&gt;MDavel</description>
      <pubDate>Thu, 02 Mar 2017 13:08:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-loading-dll-twice/m-p/6915318#M32481</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-02T13:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad loading dll twice</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-loading-dll-twice/m-p/6915346#M32482</link>
      <description>&lt;P&gt;Are you saying that it is not running using the autoloader mechanism of AutoCAD or it is not running inside of a visual studio session. &amp;nbsp;These are two decidedly different things. &amp;nbsp;You posted a pic of your plugin in an AutoLoader location but you are speaking as if you are running in a visual studio session. &amp;nbsp;Can you please clarify?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, are you using the save version of AutoCAD on the Win7 machine that you are using on the Win10 machine? &amp;nbsp;The autoload directories can be different depending on your version of autocad as well as the dlls that need to be referenced.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 13:13:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-loading-dll-twice/m-p/6915346#M32482</guid>
      <dc:creator>Keith.Brown</dc:creator>
      <dc:date>2017-03-02T13:13:52Z</dc:date>
    </item>
  </channel>
</rss>

