<?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: LOADCTRLS problem in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/loadctrls-problem/m-p/2824716#M63065</link>
    <description>&lt;P&gt;Thanks for the info.&amp;nbsp; I did check the DEMANDLOAD system variable and it&amp;nbsp;is set to 3 (Object detect and command invoke).&amp;nbsp; Is there something else that I'm missing?&lt;/P&gt;</description>
    <pubDate>Fri, 12 Nov 2010 14:35:08 GMT</pubDate>
    <dc:creator>ubstov</dc:creator>
    <dc:date>2010-11-12T14:35:08Z</dc:date>
    <item>
      <title>LOADCTRLS problem</title>
      <link>https://forums.autodesk.com/t5/net-forum/loadctrls-problem/m-p/2824184#M63063</link>
      <description>&lt;P&gt;I have encountered and issue when trying to demand load my&amp;nbsp;.NET dll.&amp;nbsp;&amp;nbsp;I'm using AutoCAD 2011 and&amp;nbsp;I can successfully load the dll with my LOADCTRLS registry entry value of 2 (Loading on startup), but my desire is to load it on command invocation.&amp;nbsp; I have COMMANDS keys defiined and I have tried changing the value of LOADCTRLS to 4, 8 and a combination of both (which is "c" in hex), but always with the same result of "Unknown command".&amp;nbsp; Any ideas on why it will load on startup but not on command invocation would be helpful.&amp;nbsp; Here are&amp;nbsp;the reg entries...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Windows Registry Editor Version 5.00&lt;/P&gt;&lt;P&gt;[HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R18.1\ACAD-9001:409\Applications\MyApp]&lt;BR /&gt;"LOADCTRLS"=dword:0000000c&lt;BR /&gt;"MANAGED"=dword:00000001&lt;BR /&gt;"LOADER"="C:\\MyApp\\MyApp.dll"&lt;BR /&gt;"DESCRIPTION"="My Application"&lt;/P&gt;&lt;P&gt;[HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R18.1\ACAD-9001:409\Applications\MyApp\Commands]&lt;BR /&gt;"sma"="sma"&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2010 21:19:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/loadctrls-problem/m-p/2824184#M63063</guid>
      <dc:creator>ubstov</dc:creator>
      <dc:date>2010-11-11T21:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: LOADCTRLS problem</title>
      <link>https://forums.autodesk.com/t5/net-forum/loadctrls-problem/m-p/2824550#M63064</link>
      <description>&lt;P&gt;Check the value of the DEMANDLOAD system variable, that could be the issue. If it is set to 0 or 1 then the app won't load on command invocation, if set to 2 or 3 then it will.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2010 11:18:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/loadctrls-problem/m-p/2824550#M63064</guid>
      <dc:creator>cadMeUp</dc:creator>
      <dc:date>2010-11-12T11:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: LOADCTRLS problem</title>
      <link>https://forums.autodesk.com/t5/net-forum/loadctrls-problem/m-p/2824716#M63065</link>
      <description>&lt;P&gt;Thanks for the info.&amp;nbsp; I did check the DEMANDLOAD system variable and it&amp;nbsp;is set to 3 (Object detect and command invoke).&amp;nbsp; Is there something else that I'm missing?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2010 14:35:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/loadctrls-problem/m-p/2824716#M63065</guid>
      <dc:creator>ubstov</dc:creator>
      <dc:date>2010-11-12T14:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: LOADCTRLS problem</title>
      <link>https://forums.autodesk.com/t5/net-forum/loadctrls-problem/m-p/2824800#M63066</link>
      <description>&lt;P&gt;It's hard to tell without seeing all of your project code, references. Maybe with command invocation referenced files might not automatically load, you could have references that may not be loading. Seems like there is some kind of error in the load process and it prevents your net app from loading properly. You might try creating another project/app with a simple "Hello World" command, make the project as simplified as possbible without any references other than required AutoCAD refs, create a test entry for the dll app in your registry that's set to load on command invoke and see what you get. Hopefully that will work and then you'll know the problem is within your application code somewhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you get it figured out. I haven't run into this problem with command invoke. I have run into situations where modules would not load because of missing or unloaded references.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2010 15:24:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/loadctrls-problem/m-p/2824800#M63066</guid>
      <dc:creator>cadMeUp</dc:creator>
      <dc:date>2010-11-12T15:24:54Z</dc:date>
    </item>
  </channel>
</rss>

