Solved

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

Posted on 2011-09-14
5
1,961 Views
Last Modified: 2013-12-17
Code :

Microsoft.Office.Interop.Excel.Workbook excelWorkbook = excelApp.Workbooks.Open(workbookPath,
                        0, false, 5, "", "", false, Microsoft.Office.Interop.Excel.XlPlatform.xlWindows, "",
                        true, false, 0, true, false, false);



When trying to open excel it is throwing an error "Attempted to read or write protected memory. This is often an indication that other memory is corrupt".
0
Comment
Question by:ghsnehashis
  • 2
  • 2
5 Comments
 
LVL 50

Accepted Solution

by:
jcimarron earned 500 total points
ID: 36538981
0
 

Author Comment

by:ghsnehashis
ID: 36540662
Thanks for your reply. I will check and update.
0
 

Author Closing Comment

by:ghsnehashis
ID: 36541625
Thanks jcimarron.

Thanks for your help.

It's a great solution. Every one needs to know this solution.
0
 
LVL 50

Expert Comment

by:jcimarron
ID: 36544074
ghsnehashis--You are most welcome!!
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question