My program is stopping : <p>This is my class,and my problem is when I call the constructor </p>

<blockquote>
  <p>Eveniment e1(1,m1);</p>
</blockquote>

<p>with parameters in main method, my program is stopping and I don't know why. M1 is an object of IntrareCAlendar.</p>

<pre><code>class Eveniment{
private:
    const int id;
    IntrareCalendar data;
    char* detalii;
    int static nrIntrari;

public:
    Eveniment(int nr,IntrareCalendar ic) :id(nr){
        this-&gt;data = ic;
        nrIntrari++;
    }

    ~Eveniment(){
        if (this-&gt;detalii != NULL)
            delete[]this-&gt;detalii;

    }
};
</code></pre>

<p>What should I do? thanks a lot!</p>
