I have had these lines of code for a long time:

name = (Char *)CtlGetLabel (GetObjectPtr<ControlType> (MainCategoryPopupPopTrigger));

CategorySelect(refNum, FrmGetActiveForm(), MainCategoryPopupPopTrigger, MainnCategoriesList, false, &gCurrCategory, name, 0, categoryDefaultEditCategoryString);

They worked for a long time, but now I get bus error in LstSetListChoices, which is called by CategorySelect. I verified that the refNum, name, and current form are all valid.

This worked until I edited the categories App Info String List in constructor. I removed a category and renamed the other 2.

Now when I call CategoryInitialize at the beginning of my program, the renamed field gets set to 63. Maybe this means something is wrong with the database. I deleted my app from the emulator and did a hard reset. Still same problem.

I can make this exact same call from another form no problem. Well, it is not exact since it is using different controls.

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to