# How to prevent UParticleSystemComponent from deletion upon Deactivate?

**URL:** <https://forums.unrealengine.com/t/how-to-prevent-uparticlesystemcomponent-from-deletion-upon-deactivate/441435>\
**Category:** FX\
**Tags:** particle-systems, unreal-engine, question, CPP\
**Created:** [January 16, 2019, 12:25pm UTC](https://forums.unrealengine.com/t/how-to-prevent-uparticlesystemcomponent-from-deletion-upon-deactivate/441435 "2019-01-16T12:25:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TimLobner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TimLobner](https://forums.unrealengine.com/u/TimLobner)\
**Post date:** [January 16, 2019, 12:25pm UTC](https://forums.unrealengine.com/t/how-to-prevent-uparticlesystemcomponent-from-deletion-upon-deactivate/441435/1 "2019-01-16T12:25:03Z")

</div>

I have a particle System that is supposed to emit particles if certain conditions hold and should do nothing otherwise. The conditions may change arbitrarily. Rather than spawning a new emitter everytime, I try to activate and deactivate the UParticleSystemComponent on demand, but I constantly run into “read access violation” errors. When I check the UParticleSystemComponent in the VS debugger, it still seems to be there, therefore I assume it is actually deleted. How can I prevent this deletion upon deactivate?

If I don’t deactivate the particles systems and just have them spawn constantly, I don’t get the issues.

---

<div class="post-metadata">

**Author:** ![SavvyIndoorsman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SavvyIndoorsman](https://forums.unrealengine.com/u/SavvyIndoorsman)\
**Post date:** [January 16, 2019, 6:01pm UTC](https://forums.unrealengine.com/t/how-to-prevent-uparticlesystemcomponent-from-deletion-upon-deactivate/441435/2 "2019-01-16T18:01:15Z")

</div>

Maybe you need to deactivate the system’s emitter(s) and not the system itself? You try can using [UParticleSystemComponent::SetEmitterEnable](https://api.unrealengine.com/INT/API/Runtime/Engine/Particles/UParticleSystemComponent/SetEmitterEnable/index.html) for that.
