home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / msdos / programm / 12344 < prev    next >
Encoding:
Text File  |  1993-01-22  |  1.3 KB  |  41 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!van-bc!stoned
  3. From: stoned@wimsey.bc.ca (Darren Stone)
  4. Subject: PHAR LAP Dos-Extender help needed.
  5. Organization: Wimsey Information Services
  6. Date: Fri, 22 Jan 1993 18:23:18 GMT
  7. Message-ID: <C19pqv.3F7@wimsey.bc.ca>
  8. X-Newsreader: Tin 1.1 PL5
  9. Lines: 30
  10.  
  11. Hiya.  I've just acquired Phar Lap's 286 DOS-Extender.  It seems to work
  12. great with Borland C++ 3.1, with one exception.
  13.  
  14. Using farmalloc(), I can only seem to allocate 1MB contiguous pieces of
  15. memory - no larger.
  16.  
  17. What I want is just a few (I assume) lines of code that will return
  18. a char huge * to the largest contiguous piece of memory in my machine
  19. (which I can then reference into like an array).
  20.  
  21. ie,  unsigned char huge *p = (unsigned char huge *)farmalloc(16*OneMeg);
  22.  
  23. Phar Lap tech support has not helped that much.  They haven't shown me
  24. a code snippet that works; they've just claimed something about an arbitrary
  25. 1MB limit and speculated on workarounds.  At the same time, their manual
  26. claims that farmalloc() has no arbitrary limits, and that you should be able
  27. to grab as much physical memory as you can in one fell swoop.
  28.  
  29. Has anybody experienced or solved this problem?
  30.  
  31. Thanx...
  32.  
  33. - Darren Stone
  34.   stoned@wimsey.bc.ca
  35.   Xanth Software F/X
  36.   Vancouver, B.C.
  37. .
  38.  
  39. Anybody
  40. should be able to give you as much
  41.