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
Popular Plugins
My TVSeries
MP-TVSeries v4.3.6 Release [2020-01-24]
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="ltfearme" data-source="post: 1266022" data-attributes="member: 52219"><p>[USER=68833]@ajs[/USER], [USER=60104]@Sebastiii[/USER] do you know why this is failing to image:</p><p>[code]</p><p>[2020-01-13 02:01:13,436] [Log ] [6 ] [ERROR] - Exception: System.OutOfMemoryException: Gdiplus Out Of Memory</p><p> bei MediaPortal.Util.ImageFast.FromFile(String filename)</p><p>[/code]</p><p></p><p>The MediaPortal code in question calls an external function:</p><p>[code]</p><p> public static Image FromFile(string filename)</p><p> {</p><p> filename = Path.GetFullPath(filename);</p><p> IntPtr loadingImage = IntPtr.Zero;</p><p> // We are not using ICM at all, fudge that, this should be FAAAAAST!</p><p> int ret = GdipLoadImageFromFile(filename, out loadingImage);</p><p> if (ret != 0)</p><p> {</p><p> throw CreateException(ret);</p><p> }</p><p> ....</p><p>[/code]</p><p></p><p>I presume <strong>GdipLoadImageFromFile </strong>is returning the value of <strong>3 </strong>which throws the exception <strong>new OutOfMemoryException("Gdiplus Out Of Memory");</strong></p><p>[code]</p><p> private static Exception CreateException(int gdipErrorCode)</p><p> {</p><p> switch (gdipErrorCode)</p><p> {</p><p> case 1:</p><p> return new ExternalException("Gdiplus Generic Error", -2147467259);</p><p> case 2:</p><p> return new ArgumentException("Gdiplus Invalid Parameter");</p><p> case 3:</p><p> return new OutOfMemoryException("Gdiplus Out Of Memory");</p><p> case 4:</p><p> return new InvalidOperationException("Gdiplus Object Busy");</p><p> case 5:</p><p> return new OutOfMemoryException("Gdiplus Insufficient Buffer");</p><p> ...</p><p>[/code]</p></blockquote><p></p>
[QUOTE="ltfearme, post: 1266022, member: 52219"] [USER=68833]@ajs[/USER], [USER=60104]@Sebastiii[/USER] do you know why this is failing to image: [code] [2020-01-13 02:01:13,436] [Log ] [6 ] [ERROR] - Exception: System.OutOfMemoryException: Gdiplus Out Of Memory bei MediaPortal.Util.ImageFast.FromFile(String filename) [/code] The MediaPortal code in question calls an external function: [code] public static Image FromFile(string filename) { filename = Path.GetFullPath(filename); IntPtr loadingImage = IntPtr.Zero; // We are not using ICM at all, fudge that, this should be FAAAAAST! int ret = GdipLoadImageFromFile(filename, out loadingImage); if (ret != 0) { throw CreateException(ret); } .... [/code] I presume [B]GdipLoadImageFromFile [/B]is returning the value of [B]3 [/B]which throws the exception [B]new OutOfMemoryException("Gdiplus Out Of Memory");[/B] [code] private static Exception CreateException(int gdipErrorCode) { switch (gdipErrorCode) { case 1: return new ExternalException("Gdiplus Generic Error", -2147467259); case 2: return new ArgumentException("Gdiplus Invalid Parameter"); case 3: return new OutOfMemoryException("Gdiplus Out Of Memory"); case 4: return new InvalidOperationException("Gdiplus Object Busy"); case 5: return new OutOfMemoryException("Gdiplus Insufficient Buffer"); ... [/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My TVSeries
MP-TVSeries v4.3.6 Release [2020-01-24]
Contact us
RSS
Top
Bottom