Martin Margo
2009-Jul-01 00:08 UTC
[Xapian-devel] Sample quickstartindex unable to create database on Windows 2008
Hello 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. 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). Has anyone encountered this error before? How can I fix it? Thanks in advance
Olly Betts
2009-Jul-01 02:30 UTC
[Xapian-devel] Sample quickstartindex unable to create database on Windows 2008
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