# Any reliable check for I/O pin connections?

**URL:** <https://iplug2.discourse.group/t/any-reliable-check-for-i-o-pin-connections/673>\
**Category:** Uncategorized\
**Created:** [13 July 2022 17:45 UTC](https://iplug2.discourse.group/t/any-reliable-check-for-i-o-pin-connections/673 "2022-07-13T17:45:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RexMartin2](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@RexMartin2](https://iplug2.discourse.group/u/RexMartin2)\
**Post date:** [13 July 2022 17:45 UTC](https://iplug2.discourse.group/t/any-reliable-check-for-i-o-pin-connections/673/1 "2022-07-13T17:45:28Z")

</div>

I have a plugin that uses multiple outputs whenever a DAW can support them. It works in most places but sometimes throws an access violation in some DAWs. I check for output pin 3 connection, for example, using IsChannelConnected(ERoute::kOutput, 2) but I’m finding that check to be unreliable. It can return TRUE but then I get an access violation when trying to write back to \*out3 due to either a NULL or overflowing (0xFFFFFFFFFFF) pointer.

So, how do we set up additional I/O pins and make sure they actually exist/are connected in the DAW?
