C# Related
Well... for the C# thing...
Quote: "Error 1 The type or namespace name 'delete' could not be found (are you missing a using directive or an assembly reference?)"
delete isn't an option. SOME Objects have a method IDestroy or some such nonsense -its not seen enough to where I care about it. Like you said, they are supposed to go out of scope and get cleaned later. Also you CAN invoke the garbage collector yourself... no I don't know how.. but I read about it enough to know it could be done if I ever needed it.
The objects I would make in this context would all be C# stuff... but the Microsoft docs mentioned what I said before. and we did notice over time the server would slow, and reboot would fix. Just curious.
Generally Speaking
I don't mean to hijack the thread.
C++ Exiting C++ when you want it to can be a pain. for sure.. but when you write your class correctly, they should shutdown ok.. but even that gets complicated when this class uses that class, but that class references this one. Depending on complexity, measures need to be taken to assure clean Instantiation and Destruction!
(Sounds so Genesis & Revelations doesn't it?)