Path: news.daimi.aau.dk!jlk From: jlk@daimi.aau.dk (J|rgen Lindskov Knudsen) Newsgroups: comp.lang.beta Subject: Re: Out of memory Date: 20 Feb 1996 23:02:20 GMT Organization: DAIMI, Computer Science Dept. at Aarhus University Lines: 27 Message-ID: <4gdjts$9l3@gjallar.daimi.aau.dk> References: Reply-To: jlknudsen@daimi.aau.dk (Jorgen Lindskov Knudsen) NNTP-Posting-Host: fraxinus.daimi.aau.dk In Thus spake Kolbjorn.Aambo@ub.uio.no (Kolbjørn Aambø): >I need to be able to store data to disk and free memory and then allocate >some new when the application is out of memory, is there a way to ask GC >if there are sufficient memory left for a given operation? The short answer is NO. The reason is, that there is no way to predict how much space an operation will need (it may create dynamic objects in a inner loop, etc.). Regards, Jorgen Lindskov Knudsen, Mjolner Informatics Science Park Aarhus, Gustaw Vieds Vej 10, DK-8000 Aarhus C, DENMARK E-mail: jlknudsen@mjolner.dk, Phone: +45 86 20 20 00, Fax: +45 86 20 12 22 ************ BETA information Sources ************************ * WWW: http://www.mjolner.dk * * http://www.daimi.aau.dk/~beta/info * * News: comp.lang.beta * * FAQ: http://www.daimi.aau.dk/~beta/FAQ * * E-mail: info@mjolner.dk * * Address: Mjolner Informatics, Science Park Aarhus, * * Gustav Wieds Vej 10, DK-8000, Aarhus C, DENMARK * * Tel.: +45 86 20 20 00 * * Fax.: +45 86 20 12 22 * **************************************************************