Sharing common data among multiple instances of a DLL( C++.NET class library)

  • Thread starter Thread starter Young
  • Start date Start date
Y

Young

Is there any clean .NET way of sharing common data between
multiple instances of a dll (C++.NET class library)?

Sincerely,
Young
 
Young said:
Is there any clean .NET way of sharing common data between
multiple instances of a dll (C++.NET class library)?

You might need to be more specific. Do you mean static, read-only data, or
will the multiple instances be modifying the data? Will all the instances be
running on the same machine? Do you need to maintain the latest state of the
data after all instances have terminated?
 
Hi,

With .NET there are only two options that I am aware of, the one would be to
PInvoke the Win32 memory mapped API functions.

CreateFileMapping
MapViewOfFile(Ex)
OpenFileMapping
etc.

The other would be to use remoting, sockets or COM/COM+, which you choose
would depend on your specific requirements.

Hope this helps

Chris Taylor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top