Monday, 6 July 2009

2D array in symbian

First, you have a list of items (TMsvId) which they are grouped under a category (TUid). Then, you want a list of these categorized array's, as a summary of TMsvId's of a folder (which is another TMsvId). And, not to mention that you might want to sort and search in these arrays....

You need a two-dimension array (2D array). Question is, how to create and manage them properly, especially when to use Cleanup Stack...


1. Symbian Example: RArray
RPointerArray as outer dimension, and each inner dimension array is a pointer on heap...

2. Symbian Developer Network Forums: 2D Arrays destruction
RArray of RArray. Nothing we declared will be on heap (except resource owned inside the RArray).

No comments: