Click here to Skip to main content
15,908,931 members
Home / Discussions / C#
   

C#

 
AnswerRe: two appilcations accessing the same memory Pin
Luc Pattyn27-Jun-07 8:57
sitebuilderLuc Pattyn27-Jun-07 8:57 
Hi,

I am not sure what your app(s) are trying to achieve; maybe this is useful:

Windows supports the concept of "memory mapped files". They are very good at sharing data
between two processes. They support the situation where multiple processes can read/write
the same file, where the file is actually in memory (so it gets mapped in the address
space of each participating process).

I dont think .NET supports this directly; but applying P/Invoke on Win32 functions
such as CreateFile, OpenFile, WriteFile etc. solves this.

I have used this for logging: one app logs to memory, another process actually
consumes the log information and processes it.

Smile | :)


GeneralRe: two appilcations accessing the same memory Pin
Yitzchok Dev27-Jun-07 9:03
Yitzchok Dev27-Jun-07 9:03 
GeneralRe: two appilcations accessing the same memory Pin
Luc Pattyn27-Jun-07 9:28
sitebuilderLuc Pattyn27-Jun-07 9:28 
GeneralRe: two appilcations accessing the same memory Pin
Yitzchok Dev27-Jun-07 9:33
Yitzchok Dev27-Jun-07 9:33 
QuestionHow do I create a demo for my application using C# Pin
KenzyProgramming27-Jun-07 7:06
KenzyProgramming27-Jun-07 7:06 
AnswerRe: How do I create a demo for my application using C# Pin
mav.northwind27-Jun-07 8:18
mav.northwind27-Jun-07 8:18 
AnswerRe: How do I create a demo for my application using C# Pin
Dan Neely27-Jun-07 9:11
Dan Neely27-Jun-07 9:11 
AnswerRe: How do I create a demo for my application using C# Pin
I.explore.code27-Jun-07 18:25
I.explore.code27-Jun-07 18:25 
GeneralRe: How do I create a demo for my application using C# Pin
mav.northwind28-Jun-07 9:32
mav.northwind28-Jun-07 9:32 
QuestionGetting a window's icon Pin
sharpiesharpie27-Jun-07 6:28
sharpiesharpie27-Jun-07 6:28 
AnswerRe: Getting a window's icon Pin
Giorgi Dalakishvili27-Jun-07 6:43
mentorGiorgi Dalakishvili27-Jun-07 6:43 
Questionhow can I get a process(Especific Owner) Pin
jeguzmanv27-Jun-07 6:25
jeguzmanv27-Jun-07 6:25 
AnswerRe: how can I get a process(Especific Owner) Pin
Tarakeshwar Reddy27-Jun-07 6:32
professionalTarakeshwar Reddy27-Jun-07 6:32 
Questionhow can raise an event in c# ? [modified] Pin
B.A27-Jun-07 5:41
B.A27-Jun-07 5:41 
AnswerRe: how can raise an event in c# ? Pin
Not Active27-Jun-07 5:48
mentorNot Active27-Jun-07 5:48 
QuestionException handling doubt... Pin
Software_Specialist27-Jun-07 5:17
Software_Specialist27-Jun-07 5:17 
AnswerRe: Exception handling doubt... Pin
Colin Angus Mackay27-Jun-07 5:23
Colin Angus Mackay27-Jun-07 5:23 
GeneralRe: Exception handling doubt... Pin
Software_Specialist27-Jun-07 5:29
Software_Specialist27-Jun-07 5:29 
GeneralRe: Exception handling doubt... Pin
Colin Angus Mackay27-Jun-07 5:38
Colin Angus Mackay27-Jun-07 5:38 
JokeRe: Exception handling doubt... Pin
Not Active27-Jun-07 5:54
mentorNot Active27-Jun-07 5:54 
JokeSure? Pin
CPallini27-Jun-07 6:00
mveCPallini27-Jun-07 6:00 
GeneralRe: Sure? Pin
Dave Kreskowiak27-Jun-07 6:57
mveDave Kreskowiak27-Jun-07 6:57 
GeneralRe: Sure? Pin
CPallini27-Jun-07 10:06
mveCPallini27-Jun-07 10:06 
GeneralRe: Sure? Pin
Dave Kreskowiak27-Jun-07 10:15
mveDave Kreskowiak27-Jun-07 10:15 
GeneralRe: Sure? Pin
Dave Kreskowiak27-Jun-07 10:16
mveDave Kreskowiak27-Jun-07 10:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.