Click here to Skip to main content
15,892,517 members
Please Sign up or sign in to vote.
1.11/5 (2 votes)
See more:
hi friends,
when i add compact edition(.sdf)database file into my mobile application project using c# that displays"Attempted to read or write protected memory. This is often an indication that other memory is corrupt" visual studio error message.please reply how to solve this error.give the full solution for the problem..or please give me the suggestion for correcting the problem....Thanx
Posted
Updated 19-May-11 18:44pm
v2

give the full solution for the problem

How do you expect anyone to do that with this amount of information? This error means there is a bug in your program so you need to narrow it down to the section of code where it occurs, and if you still cannot work it out, then post a copy of the code so people can try to analyse what may be going wrong.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 19-May-11 15:24pm    
You're right, my 5,
see also my answer.
--SA
Ed Nutting 19-May-11 15:30pm    
My 5 :)
Richard is absolutely right!

This is solved using the Debugger. Use it, and you will dig out everything. If you still don't know how to fix it, ask another question. By that time you will be able to present a comprehensive issue report. In this case, don't forget to post mark all the relevant lines of code and show when the code fails.

—SA
 
Share this answer
 
v2
Comments
Ed Nutting 19-May-11 15:30pm    
My 5 :)
Sergey Alexandrovich Kryukov 19-May-11 15:34pm    
Thank you, Ed.
--SA

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900