home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Profiling for performance.
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ojo" data-source="post: 3413" data-attributes="member: 10402"><p>Your right. I guess i forgot to post the actual caching. Silly me.</p><p></p><p>Here it is </p><p>[code]</p><p> public GUIControl Create(int dwParentId, XmlNode pControlNode, GUIControl reference, bool bLoadReferences)</p><p> {</p><p> if (iUseCache)</p><p> {</p><p> XmlCache.Clear();</p><p> for (int x=0; x < pControlNode.ChildNodes.Count; x++)</p><p> {</p><p> XmlCache.Add(pControlNode.ChildNodes[x].Name, pControlNode.ChildNodes[x].InnerText);</p><p> }</p><p> }</p><p></p><p> int dwPosX = 0, dwPosY = 0;</p><p> int dwWidth = 0, dwHeight = 0;</p><p> int dwID = 0, left = 0, right = 0, up = 0, down = 0;</p><p>...</p><p>[/code]</p><p></p><p>The above also explains how it works. Since only the processed control itself is cached, and the cache is cleared before filling the cache, there is no mixup.</p><p></p><p>It actually works quite fine. If you check the bins in the posted URL you'll see it actually works.</p><p></p><p>Ojo</p></blockquote><p></p>
[QUOTE="ojo, post: 3413, member: 10402"] Your right. I guess i forgot to post the actual caching. Silly me. Here it is [code] public GUIControl Create(int dwParentId, XmlNode pControlNode, GUIControl reference, bool bLoadReferences) { if (iUseCache) { XmlCache.Clear(); for (int x=0; x < pControlNode.ChildNodes.Count; x++) { XmlCache.Add(pControlNode.ChildNodes[x].Name, pControlNode.ChildNodes[x].InnerText); } } int dwPosX = 0, dwPosY = 0; int dwWidth = 0, dwHeight = 0; int dwID = 0, left = 0, right = 0, up = 0, down = 0; ... [/code] The above also explains how it works. Since only the processed control itself is cached, and the cache is cleared before filling the cache, there is no mixup. It actually works quite fine. If you check the bins in the posted URL you'll see it actually works. Ojo [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Profiling for performance.
Contact us
RSS
Top
Bottom