0

Now that the C++/CLI is running above .Net runtime environment, which has its own memory management and garbage collection rules, what now exactly would happen, when you try to manage your memory structure on your own.

Deduplicator
  • 44,692
  • 7
  • 66
  • 118
Griffan
  • 162
  • 1
  • 8
  • [Maybe of interest](http://stackoverflow.com/questions/12240297/repeated-destructor-calls-and-tracking-handles-in-c-cli). – Kerrek SB Nov 13 '14 at 16:09
  • 2
    The new and delete operators still do what they always did. You are probably talking about the gcnew operator. No, you cannot explicitly manage garbage collected memory. Do use a decent tutorial or book to learn about the intricacies of the destructor and finalizer of a managed class, you can't write good C++/CLI code without it. – Hans Passant Nov 13 '14 at 17:38
  • Note: .NET doesn't actually have destructors, managed types have disposers and finalizers.... and different language bindings map these onto the language's own "destructor" concept in very different ways. – Ben Voigt Jul 26 '15 at 18:25

0 Answers0