VST: bool oome = false;

DSP, Plugin and Host development discussion.
Post Reply New Topic
RELATED
PRODUCTS

Post

Hello forum,
can anyone tell me what the variable
bool oome = false;
in every VSTplug main is for? Do I need to set it? The plugin manual says nothing about it.
Thanks,
Gunnar

Post

oome is a global variable, define in XXXMain.cpp that checked to see whether the editor object (if any) was successfully allocated for on the heap.

If you look in the plugins' edit contructor file, you'll see the declaraition:

extern bool oome;

If you look in the constructor function, where the editor is instatiated, you'll see that oome is set to 'true' if the editor is not created.

it probably stands for 'Ou Of Memory Editor", but I'm not certain on that :)

Post

texture wrote:it probably stands for 'Ou Of Memory Editor", but I'm not certain on that :)
Close! :-) "Out Of Memory Exception" is the usual expansion.

Post

Yes, if the 'new' operator fails to allocate memory for your VST effect, it will set this variable to true, causing main() to kick out.

Post Reply

Return to “DSP and Plugin Development”