Re: HeapCreate() : not enough storage is available



So, the only way to solve this problem, if i have understood, it's to
add new RAM in my device ...

Thanks,
Olivier


Geoff wrote:

It seems common that desktop programmers think that 'virtual memory' is
something to do with the hard drive. This is usually memory paging they
are thinking of and it uses virtual memory mapping to achieve its goal.



Virtual memory mapping is simply a way to map logical addresses that the
CPU sees to an address on a bus.



Olivier M wrote:
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 ...

Trace:
(...)
==> dwAvailPhys:176128 dwAvailVirtual:1073676288
[Allocation]
==> dwAvailPhys:172032 dwAvailVirtual:1073676288
[Allocation]
==> dwAvailPhys:167936 dwAvailVirtual:1073676288
[Allocation]
==> dwAvailPhys:163840 dwAvailVirtual:1073676288
[Allocation]
ERROR: line 421: Not enough storage is available to process this
command. (allocated memory: 12886016)

In this example, i was trying to allocate 12886016 byte in the context
:
dwAvailPhys:163840 dwAvailVirtual:1073676288

Cheers,
Olivier


.



Relevant Pages


Loading