[comp.sys.amiga.tech] memory management.

rminnich@udel.EDU (Ron Minnich) (06/01/88)

In article <gWcglzy00UoNI0akVi@andrew.cmu.edu> mp1u+@andrew.cmu.edu (Michael Portuesi) writes:
>I am writing a drawing program that needs to dynamically allocate memory for
   well this is as good an opening as any for a suggestion i was going
to make. I see that mike is doing drawing, but it looks like 3d and 
i don't know if it is for public domain or not. BUT, if you are thinking
of doing some kind of drawing program, take a good hard look at the 
'fig' program available (with source, for free) on sun systems. 
You can get it from from the sun-spots archives available at 
sally.utexas.edu, or if you can't find it 'call me' and i can show
you where to get them at udel.
It is REALLY nice, makes macdraw look sick, and of course since source
is available we can all think about running it on our favorite machine!

-- 
ron (rminnich@udel.edu)

shf@well.UUCP (Stuart H. Ferguson) (06/08/88)

Michael Portuesi asks about what to do when AllocMem() returns NULL -- is there
enough memory to put up a requester?

Answer: Not necessarily.

More useful answer: When this happens, use an Intuition AutoRequest to notify
the user of the condition.  The AutoRequest function will use a window for the
request if there is enough memory to do that, or it will use an ALERT if there
is not enough memory.  If it can't put up an alert, you're really in trouble.
-- 
		Stuart Ferguson		(shf@well.UUCP)
		Action by HAVOC		(shf@Solar.Stanford.EDU)