named system mutex not recognized

后端 未结 2 579
野的像风
野的像风 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.

    0 讨论(0)
  • 2021-01-06 12:33

    @david i use a tool called google to easily find it, and we are running in production with interactive services detection enabled with an interactive service. interactive services detection cannot be started unless you switch that registry key. i don't know what the debate is here: it's there, its documented, and google can easily point you to it.

    0 讨论(0)
提交回复
热议问题