Newsgroups: comp.sys.ibm.pc Path: utzoo!utgpu!jarvis.csri.toronto.edu!csri.toronto.edu!byu From: byu@csri.toronto.edu (Benjamin Yu) Subject: MSC 5.1 Far Heap size Message-ID: <8808242111.AA06402@ellesmere.csri.toronto.edu> Organization: University of Toronto, CSRI Date: Wed, 24 Aug 88 15:51:33 EDT I am posting the following for a friend, please reply directly to Greg Greaves (address below). ============================================================================== Hello, Could anybody out there tell me of an easy and reliable way to get the size of the far heap in MSC 5.1 small model? I am doing _fmalloc()'s and need to know the available far heap size before-hand. I tried using _dos_allocmem( 0xFFFF, &size ) to ask for a meg and looked at the available memory that it returned in the second parameter. This is fine and dandy except that this value does not change when memory is allocated with _fmalloc() and subsequent calls are made to _dos_allocmem(). I need something that works with _fmalloc(). I have a routine that allocates until it can't anymore but its a kludge and I know there must be a more elegant way to go about this. Any help would be appreciated. If you prefer e-mail to posting your response, please e-mail me at ...!moore!dhstor!greg as this message was posted from another machine. Thanks in advance, -Greg Greaves ( greg@dhstor.UUCP )