I've resumed working on bibish some, and I'm getting a weird crash I never had
before. I'm trying to interate through the list of installed modules and
select those that match a given type. This is my code:


    for(libraryIterator = swordLibrary.Modules.begin();
        libraryIterator != swordLibrary.Modules.end();
        libraryIterator++) {


        sword::SWModule *tempMod = libraryIterator->second;
        modType = tempMod->getType();

        if(modType == selectedType) {
            module = "For ";
            module += tempMod->getDescription();
            module += " select ";
            module += tempMod->getName();
            moduleList.push_front(module);
            module = "";
        }
    }

I am getting a segfault on the modType = tempMod->getType(); line.  I'm using
1.9.0 built myself. I'm not sure what I'm doing wrong.

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
sword-devel mailing list: sword-devel@crosswire.org
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Reply via email to