[Xapian-devel] Sample quickstartindex unable to create database on Windows 2008

Olly Betts olly at survex.com
Wed Jul 1 03:30:09 BST 2009


On Tue, Jun 30, 2009 at 05:08:33PM -0700, Martin Margo wrote:
> My desktop is running Windows 2008 and I used Microsoft Visual Studio
> 2008 to compile 1.0.13 Xapian and Ruby bindings.  I then copy and
> paste this code from xapian website to my new project and link it with
> Xapian lib. Everything builds and links nicely
> 
> http://xapian.org/docs/quickstartindex.cc.html
> 
> I ran it with the following args
> XapianIndex.exe C:\tmp\junk14 "hello hello" hello 
> 
> C:\tmp\junk14 exists and empty.

And is a directory?  You don't need it to exist, but if it exists and is
a file that won't work.

> The app crashed. 
> 
> First-chance exception at 0x7771f328 in XapianIndex.exe: Microsoft C++
> exception: Xapian::DatabaseCreateError at memory location 0x006bf9d8..
> Unhandled exception at 0x7771f328 in XapianIndex.exe: Microsoft C++
> exception: Xapian::DatabaseCreateError at memory location 0x006bf9d8..
> The program '[4800] XapianIndex.exe: Native' has exited with code 0 (0x0).

It seems to have failed to catch the exception, which is pretty broken.
Are you using any unusual compiler options?

And does "simpleindex" in the example work?

> Has anyone encountered this error before? How can I fix it?

Not that I've heard of.

Cheers,
    Olly



More information about the Xapian-devel mailing list