Use a Datamodule in a Service Application
Posted on 2006-07-10
In an effort to be efficient, I wrote a prototype for a Service Application (as created by the Delphi Service Application Wizard) by creating a Datamodule with ALL the functionality needed to run the TCP sockets and ADO Database components that I needed. I did this so I could hook it into a Regular Win32 Application to test and debug. After successfully testing the Datamodule in the Win32 application environment I am trying to hook the Datamodule into a Service Application template that I created, I can get nowhere in getting it to run. I'm not much on debugging services although I did get Delphi to connect to the service as it tried to start (using the register entries suggested by Delphi), but only with register and data info which I'm not proficient enough to understand. Could someone indicate whether this strategy of using a Datamodule with Component functionality encapsulating the primary service functions is workable and give a simple template example of how to hook it up if it is??