Share via

Cannot disable DEP for certain programs?

Anonymous
2010-03-24T10:49:30+00:00

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?

Windows for home | Previous Windows versions | Gaming

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

  1. Anonymous
    2010-03-28T04:13:06+00:00

    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

    1. 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.

    80+ people found this answer helpful.
    0 comments No comments

12 additional answers

Sort by: Most helpful
  1. Anonymous
    2012-04-17T09:07:50+00:00

    Hi,

    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.

    1. Reboot
    2. Install your application/game
    3. 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

    10 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2010-03-25T09:25:20+00:00

    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.

    7 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2011-06-25T22:30:01+00:00

    Ive tried turning it off for the entire system but it says that process isnt recognized   any ideas?

    3 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2010-03-29T11:17:05+00:00

    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

    1 person found this answer helpful.
    0 comments No comments