🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Re: Memory Models in TC2.0

#6980
From: Kevin Owen
Date: Wed, 05 Jun 1991 16:19
15 lines
1209 bytes
Sean,

I went through this same problem and found that the secret was to change 
all calls to "malloc()" to "farmalloc()".  It appears that compiling in
the compact and large models automagically sets all of your data types to
"far" but does not change the values that functions return.

Good Luck.
_______________________________________________________________________________

 _   ,                   __                 Kevin Owen @ Hewlett-Packard
' ) /                   / ')                Sunnyvale, California
 /-<   _ , __o  ____   /  / , , , _  ____   Phone :    (408) 720-3845
/   ) </_\/ <__/ / <  (__/ (_(_/_</_/ / <_  UN*X Mail  ...hplabs!hpcc01!kevino
_______________________________________________________________________________
Technical Details
Message-ID: <4660001@pollux.svale.hp.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpl-opus!hpcc05!hpyhde4!hpycla!hpcuhc!pollux!kevino
References: <16856@helios.TAMU.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpl-opus!hpcc05!hpyhde4!hpycla!hpcuhc!pollux!kevino
From: kevino@pollux.svale.hp.com (Kevin Owen)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Re: Memory Models in TC2.0
Message-ID: <4660001@pollux.svale.hp.com>
Date: 5 Jun 91 16:19:40 GMT
References: <16856@helios.TAMU.EDU>
Organization: Hewlett Packard CPCD, Sunnyvale CA
Lines: 15