[sword-devel] BUG: libSword hangs

sword-devel@crosswire.org sword-devel@crosswire.org
Mon, 29 Jul 2002 22:25:55 +0600


The following program hangs (bug in libSword, I now start a debugger):

#include <iostream>
#include <rawld.h>

void main(int argc, char **argv)
{
	RawLD::createModule("tmp/lextest");
	RawLD lex("tmp/lextest");

	lex.SetKey("a");
	lex << "aaa";

	lex.SetKey("a");
	lex.deleteEntry();
	
	lex.SetKey("a");
	lex << "aaa";

	lex.SetKey("a");
	lex--;
}

-- 
Victor Porton (porton@ex-code.com)