If you have a windows service and a windows forms application that uses the same static object, is it the same object in both applications? In other words if I update the object in the service will it also be updated in the forms application as well if both are running at the same time?
Share
They run on different processes so they don’t share the static object.
Not exaclty related with your question but threads created on the same application is a different story. They will share the static variable unless is marked with
ThreadStaticattribute