>
> BTW, I had enough memory free to run the program. It allocated the
> memory without a problem.
That may be the problem or not, but you can't be sure that there is
enough memory even if the malloc suceeds with Linux. Memory is actually
allocated on writing data to a page (CopyOnWrite or so), I believe. This
is also a philosophical argument, but there are programs that add swap files
dynamically based upon demand :)
Andreas
-- Andreas Kostyrka Email: andreas@medman.ag.or.at Fax: +43/1/7070750 Tel: +43/1/7077571, +43/664/3020166 (cellular) Copyright 1996 Andreas Kostyrka. Microsoft Network is prohibited from redistributing this work in any form, in whole or in part.