473,397 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Cross process data/event

fw
Hi,
I am trying to find a simple approach to share a simple data type (primitive) with two processes (two .exe files), but can’t work out. Any ideas are appreciated. Further, how to fire event across process

Thanks

f

Nov 16 '05 #1
5 2466
fw wrote:
I am trying to find a simple approach to share a simple data type (primitive) with two processes (two .exe files), but can’t work out. Any ideas are appreciated. Further, how to fire event across process?


Usually I would advise named pipes but I don't know if they are included
in the framework. How about System.Net.Sockets? Create a socket
connection between the two apps and send the data back and forth.

--
Konrad -
http://madrat.net/
Nov 16 '05 #2
Hi fw,

Look at .NET Remoting

--

Stoitcho Goutsev (100) [C# MVP]
"fw" <an*******@discussions.microsoft.com> wrote in message
news:53**********************************@microsof t.com...
Hi,
I am trying to find a simple approach to share a simple data type (primitive) with two processes (two .exe files), but can't work out. Any
ideas are appreciated. Further, how to fire event across process?
Thanks,

fw

Nov 16 '05 #3
I guess remoting could work, but some overhead for this simple need. Memory
Mapped File (MMF) backed by swap file is ~easy to wrap in a class and then
just use a named mutex or event to sync the data.

--
William Stacey, MVP

"fw" <an*******@discussions.microsoft.com> wrote in message
news:53**********************************@microsof t.com...
Hi,
I am trying to find a simple approach to share a simple data type (primitive) with two processes (two .exe files), but can’t work out. Any
ideas are appreciated. Further, how to fire event across process?
Thanks,

fw


Nov 16 '05 #4
Is there any managed support for MMF?

--

Stoitcho Goutsev (100) [C# MVP]
"William Stacey [MVP]" <st***********@mvps.org> wrote in message
news:eG*************@tk2msftngp13.phx.gbl...
I guess remoting could work, but some overhead for this simple need. Memory Mapped File (MMF) backed by swap file is ~easy to wrap in a class and then
just use a named mutex or event to sync the data.

--
William Stacey, MVP

"fw" <an*******@discussions.microsoft.com> wrote in message
news:53**********************************@microsof t.com...
Hi,
I am trying to find a simple approach to share a simple data type

(primitive) with two processes (two .exe files), but can't work out. Any
ideas are appreciated. Further, how to fire event across process?

Thanks,

fw

Nov 16 '05 #5
No. But as I said, you can wrap a couple pinvoke apis and get things going.

--
William Stacey, MVP

"Stoitcho Goutsev (100) [C# MVP]" <10*@100.com> wrote in message
news:uM**************@TK2MSFTNGP10.phx.gbl...
Is there any managed support for MMF?

--

Stoitcho Goutsev (100) [C# MVP]
"William Stacey [MVP]" <st***********@mvps.org> wrote in message
news:eG*************@tk2msftngp13.phx.gbl...
I guess remoting could work, but some overhead for this simple need.

Memory
Mapped File (MMF) backed by swap file is ~easy to wrap in a class and then just use a named mutex or event to sync the data.

--
William Stacey, MVP

"fw" <an*******@discussions.microsoft.com> wrote in message
news:53**********************************@microsof t.com...
Hi,
I am trying to find a simple approach to share a simple data type

(primitive) with two processes (two .exe files), but can't work out. Any
ideas are appreciated. Further, how to fire event across process?

Thanks,

fw



Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Venkat | last post by:
Hi All, I would like to about Cross Site Scripting. I googled XSS and got the point what it is but didn't get how it is achieved. Can someone describe me with an example how an hacker does it....
18
by: jas | last post by:
Hi, I would like to start a new process and be able to read/write from/to it. I have tried things like... import subprocess as sp p = sp.Popen("cmd.exe", stdout=sp.PIPE)...
5
by: nospam | last post by:
Hi all. I have encountered a "Cross-thread operation not valid" error in a test program I created and although I have came up with a solution I don't like the performance of the program. I...
6
by: AliR \(VC++ MVP\) | last post by:
Hi everyone, I have a Socket derived class that parses the received data into a message, populates a object with that information and then tries to send an event to inform the owner of the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.