Ahh, you want to use MIDI to automate some parameters in Standalone. Unfortunately, I am not familiar with this usage context. However, if you look at the source code, setValueNotifyingHost would introduce a CriticalSection, which looks suspicious to me. Perhaps you can use a timer to check if there is any parameter to update?
You may want to go through the following post before using SliderAttachment. If you call setValueNotifyingHost in the audio thread, then the real-time safety problem from SliderAttachment might be concerning,