🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #7673

PHAR LAP Dos-Extender help needed.

#7673
From: Darren Stone
Date: Fri, 22 Jan 1993 18:23
30 lines
1367 bytes
Hiya.  I've just acquired Phar Lap's 286 DOS-Extender.  It seems to work
great with Borland C++ 3.1, with one exception.

Using farmalloc(), I can only seem to allocate 1MB contiguous pieces of
memory - no larger.

What I want is just a few (I assume) lines of code that will return
a char huge * to the largest contiguous piece of memory in my machine
(which I can then reference into like an array).

ie,  unsigned char huge *p = (unsigned char huge *)farmalloc(16*OneMeg);

Phar Lap tech support has not helped that much.  They haven't shown me
a code snippet that works; they've just claimed something about an arbitrary
1MB limit and speculated on workarounds.  At the same time, their manual
claims that farmalloc() has no arbitrary limits, and that you should be able
to grab as much physical memory as you can in one fell swoop.

Has anybody experienced or solved this problem?

Thanx...

- Darren Stone
  stoned@wimsey.bc.ca
  Xanth Software F/X
  Vancouver, B.C.
.

Anybody
should be able to give you as much
Technical Details
Message-ID: <C19pqv.3F7@wimsey.bc.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!van-bc!stoned

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!van-bc!stoned
From: stoned@wimsey.bc.ca (Darren Stone)
Subject: PHAR LAP Dos-Extender help needed.
Organization: Wimsey Information Services
Date: Fri, 22 Jan 1993 18:23:18 GMT
Message-ID: <C19pqv.3F7@wimsey.bc.ca>
X-Newsreader: Tin 1.1 PL5
Lines: 30