I am having a problem with my iObjectRegistry not getting destroyed when my application closes. I have tried multiple ways to get the thing deleted, but it is always non-null at the end of the main application constructor, even after calls to csInitializer::DestroyApplication(objectRegistry); or the plain delete operator.
My main application class extends from csApplicationFramework and this is how I start it:
return cc.Main(argc, argv);
I fear memory leaks here...Any ideas?