Article View: comp.windows.ms.programmer
Article #1400Re: C++ users: what are you doing about memory?
From: Craig Nelson
Date: Thu, 21 Feb 1991 17:25
Date: Thu, 21 Feb 1991 17:25
20 lines
1377 bytes
1377 bytes
al@well.sf.ca.us (Alfred Fontes) writes: >I was wondering how people out there are handling the memory situation. My >own method is to overload ::operator new() and lock the segment >for as long as I'm using it. I have the luxury of not worrying about >real mode. >I would like to know if other people are doing the same thing. If so, how >are you implementing new()? Well, I don't know about the rest of the world, but I prefer working on 386 programs where extended memory is taken advantage of. The library routines I use come directly from MicroSoft, called XMM.LIB, and every time I need a chunk of memory and don't want to drop the heap I just call for more. Of course I check for availability, but thats beside the point. By the way, all this is done in the new() operator overload. I am working on the extra library routines to make it a permanent portion of the C++ library through inheritance. Craig (mwizard@eecs.ee.pdx.edu)
Technical Details
Message-ID:
<1713@pdxgate.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!ogicse!pdxgate!eecs!mwizardReferences:
<23261@well.sf.ca.us>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!ogicse!pdxgate!eecs!mwizard From: mwizard@eecs.cs.pdx.edu (Craig Nelson) Newsgroups: comp.windows.ms.programmer Subject: Re: C++ users: what are you doing about memory? Message-ID: <1713@pdxgate.UUCP> Date: 21 Feb 91 17:25:47 GMT References: <23261@well.sf.ca.us> Sender: news@pdxgate.UUCP Distribution: comp Lines: 20