Re: NONE
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
"Nigel Sandever" <nigelsandever@xxxxxxxxxxxxx> wrote in message
news:1103_1141972105@xxxxxxxxxxxxxxxxxxxxx
Hi all,
What I would like to be able to do is create a heap (HeapCreate) at a
specified
region of memory. Or, pursuade HeapAlloc() etc. to use a region of memory
allocated using VirtualAlloc().
Am I completely out of luck with this or is there some way of manipulating a
heap handle to point at the piece of memory I want to use?
I don't think there is (at least documented). You could write your own
allocation routines and fake it though.
--
-GJC [MS Windows SDK MVP]
-Software Consultant (Embedded systems and Real Time Controls)
-
http://www.mvps.org/ArcaneIncantations/consulting.htm
-gchanson@xxxxxxxx
.
Relevant Pages
- Re: DLL pass vector by value crash
... I can't see why the issue of common heap and allocator (operator ... Presuming that you build your exe and dll with same compiler and same ... allocation functions are called, ... (microsoft.public.vc.mfc) - Re: Competing criteria
... solution to "not heap allocation" is to define a reasonable maximum count ... memory allocation will not fail due to memory fragmentation, ... If you have some memory left over, you might want to switch to making a heap request when your preallocated buffers are exhausted, in this case since you are now allowed to fail, you are ok. ... To the degree that you can't preallocate as efficiently as you think you might be able to use the heap, consider that the cost for getting the guarantee. ... (comp.lang.c) - Re: Whats the difference between the heap and the freestore?
... >> In general, when discussing dynamically allocated memory, I hear people ... As of a couple of days ago, I though the heap ... > When you use the term heap in the context of memory allocation it annoys ... > without saying that they have to be allocated on a stack or anything else. ... (comp.lang.cpp) - Re: GC.Collect: Exactly how does it work?
... MB segment for the LOH. ... At the start of a process the GC heap looks like this: ... filled (committed regions) and a third segment had to be created. ... the allocation scheme and the frequency of most recent ... (microsoft.public.dotnet.languages.csharp) - Re: mex-file and reference
... Since my program uses a big structure defined in C to handle every meaningful variables, I thinks it is why references are used. ... "A pointer has its own memory address and size on the stack, whereas a reference shares the same memory address but also takes up some space on the stack. ... Heap access is NOT slower than stack ... However, once allocation is done, accessing both heap and stack ... (comp.soft-sys.matlab) |
|