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 2
Plugin Development
SQLiteDatabase Plugin for MP2
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="MJGraf" data-source="post: 1037961" data-attributes="member: 17886"><p>Thanks, Morph!</p><p></p><p><u>IRC-Bot failing to build:</u></p><p>I have to admit that I have no idea why this happens. Sorry, I'm not familiar enough with our build process. What I see from your BuildLog, however, is this:</p><p>[CODE] "d:\github\MediaPortal-2\MediaPortal\Build\\NuGet.exe" install "d:\github\MediaPortal-2\MediaPortal\Incubator\SQLiteDatabase\packages.config"</p><p> Restoring NuGet packages...</p><p> To prevent NuGet from downloading packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages'.</p><p> All packages listed in packages.config are already installed.</p><p>[/CODE]</p><p>The packages.config that is mentioned here looks like this:</p><p>[CODE]<?xml version="1.0" encoding="utf-8"?></p><p><packages></p><p> <package id="System.Data.SQLite.x86" version="1.0.89.0" targetFramework="net40" /></p><p></packages></p><p>[/CODE]</p><p>So my understanding is that it looked up System.Data.SQLite.x86 version 1.0.89.0 and realized that it is already there and doesn't have to be downloaded.</p><p></p><p>Later it says in the log:</p><p>[CODE]Project "d:\github\MediaPortal-2\MediaPortal\Source\MP2-Server.sln" (59) is building "d:\github\MediaPortal-2\MediaPortal\Incubator\SQLiteDatabase\SQLiteDatabase.csproj" (65) on node 1 (Rebuild target(s)).</p><p>ResolveAssemblyReferences:</p><p> Primary reference "System.Data.SQLite".</p><p>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Data.SQLite". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [d:\github\MediaPortal-2\MediaPortal\Incubator\SQLiteDatabase\SQLiteDatabase.csproj]</p><p> For SearchPath "{HintPathFromItem}".</p><p> Considered "..\..\Source\packages\System.Data.SQLite.x86.1.0.89.0\lib\net40\System.Data.SQLite.dll", but it didn't exist.</p><p>[/CODE]</p><p>So here it complains that system.data.sqlite.dll is not there. But why the heck did it say above that it was there and didn't have to be downloaded?!?</p><p>Think I need help with this one..</p><p></p><p><u>Exception on boot:</u></p><p>This is a nasty one <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p><p>I use ManagementObjectSearcher to find out the overall RAM of the system. But as I learned now, ManagementObjectSearcher needs the Windows WMI service to be started. So when MP2 Server Service - on startup - starts before the WMI service, we get this exception. When MP2 Server Service is started manually later on, WMI service is already started and it works...</p><p>I think the cleanest solution for this is to make a direct PInvoke to GlobalMemoryStatusEx (see here: <a href="http://www.emoticode.net/c-sharp/get-total-and-free-ram-on-a-computer.html" target="_blank">http://www.emoticode.net/c-sharp/get-total-and-free-ram-on-a-computer.html</a>). Additionally I would wrap it into a try-catch-block and if we get an exception at this point, we just use the lowest value (32MB) for the cache size of SQlite. In any case, a problem in determining the total available RAM shouldn't prevent SQLiteDatabase from starting...</p><p>Will try the PInvoke solution and report back...</p></blockquote><p></p>
[QUOTE="MJGraf, post: 1037961, member: 17886"] Thanks, Morph! [U]IRC-Bot failing to build:[/U] I have to admit that I have no idea why this happens. Sorry, I'm not familiar enough with our build process. What I see from your BuildLog, however, is this: [CODE] "d:\github\MediaPortal-2\MediaPortal\Build\\NuGet.exe" install "d:\github\MediaPortal-2\MediaPortal\Incubator\SQLiteDatabase\packages.config" Restoring NuGet packages... To prevent NuGet from downloading packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages'. All packages listed in packages.config are already installed. [/CODE] The packages.config that is mentioned here looks like this: [CODE]<?xml version="1.0" encoding="utf-8"?> <packages> <package id="System.Data.SQLite.x86" version="1.0.89.0" targetFramework="net40" /> </packages> [/CODE] So my understanding is that it looked up System.Data.SQLite.x86 version 1.0.89.0 and realized that it is already there and doesn't have to be downloaded. Later it says in the log: [CODE]Project "d:\github\MediaPortal-2\MediaPortal\Source\MP2-Server.sln" (59) is building "d:\github\MediaPortal-2\MediaPortal\Incubator\SQLiteDatabase\SQLiteDatabase.csproj" (65) on node 1 (Rebuild target(s)). ResolveAssemblyReferences: Primary reference "System.Data.SQLite". C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Data.SQLite". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [d:\github\MediaPortal-2\MediaPortal\Incubator\SQLiteDatabase\SQLiteDatabase.csproj] For SearchPath "{HintPathFromItem}". Considered "..\..\Source\packages\System.Data.SQLite.x86.1.0.89.0\lib\net40\System.Data.SQLite.dll", but it didn't exist. [/CODE] So here it complains that system.data.sqlite.dll is not there. But why the heck did it say above that it was there and didn't have to be downloaded?!? Think I need help with this one.. [U]Exception on boot:[/U] This is a nasty one :D I use ManagementObjectSearcher to find out the overall RAM of the system. But as I learned now, ManagementObjectSearcher needs the Windows WMI service to be started. So when MP2 Server Service - on startup - starts before the WMI service, we get this exception. When MP2 Server Service is started manually later on, WMI service is already started and it works... I think the cleanest solution for this is to make a direct PInvoke to GlobalMemoryStatusEx (see here: [url]http://www.emoticode.net/c-sharp/get-total-and-free-ram-on-a-computer.html[/url]). Additionally I would wrap it into a try-catch-block and if we get an exception at this point, we just use the lowest value (32MB) for the cache size of SQlite. In any case, a problem in determining the total available RAM shouldn't prevent SQLiteDatabase from starting... Will try the PInvoke solution and report back... [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
SQLiteDatabase Plugin for MP2
Contact us
RSS
Top
Bottom