Quantcast
Channel: EngineerZone : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 51060

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

$
0
0

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


Viewing all articles
Browse latest Browse all 51060

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>