<?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 Order of autoloading .NET and ARX applications in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/order-of-autoloading-net-and-arx-applications/m-p/2395594#M18168</link>
    <description>I am auto loading an ARX file for a custom entity using the ACAD.RX file.&lt;BR /&gt;
&lt;BR /&gt;
I am also trying to auto load a managed wrapper dll for the custom entity by creating a registry entry. This managed wrapper needs to have the ARX loaded prior to its loading.&lt;BR /&gt;
&lt;BR /&gt;
However, the auto load of the managed wrapper fails. It appears ACAD loads .NET files from the registry before the ACAD.RX files are loaded. This is causing my .NET dll to fail in loading.&lt;BR /&gt;
&lt;BR /&gt;
How can I load the ARX and .NET wrapper file in the ARX first followed by .NET wrapper order?&lt;BR /&gt;
&lt;BR /&gt;
Thank you.</description>
    <pubDate>Thu, 11 Dec 2008 12:06:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-12-11T12:06:00Z</dc:date>
    <item>
      <title>Order of autoloading .NET and ARX applications</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/order-of-autoloading-net-and-arx-applications/m-p/2395594#M18168</link>
      <description>I am auto loading an ARX file for a custom entity using the ACAD.RX file.&lt;BR /&gt;
&lt;BR /&gt;
I am also trying to auto load a managed wrapper dll for the custom entity by creating a registry entry. This managed wrapper needs to have the ARX loaded prior to its loading.&lt;BR /&gt;
&lt;BR /&gt;
However, the auto load of the managed wrapper fails. It appears ACAD loads .NET files from the registry before the ACAD.RX files are loaded. This is causing my .NET dll to fail in loading.&lt;BR /&gt;
&lt;BR /&gt;
How can I load the ARX and .NET wrapper file in the ARX first followed by .NET wrapper order?&lt;BR /&gt;
&lt;BR /&gt;
Thank you.</description>
      <pubDate>Thu, 11 Dec 2008 12:06:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/order-of-autoloading-net-and-arx-applications/m-p/2395594#M18168</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-11T12:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Order of autoloading .NET and ARX applications</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/order-of-autoloading-net-and-arx-applications/m-p/2395595#M18169</link>
      <description>I believe, the easiest way to solve the problem is, to put both files in the registry.&lt;BR /&gt;
&lt;BR /&gt;
Autocad loads the apps in the order they are stored in the applications key. So just put your arx module before the .net wrapper in this key (alphanumeric order) and everything should work fine.</description>
      <pubDate>Thu, 11 Dec 2008 14:58:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/order-of-autoloading-net-and-arx-applications/m-p/2395595#M18169</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-11T14:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Order of autoloading .NET and ARX applications</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/order-of-autoloading-net-and-arx-applications/m-p/2395596#M18170</link>
      <description>Thanks for you response that seems like a good solution.&lt;BR /&gt;
&lt;BR /&gt;
Do you know what one of those string values mean? I don't know what LOADCTRLS mean?</description>
      <pubDate>Thu, 11 Dec 2008 15:16:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/order-of-autoloading-net-and-arx-applications/m-p/2395596#M18170</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-11T15:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Order of autoloading .NET and ARX applications</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/order-of-autoloading-net-and-arx-applications/m-p/2395597#M18171</link>
      <description>You should never rely on AutoCAD to load your modules in a specific order. &lt;BR /&gt;
Your .NET dll should load any dependent DLLs (including your .arx module) &lt;BR /&gt;
before it needs them. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
-- &lt;BR /&gt;
Owen Wengerd&lt;BR /&gt;
President, ManuSoft &lt;&gt;&lt;BR /&gt;
VP Americas, CADLock, Inc. &lt;&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;AJAY&gt; wrote in message news:6087875@discussion.autodesk.com...&lt;BR /&gt;
I am auto loading an ARX file for a custom entity using the ACAD.RX file. I &lt;BR /&gt;
am also trying to auto load a managed wrapper dll for the custom entity by &lt;BR /&gt;
creating a registry entry. This managed wrapper needs to have the ARX loaded &lt;BR /&gt;
prior to its loading. However, the auto load of the managed wrapper fails. &lt;BR /&gt;
It appears ACAD loads .NET files from the registry before the ACAD.RX files &lt;BR /&gt;
are loaded. This is causing my .NET dll to fail in loading. How can I load &lt;BR /&gt;
the ARX and .NET wrapper file in the ARX first followed by .NET wrapper &lt;BR /&gt;
order? Thank you.&lt;/AJAY&gt;&lt;/&gt;&lt;/&gt;</description>
      <pubDate>Thu, 11 Dec 2008 17:22:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/order-of-autoloading-net-and-arx-applications/m-p/2395597#M18171</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-11T17:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Order of autoloading .NET and ARX applications</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/order-of-autoloading-net-and-arx-applications/m-p/2395598#M18172</link>
      <description>Thanks for the reply Owen. &lt;BR /&gt;
