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.
"Scott M." <s-***@BADSPAMsnet.net> wrote in message
news:OU**************@TK2MSFTNGP12.phx.gbl...
Can't say about VC++, but I would think you'd crash the machine.
"Nanda" <cs******@hotmail.com> wrote in message
news:2f****************************@phx.gbl... 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++).