大量内存的问题 [英] Problems with large amount of memory
问题描述
你好,我在一个正在使用大量内存(在500Mo和1.8Go之间)的程序中工作.我使用GlobalMemoryStatusEx函数获取ullAvailVirtual(我的程序可用的内存).第一次加载数据之前,ullAvailVirtual大约为1.9Go,但是当我加载数据(例如1.5Go)然后释放它时,第二次调用GlobalMemoryStatusEx时,ullAvailVirtual很小(大约1.3Go)并且没有更多的1.9Go).没有内存泄漏问题(因为当我使用任务管理器-进程时,我可以看到程序使用的内存出现故障).因此必须关闭我每次都重新启动程序
以获取信息,我不会在一个缓冲区中分配1.5Go(我使用许多1Mo缓冲区).
我的PC是:Dell工作站,4Go物理RAM(不带) /3GB开关),Windows XP Pro和我正在VS 2005 C ++中进行开发
想想
Hello,
I am working in a program that is using a large amount of memory (between 500Mo and 1.8Go). I use the GlobalMemoryStatusEx function to get the ullAvailVirtual (memory available for my program). the first time before loading my data, ullAvailVirtual is about 1.9Go, but when I load my data (1.5Go for example) and then I free it, the second time that I call the GlobalMemoryStatusEx, the ullAvailVirtual is much smaller (about 1.3Go and no more 1.9Go). there is no memory leak problems (because when I use the task manager - process, i can see that the memory used by my program goes down). So must close I re-start my program each time
for information I do not alloc 1.5Go in one buffer (I use many buffers of 1Mo).
My PC is a : Dell workstation, 4Go phisical RAM (without /3GB switch), Windows XP Pro and i am developping in VS 2005 C++
think you
推荐答案
素食主义者的建议.您只是对32位操作系统有太多期望.诸如此类的要求苛刻的应用程序应移至x64.
This is good advice from Vegan. You are simply expecting too much from a 32-bit OS. A demanding application like this should be moved to x64.
这篇关于大量内存的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!