I have the following constructor:

```
    Timing::Timing():
    _numMes(INIT_NUMMES),_msgs(new allMSgs*[NUMBER_OF_MSGS])
    {

        cout<<"build timing OK\n";
    }

```

allMSgs is a struct :

```
   typedef struct AllMSgs
   {
            double msg;
        Agent* dedicatedTo;
   }allMSgs;

```

and the declaration of it is done like this:

```
        allMSgs** _msgs;

```

but when i try to reach for a field in the array like this:

```
     _msgs[loc]->dedicatedTo=agent->getPointsTo();

```

i get a segmentation fault.

NUMBER\_OF\_MSGS is 1000

loc is 0,1,2.... (less then 1000);

help please