Hi Ben
I have tried to use FtrPtrNew() in the code fragment below but the same crash occurs so I am wondering if I am missing something.
char* pNew; FtrPtrNew(DB_CREATOR, 0, StrLen(TITLE) + 1, (void**)(&pNew)); DmSet(pNew, 0, StrLen(TITLE) + 1, 0); DmWrite(pNew, 0, TITLE, StrLen(TITLE)); FrmSetTitle(pForm, pNew);
There are many improvements I could do to my code; I just want to get it working first. By the way, is there a way of knowing what type a table cell is?
No, there is no function or glue library code that will get the style of a table cell.
I don't know what is causing your crash. The FtrPtrNew-allocated memory won't be freed when your sublaunched application ends, so that isn't the issue. It seems more likely that you're doing something to disturb the running application's state or somehow corrupting the local stack, but I can't tell anything from this code fragment.
-- Ben Combee, DTS technical lead, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Palm OS Dev Fourm Archives: http://news.palmos.com/read/all_forums/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
