Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i created an application , that returns access violation error exception , i want to turn off dep(data execution prevention) for this application , i know that i can turn it off with My computer->properties->advanced->performance(settings)->data exception prevention and etc
ok?
but i want to do this job with c# code and .net , i know that this job will be done with edit boot.ini file ,ok? in boot.ini file must find (NoExecute=AlwaysOn)
and replace AlwaysOn with AlwaysOff,but it turn off dep for all applications,i want to turn it off only for My application,ok?and i want to do this with c# code in startup of My application,any one can help me?
Posted
Updated 7-Sep-11 1:33am
v3

Instead of turning off DEP, try and make your application compatible with DEP - see http://msdn.microsoft.com/en-us/library/ms235442%28v=VS.100%29.aspx[^].
 
Share this answer
 
Instead of turning of DEP, correct your code.
 
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