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

DBX Load Error

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
mwst
1130 Views, 2 Replies

DBX Load Error

Hello all,

 

Perhaps I am missing something simple somewhere. But can't figure out what.

 

I have a ObjectARX app that is working fine. I open AutoCAD, load DBX, then load ARX and it does what I want.

 

I needed to use some object from another DLL that is created by a colleague. So I added headers and code. Then I link to the lib in project settings. The compile and link of DBX goes smooth.

 

Then I copy the new DLL in the same folder where I have my DBX file and try to load the DBX in AutoCAD using Appload. The DBX load fails.

 

If I remove all the code of the new object, remove the linking, and build DBX, the DBX loads fine.

 

Looks like DBX is not loading because I added dependency on this new DLL. I opened the DBX file and new dll in dependency walker and they seem fine.

 

Any ideas?

 

Thanks in advance,

 

K

 

Tags (3)
2 REPLIES 2
Message 2 of 3
owenwengerd
in reply to: mwst

Unless your DBX folder is in the Windows search path, Windows won't find your DLL when AutoCAD loads your DBX. See my blog for a solution:

Using /delayload to specify dependent DLL path

--
Owen Wengerd
ManuSoft
Message 3 of 3
mwst
in reply to: owenwengerd

Worked like a charm!!! Thanks a lot.

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

Post to forums  

Autodesk Design & Make Report

”Boost