--- linuxsampler/trunk/src/engines/EngineBase.h 2016/07/21 16:35:07 2971 +++ linuxsampler/trunk/src/engines/EngineBase.h 2016/07/22 14:37:34 2972 @@ -1259,12 +1259,17 @@ // the script's "init" event handler is only executed // once (when the script is loaded or reloaded) if (pEngineChannel->pScript && pEngineChannel->pScript->handlerInit) { + dmsg(5,("Engine: exec handlerInit %p\n", pEngineChannel->pScript->handlerInit)); RTList::Iterator itScriptEvent = pEngineChannel->pScript->pEvents->allocAppend(); itScriptEvent->cause.pEngineChannel = pEngineChannel; itScriptEvent->handlers[0] = pEngineChannel->pScript->handlerInit; itScriptEvent->handlers[1] = NULL; + itScriptEvent->currentHandler = 0; + itScriptEvent->executionSlices = 0; + itScriptEvent->ignoreAllWaitCalls = false; + itScriptEvent->handlerType = VM_EVENT_HANDLER_INIT; VMExecStatus_t res = pScriptVM->exec( pEngineChannel->pScript->parserContext, &*itScriptEvent