two appilcations accessing the same memory
-
I have one program(app_1) that has only read access to drives and write access only to memory. the second program(app_2) has access to memory and write access to drive. How can I load a file or whatever in to memory (buffer) with app_1 and get that file or whatever in app_2 ********************* no access to clipboard, app_2 can't access the file from app_1 on disk(thats fact) most be done thru memory and please don't send me to c++:doh: If you can help then please do Thanks a Bunch
-
I have one program(app_1) that has only read access to drives and write access only to memory. the second program(app_2) has access to memory and write access to drive. How can I load a file or whatever in to memory (buffer) with app_1 and get that file or whatever in app_2 ********************* no access to clipboard, app_2 can't access the file from app_1 on disk(thats fact) most be done thru memory and please don't send me to c++:doh: If you can help then please do Thanks a Bunch
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. :)
Luc Pattyn [My Articles] [Forum Guidelines]
-
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. :)
Luc Pattyn [My Articles] [Forum Guidelines]
do you have a small code snippet?
-
do you have a small code snippet?
Hi, I dont have it at hand, and I am not sure anymore about the Win32 function names; it may well be things like CreateFileMapping, MapViewOfFile, etc. And it would not be "a small code snippet", it really requires some setup code. I suggest you search around (Google) for MMF or memory-mapped file. :)
Luc Pattyn [My Articles] [Forum Guidelines]
-
Hi, I dont have it at hand, and I am not sure anymore about the Win32 function names; it may well be things like CreateFileMapping, MapViewOfFile, etc. And it would not be "a small code snippet", it really requires some setup code. I suggest you search around (Google) for MMF or memory-mapped file. :)
Luc Pattyn [My Articles] [Forum Guidelines]
ok I'll check it out