🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #37552

Re: Returning from XtMalloc??

#37552
From: Bob Scheifler
Date: Thu, 01 Mar 1990 14:04
19 lines
1125 bytes
    The X Toolkit Intrinsics manual (X11R3) says "These functions
    [XtMalloc, XtCalloc, XtRealloc] are completely compatible with their C
    language runtime counterparts ..."

But it explicitly goes on to say "with the following added functionality"
and explains that out-of-memory produces an error, and the description
of XtError explicitly says that it invokes XtErrorMsg in this case.

    Does this mean one should use the Xt alloc functions only
    when the memory they grab is strictly necessary to continue with
    client execution?

Yes.

    Should we use regular C alloc functions when there
    is the possibility of continueing from a failed alloc?

Sure.
Technical Details
Message-ID: <9003011404.AA00236@expire.lcs.mit.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!seismo!ukma!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!rws
References: <9002271554.AA12993@ra.>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!seismo!ukma!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!rws
From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler)
Newsgroups: comp.windows.x
Subject: Re: Returning from XtMalloc??
Message-ID: <9003011404.AA00236@expire.lcs.mit.edu>
Date: 1 Mar 90 14:04:56 GMT
References: <9002271554.AA12993@ra.>
Sender: daemon@athena.mit.edu (Mr Background)
Organization: The Internet
Lines: 19