Closed Murtnowski closed 8 years ago
@Murtnowski Unfortunately I cannot reproduce. Would you be able to share the definition of the function, if it is a simple one? And how you called it within Excel? What version of Excel are you using? Thanks
@Murtnowski Can you confirm that this is in the latest version from 31 July? I recall a bug like this in an earlier version.
I'm using version 0.1.4-beta2 (Prerelease) which I got from the NuGet manager. Excel 2010.
It claims it's dependencies are: ExcelDna.Integration (>= 0.33.9 && < 0.34) UIAComWrapper (>= 1.1.0.14)
Sorry I'm on an old build. I hadn't seen the v0.1.5-beta3 release yet.
My function definitions looks something like this:
[ExcelFunction(Name="A_FUNCTION_NAME", Description = "Some sort of text here")] public static object A_FUNCTION_NAME([ExcelArgument(Description = "Additional Text because why not")] string myFavParam, [ExcelArgument(Description = "Somethign somethign something")] string moreParam, [ExcelArgument(Description = "Do some stuff")] string lastParam)
\ Loaded Assemblies ** mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.6.1080.0 built by: NETFXREL3STAGE
ExcelDna.Loader Assembly Version: 0.33.5730.40390 Win32 Version: 1.4.1.1
System Assembly Version: 4.0.0.0 Win32 Version: 4.6.1081.0 built by: NETFXREL3STAGE
System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.6.1038.0 built by: NETFXREL2
System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.6.1038.0 built by: NETFXREL2
System.Security Assembly Version: 4.0.0.0 Win32 Version: 4.6.1073.0 built by: NETFXREL3STAGE
System.Xml Assembly Version: 4.0.0.0 Win32 Version: 4.6.1064.2 built by: NETFXREL3STAGE
ExcelDna.Integration Assembly Version: 0.33.5730.40390 Win32 Version: 1.4.1.1
System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.6.1038.0 built by: NETFXREL2
System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.6.1078.0 built by: NETFXREL3STAGE
PETFunctions Assembly Version: 1.0.0.0 Win32 Version: 1.4.1.1
AdditionalSecret Assembly Version: 1.4.1.1 Win32 Version: 1.4.1.1
ExcelDna.DynamicDelegateAssembly Assembly Version: 0.0.0.0 Win32 Version: 1.4.1.1
ExcelDna.IntelliSense Assembly Version: 0.1.4.0 Win32 Version: 1.4.1.1
Microsoft.CSharp Assembly Version: 4.0.0.0 Win32 Version: 4.6.1038.0
System.Dynamic Assembly Version: 4.0.0.0 Win32 Version: 4.6.1038.0
Anonymously Hosted DynamicMethods Assembly Assembly Version: 0.0.0.0 Win32 Version: 4.6.1080.0 built by: NETFXREL3STAGE
ExcelDna.DynamicDelegateAssembly Assembly Version: 0.0.0.0 Win32 Version: 1.4.1.1
WindowsBase Assembly Version: 4.0.0.0 Win32 Version: 4.6.1080.0 built by: NETFXREL3STAGE
System.Dynamic.DynamicAssembly Assembly Version: 0.0.0.0 Win32 Version: 4.6.1038.0
CustomMarshalers Assembly Version: 4.0.0.0 Win32 Version: 4.6.1038.0 built by: NETFXREL2
UIAComWrapper Assembly Version: 1.1.0.14 Win32 Version: 1.4.1.1
Interop.UIAutomationClient Assembly Version: 12.0.20617.1 Win32 Version: 1.4.1.1
Accessibility Assembly Version: 4.0.0.0 Win32 Version: 4.6.1038.0 built by: NETFXREL2
System.Runtime.Caching Assembly Version: 4.0.0.0 Win32 Version: 4.6.1073.0
ASecret Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0
System.Web.Extensions Assembly Version: 4.0.0.0 Win32 Version: 4.6.1073.0
System.Web Assembly Version: 4.0.0.0 Win32 Version: 4.6.1073.0 built by: NETFXREL3STAGE
@Murtnowski This bug should already be fixed in the current version.
Not a bug
Excel loads up just fine and when I start typing a custom function everything works as intended. However after executing the function, I get a popup with the crash report below. The function still executes and works. Oddly enough, this crash only happens the first time I execute a function, after this first time I never get the same error again.
I call IntelliSenseServer.Register(); in the AutoOpen of my IExcelAddIn of my ExcelDNA Plugin.
\ Exception Text ** System.ArgumentNullException: Value cannot be null. Parameter name: input at System.Text.RegularExpressions.Regex.Replace(String input, String replacement) at System.Text.RegularExpressions.Regex.Replace(String input, String pattern, String replacement) at ExcelDna.IntelliSense.FormulaParser.TryGetFormulaInfo(String formulaPrefix, String& functionName, Int32& currentArgIndex) at ExcelDna.IntelliSense.IntelliSenseDisplay.FormulaEditTextChange(String formulaPrefix, Rect editWindowBounds, IntPtr excelToolTipWindow) at ExcelDna.IntelliSense.IntelliSenseDisplay.StateUpdate(Object sender, UIStateUpdate update) at ExcelDna.IntelliSense.UIMonitor.RaiseStateUpdates(Object updates)