Memorymappedfile. Again?!

V

Ville Pirhonen

Hi !

I'm doing application with memory mapped file handling. I use mmf to change
data between applications. Is dllimport the only way to use those mmf
functions in VB.Net? In the application I have multiple threads which all
map mmf, is there anyway to "lock" mmf to prevent simultanous writes?
I don't know if it is wise to use mmf in .Net application, but I haven't
found anything so smooth&quick way to change data between assemblies.

Thanks
Ville Pirhonen
 
E

Egbert Nierop \(MVP for IIS\)

Ville Pirhonen said:
Hi !

I'm doing application with memory mapped file handling. I use mmf to change
data between applications. Is dllimport the only way to use those mmf
functions in VB.Net? In the application I have multiple threads which all
map mmf, is there anyway to "lock" mmf to prevent simultanous writes?
I don't know if it is wise to use mmf in .Net application, but I haven't
Using that sort of low-level routines, is against the principles of .NET
(managed memory). You -could- try to use it, however MS would not make any
garantuee it's going to work.
Better use MS VC++ if you really need that feature.

--
 

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

Top