Out of memory exception

  •  05-21-2009, 8:55 AM

    Out of memory exception

    Hi,
     
      Just bought the version 6.3 couples of weeks ago, when my users browse throw the image gallery they raise an Out of memory exception :
     
    Type: System.OutOfMemoryException
    Message: Out of memory.
    Stack

    at System.Drawing.Image.
    GetThumbnailImage(Int32 thumbWidth, Int32 thumbHeight, GetThumbnailImageAbort callback, IntPtr callbackData) at CuteEditor.Impl.ThumbGenerator.ExtractThumbnail() at CuteEditor.Dialogs.ThumbnailHandler.ProcessRequest(HttpContext context) at CuteEditor.LoadHandler.ProcessRequest(HttpContext aspnetcontext) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
     
    I looked around on your forum, I actually doubt that my server is loaded, I have a 4 gig of RAM dedicated server that is actually using less than 2 gig?  Any idea what can I do?
     
    Secondly, I seems to have access to configure any path except that ~/uploads path that your Insert Image required. My application is multi-sites so every users has theire own path. Is there any way to configure programmatically that path, like those ?
     
     htmlEditor.Setting["ImageBrowserPath"] = string.Format("/websites/{0}/Upload/Images/", WebSiteId);
                htmlEditor.Setting["security:ImageGalleryPath"] = string.Format("/websites/{0}/Upload/Images/", WebSiteId);
                htmlEditor.Setting["security:AutoResizeUploadedImages"] = "true";
                htmlEditor.Setting["security:FlashGalleryPath"] = string.Format("/websites/{0}/Upload/Flash/", WebSiteId);
     
    I looked on your documentation and I was not able to find how to configure that path, because now it's throw an exeption because that ~/uploads path does not exist, I hope it's not hard-coded into your code base?
     
    I would appreciate help as quickly as possible since that editor is live and generate exception everytime a user want to browse the image gallery.
     
    Thanks, Dominic
     
View Complete Thread