2nd EDIT: This seems to only be an issue when I neglect to initialize my formatReader pointer with nullptr. Now I understand this gets into the territory of undefined behavior but why is there such a strange build error?
EDIT: I found the issue and now I’m more confused.
For some reason including “delete formatReader;” in the destructor stops the program from compiling. I would like to delete the formatReader so I would still appreciate some advise.
I am extremely stuck with this build error. I’m just trying to set up a simple sampler but can’t get my program to compile. Any idea what code changes could cause this kind of error?
The command copy /Y D:\My Data\Programming\JUCE Projects\Just a Sample\Builds\VisualStudio2022\x64\Debug\VST3\Just a Sample.dll D:\My Data\Programming\JUCE Projects\Just a Sample\Builds\VisualStudio2022\x64\Debug\VST3\Just a Sample.vst3\Contents\x86_64-win\Just a Sample.vst3
del /s /q D:\My Data\Programming\JUCE Projects\Just a Sample\Builds\VisualStudio2022\x64\Debug\VST3/Just a Sample.vst3\Contents\moduleinfo.json
if not exist D:\My Data\Programming\JUCE Projects\Just a Sample\Builds\VisualStudio2022\x64\Debug\VST3/Just a Sample.vst3\Contents\Resources\ del /s /q D:\My Data\Programming\JUCE Projects\Just a Sample\Builds\VisualStudio2022\x64\Debug\VST3/Just a Sample.vst3\Contents\Resources && mkdir D:\My Data\Programming\JUCE Projects\Just a Sample\Builds\VisualStudio2022\x64\Debug\VST3/Just a Sample.vst3\Contents\Resources
D:\My Data\Programming\JUCE Projects\Just a Sample\Builds\VisualStudio2022\x64\Debug\VST3 Manifest Helper\juce_vst3_helper.exe -create -version 1.0.0 -path D:\My Data\Programming\JUCE Projects\Just a Sample\Builds\VisualStudio2022\x64\Debug\VST3/Just a Sample.vst3 -output D:\My Data\Programming\JUCE Projects\Just a Sample\Builds\VisualStudio2022\x64\Debug\VST3/Just a Sample.vst3\Contents\Resources\moduleinfo.json
:VCEnd exited with code -1073741819