home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
VB .NET Plugin: sqlite.dll Error
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="STSC" data-source="post: 7112" data-attributes="member: 10535"><p>I know now what the error causes.</p><p>It's in the MP source code:</p><p></p><p>m_db = new SQLiteClient(@"database\TVDatabaseV9.db");</p><p></p><p>of method "static TVDatabase()"</p><p></p><p>[code] private TVDatabase()</p><p> {</p><p> }</p><p></p><p> /// <summary></p><p> /// static constructor. Opens or creates the tv database from database\TVDatabaseV6.db</p><p> /// </summary></p><p> static TVDatabase()</p><p> {</p><p> lock (typeof(TVDatabase))</p><p> {</p><p> try</p><p> {</p><p> // Open database</p><p> Log.Write("opening tvdatabase");</p><p> System.IO.Directory.CreateDirectory("database");</p><p> //Upgrade();</p><p> m_db = new SQLiteClient(@"database\TVDatabaseV9.db");</p><p> CreateTables();</p><p></p><p> if (m_db!=null)</p><p> {</p><p> m_db.Execute("PRAGMA cache_size=8192\n");</p><p> m_db.Execute("PRAGMA synchronous='OFF'\n");</p><p> m_db.Execute("PRAGMA count_changes='OFF'\n");</p><p> }</p><p></p><p> }</p><p> catch (Exception ex)</p><p> {</p><p> Log.Write("TVDatabase exception err:{0} stack:{1}", ex.Message,ex.StackTrace);</p><p> }</p><p> Log.Write("tvdatabase opened");</p><p> }</p><p> }[/code]</p><p></p><p>But I have no idea why?</p></blockquote><p></p>
[QUOTE="STSC, post: 7112, member: 10535"] 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? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
VB .NET Plugin: sqlite.dll Error
Contact us
RSS
Top
Bottom