bill wrote:
>
> Tasks* TaskData[500];
>
> // Get data from tasks database
> OpenTasksDB();
>
> UInt16 TotalRecords=GetSizeTasksDB();
> for (int index=0; index<TotalRecords; index++)
> {
> TaskData[index] = new Tasks;
> TaskData[index]->Description=GetRecord(index);
> }
> CloseTasksDB();
>
> [snip]
>
> FormType* pForm = FrmInitForm (ID_TASKSFORM);
> TableType* table = (TableType*)FrmGetObjectPtr(pForm,
> FrmGetObjectIndex(pForm, ID_TaksTbl));
> [snip]
>
> //>>>The pointer turns NULL at this point.....
and later
> The pForm pointer turns NULL at the point that I have indicated, what am
It looks like TaskData and pForm are placed in adjacent memory locations
and you access TaskData[500] .
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/