I was wondering if there is a way to tell the kernel to not page a specific
application.
I have read this article:
http://blogs.msdn.com/ce_base/archive/2008/01/19/Paging-and-the-Windows-CE-Paging-Pool.aspx
And, it suggests a method for making all applications non-pageable or a
method for making a section or sections of a specific application
non-pageable.
I have tried the first method, but I find that the system memory consumption
is too high.
The second method may be acceptable, but I would perfer to make the entire
application non-pageable instead of doing this by sections.
Is there a method for doing this?
Thank you,
Tom
for example,
app.exe $(_FLATRELEASEDIR)\app.exe NK SHM
For the section non-pageable, you can refer to the codes below.
/***************************************/
#pragma comment(linker, "/section:.no_page,ER!P")
#pragma code_seg(push, ".no_page")
XXX_PowerDown()
{ //Perform single-threaded power off logic }
XXX_PowerUp()
{ //Perform single-threaded power on logic }
#pragma code_seg(pop)
/***************************************/
Is there another way of telling the system to not page an exe? Perhaps a
registry entry that tells the loader to not page?
#pragma comment(linker, "/section:.no_page,ER!P")
#pragma code_seg(push, ".no_page")
/// Application source codes.
#pragma code_seg(pop)
Thanks for the help.
If the process that I am trying to make non-pageable calls code in a dll
then how can I guarantee that that code is not paged?
I assume that the answer is to recompile any dlls that the process uses as
well?
By the way, I don't see where you told us what version of CE we're talking
about...
Paul T.
"Tom K" <To...@discussions.microsoft.com> wrote in message
news:30B561C2-C4AE-4C68...@microsoft.com...