Is it possible, using static properties, to have a shared object in the GAC
that can be accessed by differnet processes? If so, how? If not, how can I
have a shared .NET object that can used by different processes?
Thanks.
Amil 3 1398
What's the result you want? What's the purpose?
Amil Hanish wrote:
Is it possible, using static properties, to have a shared object in the GAC
that can be accessed by differnet processes? If so, how? If not, how can I
have a shared .NET object that can used by different processes?
Thanks.
Amil
If you're sharing a resource across more than one process then you need
to make sure that it's only used by one at a time. Take a look at the
synchronisation mechanism provided by the System.Threading.Mutex class: http://msdn2.microsoft.com/en-us/lib...ing.mutex.aspx
Amil Hanish wrote:
Is it possible, using static properties, to have a shared object in the GAC
that can be accessed by differnet processes? If so, how? If not, how can I
have a shared .NET object that can used by different processes?
Thanks.
Amil
These are DIFFERENT processes. I'm going to have several sites that must
share some data...and be able to know when that data is dirty. I don't want
to use a DB for this, but memory.
Amil
"Amil Hanish" <am********@hotmail.comwrote in message
news:ur**************@TK2MSFTNGP03.phx.gbl...
Is it possible, using static properties, to have a shared object in the
GAC that can be accessed by differnet processes? If so, how? If not, how
can I have a shared .NET object that can used by different processes?
Thanks.
Amil This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: phil_gg04 |
last post by:
Dear C++ Experts,
Over the last couple of months I have been writing my first program
using shared memory. It has been something of an "in-at-the-deep-end"
experience, to say the least. At...
|
by: Nak |
last post by:
Hi there,
In VB6 if I wanted to make a shared application so to speak I would
create an ActiveX EXE. This would allow me to expose objects of the
application but only have 1 instance loaded. ...
|
by: Darin |
last post by:
I have an application that is one EXE with mutliple DLL's. In one of the
DLL's (libs.dll) that the EXE has refeneced, I have:
Public Class Globals
Public Shared gLogin as String
End Class
...
|
by: Carsten H. Pedersen |
last post by:
Hello
I want to create a kind of shared object. I have created a class,
Counter, which you can then import. Through the Counter class, i would
like to have access to a shared object.
Lets say...
|
by: Oriane |
last post by:
Hello,
I have to share a object in RAM between several processes. I intend to
design a special process to load this objet (an Autocad plan) in memory, and
to take care of the read/write...
|
by: Sune |
last post by:
Hi all,
I want to make data stored in-memory (not disk) available to several
processes. My concern is that poorly written C applications with
dangling pointers may(will) damage the data in this...
|
by: atlaste |
last post by:
Hi,
I have two different things I'd like to discuss here. Both are about
cross-process synchronization of shared resources. The resources that
are shared are: (1) an object writing to a file and...
|
by: Oops-c++ |
last post by:
All,
I came to know that, we can define #pragma variables to share values
between the processes.
#pragma data_seg(".shared")
var1
variable2
#pragma data_seg()
|
by: Matias Surdi |
last post by:
Suppose I've a process P1, which generates itself a lot of data , for
example 2Mb.
Then, I've a process P2 which must access P1 shared memory and,
probably, modify this data.
To accomplish this,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |