Visual LISP, AutoLISP and General Customization
cancel
Showing results forĀ 
ShowĀ Ā onlyĀ  | Search instead forĀ 
Did you mean:Ā 

** Error: Automation Error. Problem in loading application **

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
Kevin_Gallagher
2363 Views, 6 Replies

** Error: Automation Error. Problem in loading application **

I have several posts on this error(** Error: Automation Error. Problem in loading application **) however no working solutions.

the issue for me is that the lisp works on some machines but not others.

the interface loads but as soon as you execute you get the ** Error: Automation Error. Problem in loading application ** message.

Any thoughts on what could be different between machines that might cause this?

 

 

6 REPLIES 6
Message 2 of 7

Could you post the (problematic portion of) code?

& are all machines running the same version ACAD?

Any other differences?

Message 3 of 7

thanks for  the quick response.

This is not a code issue. I actually figured it out moments after posting this.

the error was caused by missing entries in the registry.

for this particular code I needed to add HKEY_CLASSES_ROOT\ObjectDBX.AxDbDocument.20 and HKEY_CLASSES_ROOT\ObjectDBX.AxDbDocument.21 to the machines where it did not work.

I am not sure which one is the one that fixed the issue but this is the fix.

 

Message 4 of 7


@Kevin_Gallagher wrote:

thanks for  the quick response.

This is not a code issue. I actually figured it out moments after posting this.

the error was caused by missing entries in the registry.

for this particular code I needed to add HKEY_CLASSES_ROOT\ObjectDBX.AxDbDocument.20 and HKEY_CLASSES_ROOT\ObjectDBX.AxDbDocument.21 to the machines where it did not work.

I am not sure which one is the one that fixed the issue but this is the fix.

 



Yes, that's why i asked about the AutoCAD versions.

As the number at the end is representing the ACAD version.

The entries are not realy missing. The correct version of ACAD is missing.

(could be your code was written for an older version, but not all machines had this version installed. So, they are 'missing' the registry key's you are trying to use.)

 

So, technically it IS a 'code' problem, as you need to keep this in mind. (next version your code might be broken again)

 

If you are actually using a newer version as the registry key's, you are using the registry info from an older installation, not your current one. (with all sorts off potential problems)

 

You can resolve this by code, using something like:

(strcat "ObjectDBX.AxDbDocument." (substr (getvar 'ACADVER) 1 2))

Instead of hardcoded version numbers.

Message 5 of 7

technically it may be a code issue, but since it is not my code, it is now a system issue.

Message 6 of 7


@Kevin_Gallagher wrote:

technically it may be a code issue, but since it is not my code, it is now a system issue.



LOL.

Yes, well, if it works it works.

Just keep my warning in mind: You are not using the registry key's related to the acad version installed/in use! (which doesn't have to be a problem, but it can be.)

After reinstalling any machine, with a newer or older version as the key's version... Your problem will return.

Message 7 of 7

Until the person who wrote it updates it, or I create my own app this is what I have.

I appreciate the heads up though.

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

Post to forums  

Autodesk Design & Make Report

ā€Boost