# \[solved\] Unable to use callbacks in unity?

**URL:** <https://qa.fmod.com/t/solved-unable-to-use-callbacks-in-unity/14066>\
**Category:** Unity\
**Created:** [August 27, 2018, 5:30pm UTC](https://qa.fmod.com/t/solved-unable-to-use-callbacks-in-unity/14066 "2018-08-27T17:30:21Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [August 29, 2018, 4:06am UTC](https://qa.fmod.com/t/solved-unable-to-use-callbacks-in-unity/14066/8 "2018-08-29T04:06:19Z")

</div>

> [@](#):
>
> Only one problem though is that destroying the object as mentioned on the example while an event is playing freezes my unity editor

I believe the fix for that will be the same as posted here:

> **[GCHandle value belongs to a different domain- Error in Unity playmode -...](https://qa.fmod.com/t/gchandle-value-belongs-to-a-different-domain-error-in-unity-playmode-music-continues-to-play/)**
>
> I’m using the example script in the tutorials for unity called ScriptUsageTimeline. I’m getting this error when I stop play mode: ArgumentException: GCHandle value belongs to a different domain ...

It is due to the GCHandle being freed before the callback is actually finished with it.

---

_[View the full topic](https://qa.fmod.com/t/solved-unable-to-use-callbacks-in-unity/14066)._
