Hi everybody,
I have a strange problem with an allocation of memory for pointers of pointers.
i have done this function to allocate memory for 2 pointers of pointers:
void LoadHistoDB::AllocComptStartEndMin(long RowSize,long ColSize)
{
long i;
pComptStartMineure=new double* [RowSize];
pComptEndMineure=new double* [RowSize];
for(i=0;i<RowSize;i++)
{
pComptStartMineure=new double[ColSize];
pComptEndMineure=new double[ColSize];
}
}
So, after the allocation is done, i want to put value in them, ik that:
pComptStartMineure[j]=i
pComptEndMineure[k]=i
i don't want to post all my code because it will be too long.
So when i test my application with debug method (calling the application with F5!)
When i>120 i could see in the debug window this message in front of pComptStartMineure:
CXX0030:expression cannot be evaluated
and i could see this same message for pComptEndMineure when i>202.
So where is the problem?
Thanks in advance for your help
jayjay
I have a strange problem with an allocation of memory for pointers of pointers.
i have done this function to allocate memory for 2 pointers of pointers:
void LoadHistoDB::AllocComptStartEndMin(long RowSize,long ColSize)
{
long i;
pComptStartMineure=new double* [RowSize];
pComptEndMineure=new double* [RowSize];
for(i=0;i<RowSize;i++)
{
pComptStartMineure=new double[ColSize];
pComptEndMineure=new double[ColSize];
}
}
So, after the allocation is done, i want to put value in them, ik that:
pComptStartMineure[j]=i
pComptEndMineure[k]=i
i don't want to post all my code because it will be too long.
So when i test my application with debug method (calling the application with F5!)
When i>120 i could see in the debug window this message in front of pComptStartMineure:
CXX0030:expression cannot be evaluated
and i could see this same message for pComptEndMineure when i>202.
So where is the problem?
Thanks in advance for your help
jayjay