Configuring the COM Connector
The COM connector provides full COM connectivity for Uniface applications.
- To enable COM clients to create instances of Uniface services (call-in), ensure that the exported COM Interface DLL for the service is on the client's workstation.
- Run the Uniface COM Configuration utility. Choose COM Configuration from the Uniface group in the Windows Start menu, or run ucomcfg.exe in the \common\bin directory of the Uniface installation.
- For call-in only, specify options for the
COM connector as required, under the Global Uniface com 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.
-
If you selected Thread
synchronization, edit the assignment file to use the
$ALLOW_FOREIGN_THREADS assignment option:
[SETTINGS] $ALLOW_FOREIGN_THREADS = 1