# AudiopluginHost with VST2 asserts in JUCE\_VST\_WRAPPER\_INVOKE\_MAIN

**URL:** <https://forum.juce.com/t/audiopluginhost-with-vst2-asserts-in-juce-vst-wrapper-invoke-main/38148>\
**Category:** Windows\
**Created:** [March 19, 2020, 4:21pm UTC](https://forum.juce.com/t/audiopluginhost-with-vst2-asserts-in-juce-vst-wrapper-invoke-main/38148 "2020-03-19T16:21:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomto66](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/tomto66/32/4916_2.png) [@tomto66](https://forum.juce.com/u/tomto66)\
**Post date:** [March 19, 2020, 4:21pm UTC](https://forum.juce.com/t/audiopluginhost-with-vst2-asserts-in-juce-vst-wrapper-invoke-main/38148/1 "2020-03-19T16:21:36Z")

</div>

Hello,

Just upgraded to latest Juce version, recompiled AudioPluginHost (enabled vst2) - I get asserts when JUCE\_VST\_WRAPPER\_INVOKE\_MAIN is called; if I continue past the assert everything seems to run just fine. But why the assert? And exactly what gets asserted? I see no jasserts anywhere there - JUCE\_VST\_WRAPPER\_INVOKE\_MAIN expands to

```auto
#ifndef JUCE_VST_WRAPPER_INVOKE_MAIN
#define JUCE_VST_WRAPPER_INVOKE_MAIN effect = module->moduleMain ((Vst2::audioMasterCallback) &audioMaster);
#endif

```

Anyone any idea what’s up here?

Cheers,

Tom

```auto

```

---

<div class="post-metadata">

**Author:** ![tomto66](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/tomto66/32/4916_2.png) [@tomto66](https://forum.juce.com/u/tomto66)\
**Post date:** [March 27, 2020, 8:21am UTC](https://forum.juce.com/t/audiopluginhost-with-vst2-asserts-in-juce-vst-wrapper-invoke-main/38148/2 "2020-03-27T08:21:40Z")

</div>

Bump. I can’t believe I am the only one seeing this?
