# RS Add-in memory consumption

**URL:** <https://tech-community.robotics.abb.com/t/rs-add-in-memory-consumption/1009>\
**Category:** RobotStudio S4\
**Created:** [February 8, 2007, 4:35pm UTC](https://tech-community.robotics.abb.com/t/rs-add-in-memory-consumption/1009 "2007-02-08T16:35:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chmalan](https://avatars.discourse-cdn.com/v4/letter/c/3da27b/32.png) [@chmalan](https://tech-community.robotics.abb.com/u/chmalan)\
**Post date:** [February 8, 2007, 4:35pm UTC](https://tech-community.robotics.abb.com/t/rs-add-in-memory-consumption/1009/1 "2007-02-08T16:35:52Z")

</div>

Hi all,

I create a lot of target by a RS add-in. it works fine, but the memory consumption is very high and RS will free it only on exit.

I destroy every object at the end of the functions and i can’t see it in the watchlist. After two complete calculated parts RS needs about 1 GB RAM or more.

Is there a function the free up the memory without closing RS?

Thanks

---

<div class="post-metadata">

**Author:** ![PerSvensson](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/persvensson/32/1040_2.png) [@PerSvensson](https://tech-community.robotics.abb.com/u/PerSvensson)\
**Post date:** [February 8, 2007, 4:49pm UTC](https://tech-community.robotics.abb.com/t/rs-add-in-memory-consumption/1009/2 "2007-02-08T16:49:27Z")

</div>

Hi  
What happens if you set no of undo steps to 0?  
menu toolsoptions and the misc tab.

---

<div class="post-metadata">

**Author:** ![chmalan](https://avatars.discourse-cdn.com/v4/letter/c/3da27b/32.png) [@chmalan](https://tech-community.robotics.abb.com/u/chmalan)\
**Post date:** [February 9, 2007, 3:20pm UTC](https://tech-community.robotics.abb.com/t/rs-add-in-memory-consumption/1009/3 "2007-02-09T15:20:15Z")

</div>

Hi

I set the no of undo steps to 0 and make a few tests. During calculating RS requires more RAM until 1.6 GB physical memory is allocated and then the following error occures:

RS have to free up the memory and destroy the objects they aren’t required no more.

Is there any function to force RS to do that?

Thanks
