Added temporary fix for the sqlite datastore exception in windows .Net, Added a Try catch block around "shapeDa.Fill(ds.Tables["primshapes"]);" line. Seems if the database file is empty (ie opensim has just created it or nothing has been stored in it yet.) then the exception will be fired and catch, then opensim can continue and have no problems (it will still save prims fine), then on next restart if the database file has entries in it, the exception will no longer be thrown.
parent
39a8cc43c7
commit
bbc7b5b847
|
@ -64,7 +64,16 @@ namespace OpenSim.DataStore.MonoSqliteStorage
|
|||
MainLog.Instance.Verbose("DATASTORE", "Populated Prim Definitions");
|
||||
|
||||
ds.Tables.Add(createShapeTable());
|
||||
shapeDa.Fill(ds.Tables["primshapes"]);
|
||||
|
||||
try
|
||||
{
|
||||
shapeDa.Fill(ds.Tables["primshapes"]);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
MainLog.Instance.Verbose("DATASTORE", "Caught fill error on primshapes table");
|
||||
}
|
||||
|
||||
setupShapeCommands(shapeDa, conn);
|
||||
MainLog.Instance.Verbose("DATASTORE", "Populated Prim Shapes");
|
||||
|
||||
|
|
Loading…
Reference in New Issue