--
You received this message because you are subscribed to the Google Groups "Symbiosis AU VST" group.
To unsubscribe from this group and stop receiving emails from it, send an email to symbiosis-au-v...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I do set the rectangle size in the open method, so it's not that. I've written a couple extra methods and I suspect one of them called setRect is likely overriding something. I'll try renaming that and see if it gets me anywhere.
Thanks
Given that v is initialized as false, am I correct in assuming the only way for this to return false is if the editor pointer is also false?
So, I finally figured out how to setup proper debugging on Xcode. I'm primarily a windows man.
Thankfully, the assert broke reliably during debugging. Setting up breakpoints in the dispatch and getRect() functions, I managed to get two important bits of information. Firstly, the editor pointer is not null and secondly, getRect() is never called.
This must mean that the editor pointer is somehow invalid? Any suggestions as to where I should look next?
Very strange indeed.... getRect() is not being called because it's calling this instead:
void AudioEffectX::DECLARE_VST_DEPRECATED (wantAsyncOperation) (bool state)
{
if (state)
cEffect.flags |= DECLARE_VST_DEPRECATED (effFlagsExtIsAsync);
else
cEffect.flags &= ~DECLARE_VST_DEPRECATED (effFlagsExtIsAsync);
I think I've managed to sort it out. Here's the fix, I incremented the amount of memory I use for programs (presets) from 1 to 2, even though I my effect constructor only specifies 1.
Regards,
Rob
After the program data, I instantiate my editor, so they are definitely adjacent. the last bit in the program data is the name of the preset which is char[24].
I put a breakpoint in the setProgamName() method and everything checks out. 1 program and curProgram is 0. I'm at a loss, but at least it's working.
It might be worth mentioning that I was debugging with Malloc Guard when I figured out there was something up with the programs. It was complaining about a BAD_ACCESS in the vst_strncpy method when trying to zero the dst pointer. Does that mean anything?
Anyways, I'll have to do so more testing, but for I'm just happy that I'm making progress.
Rob