# Memory issue

**URL:** <https://community.thinkgeo.com/t/memory-issue/1226>\
**Category:** WinForms\
**Created:** [May 12, 2010, 8:52pm UTC](https://community.thinkgeo.com/t/memory-issue/1226 "2010-05-12T20:52:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carol](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/c/9d8465/32.png) [@Carol](https://community.thinkgeo.com/u/Carol)\
**Post date:** [May 12, 2010, 8:52pm UTC](https://community.thinkgeo.com/t/memory-issue/1226/1 "2010-05-12T20:52:29Z")

</div>

hello&nbsp;all,

I&nbsp;use&nbsp;InMemoryBitmapTileCache&nbsp;to&nbsp;improve&nbsp;my&nbsp;Map&nbsp;pan&nbsp;speed.

&nbsp;InMemoryBitmapTileCache&nbsp;bitmapTileCache&nbsp;=&nbsp;new&nbsp;InMemoryBitmapTileCache();  
  
&nbsp;&nbsp;worldOverlay.TileCache&nbsp;=&nbsp;bitmapTileCache;

can&nbsp;i&nbsp;set&nbsp;it's&nbsp;the&nbsp;maximum&nbsp;amount&nbsp;of&nbsp;memory?&nbsp;I&nbsp;don't&nbsp;want&nbsp;to&nbsp;the&nbsp;component&nbsp;occupy&nbsp;almost&nbsp;memory...and&nbsp;no&nbsp;release.

it&nbsp;causes&nbsp;computer&nbsp;operation&nbsp;slowly!  
  
&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [May 13, 2010, 12:01am UTC](https://community.thinkgeo.com/t/memory-issue/1226/2 "2010-05-13T00:01:32Z")

</div>

Carol,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Try&nbsp;following&nbsp;property&nbsp;MaximumTilesCount&nbsp;,&nbsp;it&nbsp;determines&nbsp;the&nbsp;maximum&nbsp;count&nbsp;kept&nbsp;in&nbsp;memory.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Any&nbsp;more&nbsp;questions&nbsp;just&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;us&nbsp;know.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Yale&nbsp;

---

<div class="post-metadata">

**Author:** ![Carol](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/c/9d8465/32.png) [@Carol](https://community.thinkgeo.com/u/Carol)\
**Post date:** [May 14, 2010, 2:41am UTC](https://community.thinkgeo.com/t/memory-issue/1226/3 "2010-05-14T02:41:48Z")

</div>

Thanks&nbsp;for&nbsp;your&nbsp;reply,&nbsp;Yale&nbsp;  
&nbsp;Just&nbsp;make&nbsp;sure,&nbsp;…What&nbsp;is&nbsp;the&nbsp;Unit&nbsp;of&nbsp;the&nbsp;maximum&nbsp;tiles&nbsp;count?&nbsp;  
&nbsp;memory&nbsp;Map&nbsp;count?&nbsp;Or&nbsp;set&nbsp;Memory&nbsp;usage??&nbsp;  
&nbsp;&nbsp;

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [May 14, 2010, 3:26am UTC](https://community.thinkgeo.com/t/memory-issue/1226/4 "2010-05-14T03:26:22Z")

</div>

Carol,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;reply.&nbsp;  
&nbsp;&nbsp;  
&nbsp;The&nbsp;maximum&nbsp;tiles&nbsp;count&nbsp;is&nbsp;the&nbsp;maximum&nbsp;number&nbsp;of&nbsp;tiles&nbsp;can&nbsp;be&nbsp;stored&nbsp;in&nbsp;the&nbsp;memory.&nbsp;If&nbsp;the&nbsp;number&nbsp;exceed,&nbsp;it&nbsp;will&nbsp;remove&nbsp;those&nbsp;tiles&nbsp;firstly&nbsp;stored.&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;For&nbsp;example,&nbsp;if&nbsp;the&nbsp;number&nbsp;is&nbsp;set&nbsp;to&nbsp;1000,&nbsp;and&nbsp;each&nbsp;tile&nbsp;will&nbsp;take&nbsp;up&nbsp;256kb&nbsp;at&nbsp;maximum,&nbsp;so&nbsp;the&nbsp;maximum&nbsp;memory&nbsp;is&nbsp;250MB,&nbsp;while&nbsp;in&nbsp;fact&nbsp;it&nbsp;will&nbsp;much&nbsp;less&nbsp;because&nbsp;each&nbsp;tile&nbsp;will&nbsp;take&nbsp;much&nbsp;less&nbsp;memory&nbsp;comparing&nbsp;to&nbsp;its&nbsp;maximum&nbsp;case.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Any&nbsp;more&nbsp;questions&nbsp;just&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Yale&nbsp;
