1
Vote

Out of Memory Exeption

description

I am running at my school computer, it is running a integrated graphics card and 4 i3 (+ 4gb RAM). It have a high chance of getting out of Memory so I just made some modification to make it able to just run. Maybe not the best thing, but it sends a warning when it happens instead of just crashing.
 
 
File: SceneEditor.EditorGlobals.cs : Ln 172

Start

try
        {
            texture.SaveAsPng(memoryStream, size, size);
        }
        catch (Exception e)
        {
            System.Windows.Forms.MessageBox.Show(e.Message,"Error:", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
            return null;
        }

END

 
I got the same error at
File: SceneEditor.Editor.cs : Ln 1659

comments

Firefly09 wrote May 14, 2012 at 12:44 PM

Thanks for letting me know, at the moment I can't think of a way to permanently fix this; this is the only way I know to convert from Texture2D to Image.

Firefly09 wrote May 14, 2012 at 12:45 PM

Out of curiosity does the latest build fix this? In one of the last commits I introduced a bug where that function got called way to much!

ChFlashER wrote May 14, 2012 at 12:49 PM

Yeah, I just created this for the cause of you have the chance to save the map before it just crash.

wrote Feb 14, 2013 at 2:26 AM