vector<float>* causing seg fault!
<p>I have a vector of floats, defined by:</p>

<pre><code>std::vector&lt;float&gt;* MyVec;
</code></pre>

<p>and I was filling this inside a for loop later with:</p>

<pre><code>MyVec-&gt;push_back(somevalue)
</code></pre>

<p>and I was getting a seg fault.  In order to try and find out what was going on I commented out the push_back line and I still saw a seg fault, and when it seg faulted the size of MyVec was 490618047.  </p>

<p>Is there perhaps something I have forgotten to do with this vector, and how is it getting filled by such a huge number without any entries being entered into the vector?</p>

<p>Thanks in advance.</p>
