Pointer cast error in plugin wrapper


#1

Didn’t dig too deeply, but got an invalid cast error for line 542 in juce_VSTPluginFormat.cpp

where we have :

 if (FSPathMakeRef ((UInt8*) filename.toUTF8(), &fn, 0) == noErr)

resolved it by adding & in from of the filename.toUTF8.


#2

oh yeah - only happens on a release build of juce too … debug doesn’t hit that path I guess.


#3

Thanks, it just needs “.getAddress()” added on the end, I’ll do that.