hello,
I am using a 2 dimensional dyanamic array. this is
the code
Int16 **arrayColOne;
arrayColOne =(Int16 **) MemPtrNew(sizeof(Int16 *) *
6);
for(i=0; i<6; i++)
arrayColOne[i] = NULL;
for(i=0; i<6; i++)
{
arrayColOne[i] =(Int16
*)MemPtrNew(sizeof(Int16)*size);
if(!arrayColOne[i])
FreeMem();
}
void FreeMem()
{
UInt16 i;
if(arrayColOne)
{
for(i=0; i<6; i++)
{
if(arrayColOne[i])
MemPtrFree(arrayColOne[i]);
}
MemPtrFree(arrayColOne);
}
}
i am calling FreeMem in frmCloseEvent for that form.
thank u
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/