diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-217C992B-AC56-42A7-9920-DEC891D233A5.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-217C992B-AC56-42A7-9920-DEC891D233A5.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,47 @@ + + + + + +Allowing +Optional RAM AllocationThis section describes how an application can request from OOM +Monitor for optional RAM allocation. +

An application +can allocate RAM optionally by calling the ROomMonitorSession::RequestFreeMemory() method. +For more information on optional RAM, refer to Optional +RAM Allocation.

An application can release the optional RAM allocation +as soon as it is not needed anymore. An application can also keep the optional +RAM allocation until OOM Monitor requests to release it.

+
+ +Create an OOM Monitor +session. +ROomMonitorSession ioomMonitorSession; +CleanUpClosePushL(ioomMonitorSession); +User::LeaveIfError(ioomMonitorSession.Connect()); + + +Request for optional +RAM. +iOomMonitorSession.RequestOptionalRam(aBytesRequested,aMinimumBytesNeeded,aPluginId,aBytesAvailable); +

+ +Close the session. +iOomMonitorSession.Close(); + + + + +OOM Monitor +Plug-in +OOM Monitor +Overview +OOM Monitor +Reference + \ No newline at end of file