PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   HTC Titan (http://forum.ppcgeeks.com/forumdisplay.php?f=44)
-   -   quickmenu and hibernation and memory (http://forum.ppcgeeks.com/showthread.php?t=13016)

rycelover 12-04-2007 11:07 AM

quickmenu and hibernation and memory
 
I'm curious as to how this program recovers system memory on the Mogul - I just did a softreset and my ram showed 17mb; i immediately clicked on hibernate and QM recovered 2mb of memory so the total showed 19mb. What was using the 2mb? Where did QM recover this memory from?

TMB_XV6700 12-04-2007 11:41 AM

From: http://blogs.msdn.com/windowsmobile/...16/702746.aspx

"Hibernate
....[The Shell] will do this by first sending WM_HIBERNATE to all valid applications. When an application receives this message it should try to free as many resources as possible. When the low memory check routine runs again and the amount of free memory is still below the hibernate level then the shell will try to close the least recently used (LRU) application by sending a WM_CLOSE message. If the low memory check routine runs yet again and the amount of free memory is still below the hibernate level then the shell will call TerminateProcess on the LRU application that it last sent the WM_CLOSE message to."

The blog entry was for WM5 but probably applies to WM6 as well.


All times are GMT -4. The time now is 06:29 PM.

Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0