# createSound/createStream returning ERR\_INVALID\_HANDLE

**URL:** <https://qa.fmod.com/t/createsound-createstream-returning-err-invalid-handle/17180>\
**Category:** FMOD Engine\
**Tags:** cpp\
**Created:** [May 10, 2021, 8:56pm UTC](https://qa.fmod.com/t/createsound-createstream-returning-err-invalid-handle/17180 "2021-05-10T20:56:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![emptyclip](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@emptyclip](https://qa.fmod.com/u/emptyclip)\
**Post date:** [May 10, 2021, 8:56pm UTC](https://qa.fmod.com/t/createsound-createstream-returning-err-invalid-handle/17180/1 "2021-05-10T20:56:14Z")

</div>

Hey guys,  
This code was working so I feel like this is on our side (user error), however, I’m having trouble understanding where FMOD is having trouble 🙂

Every time I try to create a sound or stream I now get the error ERR\_INVALID\_HANDLE. Here is the logging output:

c:/jk/workspace/Build\_\_2.0\_\_API\_Switch/studio\_api/src/fmod\_weakhandle\_system.cpp(252) : [LOG] FMOD\_RESULT = 30 – An invalid object handle was used.  
c:/jk/workspace/Build\_\_2.0\_\_API\_Switch/studio\_api/src/fmod\_studio\_impl.cpp(1613) : [LOG] FMOD\_RESULT = 30 – An invalid object handle was used.  
c:/jk/workspace/Build\_\_2.0\_\_API\_Switch/studio\_api/src/fmod\_studio\_impl.cpp(4513) : [LOG] FMOD\_RESULT = 30 – An invalid object handle was used.

I’m just not sure why FMOD is doing this now. Again, I feel like this might be on our side but can you tell me what FMOD is complaining about? Thank you!

Matt

---

<div class="post-metadata">

**Author:** ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)\
**Post date:** [May 11, 2021, 3:17am UTC](https://qa.fmod.com/t/createsound-createstream-returning-err-invalid-handle/17180/2 "2021-05-11T03:17:40Z")

</div>

An invalid handle associated with System::createSound means the System handle is invalid. That could happen if it’s null or is being used after release.

---

<div class="post-metadata">

**Author:** ![emptyclip](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@emptyclip](https://qa.fmod.com/u/emptyclip)\
**Post date:** [May 11, 2021, 4:59pm UTC](https://qa.fmod.com/t/createsound-createstream-returning-err-invalid-handle/17180/3 "2021-05-11T16:59:46Z")

</div>

Hey Mathew,  
Ok, yes. So if these were never used it would indicate some kind of memory overwrite on our part. That is what I was looking for, thank you!

Matt
