Why bother using Heap Memory, just declare it locally on the stack. example;
DateTimeType dateTime; dateTime.month=11; dateTime.day=5; dateTime.year=2004; SelectDay (selectDayByMonth, &(dateTime.month), &(dateTime.day), &(dateTime.year), "birthday.."); LionScribe "Adam Ernst" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > You just created a NULL pointer and then tried to write to it. You'll need > to do something like > > dateTimeP = (DateTimePtr) MemPtrNew(TheSizeOfDateTimeP); > > Where "TheSize..." is the size, in bytes, of a DateTimePtr. > > Adam > > On Jan 3, 2005, at 6:02 AM, Ashutosh Kumar wrote: > >> DateTimePtr dateTimeP=NULL; >> dateTimeP->month=4;dateTimeP->day=5; dateTimeP->year=1900; > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
