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
SQLite error - Please Help
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="Hesse" data-source="post: 74522" data-attributes="member: 23814"><p>Ok, I'd like to return to this because I'd like to be able to use the built-in SQLite stuff to match the syntax of other developers.</p><p></p><p>Please, if you have any information out there, please respond.</p><p></p><p>It appears that the exception is only related to debugging. On one of the WindowsForms in my plugin I made a button with the following code:</p><p></p><p>[CODE] private void button_debug_Click(object sender, EventArgs e)</p><p> {</p><p> string strDatabaseFile = textBox_MPDatabaseFile.Text;</p><p></p><p> try</p><p> {</p><p> SQLiteClient m_db = new SQLiteClient(strDatabaseFile);</p><p> MessageBox.Show("Successfully opened database.");</p><p> }</p><p> catch</p><p> {</p><p> MessageBox.Show("ERROR. Something happened.");</p><p> }</p><p></p><p> }</p><p>[/CODE]</p><p></p><p>When I try to run the code in debug mode, it drops to the catch statement because of the errors that I've listed previously.</p><p></p><p><strong>BUT</strong>, when I compile the code and run as a MP plugin, it successfully opens the database. How do you other developers debug your code?? Is there something I'm missing. I copied the SQLite.dll from the MediaPortal directory into the debug folder of my project so that it can find it.</p><p></p><p>I really want to figure this out because it is really annoying <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite4" alt=":mad:" title="Mad :mad:" loading="lazy" data-shortname=":mad:" /></p></blockquote><p></p>
[QUOTE="Hesse, post: 74522, member: 23814"] Ok, I'd like to return to this because I'd like to be able to use the built-in SQLite stuff to match the syntax of other developers. Please, if you have any information out there, please respond. It appears that the exception is only related to debugging. On one of the WindowsForms in my plugin I made a button with the following code: [CODE] private void button_debug_Click(object sender, EventArgs e) { string strDatabaseFile = textBox_MPDatabaseFile.Text; try { SQLiteClient m_db = new SQLiteClient(strDatabaseFile); MessageBox.Show("Successfully opened database."); } catch { MessageBox.Show("ERROR. Something happened."); } } [/CODE] When I try to run the code in debug mode, it drops to the catch statement because of the errors that I've listed previously. [B]BUT[/B], when I compile the code and run as a MP plugin, it successfully opens the database. How do you other developers debug your code?? Is there something I'm missing. I copied the SQLite.dll from the MediaPortal directory into the debug folder of my project so that it can find it. I really want to figure this out because it is really annoying :growl: [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
SQLite error - Please Help
Contact us
RSS
Top
Bottom