Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

AccessViolationException

28 views
Skip to first unread message

Henrik Bergström

unread,
Nov 12, 2024, 7:37:10 AM11/12/24
to Excel-DNA
1.9.0-alpha2 && 1.7.0

Hi,
I call function from Ribbon button.
I get System.AccessViolationException.

    public void InsertSummeryData(IRibbonControl ribbonControl)
    {
        var reference = (ExcelReference)XlCall.Excel(XlCall.xlfCaller);
     }

System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'


1.
Why do I get AccessViolationException ?

2.
Is there any better way to get the FileName ?

Br,
Henrik


Reply all
Reply to author
Forward
0 new messages