It is "MissingWords::populateSceneComboBox" that crashes and not clear().
"subjectitem" argument there is null. Take a look:
DomItem* subjectItem = static_cast< DomItem*>( m_CurrentSubjectIndex.internalPointer());
populateSceneComboBox( subjectItem);
DomItem* subjectItem = static_cast< DomItem*>( m_CurrentSubjectIndex.internalPointer());
populateSceneComboBox( subjectItem);
To copy to clipboard, switch view to plain text mode
And debugging gives:
#2 0x0804cba8 in DomItem::child (this=0x0, i=0) at domitem.cpp:75
#3 0x0804f00c in MissingWords::populateSceneComboBox (this=0xbfb556bc, subjectItem=0x0) at missingwords.cpp:112
#4 0x0804f0fc in MissingWords::on_subject_comboBox_currentIndexChan ged ( this=0xbfb556bc, index=-1) at missingwords.cpp:152
Take a look at #3 - "subjectItem=0x0" - a null pointer. This propagates to #2 - "this" is a null pointer as well, therefore you're trying to dereference a null pointer which causes the segmentation fault (or memory access violation in your case).
Bookmarks