$100 bounty for help with Windows Service code
Tyler Jensen via Digitalmars-d
digitalmars-d at puremagic.com
Mon Aug 18 08:51:57 PDT 2014
On Monday, 18 August 2014 at 15:42:26 UTC, Vladimir Panteleev
wrote:
> On Monday, 18 August 2014 at 15:12:58 UTC, Etienne wrote:
>> Shouldn't you be starting with rt_init() in ServiceMain?
>
> The runtime should be already initialized before main() is run,
> however, now that you mention it, I think ServiceMain should
> call thread_attachThis(). I see there is a commented-out line
> in the code to do this already.
I did try the suggested thread_attachThis() but it did not help.
Not saying it should not be done, but it was not the cause or the
solution. Ultimately, it was the HANDLE that was the problem.
Thanks, to Vladimir, this has been resolved.
I will continue to experiment with and try to create my own
"reference" implementation for a Windows Service since much of
what I plan to write in D will be deployed as such.
More information about the Digitalmars-d
mailing list