That's what I've found out, you are absolutely right. If I do any processing at all in the OnStart routine the service manager times it out and fires the OnStop routine almost before I can blink. The timer method I described seems to be working best but I'm getting erratic results with the...
What do you think about the structure of the service in general? Ie: Is it OK to have a timer that doesn't really do anything but hang out and have all the real work being done in the call back function? I just don't have much experience with delegates and callbacks in a service (console)...
I am having a problem processing callback message in a windows service app. Bascially the program reads a text file with a list of video file names and plays them back via a dll that returns 2 messages I'm interested in. Here's what's going on and the relevant code:
If I put the line "Call...
Thanks. I want it to run as a service and I'm still playing with it. I declared the callback in the timer instead of the startup routine. I'm getting messases back but I'm still having some problems. I'll let you know what I find.
I have an application that uses functions in an external dll. This dll sends messages back via a callback delegate and I process the messages when they come it. On load of the main form I initialize variables and register call back. Then I call a function in the dll that plays a video file...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.