🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #3294

What to do when > 64k of c++ objects

#3294
From: Chris Parks
Date: Tue, 18 Jun 1991 19:42
15 lines
1274 bytes
Ok, here's the deal: say you're using the medium model to write a c++
program for windows and you will be using a lot of dynamically allocated
objects created with the new operator.  Since this returns a near pointer
you only are allowed 64k worth of objects.  I would like to be able to use
many complex objects which all together will exceed 64k.  It's my  
understanding that if I switch to the large model the new operator will
create hundreds of tiny memory obstacles which windows won't be able to move.
All c++ programming examples I've seen for windows seem to be using the 
new operator in a carefree way without any concern for running out of space.
Does anyone have any tips on handling a large number of objects?

Thanks,
Chris Parks
parks@maxwell.physics.purdue.edu
 
Technical Details
Message-ID: <5305@dirac.physics.purdue.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!samsung!noose.ecn.purdue.edu!dirac!maxwell.physics.purdue.edu

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!samsung!noose.ecn.purdue.edu!dirac!maxwell.physics.purdue.edu
From: parks@maxwell.physics.purdue.edu (Chris Parks)
Newsgroups: comp.windows.ms.programmer
Subject: What to do when > 64k of c++ objects
Message-ID: <5305@dirac.physics.purdue.edu>
Date: 18 Jun 91 19:42:06 GMT
Sender: news@dirac.physics.purdue.edu
Organization: Purdue University Physics Department, W. Lafayette, IN
Lines: 15