Array is only for simple types like int, char, bool, (MyClass *). For complex types that should be deleted with the array, use OwnedArray. For Strings use StringArray. Best is to read the JUCE docs for all this.
I’m curious and don’t understand the exact mechanics of this. I think I heard it’s because it uses malloc for the sizeof(…) the datatype, but I’m not sure why this excludes “complex types”. What makes a type complex?
Is allocating space with malloc() for a class the same as using new operator for a class? … it isn’t. So Array will only work with simple types or structs (ok, complex types was not a good word choice from my side, let’s correct it to classes).