Hi, I am trying to create a class to hold a global vector variable that I can share between three application forms.
The files compiles ok, yet when I run it, it crashes on vector.
"Check to determine if the object is null before calling the method.
Use the 'new' keyword to create an object instance."
Thanks JLBorges...
Actually what I did,is remove the constructor and destructor, leaving just static vector<TrObject>* trkObjects;
In the main form, call VectorTracks::trkObjects = new vector<TrObject>();
and delete the object when the main form is closed.