Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
Attempted to read or write protected memory. This is often an indication that other memory is corrup
January 27, 2012
After a long time i am posting here.I recently shifted to windows application development team.I had one doubt , i need to use u25idautomation.dll method IDA_C128.But this dll in an un managed dll,so we can't do addreference.We have to call by using Platform Invoke process.I did the same but when the time of calling that method it its giving the following error.Here i am giving my code also.
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
// This is a call to unmanaged code. Executing this method requires
// the UnmanagedCode security permission. Without this permission
// an attempt to call this method will throw a SecurityException:
private static extern string IDA_Code128(string DataToEncode);
iam calling this method in another method ..like
this.LabelContents.Add(new Tuple<string, string, Font, Font>("Barcode", IDA_Code128(txtPalletId.Text), valueFont, valueFont));
this is the line where am calling the method.I done google search but not got any solution can any one please ...
Posted Date: August 07, 2012 Points: 20
Where to use this DLL in your Project or Check this DLL Code? I think, Please paste your DLL in your debug Folder.
Regards, Lakshmi Naraayanan.S
To post reply
Related Questions Related Questions
read and write an xml
Server memory is limited. Please rebuild the execution.
What is the best memory management profiler tool for .Net
What is resurrection in .Net memory management?
What is Parameter Marshalling, type navigation and Memory management?
Latest Forum Questions From The Same Category
database is read-only.
editor for visual basic with c#.net
How to get phone number in .Net windows application?
while accessing method from proxy giving an unauthorized access
How to make search between two dates accept null not obligatory search proplem
Create a Windows form application using Excel as database..
Recieve Data From Serial Com Port C# In One Line And Convert To integer
display parent data and child data as a row group in one datagridview using c# winform
enter key event in windows app c#.net
windows appplication c#.net
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend