Thread View: comp.os.msdos.programmer
1 messages
1 total messages
Started by Darren Stone
Fri, 22 Jan 1993 18:23
PHAR LAP Dos-Extender help needed.
Author: Darren Stone
Date: Fri, 22 Jan 1993 18:23
Date: Fri, 22 Jan 1993 18:23
30 lines
1367 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads