New Members FAQ
Talk to Webmaster
Join our online
for Bloggers, Content Writers and Webmasters
Attempted to read or write protected memory
21 May 2012
I am getting the the exception "Attempted to read or write protected memory.This is often an indication that other memory is corrupt" because of below code. Could you please help in the below code?
private void Configure()
string filePath = string.Empty;
int rtnVal = 0;
filePath = GetBaseDirectory(@"\") + "Sample.BIN";
if (File.Exists(filePath) == false) return;
fsRead = new FileStream(@filePath, FileMode.Open);
binRead = new BinaryReader(fsRead);
if (binRead != null && binRead.BaseStream.Length > 0)
int MsI = -1;
CRsiFkeyData pFkeyData = new CRsiFkeyData();
byte byteArray = binRead.ReadBytes(Convert.ToInt32(binRead.BaseStream.Length.ToString()));
while (++MsI < binRead.BaseStream.Length)
pFkeyData.data[MsI] = byteArray[MsI];
rtnVal = objRsiHandReader.CmdPutFkeyData(pFkeyData);
catch (Exception Ex)
Global.MakeEntry(Ex.Message + " Configure");
No responses found. Be the first to respond and make money from
revenue sharing program
to post a response.
How to get the data of datagrid view into rich textbox.
How to download and instaal .net to learn c#.net and vb.net ?
Return to Discussion Forum
Post New Message
Is there any expert to solve this?
what is difference between String and string(data type) in c#?
what is a resource file...
Horizontal Scroll Bar for a listview control
Follow us on Twitter:
Last 7 Days
Asheej T K
Awards & Gifts
Articles Rss Feeds
Forum Rss Feeds
Revenue Sharing sites
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.