Hi All I have the code below on a windows c++ build. I'm using Xapian 1.0.6 built with the win32 build files. The program was built with Visual Studio 2008 Express It creates the folder "????research" (yes with odd characters) and then exits without any errors. string dbpath = "research"; try { // Open the database. Xapian::WritableDatabase database; database = Xapian::WritableDatabase(dbpath, DB_CREATE_OR_OPEN); } catch (const Error &error) { cout << error.get_msg() << "\n"; } return 0;
On Sat, Apr 12, 2008 at 09:12:22PM +0100, Colin Bell wrote:> I have the code below on a windows c++ build. I'm using Xapian 1.0.6 > built with the win32 build files. The program was built with Visual > Studio 2008 Express > > It creates the folder "????research" (yes with odd characters) > and then exits without any errors. > > string dbpath = "research"; > try { > // Open the database. > Xapian::WritableDatabase database; > database = Xapian::WritableDatabase(dbpath, DB_CREATE_OR_OPEN); > > } catch (const Error &error) { > cout << error.get_msg() << "\n"; > } > return 0;If you ignore the weird folder name, does the database work as expected? For instance, if you add a document with some document data, does the stored string also have unexpected top bit set bytes in it? J -- /--------------------------------------------------------------------------\ James Aylett xapian.org james at tartarus.org uncertaintydivision.org
[Re-posted to xapian-discuss, and un-top-posted for good measure.] On Sun, Apr 13, 2008 at 08:32:50AM +0100, Colin Bell wrote:> >>[db directory created] "????research" > >>and then exits without any errors. > > >If you ignore the weird folder name, does the database work as > >expected? For instance, if you add a document with some document data, > >does the stored string also have unexpected top bit set bytes in it? > > Unfortunately not, the folder is empty and I cannot use the database.Hmm. Unless anyone has any other suggestions, I think you're probably gonna have to attack the VC++ debugger to that and step through to find out where it fails, and possibly gain some insight as to where it gets the directory name wrong. I don't know if the library build you're using has debugging symbols, but if not you'll probably want to rebuild it. J -- /--------------------------------------------------------------------------\ James Aylett xapian.org james at tartarus.org uncertaintydivision.org