&lt;BR /&gt;
I am assuming I need to use LoadModule and LoadApp functions on the DynamicLinker. What is the difference between the two functions? Which one should I be using with the .NET application? The documentation didn't make that clear!&lt;BR /&gt;
&lt;BR /&gt;
Thanks again.</description>
      <pubDate>Thu, 11 Dec 2008 17:33:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/order-of-autoloading-net-and-arx-applications/m-p/2395598#M18172</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-11T17:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Order of autoloading .NET and ARX applications</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/order-of-autoloading-net-and-arx-applications/m-p/2395599#M18173</link>
      <description>If you configure your .arx module for demand loading, you can use &lt;BR /&gt;
LoadApp(), but for debug builds it's usually best to use LoadModule to &lt;BR /&gt;
ensure that you load the debug build of your .arx as well. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
-- &lt;BR /&gt;
Owen Wengerd&lt;BR /&gt;
President, ManuSoft &lt;&gt;&lt;BR /&gt;
VP Americas, CADLock, Inc. &lt;&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;AJAY&gt; wrote in message news:6088232@discussion.autodesk.com...&lt;BR /&gt;
Thanks for the reply Owen. I am assuming I need to use LoadModule and &lt;BR /&gt;
LoadApp functions on the DynamicLinker. What is the difference between the &lt;BR /&gt;
two functions? Which one should I be using with the .NET application? The &lt;BR /&gt;
documentation didn't make that clear! Thanks again.&lt;/AJAY&gt;&lt;/&gt;&lt;/&gt;</description>
      <pubDate>Thu, 11 Dec 2008 19:14:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/order-of-autoloading-net-and-arx-applications/m-p/2395599#M18173</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-11T19:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Order of autoloading .NET and ARX applications</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/order-of-autoloading-net-and-arx-applications/m-p/2395600#M18174</link>
      <description>&lt;DIV id="jive-html-wrapper-div"&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;Managed wrappers for custom objects should load the native ARX &lt;BR /&gt;
or DBX for the custom object, before any instance of the managed wrapper is &lt;BR /&gt;
created, or the RXClass for the custom object is used. &lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;For example, someone might use the RXClass of a managed &lt;BR /&gt;
wrapper in a call to PromptEntityOptions.AddAllowedClass(), quite possibly &lt;BR /&gt;
before the native module that registers the underlying AcRxClass has been &lt;BR /&gt;
loaded.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;If the native component is not loaded at that point, the &lt;BR /&gt;
AcRxClass for the custom object will not be found, and AutoCAD will crash (there &lt;BR /&gt;
is currently a bug in the RasterImage managed wrapper, which fails to do exactly &lt;BR /&gt;
what I describe above, and calling AddAllowedClass(typeof(RasterImage)) before &lt;BR /&gt;
acismobj17.dbx is loaded, leads to a fatal error).&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;The best way to deal with that is to ensure that your &lt;BR /&gt;
ARX/DBX&amp;nbsp;is loaded from the static constructor of the managed wrapper, so &lt;BR /&gt;
that if someone tries to use your managed wrapper's RXClass by referencing it &lt;BR /&gt;
via the managed wrapper's type (e.g., by using RXClass.GetClass()), the native &lt;BR /&gt;
component will be loaded at that point; it will register the AcRxClass; and the &lt;BR /&gt;
call to GetClass() will succeed.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;FONT&gt;&lt;BR /&gt;
size=2&amp;gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;BR /&gt;-- &lt;BR /&gt;&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
href="http://www.caddzone.com"&amp;gt;http://www.caddzone.com&lt;/A&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;AcadXTabs: MDI Document Tabs for AutoCAD 2009&lt;BR /&gt;Supporting AutoCAD 2000 &lt;BR /&gt;
through 2009&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
href="http://www.acadxtabs.com"&amp;gt;http://www.acadxtabs.com&lt;/A&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;Introducing AcadXTabs 2010:&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
href="http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm"&amp;gt;http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm&lt;/A&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;&amp;lt;&lt;A href="mailto:ajay@bluelinx"&gt;ajay@bluelinx&lt;/A&gt;&amp;gt; wrote in message &lt;BR /&gt;
  &lt;A&gt;&lt;BR /&gt;
  href="news:6087875@discussion.autodesk.com"&amp;gt;news:6087875@discussion.autodesk.com&lt;/A&gt;...&lt;/DIV&gt;I &lt;BR /&gt;
  am auto loading an ARX file for a custom entity using the ACAD.RX file. I am &lt;BR /&gt;
  also trying to auto load a managed wrapper dll for the custom entity by &lt;BR /&gt;
  creating a registry entry. This managed wrapper needs to have the ARX loaded &lt;BR /&gt;
  prior to its loading. However, the auto load of the managed wrapper fails. It &lt;BR /&gt;
  appears ACAD loads .NET files from the registry before the ACAD.RX files are &lt;BR /&gt;
  loaded. This is causing my .NET dll to fail in loading. How can I load the ARX &lt;BR /&gt;
  and .NET wrapper file in the ARX first followed by .NET wrapper order? Thank &lt;BR /&gt;
  you.&lt;/BLOCKQUOTE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Dec 2008 19:57:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/order-of-autoloading-net-and-arx-applications/m-p/2395600#M18174</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-11T19:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Order of autoloading .NET and ARX applications</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/order-of-autoloading-net-and-arx-applications/m-p/2395601#M18175</link>
      <description>Tony/Owen,&lt;BR /&gt;
