Global Uniface COM Settings

Specify global options for the COM connector.

Setting global COM options creates entries in the Microsoft Windows Registry.

Settings

  • Keep COM component in memory—keep the COM component in memory when a process repeatedly calls Uniface COM objects. This speeds up COM operation and prevents memory leakage, which is particularly useful when Uniface services are being called from ASPs.
  • Debug logging—directs the COM connector to generate detailed logging to the Windows debugger channel. The logging is output using the Windows API function OutputDebugString(), so it can be seen while running under a debugger such as Visual Studio or Dependency Walker. You can also use DebugView from www.sysinternals.com. The logging can be useful to check the correct working of the other COM options, as well as the general flow of COM events.
  • Thread synchronization—causes the COM driver to serialize the invocation of COM objects, so only one process thread can access a Uniface COM object at a time. Because Uniface is currently not fully threadsafe, this option is necessary to make it work in a multi-threaded COM environment without concurrency problems.
Note:  If you select Thread synchronization, you must also set the assignment option $ALLOW_FOREIGN_THREADS = 1, otherwise it has no effect.

Related Topics