Re: Crash when getting module type
"David \"Judah's Shadow\" Blue" <[email protected]>
| Newsgroups | gmane.comp.literature.sword.devel |
|---|---|
| Message-ID | <2303343.ElGaqSPkdT@brooks> |
On Friday, October 27, 2023 8:46:19 AM EDT Troy A. Griffitts wrote: > Hi David. There shouldn't be any nulls in the SWMgr::Modules map. Have you > done anything with the map which might have created an entry? For example, > have you attempted to obtain a module by name which wasn't there? In C++ > this would create an empty entry with a null pointer if the KJV wasn't > installed. > > SWModule *kjv = swordLibrary->Modules["KJV"]; > > Just trying to guess what might have happened. No, I'm declaring the SWModule *tempMod and then the very next thing is assigning it to libraryIterator->second. libraryIterator is a sword::ModMap::iterator if that makes a difference. While stepping through in my debugger, after I assign tempMod to libraryIterator->second looking at the variables, I am getting values in tempMod that indicate something is wrong (I can provide those if that would help) Ultimately, I want to build a list of strings of the form "For [module description/long name select [module shortname] for all installed modules of a given type. Perhaps there is a better way to do that? _______________________________________________ sword-devel mailing list: [email protected] http://crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE2HjGsPT4oPc9mpWEx/nqiX8H6VAFAmU75lQACgkQx/nqiX8H 6VCpTBAAhiOQT342ZWia1B0K0QQs0Yz1OAnv/dRSrQrqohy9kro7omfxO6m7pKrm ImgMIgBYI2g4vuTAiHoK4ycboXsVOs0yG9lj/45PjOTF9+zJIpR847FU+Googaqa H2bQLuJIw2t1cz546jt7P5de/cz82VuzXhVWOC0/t0twGDP9QCfkWU1SOsCwafzj ZjfcDDDLrI+HhvMYdytAivOuSX8Lm7W2fCDF86s9p500ILj7TDH7dqa095yD0MPG boUe9xPYqyPbk/xa1d/OxjZeTgNdkz1fCAIF8nUQKn/wac2jggxeeRtD2JRBwSiT 4vDBvr+s8iwFRMCJr2mxFUN011DUfW6JfkwDXXH/LSSerH+eBB/SVTlfKKSM2e6p b6yTRcuYHUTqc9lAoN7AYzG7cqXY9qXTTO43cqrcVZY+JOQU5WtxPiTOxu3+OqwH h9Up8ih9YQK8LI5chEAscpfwVnwVJkqmJI5sTFxNH1dHMnHGRGd81krUSdSfzAQs jXBfBTu9gGJ6pbNHbrfTDxNwZJosSD5R8J7O7xTRa75db6SNYb4LoMQngaOMR9go XIyEqypTbvRJfDMOH2fHMnVJ9OUjPlzm1SdJEWkAdHXeBl2nFQCr9/BtcdwckD1k /Kfanl9zVWeyOSYu3MB9k2eRWoXoo53EH/R6h/hg9ScB4Fe1FhU= =91c4 -----END PGP SIGNATURE-----