Re: System.ArgumentNullException on RTD server shutdown

33 views
Skip to first unread message

Govert van Drimmelen

unread,
Jun 2, 2013, 6:13:41 PM6/2/13
to Excel-DNA
Hi Joe,

Thank you for reporting the RTD-related bug.
It should be fixed in the latest check-in (79439) on CodePlex,
available here: https://exceldna.codeplex.com/SourceControl/list/changesets

Please let me know if there is still a problem.

Regards,
Govert


* * * * * * * * * * * * * * * * * * * * * * * * * * * *

Ensure that the Excel-DNA project continues by
making your donation - http://excel-dna.net/support/

* * * * * * * * * * * * * * * * * * * * * * * * * * * *


On May 14, 9:25 pm, Joe <simps...@gmail.com> wrote:
> Hi,
>
> My RTD server extends the ExcelRtdServer base class and works great (thanks
> Govert! Great product!), with one caveat:
>
> I get the following error on closing the sheet:
>
> Error in RTD server MyRtd ServerTerminate: System.ArgumentNullException:
> Value cannot be null.
> Parameter name: key
>    at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
>    at System.Collections.Generic.Dictionary`2.ContainsKey(TKey key)
>    at ExcelDna.Integration.Rtd.RtdRegistration.UnregisterRTDServer(String
> progId)
>    at
> ExcelDna.Integration.Rtd.ExcelRtdServer.ExcelDna.Integration.Rtd.IRtdServer .ServerTerminate()
>
> Additional context:
>
> - I call ComServer.DllRegisterServer() within AutoOpen() of my Add-in.
> - My RTD server has a ProgId:
>
> [ProgId("My.Rtd"), ComVisible(true)]
> [Guid("AEA4CDAF-BE27-4A70-8A2C-54F0DC443558")]
> public class MyRtd : ExcelRtdServer
> I worked around the error by recompiling the ExcelDna libraries with a null
> check at the start of UnregisterRTDServer() in ExcelRtd.cs.
>
> Joe
Reply all
Reply to author
Forward
0 new messages