Using env = New LightningDB.LightningEnvironment(Application.StartupPath + "\Settings\ThumbDB", New LightningDB.EnvironmentConfiguration With {.MapSize = Convert.ToInt64(4294967296), .MaxDatabases = 1})
env.Open()
Using tx = env.BeginTransaction()
Using db = tx.OpenDatabase("Thumbs", New LightningDB.DatabaseConfiguration With {.Flags = LightningDB.DatabaseOpenFlags.Create})
tx.Put(db, System.Text.Encoding.UTF8.GetBytes(ImgName), ImgByteArray)
tx.Commit()
End Using
End Using
End Using
im using the 32x native lmdb lib
it throw
System.OverflowException: Arithmetic operation resulted in an overflow.
at LightningDB.Native.Lmdb.mdb_env_set_mapsize(IntPtr env, Int64 size)
at LightningDB.LightningEnvironment.set_MapSize(Int64 value)
at LightningDB.EnvironmentConfiguration.Configure(LightningEnvironment env)
at LightningDB.LightningEnvironment..ctor(String path, EnvironmentConfiguration configuration)
im using the 32x native lmdb lib
it throw