After (somewhat unwillingly) taking most of the summer off, I'm starting
again to work on the next version of my program.  I mention that only
because about the last major thing I did before summer began was to
convert my program to use segments, and perhaps that has something to
do with the current problem.

In my main event handler, I have the following code:

                // Populate category list
        dAlert("AA");
                doCategoryList(list, frm, noListSelection);
        dAlert("BB");

doCategoryList starts like this:

        void doCategoryList(ListPtr list, FormPtr frm, UInt category)
        {
                int i;
                char dbg[80];

                CALLBACK_PROLOGUE
        dAlert("Enter docatlist");
                list=FrmGetObjectPtr(frm, FrmGetObjectIndex(frm, CategoryList));
                LstSetListChoices(list, (char **)catname, cattotal + 1);
                LstSetDrawFunction(list, CategoryListDrawFunc);
                if(category != noListSelection) {

Okay, when I compile and run the program without the 'AA' and 'BB' alerts,
the program crashes.  When I put those in, the 'AA' alert pops up, but none
of the other alerts.

Huh?

The whole point of doCategoryList is to populate a list, which doesn't
happen.  Not surprising, I guess, since the first line of executable code
in the routine doesn't seem to execute.  Anyone have any ideas?

doCategoryList() and the event handler are in different segments.. is
this a problem?  (Geez, I hope not.)

We're talking GCC/Linux here, if that matters.

Any ideas would be greatly appreciated!

Thanks,

Sean.




-- 
---
Sean L. Gilley          Throw off the bowlines. Sail away from the safe harbor.
614-860-0247 (h)        Catch the trade winds in your sails. 
[EMAIL PROTECTED]  Explore. Dream. Discover.

-- 
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