Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
The above error has been occurred when I try to open an IronPython project in Visual Studio 2005 at following file location position C:\Program Files\Visual Studio 2005 SDK\2007.02\VisualStudioIntegration\Common\Source\CSharp\Project\Automation\OAProject.cs at line 189:
|
/// <summary>
/// Gets a collection of all properties that pertain to the Project object.
/// </summary>
public virtual EnvDTE.Properties Properties
{
get
{
object outputProperties = null;
IVsExtensibility3 vsExtensibility3 = this.project.GetService(typeof(IVsExtensibility)) as IVsExtensibility3;
vsExtensibility3.GetProperties(this, this.project.NodeProperties, out outputProperties);
return (EnvDTE.Properties)outputProperties;
}
}
|
Old code
I reply the above code with following line.
|
/// <summary>
/// Gets a collection of all properties that pertain to the Project object.
/// </summary>
public virtual EnvDTE.Properties Properties
{
get
{
return new OAProperties(this.project.NodeProperties);
}
}
|
New Code
Now open the IronPython Window application now its fine and have fun with IronPython plenty of blogs will come on IronPython and Python.