Allocation of managed objects in Managed C++
-
22-08-2019 - |
Question
Is it necessary to check for nullptr after allocating an object using gcnew?
Solution
No, you'll get a OutOfMemoryException in the object can't be allocated by the GC.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow