I’m trying to access to params of some of my processor like this:
ayra::PanpotProcessor* mainPanpot = static_cast<ayra::PanpotProcessor*>(pluginProcessor.nodeGraphProcessor.mainPanpotNode->getProcessor());
sendMessage(ayra::serializeInterprocessMessage(pluginProcessor.nodeGraphProcessor.getGraphUuid(), ayra::InterprocessMessageType::panType, var{ayra::PanpotProcessor::rangeTypeToString(mainPanpot->getPanpotType())}, var{}));
but I get this error: JUCE Message Thread (1): Use of deallocated memory
Can you explain me what’s going on here and how to solve?
really thank you