Article View: comp.os.msdos.programmer
Article #3510Applications and Running out of Memory
From: Les Arrow
Date: Wed, 07 Oct 1992 00:14
Date: Wed, 07 Oct 1992 00:14
27 lines
1782 bytes
1782 bytes
I use Microsoft C 6.0 to compile and link my C code. I generally use the Programmer's Workbench, the interactive shell that comes with the compiler tools. Lately I haven't been able to run Workbench because of a lack of memory. The way I was able to tell that I was running out of memory is because of experience of the way DOS applications handle running out of memory and the fact that the application crashed and froze my machine. Entertainment software often runs this way also. If you do not have enough memory they freeze or crash without notification. My question is why don't applications handle running out of memory in a nicer fashion? This may seem like a generalization, but it seems to happen a lot. I would think that since the programmer allocates the memory via a malloc or whatever, he/she would know when the memory allocation failed and be able to recover gracefully. Is this a misconception? Am I thinking on too small a scale? As a programmer the last thing I want my application to do is cause a reboot. My manager seems to think that these certain application I am running were not written well. I have more faith in my fellow commercial software programmers to say that memory allocation problems almost certainly would have been accounted for if it was as easy as I think it is. Set me straight on DOS memory problems and allocation. --Les
Technical Details
Message-ID:
<1992Oct7.001411.8605@novell.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!crdgw1!newsun!larrowShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!crdgw1!newsun!larrow From: larrow@novell.com (Les Arrow) Newsgroups: comp.os.msdos.programmer Subject: Applications and Running out of Memory Message-ID: <1992Oct7.001411.8605@novell.com> Date: 7 Oct 92 00:14:11 GMT Sender: news@novell.com (The Netnews Manager) Organization: Novell Inc., San Jose, Califonia Lines: 27 Nntp-Posting-Host: ka.novell.com