Click here to Skip to main content
12,501,082 members (41,553 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C#3.5
Hi....
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 Swa4.9K
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
Rate this: bad
 
good
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?
  Permalink  
Comments
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 | Mobile
Web02 | 2.8.160919.1 | Last Updated 3 May 2012
Copyright © CodeProject, 1999-2016
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