I have an initialization-function, which initializes some objects and some vectors to hold these objects.
Both the objects and the vectors are declared in the .h file.
If I append to one vector everything works fine, but when appending to multiple vectors my program fails.
FYI I'm using the Qt framework, but I guess this is irrelevant.
I did not use the "new" keyword for the vectors, and when I declared them I set them as pointers.
When you don't use the "new" keyword you shouldn't set it as a pointer (*).