Hi folks,
I've had a persistent issue with setting up some plugins with global structs. I'm sure I've read about this previously, maybe something to do with symbols not being loaded before PluginStart() is called? I forget the details...
Anyhow, is there a 'correct' way to setup a global struct for my plugin, that has BaseContainers, Strings etc in it? Take this for example, if I do this:
// global struct
struct MyStruct
{
BaseContainer bc;
}mystruct;
the plugin fails to start and I get a crash file with nothing in it. If I do this:
// global struct
struct MyStruct
{
std::vector< BaseContainer > bc;
}mystruct;
then the plugin loads. Obviously I have to take care of the array, but that aside. Is there a way of having a global struct load with Cinema objects, without cheating it like this? Or - is there a better cheat...
WP.