# EventInstance becomes invalid, sound stops

**URL:** <https://qa.fmod.com/t/eventinstance-becomes-invalid-sound-stops/11370>\
**Category:** FMOD Studio\
**Created:** [April 1, 2014, 5:03am UTC](https://qa.fmod.com/t/eventinstance-becomes-invalid-sound-stops/11370 "2014-04-01T05:03:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![c0diq](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@c0diq](https://qa.fmod.com/u/c0diq)\
**Post date:** [April 1, 2014, 5:03am UTC](https://qa.fmod.com/t/eventinstance-becomes-invalid-sound-stops/11370/1 "2014-04-01T05:03:05Z")

</div>

Not sure what I am doing wrong, following the exact same code as event\_parameter sample.  
Using master bank stock and parameter Surface of event:/Character/Footsteps/Footsteps  
At some point, the sound playback stops and the event instance becomes invalid.  
Same code worked fine with previous version of fmod.

Log attached.

---

<div class="post-metadata">

**Author:** ![c0diq](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@c0diq](https://qa.fmod.com/u/c0diq)\
**Post date:** [April 1, 2014, 7:34am UTC](https://qa.fmod.com/t/eventinstance-becomes-invalid-sound-stops/11370/2 "2014-04-01T07:34:09Z")

</div>

After investigation, the previous version didn’t work either.  
The problem was that I use fmod inside Moai and the garbage collector randomly decided to cleanup my objects thus stopping the event instance.  
Problem solved.

---

<div class="post-metadata">

**Author:** ![Guest1](https://avatars.discourse-cdn.com/v4/letter/g/ecccb3/32.png) [@Guest1](https://qa.fmod.com/u/Guest1)\
**Post date:** [April 1, 2014, 5:29am UTC](https://qa.fmod.com/t/eventinstance-becomes-invalid-sound-stops/11370/3 "2014-04-01T05:29:21Z")

</div>

When you say the previous version of FMOD are you referring to 1.03.02? Are you calling system update regularly? Can you post the code where you update the event?
