Deutsch   English   Français   Italiano  
<v5ctoa$15hrn$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: comp.lang.c
Subject: Re: realloc() - frequency, conditions, or experiences about
 relocation?
Date: Mon, 24 Jun 2024 22:59:23 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <v5ctoa$15hrn$1@dont-email.me>
References: <v4ojs8$gvji$1@dont-email.me>
	<v4ov8h$j2q2$1@raubtier-asyl.eternal-september.org>
	<v52270$2nli8$1@dont-email.me>
	<v54jac$3a4p2$1@raubtier-asyl.eternal-september.org>
	<v5bbd3$rhao$2@dont-email.me> <875xtyu0kk.fsf@nosuchdomain.example.com>
	<v5bluo$thpd$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 25 Jun 2024 00:59:23 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="250b38e1e4730787d8a829a06e323428";
	logging-data="1230711"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/ctdutSdIGpKorjNkWhWrk"
User-Agent: Pan/0.158 (Avdiivka; )
Cancel-Lock: sha1:sZAxEOO4OhEi8OowHCStK1RJMBA=
Bytes: 1854

On Mon, 24 Jun 2024 13:40:08 +0200, David Brown wrote:

> Have you ever known a non-pathological malloc() to fail?

I was once commissioned, many decades ago, to write a multispectral image 
viewer to run on old MacOS. I followed my usual memory-allocation 
discipline. The client reported how he tried to open too many images at 
once, and ran out of memory; my program reported one out-of-memory error, 
gave up trying to open the rest of the files, and gracefully recovered 
without crashing.

The program that had been supplied to him for Microsoft Windows, however, 
gave an error for *each* file it failed to open.