Jump to content

how to achieve a function on server side like TUniTimer work on clientside.


Recommended Posts

Posted

i know that TUniTimer is clientside component.

 

i want achieve a function on server side like TUniTimer work on clientside.

 

i want run  a function Every 60 seconds on server side.

 

how to achieve?

 

 

  • 4 months later...
Posted

Try to write a service on the server.

 

YourService.OnExecute   ->  TTimer.Enabled:=True;

 

......................

 

Then TTimer.OnTime do whatever you want to do

 

I've seen this done for printing directly to the printer, backups or interfaces to other systems.

Posted

Try to write a service on the server.

 

YourService.OnExecute   ->  TTimer.Enabled:=True;

 

......................

 

Then TTimer.OnTime do whatever you want to do

 

I've seen this done for printing directly to the printer, backups or interfaces to other systems.

 

Hi adragan, thanks for you prompt reply.

 

What do you mean by "service"? You mean a windows service, a separate application? I really need to execute my code inside the ServerModule, because the timer must send a keep-alive signal to a separate watchdog.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...