Free Support Forum - aspose.cloud

Out of Memory Error when using Microsoft Azure (SlideEx.GetThumbnail)

When executing the code below in Microsoft Azure’s development fabric (the cloud simulator that you run on your desk top) or in Azure hosted by Microsoft, I get the following error:

{System.Collections.ListDictionaryInternal}
“Out of memory.”
“System.Drawing”
at System.Drawing.Graphics.FromHdcInternal(IntPtr hdc)
at System.Drawing.Font.GetHeight()
at iu.a(String A_0, RectangleF A_1, rd A_2)
at Aspose.Slides.Pptx.SlideEx.a(e2 A_0, RenderContext A_1)
at Aspose.Slides.Pptx.SlideEx.b(e2 A_0, RenderContext A_1)
at Aspose.Slides.Pptx.SlideEx.GetThumbnail(Single scaleX, Single scaleY)
at WebRole1._Default.Page_Load(Object sender, EventArgs e) in D:\My Dropbox\CloudTest2\BlobTest\WebRole1\Default.aspx.cs:line 41
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

If I run the same code in a IIS 7.0 based ASP .Net 3.5 application, I do not get an error.

What is the solution for using Aspose.Slides with Microsoft Azure?

//Code snippet
PresentationEx pres = new PresentationEx(“D:\sample.pptx”);
foreach (SlideEx slideEx in pres.Slides)
{
Bitmap img = slideEx.GetThumbnail(1f, 1f);
}

Thank you

<!–[if gte mso 10]> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

<![endif]–>

Hi,


Thanks for your interest in Aspose.Slides.


The problem that you have referred to has already been pointed out on this link. An issue with issue id 13537 has already been created on our Issue Tracking System to fix the problem. This thread has also been associated with this issue, so that you can be automatically notified as soon as this issue is resolved.

<span style=“font-size:12.0pt;line-height:115%;font-family:“Arial”,“sans-serif”;
mso-ascii-theme-font:minor-bidi;mso-fareast-font-family:“Times New Roman”;
mso-hansi-theme-font:minor-bidi;mso-bidi-theme-font:minor-bidi;color:black;
mso-ansi-language:EN-GB;mso-fareast-language:EN-GB;mso-bidi-language:AR-SA”>


Sorry
for the inconvenience.


The issues you have found earlier (filed as 13537) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(5)