Albert Santoni wrote:
>> The problem I'm having now is still another segfault when
>> dlgprefmidibindings tries to get a pointer to the QList built by
>> MidiMapping. I tried using a QMutex to make it wait until the list is
>> actually ready, but it segfaults when it tries to lock() the mutex!
> 
> That means that the object lives inside is NULL or has been deleted.

I think I fixed that part, as the mutex works as expected now, (see the
latest midimapping.cpp in trunk) but when dlgprefmidibindings tries to
operate on the returned QList pointer (to see if it's empty, for
example) it segfaults because the returned pointer is not always valid.
(Sometimes it's 0x1c, 0x26, or a 32-bit value which half of the time
isn't valid either.) When it does happen to be valid, it segfaults when
I try to modify the QList (with takeFirst()).

So is this the same problem? If so, how do I figure out how to fix it?
This memory management stuff is killing me.

Sean


<<--------------------------------------------------------------------------------->>
This E-Mail message has been scanned for viruses
and cleared by >>SmartMail<< from Smarter Technology, Inc.
<<--------------------------------------------------------------------------------->>

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel

Reply via email to