ObjectARX

ObjectARX

Reply
Active Member
giackserva
Posts: 7
Registered: ‎06-18-2012
Message 1 of 3 (134 Views)

How do I determine which dll is loaded first?

134 Views, 2 Replies
11-05-2012 02:33 AM

Hi everybody!

At the register key

HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R17.2\ACAD-7001:410\Applications\

i created some keys in order to load at the startup my c# solutions.

i want to know in what order are loaded the dlls because in the Inizialize function i have to use the other one and i want to be sure that the dll i want to use is already loaded.

how can i know it?

thanks

Moderator
Alexander.Rivilis
Posts: 1,450
Registered: ‎04-09-2008
Message 2 of 3 (128 Views)

Re: How do I determine which dll is loaded first?

11-05-2012 05:40 AM in reply to: giackserva

giackserva wrote:
...i want to know in what order are loaded the dlls because in the Inizialize function i have to use the other one and i want to be sure that the dll i want to use is already loaded...

Maybe easy load dll's that you want to use yourselves with help of DynamicLinker.LoadModule(...)?

 

 


Пожалуйста не забывайте про Утвердить в качестве решения! Утвердить в качестве решения и Give Kudos!Баллы
Please remember to Accept Solution! Accept as Solution and Give Kudos!Kudos

Distinguished Mentor
owenwengerd
Posts: 685
Registered: ‎08-06-2002
Message 3 of 3 (122 Views)

Re: How do I determine which dll is loaded first?

11-05-2012 06:25 AM in reply to: giackserva

You cannot rely on AutoCAD to load your DLLs in a certain order. Instead, each of your DLLs is responsible for loading any dependencies on its own, either as needed or upon initialization. It sounds like you're referring to additional .NET modules; I would assume this is handled automatically by the .NET framework, but you should ask in the .NET forum (and more fully explain what you mean by "use the other").

--
Owen Wengerd
ManuSoft
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.