# EventInstance release problem

**URL:** https://qa.fmod.com/t/eventinstance-release-problem/18975
**Category:** Unity
**Tags:** csharp
**Created:** [July 5, 2022, 7:14am UTC](https://qa.fmod.com/t/eventinstance-release-problem/18975 "2022-07-05T07:14:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![YangMing](https://avatars.discourse-cdn.com/v4/letter/y/54ee81/32.png) [@YangMing](https://qa.fmod.com/u/YangMing)
#### Post date: [July 5, 2022, 7:14am UTC](https://qa.fmod.com/t/eventinstance-release-problem/18975/1 "2022-07-05T07:14:10Z")

</div>

In my project, there are three actions called OnDead, OnDestroy, OnDisable to clean up gameobjects. I call instance.stop( ) and instance.release( ) in all of these three actions. Should I check if the instance has been released or stopped?

---

<div class="post-metadata">

### Author: ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)
#### Post date: [July 6, 2022, 1:20am UTC](https://qa.fmod.com/t/eventinstance-release-problem/18975/2 "2022-07-06T01:20:27Z")

</div>

Hi,

The easiest way to check the success of a FMOD Function is to use [FMOD\_RESULT](https://fmod.com/docs/2.02/api/core-api-common.html#fmod_result) which can be found in the [Core API Reference | Common](https://fmod.com/docs/2.02/unity/examples-programmer-sounds.html). An example of how to use `FMOD_RESULT` in `C#` can be found in [Scripting Examples | Programmer Sounds](https://fmod.com/docs/2.02/unity/examples-programmer-sounds.html). `FMOD_RESULT` is a good way to test if FMOD Functions have run properly.

Hope this helps!

---

<div class="post-metadata">

### Author: ![YangMing](https://avatars.discourse-cdn.com/v4/letter/y/54ee81/32.png) [@YangMing](https://qa.fmod.com/u/YangMing)
#### Post date: [July 7, 2022, 2:26am UTC](https://qa.fmod.com/t/eventinstance-release-problem/18975/3 "2022-07-07T02:26:42Z")

</div>

Thanks!
