Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!mm5l+ From: mm5l+@andrew.cmu.edu (Matthew Mashyna) Newsgroups: comp.sys.mac.programmer Subject: Re: Help me port UNIX to THINK C 4.0 Message-ID: Date: 31 Jul 90 14:16:30 GMT Organization: Humanities and Social Sciences, Carnegie Mellon, Pittsburgh, PA Lines: 25 >I'm trying to port Rayshade 3.0 to my Mac (SE/30) and am having >strange difficulties. I've managed to get all the code compiled OK with >minor alterations (the project file is ~700K and the final app ~160K) >but I am running into problems with malloc() Although I have given >plenty of memory to the partition (under the debugger and as a stand >alone app), malloc() goes off into deep thought and never exits. AAARRRRGGGG! This seems to be one of the biggest headaches with Think C 4.0. I've seen so many people have *alloc() work a few times then spit up blood. I went crazy over this at first. The cure ? Always include stdlib.h and stdio.h. You may also find that you need to include strings.h too. One thing I'd really like to see is better argument checking. It seems with Think C you get too little or too much. Of course if this doesn't fix your problem I take all that critisism (and bad spelling) back :-) ============================================================================= |Matt Mashyna | "That is the most obscene abomination of a song... | |mm5l@andrew.cmu.edu | that is dirt, that is filth, that is trash. What | |Carnegie Mellon | possessed you to write such a disgusting, degenerate | | Every day is | type song as this ? ... And I'm complementing you by | | Earth Day. | considering it a song." - a critic | =============================================================================