windows service - WeOnlyDo Discussion board

windows service (wodFTPServer)

by Jasmine, Monday, February 15, 2016, 23:47 (2965 days ago) @ Gary

Hi Gary.

I'm not that much of a C# expert, but I believe this link would help:

http://stackoverflow.com/questions/2443867/message-pump-in-net-windows-service

inside DLL.Init add startup code for wodFTPServer, and then message pump will continue to run.

Or, you could for a test add

while (true)
Sleep(10);

for a test in your C# code. This will allow messages to process I think but not nice approach.

Jasmine.


Complete thread: