<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Actually... My code changes were rather simple so I was able to commit
them after all.<br>
Test this for me Barry, I think I have it fixed, but there is a
possibility I introduced a new bug, or perhaps a bug nest. ;-)<br>
--<br>
In Christ,<br>
David Trotz<br>
<br>
David Trotz wrote:
<blockquote cite="mid:4774A1C8.6090400@crosswire.org" type="cite">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
Barry,<br>
I found the error. The problem is with the way the state information
for the current book is being stored. There is a variable in SwordIndex
called bible, (I assume this was created for convenience.)&nbsp; but this
same information exists in the VerseKey variable named 'position'. I
need to go through the code and remove the dependency on this lone
'book' variable because it is not always changed (thus not up to date)
when the verse is set, such as when I read in the last position from
options.conf and set the position in the SimpleNavigator constructor. <br>
  <br>
What was happening was the book was erroneously set to book 1
(SwordIndex constructor default value) but the VerseKey was set
correctly to "Rev" and when it was asked how many verses are in chapter
22 of Revelation, the question really being asked was how many verses
in chapter 22 of Genesis, and that value was 30 something, and there
are only 20 something verses in chapter 22 so it would increment to the
next verse, setting up the perfect storm for an infinite loop. ;-)<br>
  <br>
Its going to take me a couple of days to get this fixed correctly. I
have an initial fix on my machine now but it was more a hack to be sure
this was the case. <br>
  <br>
Thanks again for pointing that out.<br>
  <br>
-- <br>
In Christ,<br>
David Trotz<br>
  <br>
  <br>
Barry Drake wrote:
  <blockquote cite="mid:4773C356.9060203@crosswire.org" type="cite">Hi
David .......... <br>
    <br>
David Trotz wrote: <br>
    <blockquote type="cite">Did it happen during the startup of the
program? If so do you have the options.conf? <br>
    </blockquote>
    <br>
Oh yes ....&nbsp; I won't make that mistake again!!!&nbsp; I've attached it and
it's what you'd expect it to be. <br>
    <br>
God bless, <br>
Barry <br>
    <br>
-- From Barry Drake (The Revd) minister of the Netherfield United
Reformed church, Nottingham see <a moz-do-not-send="true"
 class="moz-txt-link-freetext"
 href="http://www.jesusinnetherfield.org.uk">http://www.jesusinnetherfield.org.uk</a>
for our church homepages). <br>
    <br>
Replies - <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:b.drake@ntlworld.com">b.drake@ntlworld.com</a> <br>
    <pre wrap=""><pre wrap=""><hr size="4" width="90%">
_______________________________________________
sword-devel mailing list: <a moz-do-not-send="true"
 class="moz-txt-link-abbreviated"
 href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a>
Instructions to unsubscribe/change your settings at above page</pre></pre>
  </blockquote>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
sword-devel mailing list: <a class="moz-txt-link-abbreviated" href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a>
<a class="moz-txt-link-freetext" href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a>
Instructions to unsubscribe/change your settings at above page</pre>
</blockquote>
<br>
</body>
</html>