home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!gumby!yale!yale.edu!jvnc.net!darwin.sura.net!ukma!cs.widener.edu!dsinc!bagate!cbmvax!cbmehq!cbmden!hemmer!hemmer
- From: hemmer@hemmer.adsp.sub.org (Franz Hemmer)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Clearing Library Base (was Re: SAS/C 6.0 Details (LONG!))
- Message-ID: <hemmer.01xg@hemmer.adsp.sub.org>
- Date: 27 Aug 92 07:14:12 GMT
- References: <BsxCu2.5A7@unx.sas.com> <1992Aug18.203629.22286@fcom.cc.utah.edu> <Bt8H7F.BL8@unx.sas.com> <hemmer.01sx@hemmer.adsp.sub.org> <34611@cbmvax.commodore.com>
- Reply-To: cbmehq!cbmden!hemmer@cbmvax.commodore.com (Franz Hemmer)
- Organization: InterActivsion
- Lines: 28
- X-NewsSoftware: GRn 1.16e (7/4/92) by Mike Schwartz & Michael B. Smith
-
- In article <34611@cbmvax.commodore.com> dlarson@cbmvax.commodore.com (Dale Larson - Product Assurance) writes:
- > In article <hemmer.01sx@hemmer.adsp.sub.org> cbmehq!cbmden!hemmer@cbmvax.commodore.com (Franz Hemmer) writes:
-
- > >So, when I switch to V6.0 I'll have to set all my library pointers to NULL
- > >after CloseLibrary(), in order to avoid autoterm() to close it again ?
- >
- > Clearing the library base after CloseLibrary() is a very good idea anyway. Its
- > called "defensive programming." Any pointer which isn't valid (a dangling
- > pointer) should be cleared to NULL so that it is clearly invalid and can be
- > checked for validity before use. Obviously, this isn't really necessary at the
- > end of main(), but it is still a good habit because many library bases aren't
- > opened and closed in main().
-
- I totally agree with this! I merely wanted to know, whether it was necessary to
- modify the V5.10b sources when switching to V6.00. Now I know this is not
- necessary (not implying that I'll leave them as-is), thanks to all of you who
- helped clarifying this for me.
-
- > Dale Larson, Software Engineer, |
-
- --
- *-------------------------------------------------------------------------*
- | _ UseNet: (uunet|rutgers|pyramid)!cbmvax!cbmehq!cbmden!hemmer |
- | \\ _ CBMNET: hemmer@hemmer.adsp.sub.org |
- | InterActi\X/ision - The name of precision |
- | Best regards >> Carpe Diem! - Seize the day! << |
- | Franz Hemmer - Software Developer located in Silkeborg, Denmark, Europe |
- *-------------------------------------------------------------------------*
-