KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Compiled Application not launching on Windows Server 2003 (DEP)
PRODUCT: 4D | VERSION: 2004 | PLATFORM: Mac & Win
Published On: May 19, 2006

If you are having trouble running your compiled applications on a windows machine, a probable cause is the DEP feature in Microsoft Windows products.

What is DEP?
Here is the definition of DEP from the Microsoft website:

Data Execution Prevention (DEP) is a set of hardware and software technologies that perform additional checks on memory to help prevent malicious code from running on a system.

Data Execution Prevention (DEP) is a feature that has been implemented in the following windows versions: Windows XP Service Pack 2, Windows XP Tablet PC Edition 2005, and Windows Server 2003.

To learn more about the feature you can go to:
https://support.microsoft.com/kb/875352

How can I check if my 4D compiled application might be affected by this feature?
Some symptoms to look for are:
-On the same operating system, an interpreted version of your structure launches fine.
-On the same operating system, a new blank compiled database also is not able to launch.
-On a different operating system (Not listed as having DEP) your compiled application is able to launch.
-The operating system that you are trying to run your compiled application on is listed as having the DEP feature.

So how do I run my compiled application on system that has DEP?
Do the following:
NOTE: You must be logged in as an administrator of the machine to make these changes.
1. Click Start, click Run, type sysdm.cpl, and then click OK.
2. Click the Advanced tab, click Performance, and then click Settings.
3. In Performance Options, click the Data Execution Prevention tab, and then click Add.
4. In the Open dialog box, locate and then click the program. (4D Product you are trying launch)
5. Click Open, click Apply, and then click OK. (You might be prompted to restart your machine).

After making the above changes, your compiled application will not use the DEP feature and should now be able to start.

See Also: