TH>TH>The "real" memory model limits *any* arrays to 65536 bytes.
TH>TH>You will have to use 32-bit addressing.
TH>MH>How would I accomplish this? Keep in mind, I'm compiling a DOS
TH>MH>executable....
TH>That's not a problem. Also, you might consider a 'virtual' heap.
MH>You're going over my head here with both your ideas.....:)
Oops, sorry...
There are some 32-bit compilers for DOS out there: Watcom for one.
You can compile flat-model code for DOS. The "virtual" heap is a
replacement for "new" and "delete" that makes use of XMS, EMS, or
disk space to store large amounts of data. Mind you, any one array is
still limited to 65K. But, if you are creating nodes under this size,
that that's not a problem.
TH>You wrote 70% of the program, and *now* you discover that you can't
TH>RAM 200k! Bummer!!! [grin]
MH>Didn't think about it at the time....:)
Design, design, DESIGN, my friend. Always plan your attack, and
you'll never get caught with your pointers down. [grin]
TH>Just what are you try'n to do?
MH>Trying to read in nodelist.*
???
How do you *read-in* a node list? Nodes are the stuff heaps are made
of. Are you reading a file and creating a linked list? This file
"nodelist"... what's in it?
___ Blue Wave/QWK v2.12
--- Maximus/2 3.01
---------------
* Origin: Madman BBS * Chico, California * 530-893-8079 * (1:119/88)
|