次の方法で共有


Getting error "Attempted to read or write protected memory" while dragging and dropping Microsoft Controls in design-view of VS 2005

 

When dragging and dropping controls in design view of Visual Studio 2005 - Getting error "Attempted to read or write protected memory"

Issue Description:

 

-- Getting following pop-up error when trying to drag and drop Microsoft Controls in Visual Studio 2005 design view

---------------------------

Microsoft Visual Studio

---------------------------

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

---------------------------

OK Help  

---------------------------

Resolution:

-- There was something wrong with the registration of VS packages. We reset those and it resolved the issue.

-- We ran the following command from the

C:\Program Files\Microsoft Visual Studio 8\Common7\IDE>devenv.exe /ResetSkipPkgs

-- We opened the existing project in Visual Studio 2005 and now we did not get the above error while dragging and dropping Microsoft and non-Microsoft Controls.

-- Tried closing and opening up the project again and still no issues.

More Information:

 

/ResetSkipPkgs (devenv.exe)

<https://msdn.microsoft.com/en-us/library/ms241276(VS.80).aspx>

Devenv Command Line Switches 

<https://msdn.microsoft.com/en-us/library/xee0c8y7(VS.80).aspx>

Comments