更新时间:2023-11-13 15:04:04
您不能使用单例在应用程序之间进行同步.每个都在自己的应用程序空间中运行,并且出于安全考虑无法访问内存/对象/等.另一个没有通信方法(如远程)要同步两者,他们必须远程进入第三个程序.
You cannot use a singleton to sync across applications. Each runs in its own application space, and as a matter of security cannot access memory/objects/etc. from the other without a method of communication (like remoting) To sync the two they would have to remote into a third program.