I need a remote Out-process COM server as executable exe or DLL program. All clients (local clients) should work with the same server-instance.
Actually I work with the C++Builder 2006 and created a COM automation object which is merged in a C++Builder ActiveX-DLL-project.
With the type library of the server-object I created a Component-Wapper for the clients.
Running the application, the first client connects to the server-object with ConnectKind 'ckRunningOrNew'. The server starts and all is running fine. But when I try to start the second client with the ConnectKind 'ckRunningInstance' I get the exception: "Unable to retrieve a pointer to a running object" of my server. The server is definitely running. Actually I can only start clients with the ConnectKind 'ckRunningOrNew', so that all clients work with their own server instance. The project requires, that the server is running permanently and several clients can connect at the same time.
Now my Questions. Do I use the right COM technologie for this problem, or should I use other COM Components? Which project-settings in my server-project do I have to set, so that all clients connect one server-instance?
Thanks for your help.
Background information: We have developed a quit complex software and are now forced to develop a kind of application server, which should run specific tasks (for instance file import/ export) at a given time. Our idea is, that the user can generate this specific tasks with the help of a graphical development interface (http://www.nwoods.com/sanscript/tour/index.htm
). This program can import TLB's and generate little executables wich can be scheduled. Actually these little executable connect to the COM Server, which is executing the specific task. If you have any other solutions for this problem, feel free to share :).