Article View: comp.sys.amiga.tech
Article #9434Re: Manxifying Lattice Code
From: Jim Berry
Date: Thu, 04 Aug 1988 14:15
Date: Thu, 04 Aug 1988 14:15
23 lines
1322 bytes
1322 bytes
From article <6711@well.UUCP:, by shf@well.UUCP (Stuart H. Ferguson):
:
: I'm trying to convert a program that compiles under Lattice C into a Manx C
: program, and I've run into weird snags. (This is "Conquest" from an early
: pplanet = (tplanet *) malloc (sizeof(tplanet));
:
: but when it tries to store to the structure, it (sometimes!) crashes with
: Guru 3. The statement in question is:
: Stuart Ferguson (shf@well.UUCP)
: Action by HAVOC (shf@Solar.Stanford.EDU)
How big is sizeof(tplanet)? Manx malloc() wants its argument to be a word, so
if it's bigger than 64K it won't work correctly.
If that's the case, try AllocMem().
--
------------------------------------------------------------------------------
Jim Berry | UUCP:{arizona,decvax,hao}!noao!stsci!berry
Space Telescope Science Institute | ARPA: berry@stsci.edu
Baltimore, Md. 21218 | SPAM: SCIVAX::BERRY, KEPLER::BERRY
Technical Details
Message-ID:
<386@stsci>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!husc6!bloom-beacon!gatech!ncar!noao!stsci!berryReferences:
<6711@well.UUCP:Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!husc6!bloom-beacon!gatech!ncar!noao!stsci!berry From: berry@stsci.EDU (Jim Berry) Newsgroups: comp.sys.amiga.tech Subject: Re: Manxifying Lattice Code Message-ID: <386@stsci> Date: 4 Aug 88 14:15:37 GMT References: <6711@well.UUCP: Organization: Space Telescope Science Institute, Baltimore, MD 21218 Lines: 23