home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.programmer
- Path: 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
-
- 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
-