named system mutex not recognized

后端 未结 2 582
野的像风
野的像风 2021-01-06 11:47

I am trying named system mutex approach to synchronize two processes-

  1. a c# windows service
  2. a desktop c# app

When the mutex is created,

2条回答
  •  南笙
    南笙 (楼主)
    2021-01-06 12:13

    Since you want to share a mutex across sessions you must use either the Global namespace, or create your own private namespace.

    As it stands, you are not specifying a namespace. And whilst the service defaults to use the global namespace, your interactive application will be using the local namespace.

提交回复
热议问题