Add msgbox if heap alloc failed