Article View: comp.sys.amiga.tech
Article #2400Re: Intuition and Graphics Libraries
From: Adam Keith Levin
Date: Wed, 29 Nov 1989 18:01
Date: Wed, 29 Nov 1989 18:01
36 lines
1998 bytes
1998 bytes
In article <797@wet.UUCP> mcw@wet.UUCP (Martin Warnett) writes:
>The sample intuition program in the CA Intuition reference manual, pages
>18-20 opens both the graphics and intuition library but doesn't close
>them. I realise this libraries are in ROM but....
>
> a) Is there a reason these libraries should NOT be closed?
> b) Is this just sloppy code?
> c) Does it really matter?
>
>My coding standards say that I should close everything I open, this doesn't
>cause any problems. Just wondering.
>
>Thanks,
>
>Martin.
>--
>+====================================================================+
>| Martin Warnett | uucp: ...sun!claris!wet!mcw |
>| San Francisco, CA | claris!wet!mcw@ames.arc.nasa.gov |
>+====================================================================+
a) No.
b) Yes.
c) Only in that the library can never be flushed from memory if
the amount of free memory gets low. This doesn't apply to ROM
libraries, but it is good practice (as you stated) to return ALL
resources when you are done with them.
The new Addison-Wesley "Amiga ROM Kernel Reference Manual:Libraries and Devices"
(which includes Exec and Intuition) has much more "correct" examples.
No, I have no information on when it will be available.
--
Adam Keith Levin -- CATS Commodore Applications and Technical Support
1200 Wilson Drive / West Chester, PA 19380 (215) 431-9180
BIX: aklevin UUCP: ...{amiga|rutgers|uunet}!cbmvax!cbmcats!adam
Technical Details
Message-ID:
<115@cbmcats.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uwm.edu!psuvax1!rutgers!bpa!cbmvax!cbmcats!adamReferences:
<797@wet.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uwm.edu!psuvax1!rutgers!bpa!cbmvax!cbmcats!adam From: adam@cbmcats.UUCP (Adam Keith Levin) Newsgroups: comp.sys.amiga.tech Subject: Re: Intuition and Graphics Libraries Message-ID: <115@cbmcats.UUCP> Date: 29 Nov 89 18:01:07 GMT References: <797@wet.UUCP> Reply-To: adam@cbmcats.UUCP (Adam Keith Levin) Organization: Commodore Business Machines, Tech Support Lines: 36