Managing a com-server

From: Dirk Hennings (dhennings_at_gmx.de)
Date: 03/31/04


Date: Wed, 31 Mar 2004 12:50:18 +0200

Hi,

I'm working with a few client-applications that are communicating with my
out-of-process com-server.

My com-server uses the following initialization:
TAutoObjectFactory.Create(ComServer, TCentral, CLASS_Central,
ciMultiInstance , tmApartment);

In the clients i use the following to contact the server:
try
ComServer := CoCentral.Create;
except end;

While Cocentral.create my client-application hangs.
While trying to do this in a thread i realized that somehow I can only use
the com-server in the thread I called cocentral.create, so I couldn't do
that.
Instead I made a splash-screen while the application is loading showing that
my application is still running and the user isn't confused.
Is this the only way?
Or: is this the best way?

Now I want multiple clients to connect to my server.
My server can handle multiple clients internally, so that I used
ciMultiInstance and tmApartment.
This seems to work.
When the clients are not longer running I want the server to decide whether
so terminate oder keep on running.
How can I manage to do this?
Right now my server is terminated when the last client is terminated.

3rd problem: what about those ugly error-messages like "the rpc-server is no
longer available"
Even with try-except-block.
How should this be done elegantly so that the user isn't confused or thinks
of a major bug?

Thanks for the help in advance

Dirk



Relevant Pages

  • RE: Users Cant Access Documents on Server
    ... Thanks for using the SBS newsgroup. ... As well as we know, if a workstation would not access network shares, then ... Leave the Default Gateway of the internal NIC blank of the server box. ... Clients That Require SMB Signing ...
    (microsoft.public.windows.server.sbs)
  • Re: Users Cant Access Documents on Server
    ... my computer to the network on the server. ... Connection Wizard none of the computers were listed. ... The Mac clients can not communicate with the server box. ... > Error Messages When You Open or Copy Network Files on Windows XP SP1 ...
    (microsoft.public.windows.server.sbs)
  • Re: [SLE] SMTP authentication
    ... So eventhough my local SMTP server dials up to the internet with a certain username and password, that same username and password would not be used as authentication between my local SMTP server and the ISP's one, should it be used as a relay? ... either defer all outgoing mails until you connect to the internet, then flush out all the mails in the queue. ... Your local server would use an external program like fetchmail to poll the mailserver of your ISP, download the mails and feed them to Postfix. ... The test does NOT say "All clients must be in mynetworks, ...
    (SuSE)
  • RE: VPN Clients Not Registering in AD DNS
    ... via VPN, the DNS records of the VPN clients are unable to be registered. ... Windows 2003 server? ... please let me know whether the clients get the IP ...
    (microsoft.public.windows.server.sbs)
  • Re: Users Cant Access Documents on Server
    ... > then add my computer to the network on the server. ... Did you not see the computers in the Server Management taskpad section? ... The Mac clients can not communicate with the server box. ... >> Error Messages When You Open or Copy Network Files on Windows XP SP1 ...
    (microsoft.public.windows.server.sbs)