# Saving + applying code doesn't actually "save" ?

**URL:** <https://tech-community.robotics.abb.com/t/saving-applying-code-doesnt-actually-save/6369>\
**Category:** RobotStudio\
**Created:** [November 10, 2014, 3:04pm UTC](https://tech-community.robotics.abb.com/t/saving-applying-code-doesnt-actually-save/6369 "2014-11-10T15:04:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pollux](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/pollux/32/4028_2.png) [@pollux](https://tech-community.robotics.abb.com/u/pollux)\
**Post date:** [November 10, 2014, 3:04pm UTC](https://tech-community.robotics.abb.com/t/saving-applying-code-doesnt-actually-save/6369/1 "2014-11-10T15:04:56Z")

</div>

Hi guys,

When I press the save icon (top left) and press Apply (Rapid tab, CTRL + SHIFT + S) should the changes be saved?

RobotStudio just crashed and after restarting the editor showed code I was working on a couple of ours ago. Luckily I  
had a more recent backup but if pressing the save button + applying changes doesn’t store code I’m really curious how  
to save changes 🙂

Thanks  
p

---

<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:** [November 10, 2014, 4:50pm UTC](https://tech-community.robotics.abb.com/t/saving-applying-code-doesnt-actually-save/6369/2 "2014-11-10T16:50:01Z")

</div>

Hi  
Apply only deploys it to the controller (real or virtual) it doesn’t save the file/files

---

<div class="post-metadata">

**Author:** ![Henrik\_Berlin](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/henrik_berlin/32/1011_2.png) [@Henrik\_Berlin](https://tech-community.robotics.abb.com/u/Henrik_Berlin)\
**Post date:** [November 10, 2014, 9:23pm UTC](https://tech-community.robotics.abb.com/t/saving-applying-code-doesnt-actually-save/6369/3 "2014-11-10T21:23:55Z")

</div>

In this case the controller will show the state of the code at the last warmstart. During a warmstart the RAPID code in controller memory is written to a file somewhere and loaded back into memory after the restart. Since the RAPID editor works in controller memory those changes are saved to this ‘internal’ file storage when the controller is restarted. Changes done after your last restart will be lost.  
We are currently working on a new design that will make all the changes be done on file, which will prevent our users from this problem.

---

<div class="post-metadata">

**Author:** ![pollux](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/pollux/32/4028_2.png) [@pollux](https://tech-community.robotics.abb.com/u/pollux)\
**Post date:** [November 10, 2014, 10:24pm UTC](https://tech-community.robotics.abb.com/t/saving-applying-code-doesnt-actually-save/6369/4 "2014-11-10T22:24:41Z")

</div>

Hi Henrik,

Thanks for you reply. With restart do you mean **right click in Controller \> [System Name] \> Restart \> …**? So in order to save changes I need to perform that?

p.

---

<div class="post-metadata">

**Author:** ![Henrik\_Berlin](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/henrik_berlin/32/1011_2.png) [@Henrik\_Berlin](https://tech-community.robotics.abb.com/u/Henrik_Berlin)\
**Post date:** [November 11, 2014, 7:40am UTC](https://tech-community.robotics.abb.com/t/saving-applying-code-doesnt-actually-save/6369/5 "2014-11-11T07:40:32Z")

</div>

I would recommend to regularly create a Pack&Go file. That will save the station and embed it in a package togheter with a controller backup.

---

<div class="post-metadata">

**Author:** ![svoldgaard](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/svoldgaard/32/3334_2.png) [@svoldgaard](https://tech-community.robotics.abb.com/u/svoldgaard)\
**Post date:** [November 11, 2014, 7:52am UTC](https://tech-community.robotics.abb.com/t/saving-applying-code-doesnt-actually-save/6369/6 "2014-11-11T07:52:40Z")

</div>

After a crash, I have had success with just restarting RS. So when RS ask to terminate the currently running controllers I press No! I just open my station again and my RAPID code is preserved.

When RS crashes, it is only program itself that is terminated. The virtual controller er still running!
