Garbage collection

  • Thread starter Thread starter Nanda
  • Start date Start date
N

Nanda

hi all,

In a .NET application, Garbage Collector is invoked, if
managed heap runs out of memory. What happens if heap
runs out of memory in an unmanaged application. (when new
returns null in vc++).
 
I don't think new in C++ ever returns a null pointer. It will raise an
exception if there's insufficient memory (out_of_memory or something like
that). And it wouldn't crash the machine, just terminate the application if
the exception wasn't handled.
 
Back
Top