Out of Memory Exeption


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


            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;


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


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