内存限制? [英] Memory limit?

查看:78
本文介绍了内存限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在应用程序中使用大量内存。但是每当我尝试分配超过大约1.2GB时,我就会得到
OutOfMemoryException。

Ex:

byte [] c = new byte [1300000000 ];

我的电脑(win xp)有4GB的RAM内存,看起来像3GB是免费的

(性能监视器 - >可用MB)。

有没有办法为我的应用程序使用更多内存?

Greatefull的答案!

Karl Daggfeldt

Hi, I need to use a lot of memory in an aplication. But I get
OutOfMemoryException whenever I try to allocate more than around 1.2GB.
Ex:
byte [] c=new byte[1300000000];
My computer (win xp) have 4GB of RAM memory and it looks like 3GB is free
(Performance Monitor->Available MB).
Is there some way to use more memory for my application?
Greatefull for answers!
Karl Daggfeldt

推荐答案

KalleD写道:
我需要在应用程序中使用大量内存。但是每当我尝试分配超过大约1.2GB时,我就会得到OutOfMemoryException。
Ex:
byte [] c = new byte [1300000000];
我的电脑(win xp)有4GB的RAM内存,看起来像3GB是免费的
(性能监视器 - >可用MB)。
有没有办法为我的应用程序使用更多的内存?
Greatefull的答案!
Karl Daggfeldt
Hi, I need to use a lot of memory in an aplication. But I get
OutOfMemoryException whenever I try to allocate more than around 1.2GB.
Ex:
byte [] c=new byte[1300000000];
My computer (win xp) have 4GB of RAM memory and it looks like 3GB is free
(Performance Monitor->Available MB).
Is there some way to use more memory for my application?
Greatefull for answers!
Karl Daggfeldt




a猜测:因为你想分配一个数组,系统可能想要

来使用一个连续的块,这似乎并不存在。

所以免费的字节总数可能是3GB,但是最大的单个块的b $ bGB小于1.2GB,因此你得到了例外。


只是好奇:为什么你需要这个空间?


-

Hans Kesting



a guess: as you want to allocate one array, the system might want
to use a single contiguous block, which doesn''t appear to be there.
So the total number of bytes free could be 3GB, but the largest
single block is less than 1.2GB, therefore you get the exception.

just curious: why do you need this space?

--
Hans Kesting


感谢您的建议!

我试图将内存分成较小的部分(3个部分),但

最大限制似乎不是c焊割。数据由人体选定部位的图像(密度间隔图像)组成(可见人体数据)。我需要内存中的数据才能通过数据快速移动

并转向任意观看飞机。

Karl Daggfeldt

Hans Kesting写道:
Thanks for your suggestion!
I have tried to divide the memory in smaller parts (3 parts) , but the
maximal limit do not seem to change. The data is consisting of an image
volume (densly spaced images) of selected parts of the human body (visible
human data). I need the data in memory in order to quickly be able to move
trough the data and turn to arbitrary viewing planes.
Karl Daggfeldt
"Hans Kesting" wrote:
KalleD写道:
我需要在应用程序中使用大量内存。但是每当我尝试分配超过大约1.2GB时,我就会得到OutOfMemoryException。
Ex:
byte [] c = new byte [1300000000];
我的电脑(win xp)有4GB的RAM内存,看起来像3GB是免费的
(性能监视器 - >可用MB)。
有没有办法为我的应用程序使用更多的内存?
Greatefull的答案!
Karl Daggfeldt
Hi, I need to use a lot of memory in an aplication. But I get
OutOfMemoryException whenever I try to allocate more than around 1.2GB.
Ex:
byte [] c=new byte[1300000000];
My computer (win xp) have 4GB of RAM memory and it looks like 3GB is free
(Performance Monitor->Available MB).
Is there some way to use more memory for my application?
Greatefull for answers!
Karl Daggfeldt


猜测:因为你想分配一个数组,系统可能希望
使用一个连续的块,它不会出现因此,所有可用的字节总数可以是3GB,但是最大的单个块小于1.2GB,因此你得到了例外。

只是好奇:你为什么需要这个空间?

- Hans Kesting



a guess: as you want to allocate one array, the system might want
to use a single contiguous block, which doesn''t appear to be there.
So the total number of bytes free could be 3GB, but the largest
single block is less than 1.2GB, therefore you get the exception.

just curious: why do you need this space?

--
Hans Kesting



显然它是某种形式。 NET限制。这是一个链接到另一个.NET应用程序

,它有同样的问题。看看他们的解决方案是否对您有所帮助:
http: //www.runuo.com/forum/showthread.php?t=38360


-

Adam Clauss
< a href =mailto:ca ***** @ tamu.edu> ca ***** @ tamu.edu


" KalleD" <嘉**** @ discussions.microsoft.com>在留言中写道

新闻:D0 ********************************** @ microsof t.com ...
Apparently it is some sort of .NET limit. Here''s a link to another .NET app
which has the same problem. See if their solution will help you:
http://www.runuo.com/forum/showthread.php?t=38360

--
Adam Clauss
ca*****@tamu.edu

"KalleD" <Ka****@discussions.microsoft.com> wrote in message
news:D0**********************************@microsof t.com...
我需要在应用程序中使用大量内存。但是每当我尝试分配超过大约1.2GB时,我就会得到OutOfMemoryException。
Ex:
byte [] c = new byte [1300000000];
我的电脑(win xp)有4GB的RAM内存,看起来像3GB是免费的
(性能监视器 - >可用MB)。
有没有办法为我的应用程序使用更多的内存?
Greatefull的答案!
Karl Daggfeldt
Hi, I need to use a lot of memory in an aplication. But I get
OutOfMemoryException whenever I try to allocate more than around 1.2GB.
Ex:
byte [] c=new byte[1300000000];
My computer (win xp) have 4GB of RAM memory and it looks like 3GB is free
(Performance Monitor->Available MB).
Is there some way to use more memory for my application?
Greatefull for answers!
Karl Daggfeldt



这篇关于内存限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