I have those strings declared in public of my AudioProcessor (added as internal plugin in audioPluginHost juce project):
String pluginName = "";
String pluginVersion = "";
String pluginFormat = "";
String pluginManufacturer = "";
String pluginCategory = "";
String pluginFileOrIdentifier = "";
When I instantiate it and I get my processor I try to assign this var, but my program crashes giving me JUCE Message Thread (1): EXC_BAD_ACCESS (code=1, address=0xfffffffffffffff0) error near line 1036 of. atomic.h:
template<class _Tp>
/*1033*/_LIBCPP_INLINE_VISIBILITY
/*1034*/_Tp __cxx_atomic_fetch_sub(__cxx_atomic_base_impl<_Tp> * __a, _Tp __delta, memory_order /*1035*/__order) _NOEXCEPT {
/*1036*/ return __c11_atomic_fetch_sub(&__a->__a_value, __delta, static_cast<__memory_order_underlying_t>(__order));
/*1037*/}
here where I try to assign it:
if (AudioProcessorGraph::Node::Ptr node = graph.addNode (std::move (instance)))
{
AudioProcessor* processor = node->getProcessor();
if (!processor)
{
AlertWindow::showMessageBoxAsync (MessageBoxIconType::WarningIcon,
TRANS("Couldn't find processor for node selected"),
"Couldn't find processor for node selected");
return;
}
if (ReplacerProcessor* replacerProcessor = ReplacerProcessor::tryGetReplacerProcessor(node))
{
replacerProcessor->pluginName = description.pluginDescription.name;
replacerProcessor->pluginVersion = description.pluginDescription.version;
replacerProcessor->pluginFormat = description.pluginDescription.pluginFormatName;
replacerProcessor->pluginManufacturer = description.pluginDescription.manufacturerName;
replacerProcessor->pluginCategory = description.pluginDescription.category;
replacerProcessor->pluginFileOrIdentifier = description.pluginDescription.fileOrIdentifier;
}
}
There’s a way to do it?