Access violation writing location 0xaaaaaaaa
<p>This is my current code of the class Score in the <code>Score.h</code> file:-  </p>

<pre><code>class Score
{

protected:
long m_Scores;
long m_HighScore;
//private:

public:
Score();
~Score();
void Init();
void Update(float deltaMS);
void Render();
void Release();
void SetScore(long sc){
    m_Scores=sc;
}

long GetScore(){
    return m_Scores;
}
void SetHighScore(long sc){
    m_HighScore=sc;
}

long GetHighScore(){
    return m_HighScore;
}
void AddScore(int add);

};
</code></pre>

<p>I am getting the following error whenever I try to access m_Scores in the class itself.</p>

<pre><code>Access violation writing location 0xaaaaaaaa.
</code></pre>

<p>The <code>SetScore()</code> method can't be run due to this.
I know I am doing something silly, but couldn't figure it out. Can you please help me out.</p>
