diff --git a/src/wine-host/bridges/vst2.cpp b/src/wine-host/bridges/vst2.cpp index 2273be39..916fe081 100644 --- a/src/wine-host/bridges/vst2.cpp +++ b/src/wine-host/bridges/vst2.cpp @@ -657,6 +657,13 @@ intptr_t VST_CALL_CONV host_callback_proxy(AEffect* effect, intptr_t value, void* data, float option) { - return get_bridge_instance(effect).host_callback(effect, opcode, index, - value, data, option); + try { + return get_bridge_instance(effect).host_callback(effect, opcode, index, + value, data, option); + } catch (const boost::system::system_error& error) { + std::cerr << "Error while handling callback:" << std::endl; + std::cerr << error.what() << std::endl; + + return -1; + } }