OutOfMemoryException in NodePixelBuffer.cs

May 19, 2010 at 12:22 PM
Hello Einar I have written a test with an endless loop for determining the long time behaviour of my application. The test starts a game, loads a few thousend meshes and does some movements for five minutes. After that, I call Scene.Clear() and start all over again. After ~45 min I'm getting a "Out of Memory exception" in the class NodesPixelBuffer on Line 132 (_materialIdentifiersByIdentifier[identifier] = material). When I look at this array "_materialIdentifiersByIdentifier", it has 11998949 Elements. Is it possible, that Scene.Clear() does not a full cleanup? How would you do such a Reset of the Game? Thanks, Roland
May 19, 2010 at 2:19 PM


thanks for pointing these things out for me. This is definitively a memory leak I have overlooked. It should in fact be cleared every frame, so this is no good. 

I'll see if I can fix that alongside a couple of other bugs tonight. Thanks again.


May 27, 2010 at 6:58 AM

I've fixed this now.