ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

.arx cannot find a dll or other file that it needs.

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
ShricharanaB
352 Views, 8 Replies

.arx cannot find a dll or other file that it needs.

Hi,

The .arx file I created is loading in my workstation but fails to load in other workstations. 

I'm getting the following error:

"ExamplePath\ExName.arx cannot find a dll or other file that it needs.
AcRxDynamicLinker failed to load 'ExamplePath\ExName.arx'
ExamplePath\ExName.arx Unable to load ExName.arx file."

I'm unable to figure out the reason for this. 

 

I'm using AutoCAD 2020.

For development I'm using

Visual studio 2022 

Windows SDK: 10.0.22621.0 

Platform toolset: Visual Studio 2017 (v141)

 

Can anybody please help?

 

Thanks in advance.

Labels (3)
8 REPLIES 8
Message 2 of 9
ShricharanaB
in reply to: ShricharanaB

Can any one help in this? Any suggestions? 

Message 3 of 9

Use a dependency checker.  I like to use this.

https://github.com/lucasg/Dependencies

 

Most likely it’s a path issue

Python for AutoCAD, Python wrappers for ARX https://github.com/CEXT-Dan/PyRx
Message 4 of 9

Hi,

Thank you for the reply.

I used the dependency checker you suggested and got the following missing.

ShricharanaB_1-1705994532309.png

Even with these showing missing it loads fine in my workstation.

I checked the support file search paths in one of the user workstation and they seem to be the same as in my workstation. Namely Trusted locations, working support file search path, support file search path, is there any other location I should be checking?

Message 5 of 9

The AutoCAD .DLLS are loaded at runtime. You might put your ARX file(s) inside the AutoCAD install folder on one of the offending workstations, then run the  dependency checker on that.

Python for AutoCAD, Python wrappers for ARX https://github.com/CEXT-Dan/PyRx
Message 6 of 9

Thank you so much! I think I'm getting somewhere now.

I don't have write access to the installation folder . But I copied the three missing dlls from AutoCAD installation folder to the folder my dll is in and checked for dependencies in both my workstation and one of the other users work station. 

In my workstation there was no missing dlls shown in the dependency checker. 

But, in the other workstation, i'm getting these following dlls as missing.

image.png

It seems these dlls are part of  Microsoft Visual C++ Redistributable. 

I'll have to try installing it and loading the dll to see if this will work. 

But, why the requirement now (updated using visual studio 2022, platform toolset 2017 v141), for these dlls, where as the previous version (created with visual studio 2017, platform toolset 2017 v141)  did not need these and used to successfully load in all systems. 

Is there a way I can remove the requirement for these dlls or are they essential?

 

 

 

Message 7 of 9
m_latz
in reply to: ShricharanaB

Looks like you build your project with the "Debug" configuration. This works only on pc's, with debug environment (i.e. on pc with installed Visual Studio or debug env).

 

You have to build your project as "Release", then it works as expected.

 

image2.png

VS2017-Configs.png

regards

 

Markus

Message 8 of 9
ShricharanaB
in reply to: m_latz

Thank you!

That solved the issue.

Unbelievably silly mistake!😅

Message 9 of 9
autodaug
in reply to: ShricharanaB

It would be nice if Windows reported the missing file name(s) somewhere in an event log or made it available somewhere for AutoCAD to display.  But, afaik, there's no way for us to get at this information, unfortunately.

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Customer Advisory Groups


Autodesk Design & Make Report