TTimer in TDSServerModule

TTimer in TDSServerModule

Hello, I am creating an application datasnap and server need to put a timer, however it does not run the OnTimer. Anyone know how to do this? thank you

Comments

  1. I have never tried this, but it will probably only work if you choose Lifecycle Server or Session. If it is a REST server - or if it runs in an IIS module - it will most probably not work at all.
    Why would you do that? You probably should have the timer running on the client side - or am I wrong?

    ReplyDelete
  2. in no way the livecycle it works. If the client application is terminated, for example, CTRL + ALT + DEL the DSServerModule still gets created. I want to manage it. Do not know of another way to do this using DataSnap by http

    ReplyDelete
  3. I do not fully understand what you are trying to achieve, but could you perhabs use the OnCreateInstance event of the server class in the server container? Or the OnShutdown, OnCloseQuery - it depends on the type of server (service, Form ...).

    ReplyDelete

Post a Comment