I have an error when i build my plugin in Release Mode. It works fine in Debug Mode. Error occures in validator in checking Mono to Mono:
1>[In: Mono: 1 Channels, Out: Mono: 1 Channels]
1>Info: ===In: Mono: 1 Channels, Out: Mono: 1 Channels
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: Der Befehl "setlocal
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: “C:\Program Files\CMake\bin\cmake.exe” -E copy C:/Users/marku/Documents/GitHub/vst3sdk/cmake/modules/…/templates/VST_Logo_Steinberg.ico “C:/Users/marku/Documents/GitHub/VST3 Tutorial Projects/TestProject/build/VST3/Release/TestProject.vst3/PlugIn.ico”
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: “C:\Program Files\CMake\bin\cmake.exe” -E copy C:/Users/marku/Documents/GitHub/vst3sdk/cmake/modules/…/templates/desktop.ini.in “C:/Users/marku/Documents/GitHub/VST3 Tutorial Projects/TestProject/build/VST3/Release/TestProject.vst3/desktop.ini”
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: attrib +s "C:/Users/marku/Documents/GitHub/VST…
If i do a printf in my process methode i see that it runs a while without problems in Mono - Mono Test, but after a few seconds it stops and produce the error.
Here is the whole process Methode:
tresult PLUGIN_API TestProjectProcessor::process (Vst::ProcessData& data)
{
//--- First : Read inputs parameter changes-----------
//fprintf(stderr, "Beginn process: data.inputParameterChanges ");
if (data.inputParameterChanges)
{
int32 numParamsChanged = data.inputParameterChanges->getParameterCount ();
for (int32 index = 0; index < numParamsChanged; index++)
{
if (auto* paramQueue = data.inputParameterChanges->getParameterData (index))
{
//Vst::ParamValue value = 0;;
//int32 sampleOffset = 0;
// int32 numPoints = paramQueue->getPointCount ();
// switch (paramQueue->getParameterId ())
// {
//default: break;
//}
}
}
}
//--- Here you have to implement your processing
if (data.numInputs == 0 || data.numOutputs == 0)
{
return kResultOk;
}
// Annahme: Stereo-Eingang und -Ausgang
int32 numChannels = 2;
uint32 sampleFramesSize = getSampleFramesSizeInBytes(processSetup, data.numSamples);
void** in = getChannelBuffersPointer(processSetup, data.inputs[0]);
void** out = getChannelBuffersPointer(processSetup, data.outputs[0]);
for (int32 i = 0; i < numChannels; i++)
{
// do not need to be copied if the buffers are the same
if (in[i] != out[i])
{
memcpy(out[i], in[i], sampleFramesSize);
}
}
return kResultOk;
}
Thx for helping!