Appending to multiple vectors

Hello cplusplus devs!

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.

Thank you for your time!
Okay it seems I've found a solution.

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 (*).

Sorry for the inconvenience.
Can you post code snippets? (use the code tags if you do)
Topic archived. No new replies allowed.