Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempted to read or write protected memory. This is often an indication that other memory is corrupt. #930

Open
bovender opened this issue Apr 6, 2021 · 0 comments

Comments

@bovender
Copy link
Owner

bovender commented Apr 6, 2021

This issue was submitted by the add-in's exception handler.

Exception:

System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
   at Microsoft.Office.Interop.Excel.Range.Clear()
   at XLToolbox.WorkbookStorage.Store.PrepareStoreSheet() in X:\Code\xltoolbox\NG\XLToolbox\WorkbookStorage\Store.cs:line 576
   at XLToolbox.WorkbookStorage.Store.WriteToWorksheet() in X:\Code\xltoolbox\NG\XLToolbox\WorkbookStorage\Store.cs:line 504
   at XLToolbox.WorkbookStorage.Store.Dispose() in X:\Code\xltoolbox\NG\XLToolbox\WorkbookStorage\Store.cs:line 241
   at XLToolbox.Export.Models.Preset.Store(Workbook workbookContext) in X:\Code\xltoolbox\NG\XLToolbox\Export\Models\Preset.cs:line 173
   at XLToolbox.Export.ViewModels.SingleExportSettingsViewModel.DoExport() in X:\Code\xltoolbox\NG\XLToolbox\Export\ViewModels\SingleExportSettingsViewModel.cs:line 263
   at Bovender.Mvvm.Messaging.Message`1.<>c__DisplayClass3_0.<Send>b__0() in X:\Code\bovender\Bovender\Mvvm\Messaging\Message.cs:line 67
   at Bovender.Mvvm.Actions.FileDialogActionBase.Invoke(Object parameter) in X:\Code\bovender\Bovender\Mvvm\Actions\FileDialogActionBase.cs:line 104
   at System.Windows.Interactivity.TriggerBase.InvokeActions(Object parameter)
   at Bovender.Mvvm.Actions.NonUiTrigger.Invoke(Object parameter) in X:\Code\bovender\Bovender\Mvvm\Actions\NonUiTrigger.cs:line 37
   at Bovender.Mvvm.Actions.MessageActionExtensions.Invoke(MessageActionBase action, EventArgs messageArgs) in X:\Code\bovender\Bovender\Mvvm\Actions\MessageActionExtensions.cs:line 48
   at Bovender.Mvvm.Messaging.Message`1.Send(T messageContent, Action`1 respond) in X:\Code\bovender\Bovender\Mvvm\Messaging\Message.cs:line 62
   at Bovender.Mvvm.DelegatingCommand.Execute(Object parameter) in X:\Code\bovender\Bovender\Mvvm\DelegatingCommand.cs:line 121

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

Environment

Parameter Value
Version 7.3.4
OS Microsoft Windows NT 6.1.7601 Service Pack 1, 64-bit
Excel 365 (16.0.12527), 64-bit
CLR 4.0.30319.36543, 64-bit
VSTO runtime 10.0.60828
ClickOnce False
Bovender 0.18.0.0
FreeImage 3.18.0
Identifier 0734ff25bfa79738c6f26a98e3fa4a82ecbd5f04e2b2729a0912551d66acc6e3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant