PluginInstance hits assertion error for channel number

@reuk My implementation appears to work when I test my debug build but for some reason it doesn’t work with my release builds. The message I get when I try to createPluginInstance() is “No compatible plug-in format exists for this plug-in”… I found this post: Opening plugins and I changed my code to match what was suggested but I still receive the same error. I’m trying to load Apple’s DLS Music Device into my plugin to be used as a synth for midi playback… Any ideas why it works in debug builds but not release? Thanks in advance!!