Error message: has stopped working

Symptom:

When running a TWAIN EXE file in Windows Vista/7, you may get the following error message:

Cause:

The EXE file is blocked by the DEP (Data Execution Prevention) protection. DEP is a security feature in Microsoft Windows OS.

Solution:

Please turn off DEP for the EXE file. The following is the detailed information.

Disable Data Execution Prevention (DEP) completely

  1. Open Control Panel and click Performance and Maintenance.
  2. Under or Pick a Control Panel icon, click System.
  3. Click the Advanced tab, and in the Startup and Recovery area, click Settings.
  4. In the SystemStartup area, click Edit.
  5. In Notepad, click Edit and then click Find.
  6. In the Find what field, type /noexecute and then click Find Next.
  7. In the Find dialog box click Cancel.
  8. Replace the policy_level (for example, "OptIn" default) with "AlwaysOff" (without the quotes).

    WARNING: Be sure to enter the text carefully. Your boot.ini file switch should now read:

    /noexecute=AlwaysOff

  9. In Notepad, click File and then click Save.
  10. Click OK to close Startup and Recovery.
  11. Click OK to close System Properties and then restart your computer.

This setting does not provide any DEP coverage for any part of the system, regardless of hardware DEP support.

Verifying DEP is Disabled

  1. Click Start, and then click Control Panel.
  2. Under Pick a category, click Performance and Maintenance.
  3. Under or Pick a Control Panel icon, click System.
  4. Click the Advanced tab.
  5. In the Performance area, click Settings and then click Data Execution Prevention.
  6. Verify that the DEP settings are unavailable and then click OK to close Performance Settings.
  7. Click OK to close System Properties then close Performance and Maintenance.
If you are using Visual Studio, you can go to Start->All Program->Microsoft Visual Studio->Visual Studio Tools and click Visual Studio Command Prompt. In the console window, run the following command:

editbin.exe /NXCOMPAT:NO $(TargetPath)

Is this page helpful?

Leave a Reply

Your email address will not be published.