Working on the PluginEditor of an audio plugin in Visual Studio 2019. I’m getting a warning in the AudioProcessorEditor constructor: “C6262: function uses ‘21948’ bytes of stack, exceeds / analyze:stacksize 16384. Consider moving some data to heap.”
It seems that my options are to:
A) Find some data to allocate to heap
B) Increase the stack size
So my question is, is it more reasonable to find something to allocate to the heap, or to increase the stack size? (Or both?) What is a reasonable stack size for a plugin, anyway? Browsing through the forums, it seems that allocating Processor-side data is ill-advised due to performance concerns. But what about Components in the Editor?
Thanks in advance,