Jump to content

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


uniguibbs

Recommended Posts

  • 4 months later...

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...