- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
I have got to know from others that the function allocate doesn't use virtual memory when we allocate an array, but use the heap memory (is it true?), so even I set the virtual memory up to 4G in my OS, the program stll display 'insufficient virtual memory' when I allocate a large size array (double, about 3*6 million). Can I allocate the large size array use VirtualAllocEx in CVF6.6 andrefer it like other arrays? How to use it?
Thanks,
Zhanghong Tang
링크가 복사됨
3 응답
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
ALLOCATE uses dynamically allocated memory, also known as "heap", This is what you mean by "Virtual Memory". In fact, CVF uses VirtualAlloc for ALLOCATE in many cases.
If ALLOCATE gives you an error, it's not likely that any other method will work.
Windows cannot address more than 2GB in the process virtual address space. (With some exceptions not worth discussing here.)
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Really?
Do you mean allocate itself calls VirtualAlloc sometimes?
Zhanghong Tang
