Hi Govert –
I’m working on a project involving spreadsheet function registration.
Initially, my project was using the following ExcelDna packages.
I experienced the now-familiar anti-virus bug in Windows Defender. As of 2022-09-20, Microsoft hasn’t fixed it.
I’m registering my spreadsheet functions following standard procedures:
<ExternalLibrary
Path="Kalends.dll"
ExplicitRegistration="true"
LoadFromBytes="true"
Pack="true" />
PerformDefaultRegistration()
But execution stops at PerformDefaultRegistration(), with the following message:
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=ExcelDna.Loader
I have an earlier version of this project, which has always worked fine. After searching high and low, I found only one significant difference: The older version uses an older version of ExcelDna.
So, I downgraded to version 1.1.0 or 14.0.1 as appropriate. Then PerformDefaultRegistration() worked perfectly. And, as you have indicated elsewhere, Windows Defender stopped complaining.
Now I’m suspicious: Do you think that Windows Defender was somehow erasing the “instance of an object”?
Everything now seems fine, except that when a signature includes an Enumeration, a DnaMarshalException results. If that’s merely a limitation of the earlier ExcelDna version, I can deal with it.
Any comments would be appreciated.
Paul Margus, FSA, MAAA
49 Webster Road
PO Box 484
Tyringham, MA 01264
This e‑mail and any attachments are solely for the addressee. The content may be PRIVILEGED, CONFIDENTIAL, PROPRIETARY, and COPYRIGHTED. Any unauthorized use, dissemination, or copying is prohibited and may be unlawful. If you are not the intended addressee, please notify the sender immediately and delete this e‑mail, attachments, all copies, and any printout.