@falktx Yes, this is one of the limitations of the ugly globals. Another one would be the lacking cross-communication between multiple host instances. Thus, my approach works nicely if you load multiple instances of B.Choppr in Carla but would fail if you open a second window of Carla. As expected.
BTW, Jatin used JUCE SharedResourcePointer instead.
Now, I'm curious how did you solve it in your case. Host or plugin-based? And how does the code looks like?