Using other heaps for memory...if I run out?



I was using my Tungsten E simulator, and noticed that it has a 512k
heap setting already set when you download and run th esimulator. Is
that what is really is?
Here's the reason I ask. I noticed that my program I'm developing
crashes when running, and after stepping through it, I noticed that a
few of my memptrnew's were returning Null, so of course no more memory.
Now, I do create two offscreen buffers (hi-res), so I know I eat
through the memory prettyq uickly. Here's the deal...I ran
MemHeapFreeBytes(???) I think that is the name, and chose heap id's of
0, 1, and 2. Well, heap 0 is the one that I seem to be alllocating
memory from either by creating my offscreen buffer, or by using
memptrnew's.
But, when I looked at heap id 2, it had over 2 megabytes free (in the
simulator), and just wondering if I can go ahead and use that if I
want. Using MemChunkNew for instance, and specifying heap id. What is
strange, even a call to MemHandleNew doesn't even use anything from the
other heaps, why not?? Is this really 512k only on the Tungsten E, or
is that just an incorrect stock simulator setting.

Thanks!

.



Relevant Pages

  • Re: Lcc-win32 extensions to C
    ... compiled with a C++ compiler or a C compiler. ... Yes, but if you do not use GC, you allocate more memory than needed to ... Using a non-GC'ed heap+ a GC'ed heap requires also more memory... ... Collector, since GC technologies are much more advanced than simple ...
    (comp.std.c)
  • Re: Huge pages and small pages. . .
    ... you need to have them cached in the TLB; if the TLB runs out of ... >>> low end of the heap, until someone figures out a way to tell the system ... >> causing them to be COW'd to real memory. ... I believe the swapper will kill them fast once you have ...
    (Linux-Kernel)
  • Re: Help wanted - problems with heap
    ... Memory pressure, because of limited heap size. ... identified that by failures to allocate memory. ... Any pointers as to work out what is happening would be welcome. ...
    (rec.games.roguelike.development)
  • Garbage Collection/OutOfMemory Exception 2
    ... The Garbage collector is designed and optimised for Client based ... less memory fragmentation and allow intensive programs to run. ... This version locked up at less than 500meg of memory usage. ... It has gen 0,1,2 collections, heap size, induced gc etc etc. ...
    (microsoft.public.dotnet.framework.clr)
  • RE: Defeating Microsoft Windows XP SP2 Heap protection
    ... Fact is XP SP2 is still far less likely to be vulnerable to buffer overflow ... > than the memory buffer allocated to hold it. ... > the operating system is now more careful to reduce both stack and heap ... > Execution Protection ...
    (microsoft.public.windowsxp.general)