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,857 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Lync meeting or Lync conferencing is what many organizations would like to deploy to allow them save money. But companies are now giving up for various reasons, one of which is that they cannot join external meetings (non-federated company meetings)…
Viewers will learn the different options available in the Backstage view in Excel 2013.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now