Article:
 |
|
Debugging Windows Services
|
| Subject: |
|
why bother with the DLL? |
| Date: |
|
2003-09-29 10:00:32 |
| From: |
|
anonymous2
|
|
|
|
While the previous poster makes a good point, I still think you gain a lot from being able to debug the code as a windows or console application.
But why bother splitting the code out to a DLL and creating a seperate test application to call it? It's pretty trivial to modify a service so that it'll run as a console app, and a lot less hassle. Just call your OnStart(), OnStop() etc from Main(). I generally just check the command line parameters for a value of "DEBUG", and run as a console app if it's present.
|
Showing messages 1 through 1 of 1.
-
why bother with the DLL?
2003-12-09 15:14:34
anonymous2
[View]