Click here to Skip to main content
15,889,595 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Hi all,

I have a .net 4.0 windows application which is migrated from .net 3.5.

This windows application is using a third party DLL file (from Windows\system32\MyScanner.dll) which is used to connect with a scanner attached to the system through USB port.

This application is working fine in Windows XP (Service pack 3) but not in Windows 7 Professional (32 bit). The exception is as follows,
"System. AccessViolationException : Attempted to read or write protected memory. This is often an indication that other memory is corrupt".

I googled a lot regarding this issue, but none of the solutions worked. I tried to disable the DEP policy in windows for the MyScanner.dll, but no effect.

Is anybody have a solution to this?
Posted
Updated 7-Dec-11 23:10pm
v4

1 solution

There is no general resolution to this problem. The first thing you need to do is to discover where in the program the error is occurring and why, and then try and fix it. If the error is in the DLL then you need to go back to the suppliers and get some diagnosis from them.
 
Share this answer
 

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