home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / amiga / programm / 12773 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  2.3 KB

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