Why ++ operator is not thread safe
posted by JonnyRocks(0) 3 years, 3 months ago 0
This article is not well written out. Are you saying your variable is static? then i guess you are right? but if threads are creating instances of these classes then each thread has its own copy. Obviously the poster ran into an issue and made his scenario fit all. Thats like me saying don't walk outside. Everytime you walk outside you get shot. Then you research and come to fin out I was walking in a heavily contested area of Iraq shoouting obscenities.
Reply
Debugging Windows Service without deploying it
There is no reason to follow this. You don't have to create packages, you can install a windows service straight from visual studio. You want to make sure your code is as close to production as oyu can be. In your start method just add the line #if DEBUG System.Diagnostics.Debugger.Launch(); #endif That way when you debug it will launch the debugger when compliling in release it skips the line.