Reference EXE - static class is empty after initialized
-
Hello, My project is creating a connection pool for a 3rd party product. I wanted to make a windows service (because of being in the IDE, it's start as a normal exe) that will control the pool. I have a static class in my windows service that is initialized upon startup of the windows service -> this class is the pool manager. Right now my attempts are referencing the windows service project in visual studio from a test project. The startup projects are the windows service and then my test project. I watch the windows service start up seeing the pool manager be initialized. When the test project creates an instance of a class inside the windows service which uses the pool, that instance claims the pool manager class isn't initialized even though it's defined as static and was intialized at windows service startup. The task manager doesn't claim another exe is running so why am I loosing the static content? Hopefully I explained the above clearly. Thank you for your time... nathan
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous 'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous