fatal error on opening autocad if bundle installed under %ProgramFiles% folder

fatal error on opening autocad if bundle installed under %ProgramFiles% folder

gang
Enthusiast Enthusiast
999 Views
5 Replies
Message 1 of 6

fatal error on opening autocad if bundle installed under %ProgramFiles% folder

gang
Enthusiast
Enthusiast

Hi,

We created our AutoCAD 2018 add-on.

If we put our bundle under "C:\ProgramData\Autodesk\ApplicationPlugins\" folder, our add-on can be loaded in AutoCAD but the security warning - unknown publisher will show up.

If we put our bundle under "C:\Program Files\Autodesk\ApplicationPlugins\" folder, the fatal error shows up saying unhandled access violation reading 0x0658 Exception at ecec6447h.

 

Interesting thing is if we put our bundle under %ProgramData% folder first and load AutoCAD with our Add-on loaded. Then quit AutoCAD, copy our bundle under %ProgramFiles% folder and reload AutoCAD again. The fatal error is gone. 

 

Since installing bundle under %ProgramData% folder needs users change setting to add the path to the trustedpath, we would like to install it under %ProgramFiles% folder, but the fatal error shows up.

 

Any suggestions on this issue?

Thanks in advance.

 

Best,

Gang

 

 

0 Likes
1,000 Views
5 Replies
Replies (5)
Message 2 of 6

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> we would like to install it under %ProgramFiles% folder, but the fatal error shows up

As the error does not appear when you run the startup in another way I would look into your applications initialize part, if files are written or registry settings are tried without enough permissions?

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 3 of 6

gang
Enthusiast
Enthusiast

@Alfred.NESWADBA wrote:

Hi,

 

>> we would like to install it under %ProgramFiles% folder, but the fatal error shows up

As the error does not appear when you run the startup in another way I would look into your applications initialize part, if files are written or registry settings are tried without enough permissions?

 

- alfred -


Thank you, Alfred.

If that's the case, do you know how we should change permission so that this won't be an issue?

Thanks again.

 

Best,

Gang

0 Likes
Message 4 of 6

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> do you know how we should change permission so

>> that this won't be an issue?

Without seeing what you are doing in the initialize part?

Sorry, not possible. How should I correct a code that I have not written and don't see ...?

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 5 of 6

Mark.Lancaster
Consultant
Consultant

@gang

 

Adding to @Alfred.NESWADBA information.

 

This is not an Autodesk installation and licensing issue.  This is based on an add-on you wrote..   In the end it would not be supported here and you should be using the AutoCAD Customization forum for this.   I will have the moderator relocate your posting there.

 

https://forums.autodesk.com/t5/visual-basic-customization/bd-p/33

Mark Lancaster


  &  Autodesk Services MarketPlace Provider


Autodesk Inventor Certified Professional & not an Autodesk Employee


Likes is much appreciated if the information I have shared is helpful to you and/or others


Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.

0 Likes
Message 6 of 6

gang
Enthusiast
Enthusiast

I didn't see my post is relocated to that forum. I will repost it there.

0 Likes