Re: HeapCreate() : not enough storage is available



"Olivier M" <olivier_martin@xxxxxxxxxxx> wrote in
news:1165953664.038663.96300@xxxxxxxxxxxxxxxxxxxxxxxxxxx:

Hi all,
i am writing a driver creating several heaps during boot time. And
it fails when there is no more available physical memory.
Is There any swap file with WinCE for freeing some physical memory
? Maybe i have misunderstood difference between physical and
virtual memory ...

As other people said, there is no support for swap file on Windows CE.
On version 5.0 and older your default heap allocation is limited to the
process' own 32MB slot (you can overcome this limitation using
CeHeapCreate allocating memory outside your slot using a filemapping or
something like that).
If you need to access large amounts of data you may try to implement
your own swap system intercepting access to memory pages that are
reserved but not committed to physical ram and loading the data you
need, decommiting other pages.
This is not an easy task, of course.

--
Valter Minute
(the reply address of this message is invalid)
(l'indirizzo di reply di questo messaggio non è valido)
.



Relevant Pages

  • Re: Excessive paging
    ... Yes, I was shocked too to see 4 gig of RAM installed too, and even more ... Physical memory at all. ... Any ideas why it's not using the Physical Memory instead? ... and you'll have a nice large swap file that addresses all the ...
    (microsoft.public.win2000.general)
  • Re: Can 64 bit Vista support a 32 bit application with 4 GB?
    ... is 8 GB of physical memory available in the first place. ... when the request for 1 GB of work area memory ... Yes, the swap file. ...
    (comp.lang.asm.x86)
  • Re: mmap() function call...
    ... A process has a virtual address space (virtual memory). ... The virtual memory is also mapped to the swap file so that the process' ... mapped to physical memory, the corresponding data is read from the swap ... Depending on the mmap() flags, if you then update that memory, ...
    (comp.unix.programmer)
  • Re: Game problems on Vista x64
    ... Well i thing the swap file has small effect of the performance ... especially if you have 4 gb physical memory.. ...
    (microsoft.public.windows.vista.games)
  • Re: Win XP Pro & Disk Thrashing
    ... No Third Party memory management is in use. ... the file in Windows Explorer and select Send to, ... Drives are fully Defragged. ... I had the swap file set so that Windows ...
    (microsoft.public.windowsxp.perform_maintain)