Question

Is it necessary to check for nullptr after allocating an object using gcnew?

Was it helpful?

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
scroll top