跨多个应用程序实例的静态类信息? [英] Static class info across multiple application instances?

查看:86
本文介绍了跨多个应用程序实例的静态类信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在一个应用程序实例中更改了静态类变量,并且我使用同一dll实例化了多个应用程序,是否可以从其他应用程序之一中看到特定的修改?我想是的,但我想知道一个事实.有什么智慧的话吗?

Thanx

If I change a static class variable in one application instance and I have multiple instantiated applications using the same dll will I be able to see that specific modification from one of my other applications? I''m thinking yes but I''d like to know for a fact. Any words of wisdom?

Thanx

推荐答案

否.实例数据和静态数据仅存在于单个进程中.为了在应用程序之间共享数据,您必须采取特殊步骤并使用许多可用机制之一,例如内存映射文件.

:)

No. Instance data as well as static data only exists inside a single process. In order to share data amongst applications, you must take special steps and use one of many available mechanisms, e.g. memory-mapped files.

:)


这篇关于跨多个应用程序实例的静态类信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