Menu

DbType.Hash

Help
fpdeguzman
2007-09-12
2013-04-09
  • fpdeguzman

    fpdeguzman - 2007-09-12

    hi, i'm using the berkeley db for .net 2.0. everything is working fine for DbType.BTree but when i used the Hash type, an invalid argument exception occurs in the "Open" method. the code goes like this
            DbHash dbHash = (DbHash)db.Open(txn, myDb, null, DbType.Hash, Db.OpenFlags.Create, 0);
    am i missing somehing? thank you very much!

     
    • Karl Waclawek

      Karl Waclawek - 2007-09-12

      I had no problem with your line of code, whether I used a transaction, or whether txn was null.
      Could you post the smallest possible self-contained program that reproduces your problem?

       
    • fpdeguzman

      fpdeguzman - 2007-09-13

      hi, its now working fine. i made a mistake, i open a BTree database but with a Hash type. i just deleted the file and created the correct one and all works fine. sorry for the inconvenience.
      thank you very much for the reply!
      have a nice day! =)

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.