Hi Manuel,
what you say rings a bell. I was sure it was because the vector hadn't allocated anything yet.
Global possibly wasn't the best way admittedly, it just started like that for convenience. But it ended up being a bit complex, there's a lot of things accessing it, so I didn't want to change it (for now).
@m_magalhaes said in Setting up global plugin structs:
create a pointer and in pluginstart and pluginend take care of assign memory and free it
hadn't thought of that. Seems to work - I'll go with that! Thanks 👍
WP.