C# memory issue? - [SOLVED]


06-03-2009 23:28:24

Not meaning to cross-post, but I think this issue might be specific to C#.

http://ogre3d.org/forums/viewtopic.php? ... 49&start=0

I'm wondering if judging from what's going on that I'm handling memory wrong with unsafe and fixed. So far as I can tell the code is correct, but it crashes randomly on BlitFromMemory(undoList[0]); undoList is a List<PixelBox>.

Sometimes it crashes the 3rd time, sometimes 5th, sometimes 4th, 2nd, 2nd, 5th, 5th, 1st, 5th, etc... Any insights would be appreciated.


12-03-2009 04:47:54

This has been fixed using Marshall.copy.