Symbian3/PDK/Source/GUID-B2EE5805-717A-5357-8859-BA9A953CC0D3.dita
author Dominic Pinkman <Dominic.Pinkman@Nokia.com>
Tue, 30 Mar 2010 16:16:55 +0100
changeset 6 43e37759235e
parent 5 f345bda72bc4
child 14 578be2adaf3e
permissions -rw-r--r--
Week 12 contribution of example code"

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
<!-- This component and the accompanying materials are made available under the terms of the License 
"Eclipse Public License v1.0" which accompanies this distribution, 
and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
<!-- Initial Contributors:
    Nokia Corporation - initial contribution.
Contributors: 
-->
<!DOCTYPE concept
  PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="GUID-B2EE5805-717A-5357-8859-BA9A953CC0D3" xml:lang="en"><title>Patchable
Constants: KCustomResolverCacheSize</title><prolog><metadata><keywords/></metadata></prolog><conbody>
<codeblock id="GUID-DA92CB95-3620-51EC-84AB-FC094FA3288B" xml:space="preserve"># define ECOM_PATCHDATA_KCUSTOMRESOLVERCACHESIZE 4
</codeblock>
<table id="GUID-D0429C92-2CA5-5CC0-ABF5-0CCB170398AA">
<tgroup cols="2"><colspec colname="col0"/><colspec colname="col1"/>
<tbody>
<row>
<entry><p>Exported from: </p> </entry>
<entry><p> <filepath>ECOMPATCHDATA.DLL</filepath>  </p> </entry>
</row>
<row>
<entry><p>Defined in: </p> </entry>
<entry><p> <filepath>                 .../os/ossrv/lowlevellibsandfws/pluginfw/framework/frame/ecompatchdataconstantv2.cpp</filepath> </p> </entry>
</row>
<row>
<entry><p>Purpose: </p> </entry>
<entry><p>This constant specifies the maximum number of resolver DLLs ECOM
can cache. When the cache queue is full, the next custom resolver DLL requested
by client will bump off the oldest DLL in the cache. The default value of <codeph>KCustomResolverCacheSize</codeph> is
4, meaning ECOM will cache a maximum of four resolver DLLs. </p> </entry>
</row>
</tbody>
</tgroup>
</table>
<p>ECom uses a customized scheme to handle patchable constants. Device creators
should follow the scheme described below to set patch values: </p>
<ul>
<li id="GUID-A3A525AC-E358-5B25-98F7-41715DB73E07"><p>Each patchable constant
is represented by a macro listed in <filepath>\epoc32\rom\include\ecompatchconstants.hby</filepath>.
The macros in the HBY file are all commented out. </p> </li>
<li id="GUID-871A9680-4E7C-55FF-ABA9-257D48DB8E7B"><p>To activate a patch
macro, uncomment the line and change the example value in the line to your
custom value. </p> </li>
</ul>
</conbody></concept>