Memorymappedfile. Again?!

  • Thread starter Thread starter Ville Pirhonen
  • Start date Start date
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
 
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.

--
 
Back
Top