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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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! =)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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!
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?
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! =)