Welcome, Guest
Username: Password: Remember me
General discussions, feature requests for CodeTyphon Project and discussions that don't fit in any of the other specific CodeTyphon forum categories.
  • Page:
  • 1

TOPIC:

Tutorial about "Windows Service" 6 years 4 months ago #11346

  • Federico Melillo
  • Federico Melillo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 8
  • Thank you received: 0
I'm looking for a tutorial to implement a "Windows Service".
I created a very simple Daemon application, but when I install and start it ...don't start.

F.Melillo

Please Log in or Create an account to join the conversation.

Tutorial about "Windows Service" 6 years 4 months ago #11347

  • Adriano Soares
  • Adriano Soares's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 40
  • Thank you received: 9
Take a look at this doc. and sample.
as the master said "Work and be happy"
The following user(s) said Thank You: Federico Melillo

Please Log in or Create an account to join the conversation.

Tutorial about "Windows Service" 6 years 3 months ago #11402

  • Federico Melillo
  • Federico Melillo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 8
  • Thank you received: 0
Hi,
in attachment there is my simple "service-project" that install but it doesn't start.

Is there anybody that can help me?

File Attachment:

File Name: L2_Daemon.zip
File Size:81 KB
Attachments:

Please Log in or Create an account to join the conversation.

Tutorial about "Windows Service" 6 years 3 months ago #11407

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4518
  • Thank you received: 1102
Thanks Sir
please give us time to test your project
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Tutorial about "Windows Service" 6 years 2 months ago #11453

  • Federico Melillo
  • Federico Melillo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 8
  • Thank you received: 0
Is there anybody that can help me?

Please Log in or Create an account to join the conversation.

Tutorial about "Windows Service" 6 years 2 months ago #11457

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1076
  • Thank you received: 153
Sorry
we forgot this
I try to run now OK
PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

Tutorial about "Windows Service" 6 years 2 months ago #11471

  • Federico Melillo
  • Federico Melillo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 8
  • Thank you received: 0
Is there any news?

Fed.

Please Log in or Create an account to join the conversation.

Tutorial about "Windows Service" 6 years 2 months ago #11473

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4518
  • Thank you received: 1102
No yet Sir :blush:

In our lab now we are only 2 programmers and many friends ...
it's Saturday night...
and the only Lab task we can run is to fix pl_FortesReport package
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Tutorial about "Windows Service" 6 years 2 months ago #11484

  • Federico Melillo
  • Federico Melillo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 8
  • Thank you received: 0
Okay.

Don't forget me. ;-)

Fed.

Please Log in or Create an account to join the conversation.

Tutorial about "Windows Service" 6 years 2 months ago #11510

  • Federico Melillo
  • Federico Melillo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 8
  • Thank you received: 0
..zZz..

Please Log in or Create an account to join the conversation.

Tutorial about "Windows Service" 6 years 2 months ago #11511

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4518
  • Thank you received: 1102
Sir
we put some samples in CodeOcean for TIdTCPServer
for sample
codetyphon\CodeOcean\pl_Indy\samples\4B_MemoryStream_Exchange\server\memorystream_server.ctpr

Please look the methodology of using TIdTCPServer
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Tutorial about "Windows Service" 6 years 2 months ago #11512

  • Federico Melillo
  • Federico Melillo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 8
  • Thank you received: 0
Ok,
but the sample in CodeOcean is an application and not a Windows service.
Is it right or am I wrong? Or exists another sample in "Windows service" mode?

Please Log in or Create an account to join the conversation.

Tutorial about "Windows Service" 6 years 2 months ago #11513

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4518
  • Thank you received: 1102
1) First build your
TCP Server
test your server

2) Then you can try to make your TCP Server "service" if you want

look at
codetyphon\CodeOcean\aa_LCLBasics\samples\cleandir\cleandirs.ctpr
sample.

On windows only, you must use

Regsvr32 to register register your daemon app first....

command prompt
Regsvr32 -h
for more info

In other case you will get (OS Code 5) Access is denied
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Tutorial about "Windows Service" 6 years 2 months ago #11516

  • Federico Melillo
  • Federico Melillo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 8
  • Thank you received: 0
Thanks a lot. :-)
I will implement it.

Naturally this is a "workaround" becouse it solve not about how to create a Windows Service.

Please Log in or Create an account to join the conversation.

Tutorial about "Windows Service" 6 years 2 months ago #11517

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4518
  • Thank you received: 1102
Sir
Please don't forget Windows Service Applications are from "OS Side" and NOT from "user Side"
so, not the same programming approach.

Anyway, have fun in "Deep Blue programming Sea" :woohoo:
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • Page:
  • 1