hey there,
it seems that the ProceesBlock function is called before mLayoutFunc causing pointers which are declared in IPLugEffect.h and assigned and attached in mLayoutFunc to be empty, when ProcessBlock gets called, which results in: Exception thrown: read access violation.
this->TextToChange was 0xFFFFFFFFFFFFFFFF.
is this a bug, or is IPlug2 supposed to be used differently in this than Iplug1?
to replicate issue:
Code:
//in IplugEffect.h in public: add:
ITextControl *TextToChange;
//in IplugEffect.cpp add:
//in mLayoutFunc:
TextToChange = new ITextControl(*this, b.GetFromTop(50), "TestText", IText(50));
pGraphics->AttachControl(TextToChange);
//in ProcessBlock:
TextToChange->SetStr("it works");