System.AccessViolationException - On CalculateFull - but not on Calculate

Add-in Express™ Support Service
That's what is more important than anything else

System.AccessViolationException - On CalculateFull - but not on Calculate
 
mohan.ankur




Posts: 43
Joined: 2011-01-24
Dear Team.

Please can you suggest why I would get this error when simply calculating the ExcelApp?

ExcelApp.CalculateFull()

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

ExcelApp.Calculate() - This one does not throw the error.


Many thanks
Ankur
Posted 19 Dec, 2018 18:32:24 Top
Andrei Smolin


Add-in Express team


Posts: 16656
Joined: 2006-05-11
Hello Ankur,

In what event do you call that method?

Does the issue occur if you call that method while you only have an empty workbook open? BTW, make sure Workbooks.Count is 1 before testing this. If it is 1 and you have only one workbook open in the UI, disable Excel add-ins (XLA and XLAM) and also the Personal Macro workbook.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 20 Dec, 2018 02:11:35 Top