views:

122

answers:

1

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

+1  A: 

No, you'll get a OutOfMemoryException in the object can't be allocated by the GC.

Jb Evain