Please, help me to find a reason of strange behavior of the class CArrayFixFlat.
In header file I have got a variable declaration:
CArrayFixFlat<TRect> * iTopRect;
In cpp file at the "ConstructL" function I write:
iTopRect = new (ELeave)CArrayFixFlat<TRect>(7);
TInt cnt = iTopRect -> Length();
In debug time I get cnt = 16.
Any further access to iTopRect leads to panic: "data access error"
I don't understand such behavior.
I suppose that the reason is a "out-of memory" error.
But, in this case, the new operator must lead to leave.
So, I have no ideas now.