virtualalloc Questions

1

I'm little confuse about VirtualAlloc, We can reserve memory use MEM_RESERVE, and then commit it use MEM_COMMIT, but I'm little confuse about what the difference when use between below two functio...
Prynne asked 25/9, 2014 at 2:9

2

Solved

I am trying to use VirtualAlloc to reserve and commit a block of memory and then again to extend that block. Unfortunately, it is returning NULL with error ERROR_INVALID_ADDRESS despite VirtualQuer...
Persona asked 26/4, 2015 at 4:45

3

Solved

I can't sleep! :) I have a reasonably large project on Windows and encountered some heap corruption issues. I have read all SO, including this nice topic: How to debug heap corruption errors?, how...
Bunnie asked 4/10, 2012 at 9:17

2

Solved

For what do I need to use VirtualAlloc/VirtualAllocEx? An example, one case that I found - if I allocated 4 GB of virtual memory, then if I do not use all of them, then I do not spend physical mem...
Conceive asked 7/7, 2013 at 15:13

1

Solved

I am writing a C++ program that essentially works with very large arrays. On Windows, I am using VirtualAlloc to allocate memory to my arrays. Now I fully understand the difference between reservin...
Lauryn asked 8/5, 2012 at 7:41

3

I have a small file, I go over it and count the number of bytes in it: while(fgetc(myFilePtr) != EOF) { numbdrOfBytes++; } Now I allocate virtual memory of the same size: BYTE* myBuf = (BYTE...
Fons asked 25/4, 2011 at 12:8

4

Solved

Windows has VirtualAlloc, which allows you to reserve a contiguous region of address space, but not actually use any physical memory. Later when you want to use it (or part of it) you call VirtualA...
Alburnum asked 6/5, 2010 at 16:14
1

© 2022 - 2024 — McMap. All rights reserved.