Click here to Skip to main content
13,088,846 members (55,679 online)
Rate this:
Please Sign up or sign in to vote.
See more:
i had developed one user control (C#) in winforms with some unsafe code. i had executed the application with VS-2008, it was successful. When i am trying to execute the same program with VS-2010, i am having problems. The error message is "Attempted to read or write protected memory. This is often an indication that other memory is corrupt".

Please give any Solution.
Posted 2-May-12 21:46pm
Vinay Swa5.2K
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Check your pointers: Have you built the 2010 version for 64 bit, and the 2008 version for 32?
Vinay Swa 3-May-12 5:17am
i had developed with 32bit version of 2008 only, my OS is windows XP-32bit. Just i had opened the VS-2008 application with vs-2010 and executed the application.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170813.1 | Last Updated 3 May 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100