**Now ,i import an three DLL, libdb_dotnet62.dll depend on libdb62d.dll and libdb_csharp62.dll, but this is a matter, it say not found ,please give me an help?
this my codes:
public void dbTest(){
btreeDBConfig = new BTreeDatabaseConfig ();
btreeDBConfig.Duplicates = DuplicatesPolicy.SORTED;
btreeDBConfig.Creation = CreatePolicy.IF_NEEDED;//不存在就创建数据库
btreeDBConfig.PageSize = 4 * 1024;
btreeDBConfig.CacheSize = new CacheInfo (0,1024 * 1024 * 80,0);//缓存大小
string btreeDBFileName = Application.persistentDataPath + "/" + "myTest.db";
btreeDB = BTreeDatabase.Open (btreeDBFileName,btreeDBConfig);
}
**
DllNotFoundException: libdb_csharp62d
BerkeleyDB.Internal.libdb_csharpPINVOKE+SWIGStringHelper..cctor ()
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for SWIGStringHelper
BerkeleyDB.Internal.libdb_csharpPINVOKE..cctor ()
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for BerkeleyDB.Internal.libdb_csharpPINVOKE
BerkeleyDB.Internal.DB..ctor (BerkeleyDB.Internal.DB_ENV env, UInt32 flags)
BerkeleyDB.BaseDatabase..ctor (BerkeleyDB.DatabaseEnvironment envp, UInt32 flags)
BerkeleyDB.Database..ctor (BerkeleyDB.DatabaseEnvironment env, UInt32 flags)
BerkeleyDB.BTreeDatabase..ctor (BerkeleyDB.DatabaseEnvironment env, UInt32 flags)
BerkeleyDB.BTreeDatabase.Open (System.String Filename, System.String DatabaseName, BerkeleyDB.BTreeDatabaseConfig cfg, BerkeleyDB.Transaction txn)
BerkeleyDB.BTreeDatabase.Open (System.String Filename, BerkeleyDB.BTreeDatabaseConfig cfg)
testWindow.dbTest () (at Assets/testWindow.cs:37)
testWindow.Start () (at Assets/testWindow.cs:26)
↧