So, inIn my C++ project, I have a class App, and a class Window. Class App has a parameter: vector<Window*>* window;.
In App's constructor, it is able to use and push_back a Window* onto this vector fine, but in my onMessage() method, which is called by the WndProc() (I'm using winAPIwinapi), it gives me run-time errors and breaks my codean runtime error when I try to use the vector. These are access errors.
What on earth could be going wrong? If you need any more info, just ask.
Thanks in advance!