🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Turbo and Borland C farmalloc() limit

#5817
From: Lee Sailer
Date: Wed, 17 Apr 1991 17:21
16 lines
1032 bytes
I have what appears to be a bug in both TC2.0 and the new BC++.

When I use farmalloc((unsigned long)512L*1024L) to allocate a
piece of memory of size 512K (or larger), farmalloc *appears*
to return a legitimate pointer.  However, if I try another farmalloc()
and then another and another, they *all* succeed, each returning
what appears to be a legitimate pointer.

So far, my search of the docs does not say anywhere that farmalloc()
is limited to 512K, but that sure appears to be the case.  BTW--I am
using the huge or compact model, though that shouldn't be
the problem.

Any advice appreciated.

                               lee
Technical Details
Message-ID: <91107.132101UH2@psuvm.psu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!ukma!usenet.ins.cwru.edu!ysub!psuvm!uh2

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!ukma!usenet.ins.cwru.edu!ysub!psuvm!uh2
Organization: Penn State University
Date: Wednesday, 17 Apr 1991 13:21:01 EDT
From: Lee Sailer <UH2@psuvm.psu.edu>
Message-ID: <91107.132101UH2@psuvm.psu.edu>
Newsgroups: comp.os.msdos.programmer
Subject: Turbo and Borland C farmalloc() limit