# C# system.createChannel() returmed 'ERR\_INVALID\_PARAM'

**URL:** <https://qa.fmod.com/t/c-system-createchannel-returmed-err-invalid-param/13378>\
**Category:** FMOD Engine\
**Created:** [August 25, 2017, 12:27am UTC](https://qa.fmod.com/t/c-system-createchannel-returmed-err-invalid-param/13378 "2017-08-25T00:27:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![r\_emak\_e](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@r\_emak\_e](https://qa.fmod.com/u/r_emak_e)\
**Post date:** [August 25, 2017, 12:27am UTC](https://qa.fmod.com/t/c-system-createchannel-returmed-err-invalid-param/13378/1 "2017-08-25T00:27:20Z")

</div>

```
private void FmodERRCheck(Fmod.RESULT result){
    if (result != RESULT.OK)
    {
        MessageBox.Show(Fmod.Error.String(result));
    }
}

private void InitFmodSystems()
{
    Fmod.Factory.System_Create(out system);
    system = new Fmod.System(IntPtr.Zero);
    system.init(3, INITFLAGS.NORMAL, IntPtr.Zero);

    channelGroup = new ChannelGroup(IntPtr.Zero);

    FmodERRCheck(system.createChannelGroup(null, out channelGroup));
}

```

  
Hi there this time I get unknown error. in c++, when invoke playSound() function we can be replace ChannelGroup value to 0 or FREE. but C#'s example not exist every website. so I can't coding with compare to c++ codes what's wrong in this case?

---

<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 25, 2017, 1:01am UTC](https://qa.fmod.com/t/c-system-createchannel-returmed-err-invalid-param/13378/2 "2017-08-25T01:01:44Z")

</div>

> [@](#):
>
> ```
> private void FmodERRCheck(Fmod.RESULT result){
> if (result != RESULT.OK)
> {
> MessageBox.Show(Fmod.Error.String(result));
> }
> }
> 
> private void InitFmodSystems()
> {
> Fmod.Factory.System_Create(out system);
> system = new Fmod.System(IntPtr.Zero);
> system.init(3, INITFLAGS.NORMAL, IntPtr.Zero);
> 
> channelGroup = new ChannelGroup(IntPtr.Zero);
> 
> FmodERRCheck(system.createChannelGroup(null, out channelGroup));
> }
> 
> ```
> 
>   
> Hi there this time I get unknown error. in c++, when invoke playSound() function we can be replace ChannelGroup value to 0 or FREE. but C#'s example not exist every website. so I can't coding with compare to c++ codes what's wrong in this case?

Can you confirm the system\_create and system.init both return FMOD\_OK?

---

<div class="post-metadata">

**Author:** ![r\_emak\_e](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@r\_emak\_e](https://qa.fmod.com/u/r_emak_e)\
**Post date:** [August 25, 2017, 2:48am UTC](https://qa.fmod.com/t/c-system-createchannel-returmed-err-invalid-param/13378/3 "2017-08-25T02:48:41Z")

</div>

Cameron Baron Sorry man, i was so foolish xDDD  
I’m trying to construct after System\_Create. Ha-Ha  
so system instance be baby.
