FileNewOther
Use this dialog box to create a data module that can be accessed remotely as a dual-interface Automation server.
Item |
Description |
CoClass Name |
Specifies the base name for the Automation interface and the remote data module. The class name for the remote data module will be the CoClass Name prepended with a T. The implementation class will inherit from an interface named using the CoClass Name prepended with an I. To enable a client application to access this interface, set the ServerName property of the client application's connection component to the CoClass Name. |
Threading Model |
Specifies how client calls are passed to the interface of the remote data module. |
Model |
Description |
Single |
The data module services one client request at a time. Because client requests are serialized by COM, you do not need to address thread conflicts. |
Apartment |
Each instance of the remote data module services one request at a time. The DLL might handle multple requests on separate threads if it creates multiple COM objects. Instance data is safe, but you must ensure that global memory is guarded against thread conflicts. This threading model is recommended if you use BDE-enabled datasets. |
Free |
The remote data module can receive simultaneous client requests on multiple threads. You must ensure that instance data and global memory are guarded against thread conflicts. This threading model is recommended if you use ADO datasets. |
Both |
This threading model is equivalent to the Free threading model, except all callbacks to client interfaces are serialized. |
Neutral |
Multiple clients can call the remote data module on different threads at the same time, but COM ensures that no two calls conflict. You must guard against thread conflicts involving global data and any instance data that is accessed by multiple interface methods. This threading model is only available under COM+. Otherwise, it is mapped to the Apartment threading model. |
|
|
Description |
Specifies the text that appears in the registry next to the ProgID for the application server interface. The Description text also acts as a help string for the interface in the type library. |
Generate Event support code |
Implements a separate interface for managing events. |
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|