I was looking into this a while back, and while there is no direct support for memory mapped files in .net, there have been quite a few managed wrappers written [1][2].
Erick [1] http://www.mvps.org/windev/dotnet/index.html [2] http://www.gotdotnet.com/userarea/filedetails.aspx?FileName=ToolBox.zip ----- Original Message ----- From: "Valery Pryamikov" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 30, 2002 4:04 AM Subject: Re: [DOTNET] lock - how expensive is it to call? Opps ;-). But anyway, if I'd need to deal with that amount of memory, I'd rather use Memory Mapped File... Gives a great access speed and doesn't bind you to the amount of physical memory, but disk memory is even cheaper... Just a side note: unfortunately there is no support for Memory Mapped Files in the current version of DOTNET. -Valery. -----Original Message----- From: Peter Laan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 1:00 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] lock - how expensive is it to call? inline From: "Valery Pryamikov" <[EMAIL PROTECTED]> <snip> > And at last - memory is really cheap nowadays, who really care about > counting bits?;-). > I do! :) I have an array that might go up to 10000*10000. So each byte in the struct that the array contains will add 100 MB of data. Up to now, I have only used 100*100 and for reasons other that memory, I don't think I'll be able to go far beyond 1000*1000. The array contains the map information for an online strategy game. Peter You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.