Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7494259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T17:24:45+00:00 2026-05-29T17:24:45+00:00

After making a few various services in Delphi, I’ve realized that the TService is

  • 0

After making a few various services in Delphi, I’ve realized that the TService is lacking some of the necessary things which should come with a service application, such as logging, exception handling, and the ‘Description’ property in the registry.

I was wondering if it’s possible for me to make my own service shell such as TJDService which is inherited from a TService but with some additional things, such as a ‘Description’ property showing in the object inspector. Can I make my own service shell like this? I know I can make my own “default project” inheriting from a TService but that includes all my code with any new project.

When a new service is created, it should look like this:

unit Unit1;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes, Vcl.SvcMgr,
  JDServices;

type
  TJDService1 = class(TJDService)
  private

  public
    function GetServiceController: TServiceController; override;
  end;

var
  JDService1: TJDService1;

implementation

{$R *.DFM}

procedure ServiceController(CtrlCode: DWord); stdcall;
begin
  JDService1.Controller(CtrlCode);
end;

function TJDService1.GetServiceController: TServiceController;
begin
  Result := ServiceController;
end;

end.

Same as a typical service, but using my TJDService instead of just TService.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T17:24:48+00:00Added an answer on May 29, 2026 at 5:24 pm

    Simple question with a simple answer. Yes you can do this. I do exactly this myself to share code between the various services that are implemented in my company’s codebase.

    RegisterCustomModule is the way to make your Description property show up in the Object Inspector. Having said that, I don’t find the ability to set these service properties in the Object Inspector to be all that valuable. I would regard it perfectly acceptable to set them at runtime in code, but that decision is down to personal preference.

    Even if you use RegisterCustomModule to make your service class known to the IDE, the default new service application will not use your service class. You can customise the default service application to your needs and then save it to the Object Repository.

    My answer here shows how I implement an app that can be run as either a service or as a standard desktop process for debugging purposes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After making a few modifications to a rails app I am tinkering on, railroad
After making some changes in my models (eg. new field in a model and
I tried using the AWS console, but after making a few 100 files public
Im making an application which uses few languages. I would like to have possibility
We have some feature branches that can get put on ice for a few
I am making one application in which the location needs to be updated after
After making a few changes to my already-deployed Grails app, I attempted to recompile
After making a few changes in my application, my textures are no longer showing.
After making a few changes to branch master I decided to work from a
I am making an iPhone app that uses a few NSArrays. Right now I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.