64-Bit VB.NET Allocating > 2GB of RAM (.NET bug?)

前端 未结 4 1190
日久生厌
日久生厌 2021-01-13 11:01

I have a 64 bit VB.NET application and want to allocate a buffer > 2GB in size.

In the following code both the \"new\" and the \"ReDim\" throw an \"OverflowException

4条回答
  •  轮回少年
    2021-01-13 11:30

    You may have to use memory mapped files for this, take a look at the MapViewOfFile function.

提交回复
热议问题