Normal
I know now what the error causes.It's in the MP source code:m_db = new SQLiteClient(@"database\TVDatabaseV9.db");of method "static TVDatabase()"[code] private TVDatabase() { } /// <summary> /// static constructor. Opens or creates the tv database from database\TVDatabaseV6.db /// </summary> static TVDatabase() { lock (typeof(TVDatabase)) { try { // Open database Log.Write("opening tvdatabase"); System.IO.Directory.CreateDirectory("database"); //Upgrade(); m_db = new SQLiteClient(@"database\TVDatabaseV9.db"); CreateTables(); if (m_db!=null) { m_db.Execute("PRAGMA cache_size=8192\n"); m_db.Execute("PRAGMA synchronous='OFF'\n"); m_db.Execute("PRAGMA count_changes='OFF'\n"); } } catch (Exception ex) { Log.Write("TVDatabase exception err:{0} stack:{1}", ex.Message,ex.StackTrace); } Log.Write("tvdatabase opened"); } }[/code]But I have no idea why?
I know now what the error causes.
It's in the MP source code:
m_db = new SQLiteClient(@"database\TVDatabaseV9.db");
of method "static TVDatabase()"
[code] private TVDatabase()
{
}
/// <summary>
/// static constructor. Opens or creates the tv database from database\TVDatabaseV6.db
/// </summary>
static TVDatabase()
lock (typeof(TVDatabase))
try
// Open database
Log.Write("opening tvdatabase");
System.IO.Directory.CreateDirectory("database");
//Upgrade();
CreateTables();
if (m_db!=null)
m_db.Execute("PRAGMA cache_size=8192\n");
m_db.Execute("PRAGMA synchronous='OFF'\n");
m_db.Execute("PRAGMA count_changes='OFF'\n");
catch (Exception ex)
Log.Write("TVDatabase exception err:{0} stack:{1}", ex.Message,ex.StackTrace);
Log.Write("tvdatabase opened");
}[/code]
But I have no idea why?