Board index » delphi » OLE server shut down: how ?

OLE server shut down: how ?

 Hello,

I'm starting a server from a client program, which displays a window.
 Now I want to shut down the server using File/Exit.
Before the server terminates, I get the error message about the fact this
program was called in a client program etc (it has links etc).
How can I stop the server from running, in other words make the server shut
itself down. I've tried Release/decreasing the reference count, but I still
get the
warning/error message.

thanks in advance,

E.J.Woerlee
woer...@kivi.nl

 

Re:OLE server shut down: how ?


Hi!

  Hmmm... I have not tried this myself, but what came to my mind was the
possibility that if you had created the OLE server yourself, you can make
it receive a closing message that makes the server close down itself when
it finds that all links are dead. The calling client would send this
command before closing the links!

  Another method, not as good one, would be to send the thread a closing
message, forcing the shut-down of it!

  Just some thoughts....
  Regards,
  Bjorn
--
 __  __/  _/
    /    /__
   /       /
 _/   /___/

=======================================================================
           TransSoft Ltd - http://www.transsoft-is.com
"TransSoft's Mail Control - The Multiple Award Winning Email Client..."
=======================================================================

E.J.Woerlee <woer...@kivi.nl> wrote in article
<5sakk7$6...@easy4.worldaccess.nl>...

Quote
>  Hello,

> I'm starting a server from a client program, which displays a window.
>  Now I want to shut down the server using File/Exit.
> Before the server terminates, I get the error message about the fact this
> program was called in a client program etc (it has links etc).
> How can I stop the server from running, in other words make the server
shut
> itself down. I've tried Release/decreasing the reference count, but I
still
> get the
> warning/error message.

> thanks in advance,

> E.J.Woerlee
> woer...@kivi.nl

Other Threads