On Wed, Sep 27, 2000 at 12:22:06AM -0400, Chris Kuklewicz wrote:
> 
> Freeamp is playing right now...But opening the music browser causes a segfault.
> Ah..found the cause...compiling...
> 

Ah..the music plays, as before.

Ah...now the music browser comes up without segfaulting.

The tree looks good but the list is not there...just the grey background.
Weird. Add an extra show widget command for kicks.  Weird.  Add tracing
output to the filling of the list.

I'll ask for a second opinion: when a pointer is passed as the string
data for a column of the clist widget, what memory management is
required?  I am assuming it keeps the pointer, and you are not
supposed to alter the string it points to.  Metadata strings are all
allocated by HashStore and only removed when the all metadata classes
referring to it call unref.

At the moment:

[ Rest of program ] <---> [ MetaData ] <---> [ HashStore ]

With every metadata (char *) being allocated and freed by HashStore.
There are other things that HashStore can do, but this is the only
model in use.

------------
Oh...another segfault... This is the end of the unix bootstrap "main" function:

    if (!allow_mult) {
        if (pCmdLine)
            shmdt(pCmdLine);
        unsem.val = 0; 
        semctl (iCmdSem, 0, IPC_RMID, unsem);
        shmctl (iCmdMem, IPC_RMID, 0);
    }
    delete pP;
    delete context;
    cerr << "Normal Exit." << endl << flush;
    return 0;
}

And I saw "Normal Exit" and then the segfault...sigh.
I will add some tracing printouts to some destructors...

Compiling take sooooo looonnng.
_______________________________________________
[EMAIL PROTECTED]
http://www.freeamp.org/mailman/listinfo/freeamp-dev

Reply via email to