My question is: Is there a good reason why there does not exist an ArchiveManager::removeArchiveFactory call? It would behave in a similar way to the ArchiveManager destructor; finding relevant Archives and shutting them down first.
The reason I ask is that I'm having to implement my own ArchiveFactory. It makes sense from my point of view for the order of operations to be:
1) Initialise Ogre
2) Instantiate my ArchiveFactory
3) Register it with the ArchiveManager
(game plays for a bit)
4) Unregister my ArchiveFactory from the ArchiveManager
5) delete my ArchiveFactory
6) shut down Ogre
This way, steps 4,5&6 are the reverse of 1,2&3. Objects are deleted in the reverse order that they were instantiated.
As it is I never delete my ArchiveFactory, and my memory manager complains at me when I exit main
Thanks,
Peter Pimley
PS: Small bug report: The message in the exception thrown in ArchiveManager::unload claims to be from ArchiveManager::~ArchiveManager

