Re: HeapCreate() : not enough storage is available
- From: Valter Minute <v_a_l_t_e_r.m_i_n_u_t_e@xxxxxxxxxxxxx>
- Date: Fri, 15 Dec 2006 04:44:04 -0800
"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)
.
- Follow-Ups:
- Re: HeapCreate() : not enough storage is available
- From: Sue Loh [MS]
- Re: HeapCreate() : not enough storage is available
- References:
- HeapCreate() : not enough storage is available
- From: Olivier M
- HeapCreate() : not enough storage is available
- Prev by Date: Re: USB Mass Storage Device don't work
- Next by Date: Re: .NET framework 3.0
- Previous by thread: Re: HeapCreate() : not enough storage is available
- Next by thread: Re: HeapCreate() : not enough storage is available
- Index(es):
Relevant Pages
|