[sword-devel] Fwd: Locale and text retrieval code

Manfred Bergmann bergmannmd at web.de
Mon Feb 16 13:11:42 MST 2009

Anfang der weitergeleiteten E-Mail:

>> Does this crash?  It shouldn't.  Hope we can get things working  
>> well for you.  I need a new laptop and considering buying a Mac! :)
> No, this doesn't nor does it crash with any none existing key like  
> "par.1.1". It just returns the "rev.1.1" which is strange though. I  
> would expect it returns nothing.
> But using ListKey and looping over it crashes, at least for me.
> sword::VerseKey	vk;
> sword::ListKey listkey = vk.ParseVerseList("par.1.1", vk, true);
> listkey.Persist(true);
> swModule->setKey(listkey);
> for ((*swModule) = sword::TOP; !swModule->Error(); (*swModule)++) {
>    const char *keyCStr = swModule->getKeyText();
>    const char *txtCStr = swModule->RenderText();
> }
> swModule->setKey("gen.1.1");
> This crashes in the for loop at the first access to (*swModule) = sword::TOP 
> , internally in setPosition().
> How can I create a crash log?

Troy, do you see what the problem is here?
It still crashes also with the new svn HEAD.


More information about the sword-devel mailing list