&lt;BR /&gt;
I have the ARX of the custom entity loading the DBX. So, the next logical question is, how do I load the ARX from my managed wrapper?&lt;BR /&gt;
&lt;BR /&gt;
Also, I looked into the managed wrapper class header and I don't see the constructor marked as static. There is one public constructor and another private constructor. &lt;BR /&gt;
&lt;BR /&gt;
Thanks for all the responses.</description>
      <pubDate>Thu, 11 Dec 2008 20:03:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/order-of-autoloading-net-and-arx-applications/m-p/2395601#M18175</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-11T20:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Order of autoloading .NET and ARX applications</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/order-of-autoloading-net-and-arx-applications/m-p/2395602#M18176</link>
      <description>&lt;DIV id="jive-html-wrapper-div"&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;I just told you.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;In the static constructor of your managed wrapper, load the &lt;BR /&gt;
DBX.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;Technically, the managed wrapper for your custom object should &lt;BR /&gt;
not be&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;dependent on any ARX (e.g., so it can be used in RealDwg), so &lt;BR /&gt;
unless&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;you have incorrectly made your managed wrapper dependent on &lt;BR /&gt;
your&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;native ARX/UI component, the managed wrapper should load the &lt;BR /&gt;
DBX&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;for your custom object directly, and it should do that from &lt;BR /&gt;
the static&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;constructor of the managed wrapper's type.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;BR /&gt;-- &lt;BR /&gt;&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
href="http://www.caddzone.com"&amp;gt;http://www.caddzone.com&lt;/A&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;AcadXTabs: MDI Document Tabs for AutoCAD 2009&lt;BR /&gt;Supporting AutoCAD 2000 &lt;BR /&gt;
through 2009&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
href="http://www.acadxtabs.com"&amp;gt;http://www.acadxtabs.com&lt;/A&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;Introducing AcadXTabs 2010:&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
href="http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm"&amp;gt;http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm&lt;/A&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;&amp;lt;&lt;A href="mailto:ajay@bluelinx"&gt;ajay@bluelinx&lt;/A&gt;&amp;gt; wrote in message &lt;BR /&gt;
  &lt;A&gt;&lt;BR /&gt;
  href="news:6088492@discussion.autodesk.com"&amp;gt;news:6088492@discussion.autodesk.com&lt;/A&gt;...&lt;/DIV&gt;Tony/Owen, &lt;BR /&gt;
  I have the ARX of the custom entity loading the DBX. So, the next logical &lt;BR /&gt;
  question is, how do I load the ARX from my managed wrapper? Also, I looked &lt;BR /&gt;
  into the managed wrapper class header and I don't see the constructor marked &lt;BR /&gt;
  as static. There is one public constructor and another private constructor. &lt;BR /&gt;
  Thanks for all the responses.&lt;/BLOCKQUOTE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Dec 2008 20:10:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/order-of-autoloading-net-and-arx-applications/m-p/2395602#M18176</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-11T20:10:06Z</dc:date>
    </item>
  </channel>
</rss>

