AnsweredAssumed Answered

Expectation when using new(heap_id) and heap_id not present in LDF

Question asked by MikeSmithCanada on Jul 5, 2014
Latest reply on Jul 14, 2014 by MurrayA

If I did    int *value = new(1) int and heap 1 did not exist in ldf


then I would expect the compiler to return a NULL pointer or else the system would throw an exception.  Neither happens in following example with heap_id 1 -- Program just ends normally


Code works if heap_id is 0