Path: 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 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 / )