Klaim
13-09-2013 22:23:37
I got a minor problem when closing the window of my application through the close button (never any other way, like triggering the end of the app using keyboard keys).
After some time hunting it, I found that a snippet of code using OgreProcedural was part of the source of the problem. That code was creating a temporary mesh. However, it was called once for each instance, and there is thousands of instances.
Anyway, refactoring this code fixed the issue, but I'm not sure of the exact source, is it something OgreProcedural does (a memory leak? a pointer that is used when it shouldn't? heap corruption is rather strange!) and I posted all the details I've got so far there: http://www.ogre3d.org/forums/viewtopic.php?f=2&t=78894
I don't have time to hunt it more so I'll let you see if it's worth pursuing.
After some time hunting it, I found that a snippet of code using OgreProcedural was part of the source of the problem. That code was creating a temporary mesh. However, it was called once for each instance, and there is thousands of instances.
Anyway, refactoring this code fixed the issue, but I'm not sure of the exact source, is it something OgreProcedural does (a memory leak? a pointer that is used when it shouldn't? heap corruption is rather strange!) and I posted all the details I've got so far there: http://www.ogre3d.org/forums/viewtopic.php?f=2&t=78894
I don't have time to hunt it more so I'll let you see if it's worth pursuing.