Hi 

        I'm hoping someone could give me an idea what type of bug causes a
"MemoryMgr.c, Line 2765 Chunk over-locked" run time error?  Everything works
just as it should using my category trigger list.  That is until the trigger
has been selected for the 14th time.  Then at the 14th select I get this
"Chunk over-locked" run time error.

        If I change the last parameter for the call to
CategorySelect(BatchesDB, formP, catBatches, catList, true,
&CurrentCategory, CategoryName, 1, strCatEdit); from strCatEdit to 0
everything truly works as it should allowing unlimited trigger selects.
strCatEdit is defined in my resource file as "STRING ID strCatEdit "New
Category"".  As best as I can tell the code below using strCatEdit resource
should not be having a problem.  Any ideas as to why?

Thanks for any insight,
Steve

Here is my event handler code;

case ctlSelectEvent:
        switch(event->data.ctlEnter.controlID)
        {
                case catBatches:
                        CategorySelect(BatchesDB, formP, catBatches,
catList, true,
                                &CurrentCategory, CategoryName, 1,
strCatEdit);
                        BatchesTable = FrmGetObjectPtr(formP, 
                                FrmGetObjectIndex(formP, tblBatches));
                        CurTopVisBatch = 0;
                        LoadBatchesTable(formP, BatchesTable);
                        TblUnhighlightSelection(BatchesTable);
                        TblRedrawTable(BatchesTable);
                        handled=true;
                break;
        }
break;
case frmOpenEvent:
        /* Form needs to be repainted */
        ptrCatList = FrmGetObjectPtr(formP, FrmGetObjectIndex(formP,
catList));
        CategoryCreateList(BatchesDB, ptrCatList, CurrentCategory, true,
                true, 1, strCatEdit, true);
        CategoryGetName(BatchesDB, CurrentCategory, CategoryName);
        CategorySetTriggerLabel(FrmGetObjectPtr(formP,
FrmGetObjectIndex(formP,
                catBatches)), CategoryName);
        CategoryFreeList(BatchesDB, ptrCatList, true, strCatEdit);
        InitBatchesForm();
        FrmDrawForm(formP);
        handled = true;
break;



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

Reply via email to