Get error: Attempted to read or write protected memory

B

barbara_dave

Hi All,

I am using VS 2005 in VISTA Operation System. Before I added reference
OWC10, I can compile the form and run it in the development
environment or or run the .exe in the bin directory, it has no
problem.

When I added reference OWC10, add spreadsheet and chart controls to
the control box, drag a spreadsheet and chart in the form, compile it,
it works; but when I run its exe file windowsapplication1.exe in the
bin directory, it shows dialog box which displays
message:"WindowsApplication1 has stopped working. A problem caused the
program to stop working correctly, Windows will close the program and
ontify you if a solution is available."

Click debug button, Microsoft CLR Debugger shows up and displays the
following message:

"An unhandled exception of type'System.InvalidOperationException'
occurred in Microsoft.VisualBasic.dll

Addtional information: An error occured creating the form. See
Exception.InnerException for details. The error is:Attempted to read
or write protected memory. This is often an indication that other
memory is corrupt."

How to solve this problem?

Thanks for the help!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top