[comp.sys.atari.st.tech] Problem with my C program [a few general hints about malloc

R_Tim_Coslet@cup.portal.com (04/27/91)

>
>Humph.  TOS 1.4 and upwards have NO PROBLEMS with Malloc that have been
>reported to me.
>
>============================================
>Opinions expressed above do not necessarily	-- Allan Pratt, Atari Corp.
>reflect those of Atari Corp. or anyone else.	  ...ames!atari!apratt
Well, I have TOS 1.4 and made a text editor program called SEDT crash.
When I reported the problem to the author of SEDT he traced it back to
the fact that his library was using Malloc directly for all allocations.
When he changed to a different memory allocation algorithm the problem
went away.

Also I just rewrote the memory allocation algorithm for a Modula-2 I have that
appeared to be using Malloc directly...  a short test program using their
library crashed the computer (2 bombs) after a bit over 800 small allocations.
My rewrite made it to 10000 small allocations (from a single large Malloced
block) with no problems.

                                        R. Tim Coslet

Usenet: R_Tim_Coslet@cup.portal.com             BIX:    r.tim_coslet
California could REALLY use 40 days and 40 nights of rain right now!