You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

An Uniface application that is running on Terminal Server or Citrix may close unexpectedly in Windows Server 2008 R2

Author: daniel.iseli@uniface.com (diseli)

Symptoms: Running an Uniface application (any version) remotely on Terminal Server(Remote Desktop) or Citrix server that is running Windows Server 2008 R2, the application may close unexpectedly (crash). The problem can occur when opening (e.g.) a file selection box (using the filebox Proc statement) or a form that is displaying a HTML widget (only applicable for Uniface 9.6 and 9.7). Cause: This issue occurs because of a problem in the Windows Terminal Server module Tsappcmd.dll. More details about this problem can be found (e.g.) here:

Workaround: (see Microsoft Knowledge Base article 2498855) Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Uniface or Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.To work around this issue, use one of the following methods. Method 1 Disable DEP for the application in question. To do this, follow these steps:

  1. In Control Panel, click System, and then click Advanced system settings. The System Properties dialog appears.
  2. In the Performance section, click Settings. The Performance Options dialog opens.
  3. On the Data Execution Prevention tab, select Turn on DEP for all programs and services except those I select, and then click Add.
  4. Select the executable file of the problematic application.
  5. Click Apply, and then restart the system.

Method 2 Disable IAT. To do this, follow these steps:

  1. Start Registry Editor. To do this, click Start, click Run, type regedit, and then click OK.
  2. Locate and then right-click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server
  3. Click New, and then click DWORD (32bit) Value.
  4. Type IAT to name the new DWORD value, and then press Enter.
  5. Right-click IAT, click Modify, and then type 1 in the Value data box.
  6. Restart the system.

  UPDATE: The above described issue should not occur anymore with the HTML widget when using version 9.7.02 (and higher). Please note that the DEP policy will be enabled automatically when the HTML widget is initialized. And this will override the workaround described in method 1. Additional information can be found here.

This page has no comments.