Cannot disable DEP for certain programs?
This evening I attempted to install Knights of the Old Republic, the original, onto a 64-bit Windows 7 machine. I knew it would cause issues, but I'm stumped at a problem I can identify but cannot find a way to fix. The issue is the game throws a DEP CTD event as I open the main executable. It's currently running in Windows XP SP2 compatibility mode as administrator, throwing the following message:
Problem signature:
Problem Event Name: BEX
Application Name: swkotor.exe
Application Version: 1.0.0.0
Application Timestamp: 00000000
Fault Module Name: swkotor.exe
Fault Module Version: 1.0.0.0
Fault Module Timestamp: 00000000
Exception Offset: 00000110
Exception Code: c0000005
Exception Data: 00000008
OS Version: 6.1.7600.2.0.0.256.48
Locale ID: 1033
Additional Information 1: be9b
Additional Information 2: be9bf493184e8a1cc6dbc11c84c53984
Additional Information 3: 9e35
Additional Information 4: 9e353e53e9ec76750b5c1f800beee128
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
I've identified Problem Event Name BEX and Exception Code c0000005 as being the result of a DEP exception, so I attempted to add swkotor.exe to the list of programs that /don't/ run DEP, getting the following message:
This program must run with data execution protection (DEP) enabled. You cannot turn off DEP for this program.
Anyone got any ideas?
Abuse history
Answer
Hey OstermanA,
Have you tried completely turning off the DEP subsystem completely, rather than just selectively for this game? See if this helps in bypassing DEP temporarily. Ensure that you enable it back once you complete the installation.
Here’s how:
1. Type cmd in the start search menu, right-click on it and select Run as Administrator.
2. Once the command prompt is open, you can now disable the DEP by entering the following command line.
bcdedit.exe /set nx AlwaysOff
3. And to enable it back,
bcdedit.exe /set nx AlwaysOn
If that doesn’t help, check the following patches. See if any one of the patches helps you in fixing the DEP issue as this seems to have helped others who faced similar issue.
http://www.lucasarts.com/support/
Regards,
Shinmila H - Microsoft Support
Visit our Microsoft Answers Feedback Forum and let us know what you think.
Abuse history
Hey OstermanA,
Here are certain steps you may want to try to get past the application crash issue during installation.
1. Disable Visual Themes
2. Disable Desktop Composition
3. Disable display scaling on high DPI settings
4. Run as Administrator. You require admin privileges for the installation to start-up. Playing it without this causes failure to launch.
To do so, follow these steps:
1. Right-Click on the setup file and select Properties.
2. Go to Compatibility tab.
3. Uncheck the given four options.
4. Save the setting by clicking on Ok.
Try with new driver.
Visit the Manufacturer’s website support link and download the latest graphics card drivers.
Additional information:
Update drivers: recommended links
http://windows.microsoft.com/en-US/windows7/Update-drivers-recommended-links
For additional help on the installation issue, please visit this thread from the game publisher’s website.
http://www.lucasforums.com/showthread.php?t=194296
Regards,
Shinmila H - Microsoft Support
Visit our Microsoft Answers Feedback Forum and let us know what you think.
Abuse history
I am aware of that thread, and have followed it through to the letter. The issue I'm having is not one of the known issues experienced there, but rather a DEP exception causes program termination that I cannot avoid. My system will not allow me to bypass DEP for this program, and I do not know why.
Is there any way to force the system to not run DEP on this application without turning DEP off entirely? I have absolutely no interest in shutting it all down, but I am becoming frustrated by my inability to find documentation on this error.
And, in response to your above suggestions, I have already disabled all themes/options, am running the latest versions of all drivers, and I explicitly stated that I turned on compatibility mode for Windows XP and am running the application as administrator. I am actually offended by the fact that you clearly did not actually read my issue, but rather skimmed the post and made an assumption on what I was asking. The question was on DEP causes the program to fail to start, not compatibility mode or installation issues.
Abuse history
Answer
Hey OstermanA,
Have you tried completely turning off the DEP subsystem completely, rather than just selectively for this game? See if this helps in bypassing DEP temporarily. Ensure that you enable it back once you complete the installation.
Here’s how:
1. Type cmd in the start search menu, right-click on it and select Run as Administrator.
2. Once the command prompt is open, you can now disable the DEP by entering the following command line.
bcdedit.exe /set nx AlwaysOff
3. And to enable it back,
bcdedit.exe /set nx AlwaysOn
If that doesn’t help, check the following patches. See if any one of the patches helps you in fixing the DEP issue as this seems to have helped others who faced similar issue.
http://www.lucasarts.com/support/
Regards,
Shinmila H - Microsoft Support
Visit our Microsoft Answers Feedback Forum and let us know what you think.
Abuse history
There are certain hacks that need to be carried out to get Knights of the Old Republic, the original to run on 64-bit versions of Windows. I can't remember the exact steps ATM but I know it is possible since I did it in the past.
Try the suggestions here
Abuse history
I too would like to know why the following error message occurs: "This program must run with data execution protection (DEP) enabled. You cannot turn off DEP for this program". The above instructions seem to suggest disabling it for the entire system. I fail to see how that accomplishes what I require: Disabling DEP for 1 particular application, and then having it still enabled for everything else.
Abuse history
Abuse history
Try this one out:
1. Uninstall your application/game
2. Run "CMD" with elevated rights.
3. Config DEP with condition. " bcdedit /set nx OptOut
4. Reboot
5. Right click on your "computer" --> Properties --> Advanced system settings --> Advanced tab --> "Data execution Prevention" tab.
6. Add the installation file for the program that you want to make an exception for.
7. Reboot
8. Install your application/game
9. Try it out, as an option afterwards if still not working, "Run as XP SP3" in compability mode, for all users.
Hope it helps...
Regards
Kim
Abuse history
on doing this, it says it cannot be done because the value is protected by secure boot policy.
Abuse history
Hi OstermanA,
I suggest you to read this article, probably it helps: http://www.windows8freedownload.com/blog/add-applications-to-data-execution-prevention-dep-list . Add the bottom you can find how to do that.
Abuse history
* Please try a lower page number.
* Please enter only numbers.
