Board index » delphi » How to keep AutoStarten DCOM Server running when client shuts down

How to keep AutoStarten DCOM Server running when client shuts down

I'm having a problem on keeping the server app running while the clients
shuts down.

This way a manually created form by the user is shutdown without a question
if it has to be saved.

--
Greatings Andr Mens  Author of QReport Artist
EMail mens...@wxs.nl
Homepage http://home.wxs.nl/~mensand

 

Re:How to keep AutoStarten DCOM Server running when client shuts down


See below a copy of the Delphi 4 help wich was the answer. If found it
mySelf ;))

-------------------------------------------------------------
Occurs when the last object using the server is released.

type TLastReleaseEvent = procedure(var Shutdown: Boolean) of object;
property OnLastRelease: TLastReleaseEvent;

Description

Use OnLastRelease to write a handler to process some action after the last
object using the server is released, and just before the server shuts down.
ShutDown indicates whether the server should be unloaded.

TLastReleaseEvent is the type of the OnLastRelease event. Shutdown indicates
whether the server will shut down after processing the OnLastRelease event.

--
Greatings Andr Mens  Author of QReport Artist
EMail mens...@wxs.nl
Homepage http://home.wxs.nl/~mensand

Andr Mens heeft geschreven in bericht <70h63f$c...@forums.borland.com>...

Quote
>I'm having a problem on keeping the server app running while the clients
>shuts down.

>This way a manually created form by the user is shutdown without a question
>if it has to be saved.

>--
>Greatings Andr Mens  Author of QReport Artist
>EMail mens...@wxs.nl
>Homepage http://home.wxs.nl/~mensand

Other Threads