rubberduck-vba / Rubberduck

Every programmer needs a rubberduck. COM add-in for the VBA & VB6 IDE (VBE).
https://rubberduckvba.com
GNU General Public License v3.0
1.91k stars 299 forks source link

Problem with AutoCAD VBA #4283

Closed RICVBA closed 6 years ago

RICVBA commented 6 years ago

I installed RD v 2.2.0.3675 and then tried opening AutoCAD 2014 product version I.18.0.0 VBA IDE with following issues:

Value cannot be null."_

and whose "Details" are:

System.ArgumentNullException: Value cannot be null.
   at System.Threading.Monitor.Enter(Object obj)
   at Rubberduck.VBEditor.SafeComWrappers.SafeComWrapper`1.Dispose(Boolean disposing) in C:\projects\rubberduck\Rubberduck.VBEEditor\SafeComWrappers\SafeComWrapper.cs:line 144
   at Rubberduck.VBEditor.SafeComWrappers.Abstract.HostApplicationBase`1.Finalize() in C:\projects\rubberduck\Rubberduck.VBEEditor\SafeComWrappers\Abstract\HostApplicationBase.cs:line 135
RICVBA commented 6 years ago

and here's the "RubberduckLog.txt]"

RubberduckLog.txt

MDoerner commented 6 years ago

I have my doubts that this really is a regression. As mentioned in chat, the error occured when loading RD in a newer AutoCAD version that does no longer support VBA out of the box via a VBA enabler. I bet the VBA enabler does not register with the same GUID the old original AutoCAD host did. In that case, the original GUID is probably not registerd at all and the cast is failing because of this.

RICVBA commented 6 years ago

Rubberduck v2.2.0.3684-pre solved it! Thanks you all!