<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="FreeSerif">I asked Troy about this in IRC a bit yesterday,
but I ran into problems today and I'm in need of clues.<br>
<br>
In the av11n world, I've had to convert all VerseKey
initialization to be v11n-sensitive. Mostly, I'd prefer just to
use a module's own key directly:<br>
<br>
VerseKey *k = (VerseKey *)(SWKey *)(*mod);<br>
<br>
The problem I've got is that there are a number of instances where
subsequent operations on k cause crashes or give exciting
results. For one, when trying to fill a navbar book selector, the
2nd call to k->setTestament(1) (populating OT books)
segfaults. Note, not the 1st call, rather it's the 2nd, every
time. It's become necessary to create the key the other way:<br>
<br>
</font><font face="FreeSerif">VerseKey *k = (VerseKey
*)mod->createKey();<br>
<br>
and then calls to k->setTestament(1) work just fine. Of course
I have to remember to<br>
delete k;<br>
which is mildly annoying to have to do, and wasn't necessary when
using the module's own key.<br>
<br>
Can anyone offer reasoning why the VerseKey from the module would
have trouble with this sort of use, and why an
independently-created key from the same module works fine?<br>
</font>
</body>
</html>