Replace NEWOBJ() by newres<>