I am performing a memory intensive task. I would like to add a warning message when the operating system runs out of memory to allocate. When I run the code below, the proce